diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-05 22:06:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-05 22:06:03 +0000 |
commit | 1548c35a5e5182d092fe7d05096f41a9c3d87cba (patch) | |
tree | 638e240fe94b13bb39ceebdfb90e80eeffe97a90 /test/Transforms/LowerSetJmp | |
parent | b6e0631a942d83947eec7808e643e17648a08da5 (diff) | |
download | external_llvm-1548c35a5e5182d092fe7d05096f41a9c3d87cba.zip external_llvm-1548c35a5e5182d092fe7d05096f41a9c3d87cba.tar.gz external_llvm-1548c35a5e5182d092fe7d05096f41a9c3d87cba.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LowerSetJmp')
-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..0733b93 --- /dev/null +++ b/test/Transforms/LowerSetJmp/2003-11-05-DominanceProperties.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | opt -lowersetjmp -disable-output + %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, ubyte 0 + %tmp.336 = call int %llvm.setjmp( int* null ) + store int %tmp.336, int* %tmp.335 + ret void +} + |