Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1177)

Unified Diff: test/NaCl/ARM/nacl-read-tp-intrinsic.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/ARM/lit.local.cfg ('k') | test/NaCl/ARM/nacl-setlongjmp-intrinsics.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/ARM/nacl-read-tp-intrinsic.ll
diff --git a/test/NaCl/ARM/nacl-read-tp-intrinsic.ll b/test/NaCl/ARM/nacl-read-tp-intrinsic.ll
new file mode 100644
index 0000000000000000000000000000000000000000..90a9f787b59fe43029efac0bf2ffc72c9b396ef7
--- /dev/null
+++ b/test/NaCl/ARM/nacl-read-tp-intrinsic.ll
@@ -0,0 +1,20 @@
+
+; RUN: pnacl-llc -mtriple=armv7-unknown-nacl -filetype=asm %s -o - \
+; RUN: | FileCheck -check-prefix=ARM %s
+
+; RUN: pnacl-llc -mtriple=armv7-unknown-nacl -filetype=asm -mtls-use-call %s -o - \
+; RUN: | FileCheck -check-prefix=ARM_IRT %s
+
+
+declare i8* @llvm.nacl.read.tp()
+
+define i8* @get_thread_pointer() {
+ %tp = call i8* @llvm.nacl.read.tp()
+ ret i8* %tp
+}
+
+; ARM: get_thread_pointer:
+; ARM: ldr r0, [r9]
+
+; ARM_IRT: get_thread_pointer:
+; ARM_IRT: bl __aeabi_read_tp
« no previous file with comments | « test/NaCl/ARM/lit.local.cfg ('k') | test/NaCl/ARM/nacl-setlongjmp-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698