1 /* Verify that if IP is saved to ensure stack alignment, we don't load
3 /* { dg-do compile } */
4 /* { dg-options "-O -mno-apcs-frame -mcpu=iwmmxt -mabi=iwmmxt" } */
5 /* { dg-require-effective-target arm32 } */
6 /* { dg-final { scan-assembler "ldmfd\[ ]sp!.*ip,\[ ]*pc" } } */
8 /* This function uses all the call-saved registers, namely r4, r5, r6,
9 r7, r8, r9, sl, fp. Since we also save lr, that leaves an odd
10 number of registers, and the compiler will push ip to align the
11 stack. Make sure that we restore ip into ip, not into sp as is
12 done when using a frame pointer. The -mno-apcs-frame option
13 permits the frame pointer to be used as an ordinary register. */
18 __asm
volatile ("" : : :
19 "r4", "r5", "r6", "r7", "r8", "r9", "sl", "fp", "lr");