diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 13:44:00 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 13:44:00 +0000 |
commit | 98a8206e58d32adebaba501d40266eefb42cb06a (patch) | |
tree | 828953d034814bcd2b41302bec5f41cd557d5c42 /test/Transforms/InstCombine/or.ll | |
parent | ad854f0764e6a386b0dc49a2640766b8e9ae0b61 (diff) | |
download | llvm-98a8206e58d32adebaba501d40266eefb42cb06a.tar.gz llvm-98a8206e58d32adebaba501d40266eefb42cb06a.tar.bz2 llvm-98a8206e58d32adebaba501d40266eefb42cb06a.tar.xz |
Reapply 108136 with an ugly pasto fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/or.ll')
-rw-r--r-- | test/Transforms/InstCombine/or.ll | 13 |
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 +} |