Index: llvm/lib/Target/ARM/ARMISelLowering.cpp =================================================================== --- llvm/lib/Target/ARM/ARMISelLowering.cpp +++ llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -14553,7 +14553,7 @@ DAG.getConstant(4, DL, MVT::i32)); return DAG.getStore(NewST1.getValue(0), DL, StVal.getNode()->getOperand(isBigEndian ? 0 : 1), - OffsetPtr, St->getPointerInfo(), + OffsetPtr, St->getPointerInfo().getWithOffset(4), std::min(4U, St->getAlignment() / 2), St->getMemOperand()->getFlags()); } Index: llvm/test/CodeGen/Thumb2/vmovdrroffset.ll =================================================================== --- llvm/test/CodeGen/Thumb2/vmovdrroffset.ll +++ llvm/test/CodeGen/Thumb2/vmovdrroffset.ll @@ -21,9 +21,9 @@ ; CHECK-NEXT: vmov r2, r3, d8 ; CHECK-NEXT: vmov r0, r1, d0 ; CHECK-NEXT: bl __aeabi_dadd +; CHECK-NEXT: str r1, [sp, #4] ; CHECK-NEXT: mov r4, r0 ; CHECK-NEXT: ldrb.w r0, [sp, #7] -; CHECK-NEXT: str r1, [sp, #4] ; CHECK-NEXT: eor r0, r0, #128 ; CHECK-NEXT: strb.w r0, [sp, #7] ; CHECK-NEXT: vmov r0, r1, d9