summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf6a67bf7007e303f100ddd55612b58f8112e48ee (patch)
tree53d7869a78d72bfb79ee7085e9aa789e13067402 /llvm/test/CodeGen/ARM/thread_pointer.ll
parentf2d68452c6e0e9b4da7c52d21bc5e0f2fbeb62ae (diff)
downloadbcm5719-llvm-f6a67bf7007e303f100ddd55612b58f8112e48ee.tar.gz
bcm5719-llvm-f6a67bf7007e303f100ddd55612b58f8112e48ee.zip
[ARM] Implement __builtin_thread_pointer.
llvm-svn: 43892
Diffstat (limited to 'llvm/test/CodeGen/ARM/thread_pointer.ll')
-rw-r--r--llvm/test/CodeGen/ARM/thread_pointer.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/thread_pointer.ll b/llvm/test/CodeGen/ARM/thread_pointer.ll
new file mode 100644
index 00000000000..6476b483d7d
--- /dev/null
+++ b/llvm/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()
OpenPOWER on IntegriCloud