gcc/testsuite/gcc.target/arm/no-volatile-in-it.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_cpu_cortex_m7_ok } */ |
| 3 | /* { dg-require-effective-target arm_thumb2_ok } */ |
| 4 | /* { dg-options "-Os" } */ |
| 5 | /* { dg-add-options arm_cpu_cortex_m7 } */ |
| 6 | |
| 7 | int |
| 8 | foo (int a, int b, volatile int *c, volatile int *d) |
| 9 | { |
| 10 | if (a > b) |
| 11 | return c[0]; |
| 12 | else |
| 13 | return d[0]; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-not "ldrgt" } } */ |