aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pure-code/pr96767.c
blob: cb3ee682dd182b18901f05480405c9e84eff8b6b (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-mpure-code" } */

int x;
int f1 (void) { return x; }

/* We expect only one indirect load like ldr r3, [r3]. In some
   configurations there is an additional ldr rX, [sp], #4 which is not
   related to what we check here, so make sure not to match it.  */
/* { dg-final { scan-assembler-times "ldr\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 1 } } */