gcc/testsuite/gcc.target/i386/pr28839.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -msse2 -ftree-vectorize -funswitch-loops" } */ |
| 3 | |
| 4 | static int ready[10]; |
| 5 | void abort (void); |
| 6 | int b (void); |
| 7 | void test_once (int t,int t1) |
| 8 | { |
| 9 | int i, repeat; |
| 10 | for (i = 0; i < 10; i++) |
| 11 | { |
| 12 | ready[i] = 0; |
| 13 | if (t1) |
| 14 | if (b()) |
| 15 | abort (); |
| 16 | } |
| 17 | if (t) |
| 18 | abort (); |
| 19 | } |