summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/cast.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/cast.ll
parentab04c365b817f01ee2b6cdeceb605e89a17db870 (diff)
downloadexternal_llvm-545513918a3031a4d0588f5960cbbe685a3e6bda.zip
external_llvm-545513918a3031a4d0588f5960cbbe685a3e6bda.tar.gz
external_llvm-545513918a3031a4d0588f5960cbbe685a3e6bda.tar.bz2
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/cast.ll')
-rw-r--r--test/Transforms/InstCombine/cast.ll23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index 3b5b14b..d16ed4f 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -66,26 +66,3 @@ short %test10(short %A) {
ret short %c2
}
-bool %test11(ubyte %A, ubyte %B) {
- %C = sub ubyte %A, %B
- %cD = cast ubyte %C to bool ; == setne A, B
- ret bool %cD
-}
-
-bool %test12(ubyte %A) {
- %B = add ubyte %A, 255
- %c = cast ubyte %B to bool ; === A != 1
- ret bool %c
-}
-
-bool %test13(ubyte %A, ubyte %b) {
- %B = add ubyte %A, %b
- %c = cast ubyte %B to bool ; === A != -b
- ret bool %c
-}
-
-bool %test14(ubyte %A) {
- %B = xor ubyte %A, 4
- %c = cast ubyte %B to bool
- ret bool %c
-}