diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-01-15 22:27:37 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-01-15 22:27:37 +0000 |
commit | 2be065a0e8bfbd1a6e32399424f0adaf6694df18 (patch) | |
tree | d16d16b751b5dc1255b1199f0d31f71e6ec7f4a4 | |
parent | cb8544fb9e89787f876c37fd1d81ee6c80a10fb5 (diff) |
add testcase for r93564
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93567 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll b/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll new file mode 100644 index 0000000000..d676369020 --- /dev/null +++ b/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(...) |