[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 12 16:24:02 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift.ll updated: 1.11 -> 1.12
---
Log message:
Right, instcombine cannot remove ((X >> C) << C) if it's signed.
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/shift.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift.ll:1.11 llvm/test/Regression/Transforms/InstCombine/shift.ll:1.12
--- llvm/test/Regression/Transforms/InstCombine/shift.ll:1.11 Tue Aug 12 16:20:49 2003
+++ llvm/test/Regression/Transforms/InstCombine/shift.ll Tue Aug 12 16:22:51 2003
@@ -87,9 +87,9 @@
%D = shl uint %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
ret uint %D
}
-int %test14a(int %A) {
- %B = shl int %A, ubyte 4
- %C = and int %B, -1234
- %D = shr int %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
- ret int %D
+uint %test14a(uint %A) {
+ %B = shl uint %A, ubyte 4
+ %C = and uint %B, 1234
+ %D = shr uint %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
+ ret uint %D
}
More information about the llvm-commits
mailing list