projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c28682
)
ARM: Thumb2 copy for GPRPair needs to use thumb instructions.
author
Jim Grosbach
<grosbach@apple.com>
Tue, 22 Oct 2013 02:29:37 +0000
(
02:29
+0000)
committer
Jim Grosbach
<grosbach@apple.com>
Tue, 22 Oct 2013 02:29:37 +0000
(
02:29
+0000)
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
lib/Target/ARM/ARMBaseInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMBaseInstrInfo.cpp
b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 98e0fd2a66731bbd4252e0e009b32636ab3b1108..fe18851690b77618369fb80d27e29db26143d84e 100644
(file)
--- 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)) {