[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 27 09:21:39 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift.ll updated: 1.16 -> 1.17
---
Log message:
Testcases for rev 250 of InstructionCombining.cpp
---
Diffs of the changes: (+30 -0)
Index: llvm/test/Regression/Transforms/InstCombine/shift.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift.ll:1.16 llvm/test/Regression/Transforms/InstCombine/shift.ll:1.17
--- llvm/test/Regression/Transforms/InstCombine/shift.ll:1.16 Tue May 25 01:30:49 2004
+++ llvm/test/Regression/Transforms/InstCombine/shift.ll Mon Sep 27 11:21:26 2004
@@ -115,3 +115,33 @@
%tmp.7 = setne int %tmp.6, 0 ;; X & 16 != 0
ret bool %tmp.7
}
+
+bool %test17(uint %A) {
+ %B = shr uint %A, ubyte 3
+ %C = seteq uint %B, 1234
+ ret bool %C
+}
+
+bool %test18(ubyte %A) {
+ %B = shr ubyte %A, ubyte 7
+ %C = seteq ubyte %B, 123 ;; false
+ ret bool %C
+}
+
+bool %test19(int %A) {
+ %B = shr int %A, ubyte 2
+ %C = seteq int %B, 0 ;; (X & -4) == 0
+ ret bool %C
+}
+
+bool %test19a(int %A) {
+ %B = shr int %A, ubyte 2
+ %C = seteq int %B, -1 ;; (X & -4) == -4
+ ret bool %C
+}
+
+bool %test20(sbyte %A) {
+ %B = shr sbyte %A, ubyte 7
+ %C = seteq sbyte %B, 123 ;; false
+ ret bool %C
+}
More information about the llvm-commits
mailing list