gcc/testsuite/gcc.c-torture/execute/pr119291.c
raw| 1 | /* PR rtl-optimization/119291 */ |
| 2 | |
| 3 | int a; |
| 4 | long c; |
| 5 | |
| 6 | __attribute__((noipa)) void |
| 7 | foo (int x) |
| 8 | { |
| 9 | if (x != 0) |
| 10 | __builtin_abort (); |
| 11 | a = 42; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | int e = 1; |
| 18 | lab: |
| 19 | if (a < 2) |
| 20 | { |
| 21 | int b = e; |
| 22 | _Bool d = a != 0; |
| 23 | _Bool f = b != 0; |
| 24 | unsigned long g = -(d & f); |
| 25 | unsigned long h = c & g; |
| 26 | unsigned long i = ~c; |
| 27 | e = -(i & h); |
| 28 | c = e != 0; |
| 29 | a = ~e + b; |
| 30 | foo (e); |
| 31 | goto lab; |
| 32 | } |
| 33 | } |