diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-27 23:07:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-27 23:07:12 +0000 |
commit | 20642879344fd8aab54114ce52c03c4f38e1839d (patch) | |
tree | db46a2af793cfb7ecacc7ec2fbc6266bd858e098 /test/Transforms | |
parent | 4a29c48b019188e1e073fa43314411b93baaf0c5 (diff) | |
download | external_llvm-20642879344fd8aab54114ce52c03c4f38e1839d.zip external_llvm-20642879344fd8aab54114ce52c03c4f38e1839d.tar.gz external_llvm-20642879344fd8aab54114ce52c03c4f38e1839d.tar.bz2 |
Testcase for an instcombine miscompilation reduced by Anton.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/2007-01-27-AndICmp.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2007-01-27-AndICmp.ll b/test/Transforms/InstCombine/2007-01-27-AndICmp.ll new file mode 100644 index 0000000..7175c1a --- /dev/null +++ b/test/Transforms/InstCombine/2007-01-27-AndICmp.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep "ugt.*, 1" + +define i1 @test(i32 %tmp1030) { + %tmp1037 = icmp ne i32 %tmp1030, 40 ; <i1> [#uses=1] + %tmp1039 = icmp ne i32 %tmp1030, 41 ; <i1> [#uses=1] + %tmp1042 = and i1 %tmp1037, %tmp1039 ; <i1> [#uses=1] + ret i1 %tmp1042 +} |