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:
parent
d8bc485573
commit
20674e6c52
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user