summaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-14 05:59:13 +0000
committerChris Lattner <sabre@nondot.org>2010-07-14 05:59:13 +0000
commit7e185af9302cfc5e9dffdba65c8a99f9f57b4076 (patch)
treeb224c04ab4d4f9509e950046602a25ce04df3593 /test/Transforms
parent44a44ad3bc9aa3ec11f23787500adf552513c3b7 (diff)
downloadllvm-7e185af9302cfc5e9dffdba65c8a99f9f57b4076.tar.gz
llvm-7e185af9302cfc5e9dffdba65c8a99f9f57b4076.tar.bz2
llvm-7e185af9302cfc5e9dffdba65c8a99f9f57b4076.tar.xz
reapply benjamin's instcombine patch, I don't see anything wrong with it and can't repro any problems with a manual self-host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-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
+}