summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/and-or.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/and-or.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/and-or.ll22
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/test/Transforms/InstCombine/and-or.ll b/llvm/test/Transforms/InstCombine/and-or.ll
index ce8c7664744..2ad90ad98e7 100644
--- a/llvm/test/Transforms/InstCombine/and-or.ll
+++ b/llvm/test/Transforms/InstCombine/and-or.ll
@@ -53,25 +53,3 @@ define i32 @func4(i32 %a, i32 %b) {
ret i32 %tmp3
}
-define i32 @demorganize_constant1(i32 %a) {
-; CHECK-LABEL: @demorganize_constant1(
-; CHECK-NEXT: [[A_NOT:%.*]] = or i32 %a, -16
-; CHECK-NEXT: [[AND1:%.*]] = xor i32 [[A_NOT]], 15
-; CHECK-NEXT: ret i32 [[AND1]]
-;
- %and = and i32 %a, 15
- %and1 = xor i32 %and, -1
- ret i32 %and1
-}
-
-define i32 @demorganize_constant2(i32 %a) {
-; CHECK-LABEL: @demorganize_constant2(
-; CHECK-NEXT: [[A_NOT:%.*]] = and i32 %a, -16
-; CHECK-NEXT: [[AND1:%.*]] = xor i32 [[A_NOT]], -16
-; CHECK-NEXT: ret i32 [[AND1]]
-;
- %and = or i32 %a, 15
- %and1 = xor i32 %and, -1
- ret i32 %and1
-}
-
OpenPOWER on IntegriCloud