&& "Compile-time arithmetic does not support these semantics");
}
- static inline bool
- isArithmeticOk(const llvm::fltSemantics &semantics) {
- return semantics.arithmeticOK;
- }
-
/* Return the value of a decimal exponent of the form
[+-]ddddddd.
const integerPart *src;
unsigned int dstPartsCount, truncatedBits;
- if (!isArithmeticOk(*semantics))
- return opInvalidOp;
+ assertArithmeticOK(*semantics);
*isExact = false;
static bool convertToInt(const APFloat &APF, uint64_t *intVal) {
bool isExact = false;
+ if (&APF.getSemantics() == &APFloat::PPCDoubleDouble)
+ return false;
if (APF.convertToInteger(intVal, 32, APF.isNegative(),
APFloat::rmTowardZero, &isExact)
!= APFloat::opOK)