mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Broke 80 column rule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2303,6 +2303,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
|||||||
|
|
||||||
int FrameIdx = BB->getParent()->getFrameInfo()->CreateStackObject(8, 8);
|
int FrameIdx = BB->getParent()->getFrameInfo()->CreateStackObject(8, 8);
|
||||||
MachineConstantPool *CP = BB->getParent()->getConstantPool();
|
MachineConstantPool *CP = BB->getParent()->getConstantPool();
|
||||||
|
Opc = DestType == MVT::f64 ? PPC::FSUB : PPC::FSUBS;
|
||||||
|
|
||||||
if (IsUnsigned) {
|
if (IsUnsigned) {
|
||||||
unsigned ConstF = getConstDouble(0x1.000000p52);
|
unsigned ConstF = getConstDouble(0x1.000000p52);
|
||||||
@@ -2312,7 +2313,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
|||||||
addFrameReference(BuildMI(BB, PPC::STW, 3).addReg(Tmp1), FrameIdx, 4);
|
addFrameReference(BuildMI(BB, PPC::STW, 3).addReg(Tmp1), FrameIdx, 4);
|
||||||
addFrameReference(BuildMI(BB, PPC::LFD, 2, Tmp2), FrameIdx);
|
addFrameReference(BuildMI(BB, PPC::LFD, 2, Tmp2), FrameIdx);
|
||||||
// Generate the return value with a subtract
|
// Generate the return value with a subtract
|
||||||
BuildMI(BB, DestType == MVT::f64 ? PPC::FSUB : PPC::FSUBS, 2, Result).addReg(Tmp2).addReg(ConstF);
|
BuildMI(BB, Opc, 2, Result).addReg(Tmp2).addReg(ConstF);
|
||||||
} else {
|
} else {
|
||||||
unsigned ConstF = getConstDouble(0x1.000008p52);
|
unsigned ConstF = getConstDouble(0x1.000008p52);
|
||||||
unsigned TmpL = MakeIntReg();
|
unsigned TmpL = MakeIntReg();
|
||||||
@@ -2323,7 +2324,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
|||||||
addFrameReference(BuildMI(BB, PPC::STW, 3).addReg(TmpL), FrameIdx, 4);
|
addFrameReference(BuildMI(BB, PPC::STW, 3).addReg(TmpL), FrameIdx, 4);
|
||||||
addFrameReference(BuildMI(BB, PPC::LFD, 2, Tmp2), FrameIdx);
|
addFrameReference(BuildMI(BB, PPC::LFD, 2, Tmp2), FrameIdx);
|
||||||
// Generate the return value with a subtract
|
// Generate the return value with a subtract
|
||||||
BuildMI(BB, DestType == MVT::f64 ? PPC::FSUB : PPC::FSUBS, 2, Result).addReg(Tmp2).addReg(ConstF);
|
BuildMI(BB, Opc, 2, Result).addReg(Tmp2).addReg(ConstF);
|
||||||
}
|
}
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user