summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-07-12 16:15:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-07-12 16:15:48 +0000
commit8fd437c43fccc73777ba6aefa9d38c78281e5828 (patch)
tree889b9528898a204b42fb5458a0f88da558d0f514 /test/Transforms/InstCombine
parenta9b8338bfa126de7ad6d57ca417b39d5c6a979ff (diff)
downloadllvm-8fd437c43fccc73777ba6aefa9d38c78281e5828.tar.gz
llvm-8fd437c43fccc73777ba6aefa9d38c78281e5828.tar.bz2
llvm-8fd437c43fccc73777ba6aefa9d38c78281e5828.tar.xz
Reapply the "or" half of r108136, which seems to be less problematic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/or.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index c3526b77f6..0246925bd8 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -350,3 +350,16 @@ define <4 x i32> @test32(<4 x i1> %and.i1352, <4 x i32> %vecinit6.i176, <4 x i32
; CHECK: or <4 x i32> %and.i, %and.i129
}
+; PR6773
+define i32 @test33(i32 %x, i32 %y, i32 %z) nounwind readnone {
+ %and = and i32 %y, %x
+ %not = xor i32 %x, -1
+ %and2 = and i32 %z, %not
+ %or = or i32 %and2, %and
+ ret i32 %or
+; CHECK: @test33
+; CHECK-NEXT: xor i32
+; CHECK-NEXT: and i32
+; CHECK-NEXT: xor i32
+; CHECK-NEXT: ret i32
+}