mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Add support for GR32 <-> FR32 cross class copies.
We already support GR64 <-> VR128 copies. All of these copies break partial register dependencies by zeroing the high part of the target register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da7d6ccef5
commit
4bd89873be
@ -2158,6 +2158,17 @@ static unsigned CopyToFromAsymmetricReg(unsigned DestReg, unsigned SrcReg,
|
||||
return X86::MOV64toSDrr;
|
||||
}
|
||||
|
||||
// SrcReg(FR32) -> DestReg(GR32)
|
||||
// SrcReg(GR32) -> DestReg(FR32)
|
||||
|
||||
if (X86::GR32RegClass.contains(DestReg) && X86::FR32RegClass.contains(SrcReg))
|
||||
// Copy from a FR32 register to a GR32 register.
|
||||
return HasAVX ? X86::VMOVSS2DIrr : X86::MOVSS2DIrr;
|
||||
|
||||
if (X86::FR32RegClass.contains(DestReg) && X86::GR32RegClass.contains(SrcReg))
|
||||
// Copy from a GR32 register to a FR32 register.
|
||||
return HasAVX ? X86::VMOVDI2SSrr : X86::MOVDI2SSrr;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user