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

References

tools/clang/unittests/Basic/FixedPointTest.cpp
  614   ASSERT_EQ(Val.convert(getLFractSema()).getValue(), -(1ULL << 31));
  616   Val = APFixedPoint(1ULL << 23, getAccumSema());
  617   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), -(1ULL << 15));
  619   Val = APFixedPoint(1ULL << 47, getLAccumSema());
  620   ASSERT_EQ(Val.convert(getAccumSema()).getValue(), -(1ULL << 31));
  623   Val = APFixedPoint(/*-1.5*/ -192, getSAccumSema());
  624   ASSERT_EQ(Val.convert(getLFractSema()).getValue(), 1ULL << 30);
  626   Val = APFixedPoint(-(257 << 15), getAccumSema());
  627   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), 255 << 7);
  629   Val = APFixedPoint(-(65537ULL << 31), getLAccumSema());
  630   ASSERT_EQ(Val.convert(getAccumSema()).getValue(), 65535 << 15);
  633   Val = APFixedPoint(-(1 << 7), getSAccumSema());
  634   ASSERT_EQ(Val.convert(getUSAccumSema()).getValue(), 255 << 8);
  636   Val = APFixedPoint(-(1 << 15), getAccumSema());
  637   ASSERT_EQ(Val.convert(getUAccumSema()).getValue(), 65535ULL << 16);
  639   Val = APFixedPoint(-(1ULL << 31), getLAccumSema());
  640   ASSERT_EQ(Val.convert(getULAccumSema()).getValue().getZExtValue(),