[llvm-commits] CVS: llvm/test/CodeGen/ARM/call.ll load-global.ll
Lauro Ramos Venancio
lauro.venancio at gmail.com
Sat Apr 21 17:04:35 PDT 2007
Changes in directory llvm/test/CodeGen/ARM:
call.ll updated: 1.7 -> 1.8
load-global.ll updated: 1.2 -> 1.3
---
Log message:
Implement PIC for arm-linux.
---
Diffs of the changes: (+5 -1)
call.ll | 2 ++
load-global.ll | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/test/CodeGen/ARM/call.ll
diff -u llvm/test/CodeGen/ARM/call.ll:1.7 llvm/test/CodeGen/ARM/call.ll:1.8
--- llvm/test/CodeGen/ARM/call.ll:1.7 Sun Apr 15 14:11:47 2007
+++ llvm/test/CodeGen/ARM/call.ll Sat Apr 21 19:04:12 2007
@@ -1,5 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep {mov lr, pc}
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep blx
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mtriple=arm-linux-gnueabi\
+; RUN: -relocation-model=pic | grep {PLT}
%t = weak global int ()* null
declare void %g(int, int, int, int)
Index: llvm/test/CodeGen/ARM/load-global.ll
diff -u llvm/test/CodeGen/ARM/load-global.ll:1.2 llvm/test/CodeGen/ARM/load-global.ll:1.3
--- llvm/test/CodeGen/ARM/load-global.ll:1.2 Sun Apr 15 14:11:47 2007
+++ llvm/test/CodeGen/ARM/load-global.ll Sat Apr 21 19:04:12 2007
@@ -1,10 +1,12 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
; RUN: llvm-upgrade < %s | llvm-as | \
; 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: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
; RUN: grep {ldr.*pc} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
+; RUN: grep {GOT} | wc -l | grep 1
%G = external global int
More information about the llvm-commits
mailing list