Lines Matching refs:APFloat
172 APFloat(DestTy->getFltSemantics(),
574 APFloat Val = FPC->getValueAPF();
575 Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf :
576 DestTy->isFloatTy() ? APFloat::IEEEsingle :
577 DestTy->isDoubleTy() ? APFloat::IEEEdouble :
578 DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended :
579 DestTy->isFP128Ty() ? APFloat::IEEEquad :
580 DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble :
581 APFloat::Bogus,
582 APFloat::rmNearestTiesToEven, &ignored);
589 const APFloat &V = FPC->getValueAPF();
594 APFloat::rmTowardZero, &ignored);
651 APFloat apf(DestTy->getFltSemantics(),
655 APFloat::rmNearestTiesToEven);
1113 APFloat C1V = CFP1->getValueAPF();
1114 APFloat C2V = CFP2->getValueAPF();
1115 APFloat C3V = C1V; // copy for modification
1120 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven);
1123 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven);
1126 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven);
1129 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven);
1132 (void)C3V.mod(C2V, APFloat::rmNearestTiesToEven);
1652 APFloat C1V = cast<ConstantFP>(C1)->getValueAPF();
1653 APFloat C2V = cast<ConstantFP>(C2)->getValueAPF();
1654 APFloat::cmpResult R = C1V.compare(C2V);
1660 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered);
1662 return ConstantInt::get(ResultTy, R!=APFloat::cmpUnordered);
1664 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1665 R==APFloat::cmpEqual);
1667 return ConstantInt::get(ResultTy, R==APFloat::cmpEqual);
1669 return ConstantInt::get(ResultTy, R!=APFloat::cmpEqual);
1671 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan ||
1672 R==APFloat::cmpGreaterThan);
1674 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1675 R==APFloat::cmpLessThan);
1677 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan);
1679 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1680 R==APFloat::cmpGreaterThan);
1682 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan);
1684 return ConstantInt::get(ResultTy, R!=APFloat::cmpGreaterThan);
1686 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan ||
1687 R==APFloat::cmpEqual);
1689 return ConstantInt::get(ResultTy, R!=APFloat::cmpLessThan);
1691 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan ||
1692 R==APFloat::cmpEqual);