PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / no-volatile-in-it.c
blob6f3664d3b3d11544e0293c342c606989ee6d1471
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-skip-if "do not override -mcpu" { *-*-* } { "-march=*" "-mcpu=*" } { "-mcpu=cortex-m7" } } */
4 /* { dg-options "-Os -mthumb -mcpu=cortex-m7" } */
6 int
7 foo (int a, int b, volatile int *c, volatile int *d)
9 if (a > b)
10 return c[0];
11 else
12 return d[0];
15 /* { dg-final { scan-assembler-not "ldrgt" } } */