15 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-ios -mcpu=cortex-m3 | FileCheck %s2 3@foo = common global ptr null, align 44 5; Make sure in the presence of a tail call, r9 doesn't get used to hold6; the destination address. It's callee-saved in AAPCS.7define arm_aapcscc void @test(i32 %a) nounwind {8; CHECK-LABEL: test:9; CHECK-NOT: bx r910 %tmp = load ptr, ptr @foo, align 411 tail call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r12}"() nounwind12 tail call arm_aapcscc void %tmp() nounwind13 ret void14}15