gcc/testsuite/gcc.dg/torture/pr38774.c
raw| 1 | /* PR rtl-optimization/38774 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "" } */ |
| 4 | /* { dg-options "-march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ |
| 5 | |
| 6 | extern int bar (void); |
| 7 | volatile int g; |
| 8 | |
| 9 | int |
| 10 | foo (void) |
| 11 | { |
| 12 | int a = 1 >= bar (); |
| 13 | if ((1 > 9223372036854775807LL - a && 1 - a ? : 1 + a) & 1) |
| 14 | return g; |
| 15 | return 0; |
| 16 | } |