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

References

tools/clang/unittests/Basic/FixedPointTest.cpp
  149   CheckUnpaddedMax(getSAccumSema());
  171   CheckMin(getSAccumSema());
  230   CheckIntPart(getSAccumSema(), 2);
  238   CheckIntPart(getSAccumSema(), 0);
  253   CheckIntPartMin(getSAccumSema(), -256);
  262   CheckIntPartMax(getSAccumSema(), 255);
  305   ASSERT_EQ(APFixedPoint(320, getSAccumSema()),
  307   ASSERT_EQ(APFixedPoint(320, getSAccumSema()),
  309   ASSERT_EQ(APFixedPoint(0, getSAccumSema()), APFixedPoint(0, getLAccumSema()));
  312   ASSERT_EQ(APFixedPoint(64, getSAccumSema()),
  320   ASSERT_EQ(APFixedPoint(64, getSAccumSema()),
  322   ASSERT_EQ(APFixedPoint(64, getSAccumSema()),
  326   ASSERT_EQ(APFixedPoint(320, getSAccumSema()),
  330   ASSERT_EQ(APFixedPoint(320, getSAccumSema()),
  332   ASSERT_EQ(APFixedPoint(-320, getSAccumSema()),
  336   ASSERT_EQ(APFixedPoint(320, getSAccumSema()),
  342   ASSERT_LT(APFixedPoint(-1, getSAccumSema()), APFixedPoint(0, getAccumSema()));
  343   ASSERT_LT(APFixedPoint(-1, getSAccumSema()),
  345   ASSERT_LT(APFixedPoint(0, getSAccumSema()), APFixedPoint(1, getAccumSema()));
  346   ASSERT_LT(APFixedPoint(0, getSAccumSema()), APFixedPoint(1, getUAccumSema()));
  352   ASSERT_GT(APFixedPoint(0, getAccumSema()), APFixedPoint(-1, getSAccumSema()));
  354             APFixedPoint(-1, getSAccumSema()));
  355   ASSERT_GT(APFixedPoint(1, getAccumSema()), APFixedPoint(0, getSAccumSema()));
  356   ASSERT_GT(APFixedPoint(1, getUAccumSema()), APFixedPoint(0, getSAccumSema()));
  407   CheckUnsaturatedConversion(Src, getSAccumSema(), NormalVal);
  418   CheckUnsaturatedConversion(Src, getSAccumSema(), -NormalVal);
  451   CheckUnsaturatedConversion(Src, getSAccumSema(), 0);
  481   CheckUnsaturatedConversion(Src, getSAccumSema(), NormalVal);
  505   CheckSignedAccumConversionsAgainstOthers(getSAccumSema(), 128);
  550   CheckSaturatedConversionMax(getAccumSema(), Saturated(getSAccumSema()),
  556   CheckSaturatedConversionMax(getUAccumSema(), Saturated(getSAccumSema()),
  562   CheckSaturatedConversionMax(getLAccumSema(), Saturated(getSAccumSema()),
  568   CheckSaturatedConversionMax(getULAccumSema(), Saturated(getSAccumSema()),
  575   CheckSaturatedConversionMax(getPadUAccumSema(), Saturated(getSAccumSema()),
  581   CheckSaturatedConversionMax(getPadULAccumSema(), Saturated(getSAccumSema()),
  589   CheckSaturatedConversionMin(getAccumSema(), Saturated(getSAccumSema()),
  595   CheckSaturatedConversionMin(getLAccumSema(), Saturated(getSAccumSema()),
  604   APFixedPoint Fixed(255 << 7, getSAccumSema());
  613   APFixedPoint Val = APFixedPoint(1ULL << 7, getSAccumSema());
  617   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), -(1ULL << 15));
  623   Val = APFixedPoint(/*-1.5*/ -192, getSAccumSema());
  627   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), 255 << 7);
  633   Val = APFixedPoint(-(1 << 7), getSAccumSema());