summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/set.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-23 17:01:18 +0000
committerChris Lattner <sabre@nondot.org>2003-07-23 17:01:18 +0000
commitf7b447eb69db5f3cd6abfecd94ecd3c06098dac9 (patch)
tree6caba2a3971d6a42aa029d8d03f844f7d1a3a55f /test/Transforms/InstCombine/set.ll
parent8d4221eeaa14541d998a73854af7a5ef0dd9524b (diff)
downloadllvm-f7b447eb69db5f3cd6abfecd94ecd3c06098dac9.tar.gz
llvm-f7b447eb69db5f3cd6abfecd94ecd3c06098dac9.tar.bz2
llvm-f7b447eb69db5f3cd6abfecd94ecd3c06098dac9.tar.xz
New tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/set.ll')
-rw-r--r--test/Transforms/InstCombine/set.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll
index 37370fd341..553a6be7f1 100644
--- a/test/Transforms/InstCombine/set.ll
+++ b/test/Transforms/InstCombine/set.ll
@@ -86,3 +86,16 @@ bool %test15(sbyte %A, short %A, int %A, long %A) {
%D = or bool %C1, %C2
ret bool %D
}
+
+bool %test16(uint %A) {
+ %B = and uint %A, 5
+ %C = seteq uint %B, 8 ; Is never true
+ ret bool %C
+}
+
+bool %test17(ubyte %A) {
+ %B = or ubyte %A, 1
+ %C = seteq ubyte %B, 2 ; Always false
+ ret bool %C
+}
+