Lines Matching refs:APFloat
1365 APFloat APF(V); in GetConstantFoldFPValue()
1367 APF.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1371 return ConstantFP::get(Ty->getContext(), APFloat((float)V)); in GetConstantFoldFPValue()
1373 return ConstantFP::get(Ty->getContext(), APFloat(V)); in GetConstantFoldFPValue()
1427 Constant *ConstantFoldConvertToInt(const APFloat &Val, bool roundTowardZero, in ConstantFoldConvertToInt()
1436 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldConvertToInt()
1437 : APFloat::rmNearestTiesToEven; in ConstantFoldConvertToInt()
1438 APFloat::opStatus status = Val.convertToInteger(&UIntVal, ResultWidth, in ConstantFoldConvertToInt()
1441 if (status != APFloat::opOK && status != APFloat::opInexact) in ConstantFoldConvertToInt()
1456 APFloat APF = Op->getValueAPF(); in getValueAsDouble()
1457 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1472 APFloat Val(Op->getValueAPF()); in ConstantFoldScalarCall()
1475 Val.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall()
1484 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1485 V.roundToIntegral(APFloat::rmNearestTiesToAway); in ConstantFoldScalarCall()
1490 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1491 V.roundToIntegral(APFloat::rmTowardNegative); in ConstantFoldScalarCall()
1496 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1497 V.roundToIntegral(APFloat::rmTowardPositive); in ConstantFoldScalarCall()
1502 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1503 V.roundToIntegral(APFloat::rmTowardZero); in ConstantFoldScalarCall()
1508 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1509 V.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1514 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1515 V.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1650 APFloat Val(APFloat::IEEEhalf, Op->getValue()); in ConstantFoldScalarCall()
1653 APFloat::opStatus status = Val.convert( in ConstantFoldScalarCall()
1654 Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall()
1658 assert(status == APFloat::opOK && !lost && in ConstantFoldScalarCall()
1717 APFloat V1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1718 const APFloat &V2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1724 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1725 const APFloat &C2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1730 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1731 const APFloat &C2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1749 APFloat((float)std::pow((float)Op1V, in ConstantFoldScalarCall()
1753 APFloat((float)std::pow((float)Op1V, in ConstantFoldScalarCall()
1757 APFloat((double)std::pow((double)Op1V, in ConstantFoldScalarCall()
1828 APFloat V = Op1->getValueAPF(); in ConstantFoldScalarCall()
1829 APFloat::opStatus s = V.fusedMultiplyAdd(Op2->getValueAPF(), in ConstantFoldScalarCall()
1831 APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1832 if (s != APFloat::opInvalidOp) in ConstantFoldScalarCall()