mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Use FpMOVD pseudo-instruction to move doubles around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a036b53929
commit
bcf2ad296f
@ -68,6 +68,8 @@ void SparcV8RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
|
||||
BuildMI (MBB, I, V8::ORrr, 2, DestReg).addReg (V8::G0).addReg (SrcReg);
|
||||
else if (RC == SparcV8::FPRegsRegisterClass)
|
||||
BuildMI (MBB, I, V8::FMOVS, 1, DestReg).addReg (SrcReg);
|
||||
else if (RC == SparcV8::DFPRegsRegisterClass)
|
||||
BuildMI (MBB, I, V8::FpMOVD, 1, DestReg).addReg (SrcReg);
|
||||
else
|
||||
assert (0 && "Can't copy this register");
|
||||
}
|
||||
|
@ -68,6 +68,8 @@ void SparcV8RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
|
||||
BuildMI (MBB, I, V8::ORrr, 2, DestReg).addReg (V8::G0).addReg (SrcReg);
|
||||
else if (RC == SparcV8::FPRegsRegisterClass)
|
||||
BuildMI (MBB, I, V8::FMOVS, 1, DestReg).addReg (SrcReg);
|
||||
else if (RC == SparcV8::DFPRegsRegisterClass)
|
||||
BuildMI (MBB, I, V8::FpMOVD, 1, DestReg).addReg (SrcReg);
|
||||
else
|
||||
assert (0 && "Can't copy this register");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user