[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 24 13:39:04 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift.ll updated: 1.9 -> 1.10
---
Log message:
New testcases for signed shifts
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/shift.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift.ll:1.9 llvm/test/Regression/Transforms/InstCombine/shift.ll:1.10
--- llvm/test/Regression/Transforms/InstCombine/shift.ll:1.9 Sat Jun 28 18:31:56 2003
+++ llvm/test/Regression/Transforms/InstCombine/shift.ll Thu Jul 24 13:38:09 2003
@@ -63,9 +63,20 @@
ret ubyte %C
}
-ubyte %test11(ubyte %A) { ;; (A >> 3) << 4 == (A & 0x1F) << 1
+ubyte %test11(ubyte %A) { ;; (A >> 3) << 4 === (A & 0x1F) << 1
%B = shr ubyte %A, ubyte 3
%C = shl ubyte %B, ubyte 4
ret ubyte %C
}
+int %test12(int %A) {
+ %B = shr int %A, ubyte 8 ;; (A >> 8) << 8 === A & -256
+ %C = shl int %B, ubyte 8
+ ret int %C
+}
+
+sbyte %test13(sbyte %A) { ;; (A >> 3) << 4 === (A & -8) * 2
+ %B = shr sbyte %A, ubyte 3
+ %C = shl sbyte %B, ubyte 4
+ ret sbyte %C
+}
More information about the llvm-commits
mailing list