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

--- Comment #3 from Mohamed <mohamed.selim at dxc dot com> ---
Indeed on armv8 for example, gcc-12 aarch64 outputs:

        .arch armv8-a
        .file   "main.cpp"
        .text
        .align  2
        .p2align 4,,11
        .global test::is_std_nan(float)
        .type   test::is_std_nan(float), %function
test::is_std_nan(float):
.LFB2710:
        fcmp    s0, s0
        cset    w0, vs
        ret
.LFE2710:
        .size   test::is_std_nan(float), .-test::is_std_nan(float)
        .align  2
        .p2align 4,,11
        .global test::is_std_nan(double)
        .type   test::is_std_nan(double), %function
test::is_std_nan(double):
.LFB2711:
        fcmp    d0, d0
        cset    w0, vs
        ret
.LFE2711:

Reply via email to