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

--- Comment #9 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
And in fact the optimal code for

int t(int x, _Bool y)
{
        return x * y;
}

should be

    maskeqz $r4,$r4,$r5
    jr  $r1 

like

int t(int x, _Bool y)
{
        return y ? x : 0;
}

Reply via email to