diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-04-22 00:04:12 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-04-22 00:04:12 +0000 |
commit | ee2d164f0f983d827d13b30c6a60d3fad1f555f6 (patch) | |
tree | b68aaa3452c011119d1cb397504aedaab6cc85fc /llvm/test/CodeGen/ARM | |
parent | 2bb29e778a15687097b30e03bdb6154b6ab88913 (diff) | |
download | bcm5719-llvm-ee2d164f0f983d827d13b30c6a60d3fad1f555f6.tar.gz bcm5719-llvm-ee2d164f0f983d827d13b30c6a60d3fad1f555f6.zip |
Implement PIC for arm-linux.
llvm-svn: 36324
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r-- | llvm/test/CodeGen/ARM/call.ll | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/load-global.ll | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/call.ll b/llvm/test/CodeGen/ARM/call.ll index c270d7e53b9..c7e10b13e8f 100644 --- a/llvm/test/CodeGen/ARM/call.ll +++ b/llvm/test/CodeGen/ARM/call.ll @@ -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) diff --git a/llvm/test/CodeGen/ARM/load-global.ll b/llvm/test/CodeGen/ARM/load-global.ll index 3c287d473a4..1afa9e993d6 100644 --- a/llvm/test/CodeGen/ARM/load-global.ll +++ b/llvm/test/CodeGen/ARM/load-global.ll @@ -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 |