[llvm-commits] [llvm] r93567 - /llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll

Jim Grosbach grosbach at apple.com
Fri Jan 15 14:27:38 PST 2010


Author: grosbach
Date: Fri Jan 15 16:27:37 2010
New Revision: 93567

URL: http://llvm.org/viewvc/llvm-project?rev=93567&view=rev
Log:
add testcase for r93564

Added:
    llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll

Added: llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll?rev=93567&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll (added)
+++ llvm/trunk/test/CodeGen/Thumb/2010-01-15-local-alloc-spill-physical.ll Fri Jan 15 16:27:37 2010
@@ -0,0 +1,20 @@
+; RUN: llc < %s -regalloc=local -relocation-model=pic | FileCheck %s
+
+target triple = "thumbv6-apple-darwin10"
+
+ at 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(...)





More information about the llvm-commits mailing list