aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
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
commit20b7635470aefc0e5d62a1b5d9109c247b664460 (patch)
treeab310d2e77a0a8bcbb661edff6d178960373d2e7 /lib/CodeGen/SelectionDAG
parent6b761d3e86720b461966c9f617328aeed9bc4944 (diff)
downloadexternal_llvm-20b7635470aefc0e5d62a1b5d9109c247b664460.zip
external_llvm-20b7635470aefc0e5d62a1b5d9109c247b664460.tar.gz
external_llvm-20b7635470aefc0e5d62a1b5d9109c247b664460.tar.bz2
Fix f80 UNDEF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a903011..b5c160a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/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;