gcc/testsuite/gcc.c-torture/execute/pr79388.c
raw| 1 | /* PR rtl-optimization/79388 */ |
| 2 | /* { dg-additional-options "-fno-tree-coalesce-vars" } */ |
| 3 | |
| 4 | unsigned int a, c; |
| 5 | |
| 6 | __attribute__ ((noinline, noclone)) unsigned int |
| 7 | foo (unsigned int p) |
| 8 | { |
| 9 | p |= 1; |
| 10 | p &= 0xfffe; |
| 11 | p %= 0xffff; |
| 12 | c = p; |
| 13 | return a + p; |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | main (void) |
| 18 | { |
| 19 | int x = foo (6); |
| 20 | if (x != 6) |
| 21 | __builtin_abort(); |
| 22 | return 0; |
| 23 | } |