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