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

Side by Side Diff: test/Transforms/NaCl/rewrite-longjmp-no-store.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: Added llvm.nacl.{set|long}jmp to the list of whitelisted intrinsics for ABI 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 ; Test that when there's no store of longjmp's address, no function
3 ; body is generated.
4
5 declare void @longjmp(i64*, i32)
6 ; CHECK-NOT: define internal void @longjmp(i64* %env, i32 %val) {
Mark Seaborn 2013/05/13 23:39:58 Maybe make this stricter: ; CHECK-NOT: define{{.*}
eliben 2013/05/14 17:38:58 Done.
7
8 define void @call_longjmp(i64* %arg, i32 %num) {
9 call void @longjmp(i64* %arg, i32 %num)
10 ; CHECK: call void @llvm.nacl.longjmp(i8* %jmp_buf_i8, i32 %num)
Mark Seaborn 2013/05/13 23:39:58 Maybe check for the bitcast too? Oh, I see rewrit
11 ret void
12 }
13
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698