mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix f80 UNDEF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0869f4acec
commit
f41db2136f
@ -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