diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-10 19:36:31 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-10 19:36:31 +0000 |
commit | a8a6348a8558a023523f656fbbaf6e53e6d05f57 (patch) | |
tree | 7f9a86336ae665c1e5f7d8a02580253538ca9e1d | |
parent | f5f20bad70b0e91fc7146deef28af14deffc9e52 (diff) | |
download | gcc-a8a6348a8558a023523f656fbbaf6e53e6d05f57.tar.gz |
Test miscompiled for v850 target with -O -mv850e due to cse bug.
* gcc.c-torture/execute/20021010-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58025 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20021010-1.c | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a0b6de2471e..78787bc48de 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/execute/20021010-1.c b/gcc/testsuite/gcc.c-torture/execute/20021010-1.c new file mode 100644 index 00000000000..d742ce40b5f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20021010-1.c @@ -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); +} |