[Bug target/57056] Missed optimization of finite finite builtin

svfuerst at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 26 01:23:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57056

Steven Fuerst <svfuerst at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |svfuerst at gmail dot com

--- Comment #2 from Steven Fuerst <svfuerst at gmail dot com> 2013-04-26 01:23:24 UTC ---
If you use the pextrw instruction, then you can avoid the shift, saving an
instruction.

i.e. Something like:

pextrw  $0x3, %xmm0, %rax
and     $0x7ff0, %ax
sub     $0x7ff0, %ax
sbb     %eax, %eax
retq



More information about the Gcc-bugs mailing list