aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/thread_pointer.ll
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-11-08 17:20:05 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-11-08 17:20:05 +0000
commite0cb36b9fb1e1b0de9b46eafd8dc3802122b2e73 (patch)
tree57ddcdf7f61cede65612cd6ff5013ad2c11a92b1 /test/CodeGen/ARM/thread_pointer.ll
parent4471194d69cc99ed53dc1638e06053b069dc6454 (diff)
[ARM] Implement __builtin_thread_pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/thread_pointer.ll')
-rw-r--r--test/CodeGen/ARM/thread_pointer.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/thread_pointer.ll b/test/CodeGen/ARM/thread_pointer.ll
new file mode 100644
index 0000000000..6476b483d7
--- /dev/null
+++ b/test/CodeGen/ARM/thread_pointer.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
+; RUN: grep {__aeabi_read_tp}
+
+define i8* @test() {
+entry:
+ %tmp1 = call i8* @llvm.arm.thread.pointer( ) ; <i8*> [#uses=0]
+ ret i8* %tmp1
+}
+
+declare i8* @llvm.arm.thread.pointer()