1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Incorrect check for FP all one's

llvm-svn: 27169
This commit is contained in:
Evan Cheng 2006-03-27 07:26:17 +00:00
parent f1d6a9483f
commit 73d281ae4c

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;