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" } */
5
6 int
7 foo (int a, int b, volatile int *c, volatile int *d)
8 {
9 if (a > b)
10 return c[0];
11 else
12 return d[0];
13 }
14
15 /* { dg-final { scan-assembler-not "ldrgt" } } */