summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-26 17:26:49 +0000
committerDale Johannesen <dalej@apple.com>2007-09-26 17:26:49 +0000
commitf04d37d3a9e1fbddf96e87b98d5e05c75269840b (patch)
treea367c65cc3cc0160cf93765e3dd984988986ac91 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent19529eec8a06bb9905040f03c7e0f15ceb190aef (diff)
downloadbcm5719-llvm-f04d37d3a9e1fbddf96e87b98d5e05c75269840b.tar.gz
bcm5719-llvm-f04d37d3a9e1fbddf96e87b98d5e05c75269840b.zip
Fix f80 UNDEF.
llvm-svn: 42359
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a903011d858..b5c160a1a77 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -893,7 +893,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
if (MVT::isInteger(VT))
Result = DAG.getConstant(0, VT);
else if (MVT::isFloatingPoint(VT))
- Result = DAG.getConstantFP(0, VT);
+ Result = DAG.getConstantFP(APFloat(APInt(MVT::getSizeInBits(VT), 0)),
+ VT);
else
assert(0 && "Unknown value type!");
break;
OpenPOWER on IntegriCloud