reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APFloat.h
 1149     return bitwiseIsEqual(Tmp);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  115   return getValueAPF().bitwiseIsEqual(V);
lib/IR/Constants.cpp
  856   return Val.bitwiseIsEqual(V);
lib/IR/LLVMContextImpl.h
   93     return LHS.bitwiseIsEqual(RHS);
lib/Support/APFloat.cpp
 4299   return Floats[0].bitwiseIsEqual(RHS.Floats[0]) &&
 4300          Floats[1].bitwiseIsEqual(RHS.Floats[1]);
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 1228       if (getFPImm().bitwiseIsEqual(RealVal))
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
 3593   return APF.bitwiseIsEqual(KF16) ||
 3594          APF.bitwiseIsEqual(KF32) ||
 3595          APF.bitwiseIsEqual(KF64);
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  186   if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) &&
  187       !FP.bitwiseIsEqual(
lib/Target/X86/X86ISelLowering.cpp
 4853     if (Imm.bitwiseIsEqual(LegalFPImmediates[i]))
tools/clang/lib/Sema/SemaChecking.cpp
10450   return truncated.bitwiseIsEqual(value);
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  239     if (FloatLit1->getValue().bitwiseIsEqual(FloatLit2->getValue())) {
  477     return FloatLit1->getValue().bitwiseIsEqual(FloatLit2->getValue());
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
   97     return cast<FloatingLiteral>(Left)->getValue().bitwiseIsEqual(
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  168     return cast<FloatingLiteral>(E1)->getValue().bitwiseIsEqual(
unittests/ADT/APFloatTest.cpp
   80   EXPECT_TRUE(test.bitwiseIsEqual(expected));
   87   EXPECT_TRUE(test.bitwiseIsEqual(expected));
   94   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  101   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  108   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  118   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  125   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  132   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  139   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  146   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  153   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  160   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  166   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  172   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  178   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  184   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  190   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  196   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  202   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  208   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  224   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  233   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  242   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  251   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  264   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  270   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  276   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  282   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  302   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  311   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  320   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  329   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  345   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  352   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  358   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  365   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  386   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  396   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  406   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  416   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  426   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  436   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  446   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  456   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1322   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(0.5)));
 1324   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(0.5f)));
 1326   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::IEEEquad(), "0.5")));
 1328   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::PPCDoubleDouble(), "0.5")));
 1330   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::x87DoubleExtended(), "0.5")));
 1334   EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(8.5070592e+37f)));
 1447   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1454   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1461   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1468   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1477   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1484   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1491   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1498   EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1530     EXPECT_TRUE(test.bitwiseIsEqual(expected));
 1539   EXPECT_TRUE(APFloat(-42.0).bitwiseIsEqual(
 1541   EXPECT_TRUE(APFloat(42.0).bitwiseIsEqual(
 1543   EXPECT_TRUE(APFloat(-42.0).bitwiseIsEqual(
 1545   EXPECT_TRUE(APFloat(42.0).bitwiseIsEqual(
 1577   EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN));
 1584   EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN));
 1590   EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN));
 1596   EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN));
 2014     EXPECT_TRUE(result.bitwiseIsEqual(x));
 2302     EXPECT_TRUE(result.bitwiseIsEqual(x));
 2591     EXPECT_TRUE(result.bitwiseIsEqual(x));
 2880     EXPECT_TRUE(result.bitwiseIsEqual(x));
 2890   EXPECT_TRUE(Two.bitwiseIsEqual(One + One));
 2891   EXPECT_TRUE(One.bitwiseIsEqual(Two - One));
 2892   EXPECT_TRUE(Two.bitwiseIsEqual(One * Two));
 2893   EXPECT_TRUE(One.bitwiseIsEqual(Two / Two));
 2916   EXPECT_TRUE(PInf.bitwiseIsEqual(abs(PInf)));
 2917   EXPECT_TRUE(PInf.bitwiseIsEqual(abs(MInf)));
 2918   EXPECT_TRUE(PZero.bitwiseIsEqual(abs(PZero)));
 2919   EXPECT_TRUE(PZero.bitwiseIsEqual(abs(MZero)));
 2920   EXPECT_TRUE(PQNaN.bitwiseIsEqual(abs(PQNaN)));
 2921   EXPECT_TRUE(PQNaN.bitwiseIsEqual(abs(MQNaN)));
 2922   EXPECT_TRUE(PSNaN.bitwiseIsEqual(abs(PSNaN)));
 2923   EXPECT_TRUE(PSNaN.bitwiseIsEqual(abs(MSNaN)));
 2924   EXPECT_TRUE(PNormalValue.bitwiseIsEqual(abs(PNormalValue)));
 2925   EXPECT_TRUE(PNormalValue.bitwiseIsEqual(abs(MNormalValue)));
 2926   EXPECT_TRUE(PLargestValue.bitwiseIsEqual(abs(PLargestValue)));
 2927   EXPECT_TRUE(PLargestValue.bitwiseIsEqual(abs(MLargestValue)));
 2928   EXPECT_TRUE(PSmallestValue.bitwiseIsEqual(abs(PSmallestValue)));
 2929   EXPECT_TRUE(PSmallestValue.bitwiseIsEqual(abs(MSmallestValue)));
 2930   EXPECT_TRUE(PSmallestNormalized.bitwiseIsEqual(abs(PSmallestNormalized)));
 2931   EXPECT_TRUE(PSmallestNormalized.bitwiseIsEqual(abs(MSmallestNormalized)));
 2944   EXPECT_TRUE(NegOne.bitwiseIsEqual(neg(One)));
 2945   EXPECT_TRUE(One.bitwiseIsEqual(neg(NegOne)));
 2946   EXPECT_TRUE(NegZero.bitwiseIsEqual(neg(Zero)));
 2947   EXPECT_TRUE(Zero.bitwiseIsEqual(neg(NegZero)));
 2948   EXPECT_TRUE(NegInf.bitwiseIsEqual(neg(Inf)));
 2949   EXPECT_TRUE(Inf.bitwiseIsEqual(neg(NegInf)));
 2950   EXPECT_TRUE(NegInf.bitwiseIsEqual(neg(Inf)));
 2951   EXPECT_TRUE(Inf.bitwiseIsEqual(neg(NegInf)));
 2952   EXPECT_TRUE(NegQNaN.bitwiseIsEqual(neg(QNaN)));
 2953   EXPECT_TRUE(QNaN.bitwiseIsEqual(neg(NegQNaN)));
 3004       .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle(), "0x1p+0"), 0, RM)));
 3007       .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle(), "0x1p+0"), 42, RM)));
 3010       .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle(), "0x1p+0"), -42, RM)));
 3020   EXPECT_TRUE(PInf.bitwiseIsEqual(scalbn(PInf, 0, RM)));
 3021   EXPECT_TRUE(MInf.bitwiseIsEqual(scalbn(MInf, 0, RM)));
 3022   EXPECT_TRUE(PZero.bitwiseIsEqual(scalbn(PZero, 0, RM)));
 3023   EXPECT_TRUE(MZero.bitwiseIsEqual(scalbn(MZero, 0, RM)));
 3024   EXPECT_TRUE(QPNaN.bitwiseIsEqual(scalbn(QPNaN, 0, RM)));
 3025   EXPECT_TRUE(QMNaN.bitwiseIsEqual(scalbn(QMNaN, 0, RM)));
 3043   EXPECT_TRUE(PInf.bitwiseIsEqual(
 3045   EXPECT_TRUE(MInf.bitwiseIsEqual(
 3047   EXPECT_TRUE(PInf.bitwiseIsEqual(
 3049   EXPECT_TRUE(PZero.bitwiseIsEqual(
 3051   EXPECT_TRUE(MZero.bitwiseIsEqual(
 3053   EXPECT_TRUE(APFloat(APFloat::IEEEsingle(), "-0x1p-149").bitwiseIsEqual(
 3055   EXPECT_TRUE(PZero.bitwiseIsEqual(
 3074   EXPECT_TRUE(SmallestF64.bitwiseIsEqual(
 3076   EXPECT_TRUE(NegSmallestF64.bitwiseIsEqual(
 3080               .bitwiseIsEqual(scalbn(SmallestF64, 2097, RM)));
 3086               .bitwiseIsEqual(scalbn(SmallestF64, 2096, RM)));
 3088               .bitwiseIsEqual(scalbn(SmallestF64, 2097, RM)));
 3097               .bitwiseIsEqual(scalbn(LargestDenormalF64, 0, RM)));
 3099               .bitwiseIsEqual(scalbn(NegLargestDenormalF64, 0, RM)));
 3102               .bitwiseIsEqual(scalbn(LargestDenormalF64, 1, RM)));
 3104               .bitwiseIsEqual(scalbn(NegLargestDenormalF64, 2, RM)));
 3107               .bitwiseIsEqual(scalbn(LargestDenormalF64, 1024, RM)));
 3116               .bitwiseIsEqual(scalbn(LargestDenormalF64, 1021, RM)));
 3118               .bitwiseIsEqual(scalbn(LargestDenormalF64, 1022, RM)));
 3120               .bitwiseIsEqual(scalbn(LargestDenormalF64, 1023, RM)));
 3122               .bitwiseIsEqual(scalbn(LargestDenormalF64, 2046, RM)));
 3124               .bitwiseIsEqual(scalbn(SmallestF64, 2048, RM)));
 3128               .bitwiseIsEqual(scalbn(RandomDenormalF64, -1023, RM)));
 3130               .bitwiseIsEqual(scalbn(RandomDenormalF64, -52, RM)));
 3132               .bitwiseIsEqual(scalbn(RandomDenormalF64, -53, RM)));
 3134               .bitwiseIsEqual(scalbn(RandomDenormalF64, -51, RM)));
 3142     .bitwiseIsEqual(scalbn(NegLargestF64, -2097, RM)));
 3146     .bitwiseIsEqual(scalbn(NegLargestF64, -2048, RM)));
 3150     .bitwiseIsEqual(scalbn(LargestF64, -2097, RM)));
 3154     .bitwiseIsEqual(scalbn(LargestF64, -2098, RM)));
 3156               .bitwiseIsEqual(scalbn(NegLargestF64, -2098, RM)));
 3163     .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEdouble(), "0x1p+52"), -52, RM)));
 3167     .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEdouble(), "0x1p-51"), -52, RM)));
 3225   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3229   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1p-1").bitwiseIsEqual(Frac));
 3233   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.ffffffffffffep-1").bitwiseIsEqual(Frac));
 3237   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1.ffffffffffffep-1").bitwiseIsEqual(Frac));
 3242   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3246   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1p-1").bitwiseIsEqual(Frac));
 3251   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.fffffffffffffp-1").bitwiseIsEqual(Frac));
 3255   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1.fffffffffffffp-1").bitwiseIsEqual(Frac));
 3285   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.fffep-1").bitwiseIsEqual(Frac));
 3289   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3293   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.c60f120d9f87cp-1").bitwiseIsEqual(Frac));
 3302     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3309     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3317     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3324     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3331     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3338     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3363     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3370     EXPECT_TRUE(f1.bitwiseIsEqual(expected));
 3871     EXPECT_EQ(Expected, A1.bitwiseIsEqual(A2))