gcc/testsuite/gcc.dg/torture/pr92608.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-funswitch-loops" } */ |
| 3 | |
| 4 | int op, bs; |
| 5 | |
| 6 | void |
| 7 | q0 (void) |
| 8 | { |
| 9 | op += 1 % (op == bs); |
| 10 | } |
| 11 | |
| 12 | void __attribute__ ((returns_twice)) |
| 13 | co (void) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | void __attribute__ ((simd)) |
| 18 | uq (void) |
| 19 | { |
| 20 | q0 (); |
| 21 | co (); |
| 22 | |
| 23 | while (bs < 1) |
| 24 | ++bs; |
| 25 | } |