summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2014-06-16 10:39:21 +0000
committerJames Molloy <james.molloy@arm.com>2014-06-16 10:39:21 +0000
commit1e3b5a49e16496fa78e0e5b36a0e308ce321d6bf (patch)
tree5b7e05b0051b2f17d04ef509e36e89baf5c97e1f /llvm/lib
parentddb7aa6aaac04018e2ac4a727ac4942f8d082ea0 (diff)
downloadbcm5719-llvm-1e3b5a49e16496fa78e0e5b36a0e308ce321d6bf.tar.gz
bcm5719-llvm-1e3b5a49e16496fa78e0e5b36a0e308ce321d6bf.zip
[AArch64] Fix a fencepost error in lowering for llvm.aarch64.neon.uqshl.
Patch by Jiangning Liu! llvm-svn: 211014
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index c2cf5b7f17f..7a2c9c95b61 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -7007,7 +7007,7 @@ static SDValue tryCombineShiftImm(unsigned IID, SDNode *N, SelectionDAG &DAG) {
if (IsRightShift && ShiftAmount <= -1 && ShiftAmount >= -(int)ElemBits)
return DAG.getNode(Opcode, SDLoc(N), N->getValueType(0), N->getOperand(1),
DAG.getConstant(-ShiftAmount, MVT::i32));
- else if (!IsRightShift && ShiftAmount >= 0 && ShiftAmount <= ElemBits)
+ else if (!IsRightShift && ShiftAmount >= 0 && ShiftAmount < ElemBits)
return DAG.getNode(Opcode, SDLoc(N), N->getValueType(0), N->getOperand(1),
DAG.getConstant(ShiftAmount, MVT::i32));
OpenPOWER on IntegriCloud