Debian Codegraph @

gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-options "-Os" } */
4
5 int __attribute__((noinline)) f (void)
6 {
7 asm ("");
8 }
9
10 int g (void)
11 {
12 char buf[32];
13 register char *x asm ("r4") = buf;
14 asm volatile ("" : : "r" (x));
15 return f();
16 }
17 /* Unstacking a single low register in thumb2 should use POP. */
18 /* { dg-final { scan-assembler "pop\t{r4}" } } */