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

Side by Side Diff: test/NaCl/Bitcode/pnacl-bcdis/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 unified diff | Download patch
OLDNEW
(Empty)
1 ; Tests calls to intrinsics.
2
3 ; RUN: llvm-as < %s | pnacl-freeze | pnacl-bccompress --remove-abbreviations \
4 ; RUN: | pnacl-bcdis | FileCheck %s
5
6 ; Test simple intrinsic call.
7 declare i8* @llvm.nacl.read.tp()
8
9 define i32 @ReturnPtrIntrinsic() {
10 %1 = call i8* @llvm.nacl.read.tp()
11 %2 = ptrtoint i8* %1 to i32
12 ret i32 %2
13 }
14
15 ; Test intrinsic call with i1 argument.
16 declare external i32 @llvm.ctlz.i32(i32, i1)
17
18 define i32 @f() {
19 %v0 = call i32 @llvm.ctlz.i32(i32 0, i1 0)
20 ret i32 %v0
21 }
22
23 ; CHECK-NOT: Error
24
25
OLDNEW
« no previous file with comments | « test/NaCl/Bitcode/pnacl-bcdis/icmp.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/intrinsics-bad-types.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698