FranklandJack wrote: Please do not merge this yet! I've detected a bug in the case that all input values are NaN in which case this implementation doesn't match the behvaiour as defined in the TOSA specification. https://github.com/llvm/llvm-project/pull/125668