nir/opcodes: Use fpclassify() instead of isnormal() for ldexp
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88806 Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
d6eb572905
commit
d7d340fb2f
|
@ -480,7 +480,7 @@ else
|
|||
opcode("ldexp", 0, tunsigned, [0, 0], [tfloat, tint], "", """
|
||||
dst = ldexp(src0, src1);
|
||||
/* flush denormals to zero. */
|
||||
if (!isnormal(dst))
|
||||
if (fpclassify(dst) != FP_NORMAL)
|
||||
dst = copysign(0.0f, src0);
|
||||
""")
|
||||
|
||||
|
|
Loading…
Reference in New Issue