diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-05 23:33:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-05 23:33:09 +0000 |
commit | bf287b63b33aafc07e29e91fd1ec00e92a6ad0c9 (patch) | |
tree | 41ef54553f372ec2d83288c917147eba16367c78 | |
parent | 7ad42d9ec0af47807f069103a350efc1d5aef0a8 (diff) | |
download | external_llvm-bf287b63b33aafc07e29e91fd1ec00e92a6ad0c9.zip external_llvm-bf287b63b33aafc07e29e91fd1ec00e92a6ad0c9.tar.gz external_llvm-bf287b63b33aafc07e29e91fd1ec00e92a6ad0c9.tar.bz2 |
Test case for 3-address conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42664 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/2007-10-05-3AddrConvert.ll | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2007-10-05-3AddrConvert.ll b/test/CodeGen/X86/2007-10-05-3AddrConvert.ll new file mode 100644 index 0000000..a6d751a --- /dev/null +++ b/test/CodeGen/X86/2007-10-05-3AddrConvert.ll @@ -0,0 +1,32 @@ +; RUN: llvm-as < %s | llc | grep lea + + %struct.anon = type { [3 x double], double, %struct.node*, [64 x %struct.bnode*], [64 x %struct.bnode*] } + %struct.bnode = type { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x double], double, %struct.bnode*, %struct.bnode* } + %struct.node = type { i16, double, [3 x double], i32, i32 } + +define fastcc void @old_main() { +entry: + %tmp44 = malloc %struct.anon ; <%struct.anon*> [#uses=2] + store double 4.000000e+00, double* null, align 4 + br label %bb41 + +bb41: ; preds = %uniform_testdata.exit, %entry + %i.0110 = phi i32 [ 0, %entry ], [ %tmp48, %uniform_testdata.exit ] ; <i32> [#uses=2] + %tmp48 = add i32 %i.0110, 1 ; <i32> [#uses=1] + br i1 false, label %uniform_testdata.exit, label %bb33.preheader.i + +bb33.preheader.i: ; preds = %bb41 + ret void + +uniform_testdata.exit: ; preds = %bb41 + %tmp57 = getelementptr %struct.anon* %tmp44, i32 0, i32 3, i32 %i.0110 ; <%struct.bnode**> [#uses=1] + store %struct.bnode* null, %struct.bnode** %tmp57, align 4 + br i1 false, label %bb154, label %bb41 + +bb154: ; preds = %bb154, %uniform_testdata.exit + br i1 false, label %bb166, label %bb154 + +bb166: ; preds = %bb154 + %tmp169 = getelementptr %struct.anon* %tmp44, i32 0, i32 3, i32 0 ; <%struct.bnode**> [#uses=0] + ret void +} |