diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-28 04:40:05 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-28 04:40:05 +0000 |
commit | bb17b409bc77519d980e4f88ab3eb2c4c142c390 (patch) | |
tree | 21416a93a08c2c026822da31c2e1d7f8bb065aef /gcc/testsuite/gcc.c-torture/execute/pr23047.c | |
parent | 8b5d7cdfe6fbfadc3cffe6506c26501b71482f81 (diff) | |
download | gcc-bb17b409bc77519d980e4f88ab3eb2c4c142c390.tar.gz |
2005-07-27 James A. Morrison <phython@gcc.gnu.org>
PR rtl-optimization/23047
* simplify-rtx.c (simplify_const_relational_operation): Respect
flag_wrapv for comparisons with ABS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102459 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr23047.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr23047.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr23047.c b/gcc/testsuite/gcc.c-torture/execute/pr23047.c new file mode 100644 index 00000000000..7557fc2beca --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr23047.c @@ -0,0 +1,16 @@ +#include <limits.h> +extern void abort (); +extern void exit (int); +void f(int i) +{ + i = i > 0 ? i : -i; + if (i<0) + return; + abort (); +} + +int main(int argc, char *argv[]) +{ + f(INT_MIN); + exit (0); +} |