blob: 6f3664d3b3d11544e0293c342c606989ee6d1471 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-skip-if "do not override -mcpu" { *-*-* } { "-march=*" "-mcpu=*" } { "-mcpu=cortex-m7" } } */
/* { dg-options "-Os -mthumb -mcpu=cortex-m7" } */
int
foo (int a, int b, volatile int *c, volatile int *d)
{
if (a > b)
return c[0];
else
return d[0];
}
/* { dg-final { scan-assembler-not "ldrgt" } } */