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

Side by Side Diff: test/Transforms/NaCl/rewrite-longjmp-no-store.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 9 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 ; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
2 ; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s -check-prefix=CLE ANED
3 ; Test that when there are no uses other than calls to longjmp,
4 ; no function body is generated.
5
6 declare void @longjmp(i64*, i32)
7
8 ; No declaration or definition of longjmp() should remain.
9 ; CLEANED-NOT: @longjmp
10
11 define void @call_longjmp(i64* %arg, i32 %num) {
12 call void @longjmp(i64* %arg, i32 %num)
13 ; CHECK: call void @llvm.nacl.longjmp(i8* %jmp_buf_i8, i32 %num)
14 ret void
15 }
16
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/rewrite-libcalls-wrong-signature.ll ('k') | test/Transforms/NaCl/rewrite-longjmp-noncall-uses.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698