There are different types of NaN. Apparently you are writing a quiet NaN and not a signaling NaN as we used to do.

(FYI, a quiet NaN has the highest bit of the mantissa set, whereas a signaling NaN is represented by having the highest bit of the mantissa cleared, but at least one other bit of the matissa should be set.)