gcc/testsuite/gcc.dg/ipa/pr118097.c
raw| 1 | /* { dg-do run { target longlong64 } } */ |
| 2 | /* { dg-options "-O2 -fno-inline" } */ |
| 3 | |
| 4 | int a, b, c, *d = &a; |
| 5 | long long e; |
| 6 | static long long am (long long f, int g) { |
| 7 | return g == 0 || f == 1 && g == 1 ?: f / g; |
| 8 | } |
| 9 | static void aq (unsigned f) |
| 10 | { |
| 11 | c ^= e = am(~f, 1); |
| 12 | b = 7 - (e >= 1) - 33; |
| 13 | *d = b; |
| 14 | } |
| 15 | |
| 16 | int main() { |
| 17 | // am(1, 1); |
| 18 | aq(1); |
| 19 | if (a == 0xffffffffffffffe5) |
| 20 | ; |
| 21 | else |
| 22 | __builtin_abort(); |
| 23 | } |