[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 8 11:11:01 PDT 2002
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift.ll updated: 1.4 -> 1.5
---
Log message:
Add new testcase for arithmetic shr of -1
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/shift.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift.ll:1.4 llvm/test/Regression/Transforms/InstCombine/shift.ll:1.5
--- llvm/test/Regression/Transforms/InstCombine/shift.ll:1.4 Tue Sep 10 18:03:10 2002
+++ llvm/test/Regression/Transforms/InstCombine/shift.ll Tue Oct 8 11:10:35 2002
@@ -37,3 +37,8 @@
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
ret uint %B
}
+
+int %test7(ubyte %A) {
+ %B = shr int -1, ubyte %A ;; Always equal to -1
+ ret int %B
+}
More information about the llvm-commits
mailing list