mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +00:00
Check for PRE_INC and POST_INC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0196dc5733
commit
4cb73525a9
@ -644,7 +644,7 @@ bool ARMDAGToDAGISel::SelectT2AddrModeImm8Offset(SDValue Op, SDValue N,
|
||||
if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N)) {
|
||||
int RHSC = (int)RHS->getZExtValue();
|
||||
if (RHSC >= 0 && RHSC < 0x100) { // 8 bits.
|
||||
OffImm = (AM == ISD::PRE_INC)
|
||||
OffImm = ((AM == ISD::PRE_INC) || (AM == ISD::POST_INC))
|
||||
? CurDAG->getTargetConstant(RHSC, MVT::i32)
|
||||
: CurDAG->getTargetConstant(-RHSC, MVT::i32);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user