Incorrect check for FP all one's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-03-27 07:26:17 +00:00
parent b86bd2cee2
commit f48b50a7ef

View File

@ -91,7 +91,8 @@ bool ISD::isBuildVectorAllOnes(const SDNode *N) {
if (!cast<ConstantSDNode>(NotZero)->isAllOnesValue())
return false;
} else if (isa<ConstantFPSDNode>(NotZero)) {
if (!cast<ConstantFPSDNode>(NotZero)->isExactlyValue(-1))
if (DoubleToBits(cast<ConstantFPSDNode>(NotZero)->getValue()) ==
(0ULL - 1))
return false;
} else
return false;