[clang] [llvm] [APFloat] Add APFloat support for FP6 data types (PR #94735)

Jakub Kuderski via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 07:24:38 PDT 2024


================
@@ -878,6 +896,10 @@ void IEEEFloat::copySignificand(const IEEEFloat &rhs) {
    for the significand.  If double or longer, this is a signalling NaN,
    which may not be ideal.  If float, this is QNaN(0).  */
 void IEEEFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) {
+  if (semantics->nonFiniteBehavior == fltNonfiniteBehavior::NoNanInf) {
+    assert(false && "This floating point format does not support NaN\n");
+    return;
----------------
kuhar wrote:

Also no `\n`

https://github.com/llvm/llvm-project/pull/94735


More information about the cfe-commits mailing list