mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 11:19:41 +00:00
fix copies to/from GR8_ABCD_H even more
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03e2d44722
commit
5febd075df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user