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

Side by Side Diff: test/NaCl/X86/nacl-setlongjmp-intrinsics.ll

Issue 647443005: Change usage of naclcall and nacljmp pseudo-instructions to match x86 gas (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: remove NACL_call32d and auto-align bare call Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 ; RUN: pnacl-llc -mtriple=i386-unknown-nacl -filetype=asm %s -o - \ 1 ; RUN: pnacl-llc -mtriple=i386-unknown-nacl -filetype=asm %s -o - \
2 ; RUN: | FileCheck %s --check-prefix=X86 2 ; RUN: | FileCheck %s --check-prefix=X86
3 ; Test that @llvm.nacl.{set|long}jmp intrinsics calls get translated to library 3 ; Test that @llvm.nacl.{set|long}jmp intrinsics calls get translated to library
4 ; calls as expected. 4 ; calls as expected.
5 5
6 declare i32 @llvm.nacl.setjmp(i8*) 6 declare i32 @llvm.nacl.setjmp(i8*)
7 declare void @llvm.nacl.longjmp(i8*, i32) 7 declare void @llvm.nacl.longjmp(i8*, i32)
8 8
9 define void @foo(i8* %arg) { 9 define void @foo(i8* %arg) {
10 %num = call i32 @llvm.nacl.setjmp(i8* %arg) 10 %num = call i32 @llvm.nacl.setjmp(i8* %arg)
11 ; X86: naclcall setjmp 11 ; X86: calll setjmp
12 12
13 call void @llvm.nacl.longjmp(i8* %arg, i32 %num) 13 call void @llvm.nacl.longjmp(i8* %arg, i32 %num)
14 ; X86: naclcall longjmp 14 ; X86: calll longjmp
15 15
16 ret void 16 ret void
17 } 17 }
18 18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698