mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 07:18:44 +00:00
Fix an undefined behavior introduces in r247234
llvm-svn: 247296
This commit is contained in:
parent
47658d8c0c
commit
b86ce4aaaf
@ -646,7 +646,7 @@ bool AArch64DAGToDAGISel::SelectAddrModeIndexed7S(SDValue N, unsigned Size,
|
||||
if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
|
||||
int64_t RHSC = RHS->getSExtValue();
|
||||
unsigned Scale = Log2_32(Size);
|
||||
if ((RHSC & (Size - 1)) == 0 && RHSC >= (-0x40 << Scale) &&
|
||||
if ((RHSC & (Size - 1)) == 0 && RHSC >= -(0x40 << Scale) &&
|
||||
RHSC < (0x40 << Scale)) {
|
||||
Base = N.getOperand(0);
|
||||
if (Base.getOpcode() == ISD::FrameIndex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user