1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

add testcase for r93564

llvm-svn: 93567
This commit is contained in:
Jim Grosbach 2010-01-15 22:27:37 +00:00
parent a3bfd9e4b0
commit b09e69dd22

View File

@ -0,0 +1,20 @@
; RUN: llc < %s -regalloc=local -relocation-model=pic | FileCheck %s
target triple = "thumbv6-apple-darwin10"
@fred = internal global i32 0 ; <i32*> [#uses=1]
define arm_apcscc void @foo() nounwind {
entry:
; CHECK: str r0, [sp]
%0 = call arm_apcscc i32 (...)* @bar() nounwind ; <i32> [#uses=1]
; CHECK: blx _bar
; CHECK: ldr r1, [sp]
store i32 %0, i32* @fred, align 4
br label %return
return: ; preds = %entry
ret void
}
declare arm_apcscc i32 @bar(...)