diff options
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 98e0fd2..fe18851 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -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)) { |