Test miscompiled for v850 target with -O -mv850e due to cse bug.

* gcc.c-torture/execute/20021010-1.c: New test.

From-SVN: r58025
This commit is contained in:
Jim Wilson 2002-10-10 19:36:31 +00:00 committed by Jim Wilson
parent 83a3aefb83
commit 61fdde38f0
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-10-10 Jim Wilson <wilson@redhat.com>
* gcc.c-torture/execute/20021010-1.c: New test.
2002-10-09 Zack Weinberg <zack@codesourcery.com>
PR c/7353

View File

@ -0,0 +1,21 @@
#include <limits.h>
int
sub ()
{
int dummy = 0, a = 16;
if (a / INT_MAX / 16 == 0)
return 0;
else
return a / INT_MAX / 16;
}
int
main ()
{
if (sub () != 0)
abort ();
exit (0);
}