diff options
Diffstat (limited to 'test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll')
-rw-r--r-- | test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll b/test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll new file mode 100644 index 0000000..9180c15 --- /dev/null +++ b/test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll @@ -0,0 +1,16 @@ +; RUN: opt < %s -lowersetjmp -disable-output + + %struct.jmpenv = type { i32, i8 } + +declare void @Perl_sv_setpv() + +declare i32 @llvm.setjmp(i32*) + +define void @perl_call_sv() { + call void @Perl_sv_setpv( ) + %tmp.335 = getelementptr %struct.jmpenv* null, i64 0, i32 0 ; <i32*> [#uses=1] + %tmp.336 = call i32 @llvm.setjmp( i32* null ) ; <i32> [#uses=1] + store i32 %tmp.336, i32* %tmp.335 + ret void +} + |