This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/57056] Missed optimization of finite finite builtin
- From: "svfuerst at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Apr 2013 01:23:24 +0000
- Subject: [Bug target/57056] Missed optimization of finite finite builtin
- Auto-submitted: auto-generated
- References: <bug-57056-4 at http dot gcc dot gnu dot org/bugzilla/>
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