aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-27 00:33:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-27 00:33:08 +0000
commitd8b20e21a86f904ab2a67f4b0e837f312df226e8 (patch)
tree6a22550dc1634f7b7d287a25900e79950f0e62de /lib/Target/ARM/ARMBaseInstrInfo.cpp
parent15b7a580a79d2e9db8dff2c489181fa3a8d791a1 (diff)
downloadexternal_llvm-d8b20e21a86f904ab2a67f4b0e837f312df226e8.zip
external_llvm-d8b20e21a86f904ab2a67f4b0e837f312df226e8.tar.gz
external_llvm-d8b20e21a86f904ab2a67f4b0e837f312df226e8.tar.bz2
Use the right instructions to copy between GPR and the more strictive tGPR classes. t2MOV does not match the RC requirements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 93ac1d5..059f2bf 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -612,7 +612,7 @@ ARMBaseInstrInfo::copyRegToReg(MachineBasicBlock &MBB,
}
if (DestRC == ARM::GPRRegisterClass)
- AddDefaultCC(AddDefaultPred(BuildMI(MBB, I, DL, get(getOpcode(ARMII::MOVr)),
+ AddDefaultCC(AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::MOVr),
DestReg).addReg(SrcReg)));
else if (DestRC == ARM::SPRRegisterClass)
AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::FCPYS), DestReg)