mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
PPC: Disable moves for all CR subregisters.
Should fix assertion failures on ppc buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59e43bde28
commit
95c885d65a
@ -490,10 +490,8 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
|
||||
// This is a bit of a hack: CR2LT, CR2GT, CR2EQ and CR2UN are just
|
||||
// subregisters of CR2. We just need to emit a move of CR2.
|
||||
if (Reg == PPC::CR2LT || Reg == PPC::CR2GT || Reg == PPC::CR2EQ)
|
||||
if (PPC::CRBITRCRegisterClass->contains(Reg))
|
||||
continue;
|
||||
if (Reg == PPC::CR2UN)
|
||||
Reg = PPC::CR2;
|
||||
|
||||
MachineLocation CSDst(MachineLocation::VirtualFP, Offset);
|
||||
MachineLocation CSSrc(Reg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user