OLD | NEW |
---|---|
(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 | |
OLD | NEW |