mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Use GR64 in 64-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9900c9442
commit
3f2d9ec186
@ -299,6 +299,9 @@ void X86RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
|
|||||||
const TargetRegisterClass *
|
const TargetRegisterClass *
|
||||||
X86RegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const {
|
X86RegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const {
|
||||||
if (RC == &X86::CCRRegClass)
|
if (RC == &X86::CCRRegClass)
|
||||||
|
if (Is64Bit)
|
||||||
|
return &X86::GR64RegClass;
|
||||||
|
else
|
||||||
return &X86::GR32RegClass;
|
return &X86::GR32RegClass;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user