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

Unified Diff: test/NaCl/X86/nacl-setlongjmp-intrinsics.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/X86/nacl-read-tp-intrinsic.ll ('k') | test/NaCl/X86/nacl64-addrmodes.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/X86/nacl-setlongjmp-intrinsics.ll
diff --git a/test/NaCl/X86/nacl-setlongjmp-intrinsics.ll b/test/NaCl/X86/nacl-setlongjmp-intrinsics.ll
new file mode 100644
index 0000000000000000000000000000000000000000..3e43979a31d6df93c50a4277ed196b8e7bfddce0
--- /dev/null
+++ b/test/NaCl/X86/nacl-setlongjmp-intrinsics.ll
@@ -0,0 +1,18 @@
+; RUN: pnacl-llc -mtriple=i386-unknown-nacl -filetype=asm %s -o - \
+; RUN: | FileCheck %s --check-prefix=X86
+; Test that @llvm.nacl.{set|long}jmp intrinsics calls get translated to library
+; calls as expected.
+
+declare i32 @llvm.nacl.setjmp(i8*)
+declare void @llvm.nacl.longjmp(i8*, i32)
+
+define void @foo(i8* %arg) {
+ %num = call i32 @llvm.nacl.setjmp(i8* %arg)
+; X86: calll setjmp
+
+ call void @llvm.nacl.longjmp(i8* %arg, i32 %num)
+; X86: calll longjmp
+
+ ret void
+}
+
« no previous file with comments | « test/NaCl/X86/nacl-read-tp-intrinsic.ll ('k') | test/NaCl/X86/nacl64-addrmodes.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698