testsuite addition

Alan Modra alan@SPRI.Levels.UniSA.Edu.Au
Thu Feb 3 19:30:00 GMT 2000


Would someone please add this to the gcc execute testsuite?  Current x86
gcc miscompiles this code.

static int f (int a)
{
  if (a == 0)
    return 0;
  do
    if (a & 128)
      return 1;
  while (f (0));
  return 0;
}

int main(void)
{
  if (f (~128))
    abort ();
  exit (0);
}




More information about the Gcc-patches mailing list