gcc/testsuite/gcc.dg/torture/pr100329.c
raw| 1 | /* { dg-do compile { target asm_goto_with_outputs } } */ |
| 2 | /* { dg-additional-options "--param tree-reassoc-width=2" } */ |
| 3 | |
| 4 | unsigned int a0; |
| 5 | |
| 6 | unsigned int |
| 7 | foo (unsigned int a1, unsigned int a2) |
| 8 | { |
| 9 | unsigned int x; |
| 10 | |
| 11 | asm goto ("" : "=r" (x) : : : lab); |
| 12 | a0 = x; |
| 13 | |
| 14 | lab: |
| 15 | return x + a1 + a2 + 1; |
| 16 | } |