[clang] [llvm] [APFloat] Add APFloat support for FP6 data types (PR #94735)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 07:11:42 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;
----------------
arsenm wrote:
llvm_unreachable, also no dead return
https://github.com/llvm/llvm-project/pull/94735
More information about the llvm-commits
mailing list