[llvm-commits] CVS: llvm/test/CodeGen/ARM/load-global.ll

Evan Cheng evan.cheng at apple.com
Thu May 3 17:29:53 PDT 2007



Changes in directory llvm/test/CodeGen/ARM:

load-global.ll updated: 1.3 -> 1.4
---
Log message:

Test load global in static mode.

---
Diffs of the changes:  (+10 -7)

 load-global.ll |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)


Index: llvm/test/CodeGen/ARM/load-global.ll
diff -u llvm/test/CodeGen/ARM/load-global.ll:1.3 llvm/test/CodeGen/ARM/load-global.ll:1.4
--- llvm/test/CodeGen/ARM/load-global.ll:1.3	Sat Apr 21 19:04:12 2007
+++ llvm/test/CodeGen/ARM/load-global.ll	Thu May  3 19:29:34 2007
@@ -1,16 +1,19 @@
-; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llvm-as < %s | \
+; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=static | \
+; RUN:   not grep {L_G\$non_lazy_ptr}
+; RUN: llvm-as < %s | \
 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
 ; RUN:   grep {L_G\$non_lazy_ptr} | wc -l | grep 2
-; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llvm-as < %s | \
 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=pic | \
 ; RUN:   grep {ldr.*pc} | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llvm-as < %s | \
 ; RUN:   llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
 ; RUN:   grep {GOT} | wc -l | grep 1
 
-%G = external global int
+ at G = external global i32
 
-int %test1() {
-	%tmp = load int* %G
-	ret int %tmp
+define i32 @test1() {
+	%tmp = load i32* @G
+	ret i32 %tmp
 }






More information about the llvm-commits mailing list