summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/shift-sra.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-08 06:47:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-08 06:47:33 +0000
commit3822ff5c71478c7c90a50ca57045fb676fcb5005 (patch)
tree44d109d0052024ecdbcfceb248446b56a7bfce0f /test/Transforms/InstCombine/shift-sra.ll
parent73fb07566b24d43bb116c2ade0297d90ec72490d (diff)
downloadllvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.tar.gz
llvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.tar.bz2
llvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.tar.xz
For 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift-sra.ll')
-rw-r--r--test/Transforms/InstCombine/shift-sra.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/shift-sra.ll b/test/Transforms/InstCombine/shift-sra.ll
index a14dce8250..1dc74ecfa1 100644
--- a/test/Transforms/InstCombine/shift-sra.ll
+++ b/test/Transforms/InstCombine/shift-sra.ll
@@ -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.