https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122967

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilco at gcc dot gnu.org

--- Comment #3 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #2)
> And I'm not convinced func3 or func4 are desirable on x86_64.

The current generic isfinite results in this:

bool f(float x) { return __builtin_isfinite (x); }

        andps   xmm0, XMMWORD PTR .LC4[rip]
        movss   xmm1, DWORD PTR .LC5[rip]
        xor     eax, eax
        ucomiss xmm1, xmm0
        setnb   al
        ret

That's 40-bytes of immediates...

Func3/4 are still better than the above, and necessary if you use
-fsignaling-nans.

Reply via email to