Try again

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-03-27 08:10:26 +00:00
parent 3ee9ffb0e5
commit 23cc8708c3

View File

@ -91,9 +91,16 @@ bool ISD::isBuildVectorAllOnes(const SDNode *N) {
if (!cast<ConstantSDNode>(NotZero)->isAllOnesValue())
return false;
} else if (isa<ConstantFPSDNode>(NotZero)) {
if (DoubleToBits(cast<ConstantFPSDNode>(NotZero)->getValue()) ==
(0ULL - 1))
return false;
MVT::ValueType VT = NotZero.getValueType();
if (VT== MVT::f64) {
if (DoubleToBits(cast<ConstantFPSDNode>(NotZero)->getValue()) !=
(uint64_t)-1)
return false;
} else {
if (FloatToBits(cast<ConstantFPSDNode>(NotZero)->getValue()) !=
(uint32_t)-1)
return false;
}
} else
return false;