diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-10-22 02:29:37 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-10-22 02:29:37 +0000 |
commit | 5b46ad4faf3216b4faaf30fa3a32f0af06f1ae36 (patch) | |
tree | 0a73535d7576f3cf1e1c1ca960e9fbdc5258029f /lib | |
parent | 6c28682963e96699e7e0ab15282319c152bd6373 (diff) | |
download | external_llvm-5b46ad4faf3216b4faaf30fa3a32f0af06f1ae36.zip external_llvm-5b46ad4faf3216b4faaf30fa3a32f0af06f1ae36.tar.gz external_llvm-5b46ad4faf3216b4faaf30fa3a32f0af06f1ae36.tar.bz2 |
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
Diffstat (limited to 'lib')
-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)) { |