Home
last modified time | relevance | path

Searched refs:Exponent (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dreal.h72 return Exponent() == maxExponent && !GetSignificand().IsZero(); in IsNotANumber()
75 return Exponent() == maxExponent && in IsQuietNaN()
82 return Exponent() == maxExponent && GetSignificand().IsZero(); in IsInfinite()
86 return Exponent() == 0 && GetSignificand().IsZero(); in IsZero()
89 return Exponent() == 0 && !GetSignificand().IsZero(); in IsSubnormal()
140 if (Exponent() == maxExponent) { in EXPONENT()
269 int exponent{intPart.value.Exponent()};
336 constexpr int Exponent() const { in Exponent() function
346 int exponent{Exponent()}; in GetFraction()
360 int exponent{Exponent() - exponentBias}; in UnbiasedExponent()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dpowf_massv_075_025exp.ll9 ; Exponent is a variable
40 ; Exponent is a constant != 0.75 and !=0.25
68 ; Exponent is a constant != 0.75 and !=0.25 and they are different
96 ; Exponent is a constant != 0.75 and !=0.25
124 ; Exponent is a constant != 0.75 and !=0.25
152 ; Exponent is 0.75
178 ; Exponent is 0.25
204 ; Exponent is 0.75 but no proper fast-math flags
233 ; Exponent is 0.25 but no proper fast-math flags
H A Dpow_massv_075_025exp.ll9 ; Exponent is a variable
40 ; Exponent is a constant != 0.75 and !=0.25
68 ; Exponent is a constant != 0.75 and !=0.25 and they are different
96 ; Exponent is a constant != 0.75 and !=0.25 and they are different
124 ; Exponent is a constant != 0.75 and !=0.25 and they are different
152 ; Exponent is 0.75
178 ; Exponent is 0.25
204 ; Exponent is 0.75 but no proper fast-math flags
233 ; Exponent is 0.25 but no proper fast-math flags
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dreal.cpp44 Ordering order{evaluate::Compare(Exponent(), y.Exponent())}; in Compare()
86 int exponent{Exponent()}; in Add()
87 int yExponent{y.Exponent()}; in Add()
335 int expo{Exponent()}; in NEAREST()
476 if (Exponent() < noClipExponent) { in ToWholeNumber()
554 int origExponent{Exponent()}; in Round()
577 if (rounding.x86CompatibleBehavior && Exponent() != 0 && multiply && in Round()
681 int exponent = Exponent() - exponentBias; in DumpHexadecimal()
753 false, Exponent() - binaryPrecision + 1, Fraction::MASKL(1)); in SPACING()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DNativeFormatTests.cpp97 EXPECT_EQ("0.000000e+00", format_number(0.0, FloatStyle::Exponent)); in TEST()
98 EXPECT_EQ("-0.000000e+00", format_number(-0.0, FloatStyle::Exponent)); in TEST()
99 EXPECT_EQ("1.100000e+00", format_number(1.1, FloatStyle::Exponent)); in TEST()
/llvm-project-15.0.7/llvm/lib/Support/
H A DNativeFormatting.cpp179 if (Style == FloatStyle::Exponent) in write_double()
190 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double()
258 case FloatStyle::Exponent: in getDefaultPrecision()
H A Draw_ostream.cpp208 llvm::write_double(*this, N, FloatStyle::Exponent); in operator <<()
/llvm-project-15.0.7/flang/runtime/
H A Dnumeric.cpp69 template <typename RESULT, typename ARG> inline RESULT Exponent(ARG x) { in Exponent() function
354 return Exponent<CppTypeFor<TypeCategory::Integer, 4>>(x); in RTNAME()
358 return Exponent<CppTypeFor<TypeCategory::Integer, 8>>(x); in RTNAME()
362 return Exponent<CppTypeFor<TypeCategory::Integer, 4>>(x); in RTNAME()
366 return Exponent<CppTypeFor<TypeCategory::Integer, 8>>(x); in RTNAME()
371 return Exponent<CppTypeFor<TypeCategory::Integer, 4>>(x); in RTNAME()
375 return Exponent<CppTypeFor<TypeCategory::Integer, 8>>(x); in RTNAME()
380 return Exponent<CppTypeFor<TypeCategory::Integer, 4>>(x); in RTNAME()
384 return Exponent<CppTypeFor<TypeCategory::Integer, 8>>(x); in RTNAME()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLiteralSupport.cpp1140 const char *Exponent = s; in ParseDecimalOrOctalCommon() local
1152 TokLoc, Exponent - ThisTokBegin, SM, LangOpts), in ParseDecimalOrOctalCommon()
1252 const char *Exponent = s; in ParseNumberStartingWithZero() local
1260 TokLoc, Exponent - ThisTokBegin, SM, LangOpts), in ParseNumberStartingWithZero()
1451 uint64_t Exponent = 0; in GetFixedPointValue() local
1466 Exponent = ExpInt.getZExtValue(); in GetFixedPointValue()
1471 if (NegativeExponent) BaseShift -= Exponent; in GetFixedPointValue()
1472 else BaseShift += Exponent; in GetFixedPointValue()
1494 NumBitsNeeded = 4 * (NumDigits + Exponent) + Scale; in GetFixedPointValue()
1496 NumBitsNeeded = 4 * NumDigits + Exponent + Scale; in GetFixedPointValue()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DNativeFormatting.h17 enum class FloatStyle { Exponent, ExponentUpper, Fixed, Percent }; enumerator
H A DFormatProviders.h311 S = FloatStyle::Exponent;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp619 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() local
620 return Builder.CreateShl(ExtendedStride, Exponent); in emitBump()
624 ConstantInt *Exponent = in emitBump() local
626 return Builder.CreateNeg(Builder.CreateShl(ExtendedStride, Exponent)); in emitBump()
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dreal.cpp59 MATCH(0, zero.Exponent())(desc); in basicTests()
72 MATCH(0, minusZero.Exponent())(desc); in basicTests()
97 MATCH(nan.Exponent(), maxExponent)(desc); in basicTests()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp834 uint64_t Exponent = 0; in visitMulExpr() local
840 while (E != OpsAndLoops.end() && *I == *E && Exponent != MaxExponent) { in visitMulExpr()
841 ++Exponent; in visitMulExpr()
844 assert(Exponent > 0 && "Trying to calculate a zeroth exponent of operand?"); in visitMulExpr()
850 if (Exponent & 1) in visitMulExpr()
852 for (uint64_t BinExp = 2; BinExp <= Exponent; BinExp <<= 1) { in visitMulExpr()
855 if (Exponent & BinExp) in visitMulExpr()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DREADME_P9.txt383 - Insert Exponent DP/QP: xsiexpdp xsiexpqp
392 - Extract Exponent/Significand DP/QP: xsxexpdp xsxsigdp xsxexpqp xsxsigqp
428 - Vector Insert Exponent DP/SP: xviexpdp xviexpsp
433 - Vector Extract Exponent/Significand DP/SP: xvxexpdp xvxexpsp xvxsigdp xvxsigsp
/llvm-project-15.0.7/llvm/test/MC/PowerPC/
H A Dvsx.s767 # Insert Exponent DP/QP
775 # Vector Insert Exponent DP
793 # Extract Exponent/Significand DP/QP
807 # Vector Extract Exponent/Significand DP
/llvm-project-15.0.7/clang/include/clang/Basic/
H A Darm_fp16.td30 // Reciprocal Exponent
/llvm-project-15.0.7/flang/unittests/Runtime/
H A DNumeric.cpp33 TEST(Numeric, Exponent) { in TEST() argument
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetLowering.h2207 bool isBeneficialToExpandPowI(int Exponent, bool OptForSize) const { in isBeneficialToExpandPowI() argument
2208 if (Exponent < 0) in isBeneficialToExpandPowI()
2209 Exponent = -Exponent; in isBeneficialToExpandPowI()
2211 (countPopulation((unsigned int)Exponent) + Log2_32(Exponent) < 7); in isBeneficialToExpandPowI()
H A DBasicTTIImpl.h1428 APInt Exponent = RHSC->getValue().abs(); in getIntrinsicInstrCost() local
1429 unsigned ActiveBits = Exponent.getActiveBits(); in getIntrinsicInstrCost()
1430 unsigned PopCount = Exponent.countPopulation(); in getIntrinsicInstrCost()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp4116 SDValue Exponent = in ConvertNodeToLibcall() local
4123 {Exponent.getValue(1), Node->getOperand(1), Exponent}); in ConvertNodeToLibcall()
4127 SDValue Exponent = in ConvertNodeToLibcall() local
4132 Node->getOperand(0), Exponent)); in ConvertNodeToLibcall()
/llvm-project-15.0.7/llvm/test/MC/AArch64/
H A Dbasic-a64-diagnostics.s1790 ;; Exponent too large
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp6141 auto Exponent = MIRBuilder.buildSub(SrcTy, ExponentBits, Bias); in lowerFPTOSI() local
6142 auto SubExponent = MIRBuilder.buildSub(SrcTy, Exponent, ExponentLoBit); in lowerFPTOSI()
6143 auto ExponentSub = MIRBuilder.buildSub(SrcTy, ExponentLoBit, Exponent); in lowerFPTOSI()
6150 S1, Exponent, ExponentLoBit); in lowerFPTOSI()
6160 S1, Exponent, ZeroSrcTy); in lowerFPTOSI()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp821 Error parseAlignmentValue(uint64_t Exponent, MaybeAlign &Alignment);
2009 Error BitcodeReader::parseAlignmentValue(uint64_t Exponent, in parseAlignmentValue() argument
2013 if (Exponent > Value::MaxAlignmentExponent + 1) in parseAlignmentValue()
2015 Alignment = decodeMaybeAlign(Exponent); in parseAlignmentValue()
/llvm-project-15.0.7/lldb/docs/use/
H A Dvariable.rst584 …(lldb) type summary add --summary-string "Sign: ${var[31]%B} Exponent: ${var[30-23]%x} Mantissa: $…
586 (float) float_point = -3.14159 Sign: true Exponent: 0x00000080 Mantissa: 4788184

12