1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix f80 UNDEF.

llvm-svn: 42359
This commit is contained in:
Dale Johannesen 2007-09-26 17:26:49 +00:00
parent d8bc485573
commit 20674e6c52

View File

@ -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;