1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

fix copies to/from GR8_ABCD_H even more

llvm-svn: 107832
This commit is contained in:
Jakob Stoklund Olesen 2010-07-07 23:04:56 +00:00
parent 46d94f1c1e
commit 6afcd69bee

View File

@ -1932,7 +1932,9 @@ bool X86InstrInfo::copyRegToReg(MachineBasicBlock &MBB,
} else if (CommonRC == &X86::GR8RegClass) {
// Copying to or from a physical H register on x86-64 requires a NOREX
// move. Otherwise use a normal move.
if ((isHReg(DestReg) || isHReg(SrcReg)) &&
if ((isHReg(DestReg) || isHReg(SrcReg) ||
SrcRC == &X86::GR8_ABCD_HRegClass ||
DestRC == &X86::GR8_ABCD_HRegClass) &&
TM.getSubtarget<X86Subtarget>().is64Bit())
Opc = X86::MOV8rr_NOREX;
else