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:
parent
83a3aefb83
commit
61fdde38f0
@ -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>
|
2002-10-09 Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
PR c/7353
|
PR c/7353
|
||||||
|
21
gcc/testsuite/gcc.c-torture/execute/20021010-1.c
Normal file
21
gcc/testsuite/gcc.c-torture/execute/20021010-1.c
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user