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/sub.ll | |
parent | ab04c365b817f01ee2b6cdeceb605e89a17db870 (diff) | |
download | llvm-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.ll | 5 |
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 +} |