Home
last modified time | relevance | path

Searched refs:isNegative (Results 1 – 25 of 124) sorted by relevance

12345

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DAPInt.cpp291 bool lhsNeg = isNegative(); in compareSigned()
292 bool rhsNeg = RHS.isNegative(); in compareSigned()
498 unsigned isNegative = *p == '-'; in getBitsNeeded() local
508 return slen + isNegative; in getBitsNeeded()
510 return slen * 3 + isNegative; in getBitsNeeded()
512 return slen * 4 + isNegative; in getBitsNeeded()
536 return isNegative + 1; in getBitsNeeded()
537 } else if (isNegative && tmp.isPowerOf2()) { in getBitsNeeded()
538 return isNegative + log; in getBitsNeeded()
540 return isNegative + log + 1; in getBitsNeeded()
[all …]
H A DAPFixedPoint.cpp44 NewVal = NewVal.isNegative() ? Mask : ~Mask; in convert()
51 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert()
309 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isNullValue()) in div()
374 if (Val.isSigned() && Val.isNegative() && Val != -Val) { in toString()
432 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
H A DAPFloat.cpp256 bool isNegative; in readExponent() local
266 isNegative = (*p == '-'); in readExponent()
291 if (isNegative) in readExponent()
2076 bool inputSign = isNegative(); in roundToIntegral()
2085 if (inputSign != isNegative()) in roundToIntegral()
2460 if (isSigned && api.isNegative()) { in convertFromAPInt()
3764 if (isNegative()) in toString()
3772 if (isNegative()) in toString()
3792 if (isNegative()) in toString()
4030 if (!isNegative()) in next()
[all …]
H A DKnownBits.cpp72 if (!KnownOut.isNegative() && !KnownOut.isNonNegative()) { in computeForAddSub()
80 else if (LHS.isNegative() && RHS.isNegative()) in computeForAddSub()
570 if (LHS.isNegative() && LowBits.intersects(LHS.One)) in srem()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFloat.h340 bool isNegative() const { return sign; } in isNegative() function
379 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
380 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
652 bool isNegative() const;
1090 if (isNegative()) in clearSign()
1094 if (isNegative() != RHS.isNegative()) in copySign()
1217 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function
1228 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
1229 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
1325 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in minimum()
[all …]
H A DAPSInt.h48 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() function
53 bool isNonNegative() const { return !isNegative(); } in isNonNegative()
320 if (I1.isNegative()) in compareValues()
324 if (I2.isNegative()) in compareValues()
H A DAPInt.h364 bool isNegative() const { return (*this)[BitWidth - 1]; }
369 bool isNonNegative() const { return !isNegative(); }
435 return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1;
451 return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1;
1233 return (!isSingleWord() && getMinSignedBits() > 64) ? isNegative()
1303 return (!isSingleWord() && getMinSignedBits() > 64) ? !isNegative()
1689 return isNegative() ? countLeadingOnes() : countLeadingZeros();
1871 if (isNegative())
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp20 Value.isSigned() && Value.isNegative()) in testInRange()
44 if (Value.isSigned() && Value.isNegative()) in testInRange()
H A DBasicValueFactory.cpp279 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
288 if (V1.isSigned() && V1.isNegative()) in evalAPSInt()
302 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dbigint.d163 this(Range)(bool isNegative, Range magnitude) if (
170 sign = isNegative && !data.isZero;
980 return isNegative ? -T.infinity : T.infinity;
981 uint resultBits = (uint(isNegative) << 31) | // sign bit
990 return isNegative ? -T.infinity : T.infinity;
991 ulong resultBits = (ulong(isNegative) << 63) | // sign bit
1000 return ldexp(isNegative ? -cast(real) sansExponent : cast(real) sansExponent,
1009 return isNegative ? -T.infinity : T.infinity;
1032 if (isNegative)
1090 return isNegative ? 1 : -1;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantRange.cpp67 if (!IsSigned || Known.isNegative() || Known.isNonNegative()) in fromKnownBits()
217 if (V.isNegative()) { in makeExactMulNSWRegion()
257 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion()
269 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion()
1261 if (MaxLHS.isNegative()) { in srem()
1401 } else if (getSignedMax().isNegative()) { in ashr()
1500 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1; in sshl_sat()
1546 if (SMax.isNegative()) in abs()
1586 if (Max.isNegative() && OtherMax.isNegative() && in signedAddMayOverflow()
1593 if (Min.isNegative() && OtherMin.isNegative() && in signedAddMayOverflow()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/FileCheck/
H A DFileCheck.cpp82 StringRef SignPrefix = IntegerValue.isNegative() ? "-" : ""; in getMatchingString()
206 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in operator +()
217 if (LeftOperand.isNegative()) in operator +()
221 if (RightOperand.isNegative()) in operator +()
238 if (LeftOperand.isNegative() && !RightOperand.isNegative()) { in operator -()
253 if (LeftOperand.isNegative()) in operator -()
257 if (RightOperand.isNegative()) in operator -()
288 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator *()
292 if (RightOperand.isNegative()) in operator *()
295 assert(!RightOperand.isNegative() && "Unexpected negative operand!"); in operator *()
[all …]
H A DFileCheckImpl.h131 return Value == Other.Value && isNegative() == Other.isNegative();
139 bool isNegative() const { in isNegative() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp29 return CF->isZero() && CF->isNegative(); in isIdempotentRMW()
31 return CF->isZero() && !CF->isNegative(); in isIdempotentRMW()
H A DInstCombineCompares.cpp1134 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1149 if (IsAShr && AP1.isNegative()) in foldICmpShrConstConst()
1585 if (!XorC->isNegative()) in foldICmpXorConstant()
1659 if (Cmp.isSigned() && (C2.isNegative() || C1.isNegative())) in foldICmpAndShift()
1673 if (Cmp.isSigned() && (NewAndCst.isNegative() || NewCmpCst.isNegative())) in foldICmpAndShift()
1771 (Cmp.isEquality() || (!C1.isNegative() && !C2->isNegative()))) { in foldICmpAndConstConst()
1960 if (MulC->isNegative()) in foldICmpMulConstant()
2461 } else if (C2->isNegative()) { // Divisor is < 0. in foldICmpDivConstant()
3931 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
5254 ((Op0Known.Zero.isNegative() && Op1Known.Zero.isNegative()) || in foldICmpUsingKnownBits()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DBoolean.h71 constexpr static bool isNegative() { return false; } in isNegative() function
72 constexpr static bool isPositive() { return !isNegative(); } in isPositive()
H A DIntegral.h131 bool isNegative() const { return V < T(0); }
132 bool isPositive() const { return !isNegative(); }
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp351 ((Mask & N_INFINITY) && Val.isInfinity() && Val.isNegative()) || in instCombineIntrinsic()
352 ((Mask & N_NORMAL) && Val.isNormal() && Val.isNegative()) || in instCombineIntrinsic()
353 ((Mask & N_SUBNORMAL) && Val.isDenormal() && Val.isNegative()) || in instCombineIntrinsic()
354 ((Mask & N_ZERO) && Val.isZero() && Val.isNegative()) || in instCombineIntrinsic()
355 ((Mask & P_ZERO) && Val.isZero() && !Val.isNegative()) || in instCombineIntrinsic()
356 ((Mask & P_SUBNORMAL) && Val.isDenormal() && !Val.isNegative()) || in instCombineIntrinsic()
357 ((Mask & P_NORMAL) && Val.isNormal() && !Val.isNegative()) || in instCombineIntrinsic()
358 ((Mask & P_INFINITY) && Val.isInfinity() && !Val.isNegative()); in instCombineIntrinsic()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp121 C.isNegative(B->getRHS())) { in checkPostStmt()
150 C.isNegative(B->getLHS())) { in checkPostStmt()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DKnownBits.h96 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function
243 if (isNegative()) in countMinSignBits()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_value.h187 bool isNegative() const { in isNegative() function
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_value.h189 bool isNegative() const { in isNegative() function
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_value.h185 bool isNegative() const { in isNegative() function
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dbigint.d894 char signChar = isNegative() ? '-' : 0;
983 bool isNegative() pure const nothrow @nogc @safe in isNegative() function
1657 assert(!x.isNegative());
1662 assert(!x.isNegative());
1667 assert(!x.isNegative());
1672 assert(!x.isNegative());
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp342 return Known.isNegative(); in isKnownNegative()
424 bool isKnownNegativeOp1 = Known.isNegative(); in computeKnownBitsMul()
425 bool isKnownNegativeOp0 = Known2.isNegative(); in computeKnownBitsMul()
446 if (isKnownNonNegative && !Known.isNegative()) in computeKnownBitsMul()
876 if (RHSKnown.isNegative()) { in computeKnownBitsFromAssume()
889 if (RHSKnown.isZero() || RHSKnown.isNegative()) { in computeKnownBitsFromAssume()
1442 else if (Known2.isNegative() && Known3.isNegative()) in computeKnownBitsFromOperator()
1449 if (Known2.isNonNegative() && Known3.isNegative()) in computeKnownBitsFromOperator()
1451 else if (Known2.isNegative() && Known3.isNonNegative()) in computeKnownBitsFromOperator()
2218 StartC->isNegative() == StepC->isNegative()); in isNonZeroRecurrence()
[all …]

12345