gcc/testsuite/gcc.c-torture/execute/pr81556.c
raw| 1 | /* PR tree-optimization/81556 */ |
| 2 | |
| 3 | unsigned long long int b = 0xb82ff73c5c020599ULL; |
| 4 | unsigned long long int c = 0xd4e8188733a29d8eULL; |
| 5 | unsigned long long int d = 2, f = 1, g = 0, h = 0; |
| 6 | unsigned long long int e = 0xf27771784749f32bULL; |
| 7 | |
| 8 | __attribute__((noinline, noclone)) void |
| 9 | foo (void) |
| 10 | { |
| 11 | _Bool a = d > 1; |
| 12 | g = f % ((d > 1) << 9); |
| 13 | h = a & (e & (a & b & c)); |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | main () |
| 18 | { |
| 19 | foo (); |
| 20 | if (g != 1 || h != 0) |
| 21 | __builtin_abort (); |
| 22 | return 0; |
| 23 | } |