summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-15 17:35:26 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-15 17:35:26 +0000
commit24b84072eabcbd9cde0cb820c57240fc7de16964 (patch)
tree10994c7690839a3623ba4b4a9f614d7a98453b03 /llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
parent42623a95390002b63ae09748c1c0b2a5f211d257 (diff)
downloadbcm5719-llvm-24b84072eabcbd9cde0cb820c57240fc7de16964.tar.gz
bcm5719-llvm-24b84072eabcbd9cde0cb820c57240fc7de16964.zip
Broke 80 column rule.
llvm-svn: 22792
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index f632d0ebf04..9906446905e 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
@@ -2303,6 +2303,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
int FrameIdx = BB->getParent()->getFrameInfo()->CreateStackObject(8, 8);
MachineConstantPool *CP = BB->getParent()->getConstantPool();
+ Opc = DestType == MVT::f64 ? PPC::FSUB : PPC::FSUBS;
if (IsUnsigned) {
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::LFD, 2, Tmp2), FrameIdx);
// 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 {
unsigned ConstF = getConstDouble(0x1.000008p52);
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::LFD, 2, Tmp2), FrameIdx);
// 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;
}
OpenPOWER on IntegriCloud