aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-18 06:07:17 +0000
committerChris Lattner <sabre@nondot.org>2004-06-18 06:07:17 +0000
commitb80e3ada7b15ae299dabe21bef0f06adbf0eb077 (patch)
tree2c7c4b5dadba1de95d0fe3920e754205d28316d5
parente5ad50b2e8ee0fae2e1078276a7e2f3a306f66de (diff)
New test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14220 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/and.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll
index 3d8cd70a28..87e0a5e34d 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -105,3 +105,11 @@ ubyte %test16(ubyte %A) {
%C = and ubyte %B, 3
ret ubyte %C
}
+
+sbyte %test17(sbyte %X, sbyte %Y) { ;; ~(~X & Y) --> (X | ~Y)
+ %B = xor sbyte %X, -1
+ %C = and sbyte %B, %Y
+ %D = xor sbyte %C, -1
+ ret sbyte %D
+}
+