mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
ARM: Thumb2 copy for GPRPair needs to use thumb instructions.
Use tMOVr instead of plain MOVr. rdar://15193017 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c28682963
commit
5b46ad4faf
@ -712,7 +712,7 @@ void ARMBaseInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
||||
BeginIdx = ARM::dsub_0;
|
||||
SubRegs = 4;
|
||||
} else if (ARM::GPRPairRegClass.contains(DestReg, SrcReg)) {
|
||||
Opc = ARM::MOVr;
|
||||
Opc = Subtarget.isThumb2() ? ARM::tMOVr : ARM::MOVr;
|
||||
BeginIdx = ARM::gsub_0;
|
||||
SubRegs = 2;
|
||||
} else if (ARM::DPairSpcRegClass.contains(DestReg, SrcReg)) {
|
||||
|
Loading…
Reference in New Issue
Block a user