projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0869f4a
)
Fix f80 UNDEF.
author
Dale Johannesen
<dalej@apple.com>
Wed, 26 Sep 2007 17:26:49 +0000
(17:26 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Wed, 26 Sep 2007 17:26:49 +0000
(17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42359
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a903011d85826a9b2ceaf3b0ddcf4773d4d14308..b5c160a1a77df1af00de132e302b01b554f3b198 100644
(file)
--- 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))
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;
else
assert(0 && "Unknown value type!");
break;