[libclc] [libclc] Fix fmod returning NaN for subnormal inputs (PR #225351)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 15 16:37:08 PST 2026
================
@@ -27,6 +27,7 @@ _CLC_DEFINE_ISFPCLASS(int, long, __clc_isnan, fcNan, double)
// The scalar version of __clc_isnan(half) returns an int, but the vector
// versions return a short.
-_CLC_DEFINE_ISFPCLASS(int, short, __clc_isnan, fcNan, half)
+_CLC_DEFINE_RELATIONAL_UNARY(int, short, __clc_isnan, (x != x), half)
#endif
+
----------------
wenju-he wrote:
nit: drop this empty line
https://github.com/llvm/llvm-project/pull/225351
More information about the cfe-commits
mailing list