1 ; RUN: llc <%s -mtriple=arm-none-eabi 2>&1 | FileCheck %s -check-prefix=CHECK
3 ; RUN: llc <%s -mtriple=arm-none-eabi -relocation-model=rwpi 2>&1 \
4 ; RUN: | FileCheck %s -check-prefix=RWPI
6 ; RUN: llc <%s -mtriple=arm-none-eabi --frame-pointer=all 2>&1 \
7 ; RUN: | FileCheck %s -check-prefix=NO_FP_ELIM
9 ; CHECK: warning: inline asm clobber list contains reserved registers: SP, PC
10 ; CHECK: warning: inline asm clobber list contains reserved registers: R11
11 ; RWPI: warning: inline asm clobber list contains reserved registers: R9, SP, PC
12 ; RWPI: warning: inline asm clobber list contains reserved registers: R11
13 ; NO_FP_ELIM: warning: inline asm clobber list contains reserved registers: R11, SP, PC
14 ; NO_FP_ELIM: warning: inline asm clobber list contains reserved registers: R11
16 define void @foo() nounwind {
17 call void asm sideeffect "mov r7, #1",
18 "~{r9},~{r11},~{r12},~{lr},~{sp},~{pc},~{r10}"()
22 define i32 @bar(i32 %i) {
23 %vla = alloca i32, i32 %i, align 4
24 tail call void asm sideeffect "mov r7, #1", "~{r11}"()
25 %1 = load volatile i32, i32* %vla, align 4