[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
Reid Spencer
reid at x10sys.com
Tue Nov 7 22:48:17 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift-sra.ll updated: 1.1 -> 1.2
---
Log message:
For PR950: http://llvm.org/PR950 :
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
---
Diffs of the changes: (+1 -1)
shift-sra.ll | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift-sra.ll:1.1 llvm/test/Regression/Transforms/InstCombine/shift-sra.ll:1.2
--- llvm/test/Regression/Transforms/InstCombine/shift-sra.ll:1.1 Sun Sep 17 23:31:18 2006
+++ llvm/test/Regression/Transforms/InstCombine/shift-sra.ll Wed Nov 8 00:47:33 2006
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'shr int'
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'lshr int'
int %test0(int %X, ubyte %A) {
%Y = shr int %X, ubyte %A ; can be logical shift.
More information about the llvm-commits
mailing list