summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-01-15 22:27:37 +0000
committerJim Grosbach <grosbach@apple.com>2010-01-15 22:27:37 +0000
commitfd850837a389be8412b88977af71dd10a4681619 (patch)
treeee1efd324102b70b8b31d9b7cab667616fd5f21e /llvm/test
parent8ea3acbb3d9ede05fbb543d1f310e40c92b26d46 (diff)
downloadbcm5719-llvm-fd850837a389be8412b88977af71dd10a4681619.tar.gz
bcm5719-llvm-fd850837a389be8412b88977af71dd10a4681619.zip
add testcase for r93564
llvm-svn: 93567
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll b/llvm/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll
new file mode 100644
index 00000000000..d676369020a
--- /dev/null
+++ b/llvm/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll
@@ -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(...)
OpenPOWER on IntegriCloud