summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/sub.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/sub.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/sub.ll')
-rw-r--r--test/Transforms/InstCombine/sub.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll
index 2003abdbc1..b17e97d554 100644
--- a/test/Transforms/InstCombine/sub.ll
+++ b/test/Transforms/InstCombine/sub.ll
@@ -69,3 +69,8 @@ int %test10(int %A) { ; -A *c1 == A * -c1
ret int %E
}
+bool %test11(ubyte %A, ubyte %B) {
+ %C = sub ubyte %A, %B
+ %cD = setne ubyte %C, 0 ; == setne A, B
+ ret bool %cD
+}