This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

The real testcase for PPro bootstrap failure


Hi,

This is a simple testcase for Pentium Pro. I believe it causes the
PPro bootstrap failure. It looks like there is a typo somewhere.
Could someone please take a look at it?

# ./xgcc -B./ bad.c -mcpu=pentiumpro -march=pentiumpro -O
# a.out
zsh: 7026 abort      ./a.out

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---
int
foo (int x, int y, int i, int j)
{
  double tmp1 = ((double) x / y);
  double tmp2 = ((double) i / j);

  return tmp1 < tmp2;
}

main ()
{
  if (foo (2, 24, 3, 4) == 0)
    abort ();
  return 0;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]