From: Dale Johannesen Date: Wed, 26 Sep 2007 17:26:49 +0000 (+0000) Subject: Fix f80 UNDEF. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f41db2136fe50e1a92aabfcb3ba1ec1f70f5f0d5;p=oota-llvm.git Fix f80 UNDEF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42359 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index a903011d858..b5c160a1a77 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;