summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-14 01:56:47 +0000
committerDale Johannesen <dalej@apple.com>2007-10-14 01:56:47 +0000
commit19db093b350f2050a91bc7df7f548272453fd2ee (patch)
treee93af757d7e1166fe2aaa3af5886de7a6d9c99b8 /llvm/lib/CodeGen
parent5811baf1a09f0312b046dc697b7e6cbd56a3634a (diff)
downloadbcm5719-llvm-19db093b350f2050a91bc7df7f548272453fd2ee.tar.gz
bcm5719-llvm-19db093b350f2050a91bc7df7f548272453fd2ee.zip
Disable some compile-time optimizations on PPC
long double. llvm-svn: 42958
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 3e798bc8ce7..eb6e60302d9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -965,6 +965,9 @@ SDOperand SelectionDAG::FoldSetCC(MVT::ValueType VT, SDOperand N1,
}
if (ConstantFPSDNode *N1C = dyn_cast<ConstantFPSDNode>(N1.Val))
if (ConstantFPSDNode *N2C = dyn_cast<ConstantFPSDNode>(N2.Val)) {
+ // No compile time operations on this type yet.
+ if (N1C->getValueType(0) == MVT::ppcf128)
+ return SDOperand();
APFloat::cmpResult R = N1C->getValueAPF().compare(N2C->getValueAPF());
switch (Cond) {
OpenPOWER on IntegriCloud