gcc/testsuite/gcc.dg/torture/pr116488.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-additional-options "-fno-forward-propagate" } */ |
| 3 | /* { dg-require-effective-target int32plus } */ |
| 4 | |
| 5 | int a, b; |
| 6 | signed char c, e; |
| 7 | unsigned char d; |
| 8 | __attribute__ ((noinline,noclone,noipa)) |
| 9 | void f(int g, short h) { |
| 10 | for (; a < 2; a++) { |
| 11 | b = h >> 16; |
| 12 | e = b * h; |
| 13 | d = h; |
| 14 | h = c = d % g; |
| 15 | } |
| 16 | } |
| 17 | int main() |
| 18 | { |
| 19 | f(129, 128); |
| 20 | if (b != -1) |
| 21 | __builtin_abort (); |
| 22 | } |