Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/Thumb2/tail-call-r9.ll @ 128:c347d3398279 default tip
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llc < %s -mtriple=thumbv7-apple-ios -mcpu=cortex-m3 | FileCheck %s @foo = common global void ()* null, align 4 ; Make sure in the presence of a tail call, r9 doesn't get used to hold ; the destination address. It's callee-saved in AAPCS. define arm_aapcscc void @test(i32 %a) nounwind { ; CHECK-LABEL: test: ; CHECK-NOT: bx r9 %tmp = load void ()*, void ()** @foo, align 4 tail call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r12}"() nounwind tail call arm_aapcscc void %tmp() nounwind ret void }