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

Side by Side Diff: test/Transforms/NaCl/rewrite-call-with-libfunc-argument.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 ; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
2
3 ; See https://code.google.com/p/nativeclient/issues/detail?id=3706
4 ; Make sure that when @longjmp is used as an argument in a call instruction,
5 ; the rewrite pass does the right thing and doesn't get confused.
6
7 ; CHECK: define internal void @longjmp(i64* %env, i32 %val) {
8
9 declare void @longjmp(i64*, i32)
10
11 declare void @somefunc(i32, void (i64*, i32)*, i32)
12
13 define void @foo() {
14 entry:
15 call void @somefunc(i32 1, void (i64*, i32)* @longjmp, i32 2)
16 ; CHECK: call void @somefunc(i32 1, void (i64*, i32)* @longjmp, i32 2)
17 ret void
18 }
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/resolve-pnacl-intrinsics.ll ('k') | test/Transforms/NaCl/rewrite-flt-rounds.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698