diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-07-27 00:33:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-07-27 00:33:08 +0000 |
commit | d8b20e21a86f904ab2a67f4b0e837f312df226e8 (patch) | |
tree | 6a22550dc1634f7b7d287a25900e79950f0e62de /lib/Target/ARM/ARMBaseInstrInfo.cpp | |
parent | 15b7a580a79d2e9db8dff2c489181fa3a8d791a1 (diff) | |
download | external_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.cpp | 2 |
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) |