summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/thread_pointer.ll
diff options
context:
space:
mode:
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 0000000000000..6476b483d7d9e
--- /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()