[llvm] r193139 - ARM: Thumb2 copy for GPRPair needs to use thumb instructions.

Jim Grosbach grosbach at apple.com
Mon Oct 21 19:29:38 PDT 2013


Author: grosbach
Date: Mon Oct 21 21:29:37 2013
New Revision: 193139

URL: http://llvm.org/viewvc/llvm-project?rev=193139&view=rev
Log:
ARM: Thumb2 copy for GPRPair needs to use thumb instructions.

Use tMOVr instead of plain MOVr.

rdar://15193017

Modified:
    llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=193139&r1=193138&r2=193139&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Mon Oct 21 21:29:37 2013
@@ -712,7 +712,7 @@ void ARMBaseInstrInfo::copyPhysReg(Machi
     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)) {





More information about the llvm-commits mailing list