diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-13 05:27:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-13 05:27:57 +0000 |
commit | 545513918a3031a4d0588f5960cbbe685a3e6bda (patch) | |
tree | a2c591de3a345a3f3e27dfd2730d8f9bf5592fc4 /test/Transforms/InstCombine/cast.ll | |
parent | ab04c365b817f01ee2b6cdeceb605e89a17db870 (diff) | |
download | external_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.ll | 23 |
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 -} |