gcc/testsuite/gcc.target/s390/oscbreak-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -mtune=z13 -fschedule-insns -dp" } */ |
| 3 | |
| 4 | void |
| 5 | foo (char *a, int b) |
| 6 | { |
| 7 | int i; |
| 8 | |
| 9 | for (i = 0; i < b; i++) |
| 10 | a[i] += 1; |
| 11 | } |
| 12 | |
| 13 | /* We should not unconditionally emit an osc_break here. */ |
| 14 | void |
| 15 | bar (char *a, int b) |
| 16 | { |
| 17 | int i; |
| 18 | |
| 19 | for (i = 0; i < b; i++) |
| 20 | { |
| 21 | if (a[i] & 1) |
| 22 | a[i] = 1; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /* { dg-final { scan-assembler-times "osc_break" 1 } } */ |