[Bug target/30082] Expansion of lceil and lfloor could use if-conversion
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 2 11:57:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30082
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> long foo(float x)
> {
> return __builtin_lfloorf(x);
> }
>
> generates
>
> foo:
> .LFB2:
> cvttss2siq %xmm0, %rax
> cvtsi2ssq %rax, %xmm1
> leaq -1(%rax), %rdx
> comiss %xmm0, %xmm1
> cmova %rdx, %rax
> ret
>
> the adc/sbb variants are no longer generated.
Are you still working on this?
More information about the Gcc-bugs
mailing list