gcc/testsuite/gcc.c-torture/execute/pr85529-2.c
raw| 1 | /* PR tree-optimization/85529 */ |
| 2 | |
| 3 | __attribute__((noipa)) int |
| 4 | foo (int x) |
| 5 | { |
| 6 | x &= 63; |
| 7 | x -= 50; |
| 8 | x |= 1; |
| 9 | if (x < 0) |
| 10 | return 1; |
| 11 | int y = x >> 2; |
| 12 | if (x >= y) |
| 13 | return 1; |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main () |
| 19 | { |
| 20 | int i; |
| 21 | for (i = 0; i < 63; i++) |
| 22 | if (foo (i) != 1) |
| 23 | __builtin_abort (); |
| 24 | return 0; |
| 25 | } |