blob: 3be2163aa469f413a1293466364824798231aa3a [file] [log] [blame]
Tanya Lattner97928372008-03-19 07:28:33 +00001; RUN: llvm-as < %s | opt -lowersetjmp -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner97928372008-03-19 07:28:33 +00003 %struct.jmpenv = type { i32, i8 }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner97928372008-03-19 07:28:33 +00005declare void @Perl_sv_setpv()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner97928372008-03-19 07:28:33 +00007declare i32 @llvm.setjmp(i32*)
8
9define void @perl_call_sv() {
10 call void @Perl_sv_setpv( )
11 %tmp.335 = getelementptr %struct.jmpenv* null, i64 0, i32 0 ; <i32*> [#uses=1]
12 %tmp.336 = call i32 @llvm.setjmp( i32* null ) ; <i32> [#uses=1]
13 store i32 %tmp.336, i32* %tmp.335
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014 ret void
15}
16