summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-13 05:27:57 +0000
committerChris Lattner <sabre@nondot.org>2003-08-13 05:27:57 +0000
commit545513918a3031a4d0588f5960cbbe685a3e6bda (patch)
treea2c591de3a345a3f3e27dfd2730d8f9bf5592fc4 /test/Transforms/InstCombine/xor.ll
parentab04c365b817f01ee2b6cdeceb605e89a17db870 (diff)
downloadllvm-545513918a3031a4d0588f5960cbbe685a3e6bda.tar.gz
llvm-545513918a3031a4d0588f5960cbbe685a3e6bda.tar.bz2
llvm-545513918a3031a4d0588f5960cbbe685a3e6bda.tar.xz
Reorganize tests because we no longer cannonicalize X != 0 -> cast X to bool
In fact, we plan to eliminate cast to bool entirely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7805 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r--test/Transforms/InstCombine/xor.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll
index 0273768f56..3707c5de3a 100644
--- a/test/Transforms/InstCombine/xor.ll
+++ b/test/Transforms/InstCombine/xor.ll
@@ -78,3 +78,9 @@ ubyte %test11(ubyte %A) {
%C = xor ubyte %B, 4 ; transform into an AND
ret ubyte %C
}
+
+bool %test12(ubyte %A) {
+ %B = xor ubyte %A, 4
+ %c = setne ubyte %B, 0
+ ret bool %c
+}