Lines Matching refs:APFloat
176 APFloat(DestTy->getFltSemantics(), in FoldBitCast()
591 APFloat Val = FPC->getValueAPF(); in ConstantFoldCastInstruction()
592 Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf : in ConstantFoldCastInstruction()
593 DestTy->isFloatTy() ? APFloat::IEEEsingle : in ConstantFoldCastInstruction()
594 DestTy->isDoubleTy() ? APFloat::IEEEdouble : in ConstantFoldCastInstruction()
595 DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended : in ConstantFoldCastInstruction()
596 DestTy->isFP128Ty() ? APFloat::IEEEquad : in ConstantFoldCastInstruction()
597 DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble : in ConstantFoldCastInstruction()
598 APFloat::Bogus, in ConstantFoldCastInstruction()
599 APFloat::rmNearestTiesToEven, &ignored); in ConstantFoldCastInstruction()
606 const APFloat &V = FPC->getValueAPF(); in ConstantFoldCastInstruction()
610 if (APFloat::opInvalidOp == in ConstantFoldCastInstruction()
612 APFloat::rmTowardZero, &ignored)) { in ConstantFoldCastInstruction()
673 APFloat apf(DestTy->getFltSemantics(), in ConstantFoldCastInstruction()
675 if (APFloat::opOverflow & in ConstantFoldCastInstruction()
677 APFloat::rmNearestTiesToEven)) { in ConstantFoldCastInstruction()
1171 APFloat C1V = CFP1->getValueAPF(); in ConstantFoldBinaryInstruction()
1172 APFloat C2V = CFP2->getValueAPF(); in ConstantFoldBinaryInstruction()
1173 APFloat C3V = C1V; // copy for modification in ConstantFoldBinaryInstruction()
1178 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1181 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1184 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1187 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1748 APFloat C1V = cast<ConstantFP>(C1)->getValueAPF(); in ConstantFoldCompareInstruction()
1749 APFloat C2V = cast<ConstantFP>(C2)->getValueAPF(); in ConstantFoldCompareInstruction()
1750 APFloat::cmpResult R = C1V.compare(C2V); in ConstantFoldCompareInstruction()
1756 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered); in ConstantFoldCompareInstruction()
1758 return ConstantInt::get(ResultTy, R!=APFloat::cmpUnordered); in ConstantFoldCompareInstruction()
1760 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered || in ConstantFoldCompareInstruction()
1761 R==APFloat::cmpEqual); in ConstantFoldCompareInstruction()
1763 return ConstantInt::get(ResultTy, R==APFloat::cmpEqual); in ConstantFoldCompareInstruction()
1765 return ConstantInt::get(ResultTy, R!=APFloat::cmpEqual); in ConstantFoldCompareInstruction()
1767 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan || in ConstantFoldCompareInstruction()
1768 R==APFloat::cmpGreaterThan); in ConstantFoldCompareInstruction()
1770 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered || in ConstantFoldCompareInstruction()
1771 R==APFloat::cmpLessThan); in ConstantFoldCompareInstruction()
1773 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan); in ConstantFoldCompareInstruction()
1775 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered || in ConstantFoldCompareInstruction()
1776 R==APFloat::cmpGreaterThan); in ConstantFoldCompareInstruction()
1778 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan); in ConstantFoldCompareInstruction()
1780 return ConstantInt::get(ResultTy, R!=APFloat::cmpGreaterThan); in ConstantFoldCompareInstruction()
1782 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan || in ConstantFoldCompareInstruction()
1783 R==APFloat::cmpEqual); in ConstantFoldCompareInstruction()
1785 return ConstantInt::get(ResultTy, R!=APFloat::cmpLessThan); in ConstantFoldCompareInstruction()
1787 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan || in ConstantFoldCompareInstruction()
1788 R==APFloat::cmpEqual); in ConstantFoldCompareInstruction()