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

Side by Side Diff: test/Transforms/NaCl/rewrite-longjmp-noncall-uses.ll

Issue 14617017: Adding a pass - RewritePNaClLibraryCalls, that replaces known library calls with stable bitcode int… (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Addressed latest review comments Created 7 years, 7 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 ; Check that the rewrite pass behaves correctly in the presence
3 ; of various uses of longjmp that are not calls.
4
5 @fp = global void (i64*, i32)* @longjmp, align 8
6 ; CHECK: @fp = global void (i64*, i32)* @longjmp, align 8
7 @arrfp = global [3 x void (i64*, i32)*] [void (i64*, i32)* null, void (i64*, i32 )* @longjmp, void (i64*, i32)* null], align 16
8 ; CHECK: @arrfp = global [3 x void (i64*, i32)*] [void (i64*, i32)* null, void ( i64*, i32)* @longjmp, void (i64*, i32)* null], align 16
9
10 ; CHECK: define internal void @longjmp(i64* %env, i32 %val) {
11
12 declare void @longjmp(i64*, i32)
13
14 declare void @somefunc(i8*)
15
16 define void @foo() {
17 entry:
18 call void @somefunc(i8* bitcast (void (i64*, i32)* @longjmp to i8*))
19 ; CHECK: call void @somefunc(i8* bitcast (void (i64*, i32)* @longjmp to i8*))
20 ret void
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698