llvm-project/llvm/test/Transforms/LowerSetJmp/2003-11-05-DominancePropert...

17 lines
398 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -lowersetjmp -disable-output
2003-11-06 06:06:03 +08:00
%struct.jmpenv = type { int, sbyte }
implementation
declare void %Perl_sv_setpv()
declare int %llvm.setjmp(int *)
void %perl_call_sv() {
call void %Perl_sv_setpv( )
%tmp.335 = getelementptr %struct.jmpenv* null, long 0, uint 0
2003-11-06 06:06:03 +08:00
%tmp.336 = call int %llvm.setjmp( int* null )
store int %tmp.336, int* %tmp.335
ret void
}