diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-13 20:13:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-13 20:13:15 +0000 |
commit | b5dbd9a798e4880b1649e6b5566c92473282c8df (patch) | |
tree | fd91f16c8d0b3d1ac0d24d6ffa4c910720f39918 /test/Transforms/InstCombine/xor.ll | |
parent | 3e3c805a821ef8862d5e9750e803b51267b6b5f3 (diff) | |
download | llvm-b5dbd9a798e4880b1649e6b5566c92473282c8df.tar.gz llvm-b5dbd9a798e4880b1649e6b5566c92473282c8df.tar.bz2 llvm-b5dbd9a798e4880b1649e6b5566c92473282c8df.tar.xz |
Add some more tests for: (A <setcc1> B) logicalop (A <setcc2> B)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r-- | test/Transforms/InstCombine/xor.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 3707c5de3a..0a33a12fd7 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -84,3 +84,17 @@ bool %test12(ubyte %A) { %c = setne ubyte %B, 0 ret bool %c } + +bool %test13(ubyte %A, ubyte %B) { + %C = setlt ubyte %A, %B + %D = setgt ubyte %A, %B + %E = xor bool %C, %D ; E = setne %A, %B + ret bool %E +} + +bool %test14(ubyte %A, ubyte %B) { + %C = seteq ubyte %A, %B + %D = setne ubyte %B, %A + %E = xor bool %C, %D ; E = true + ret bool %E +} |