aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-09-28 18:18:35 +0000
committerChris Lattner <sabre@nondot.org>2004-09-28 18:18:35 +0000
commit59359f1e84418d282c996af2bf199d6b4188ab86 (patch)
treebbd75f6a0d5cc5b5942ba11a92d6a59034f9ebcb
parent0cba71b0d6e19e1ef4fe0e306357d9c2eae287b0 (diff)
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16547 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/shift.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index 12bc2cd8de..e4f1bfb7b1 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -145,3 +145,16 @@ bool %test20(sbyte %A) {
%C = seteq sbyte %B, 123 ;; false
ret bool %C
}
+
+bool %test21(ubyte %A) {
+ %B = shl ubyte %A, ubyte 4
+ %C = seteq ubyte %B, 128
+ ret bool %C
+}
+
+bool %test22(ubyte %A) {
+ %B = shl ubyte %A, ubyte 4
+ %C = seteq ubyte %B, 0
+ ret bool %C
+}
+