mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Try again
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ee9ffb0e5
commit
23cc8708c3
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user