This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50339] suboptimal register allocation for abs(__int128_t)
- From: "svfuerst at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Jan 2012 23:44:55 +0000
- Subject: [Bug rtl-optimization/50339] suboptimal register allocation for abs(__int128_t)
- Auto-submitted: auto-generated
- References: <bug-50339-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50339
Steven Fuerst <svfuerst at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |svfuerst at gmail dot com
--- Comment #1 from Steven Fuerst <svfuerst at gmail dot com> 2012-01-22 23:44:55 UTC ---
It is possible to remove yet another mov instruction:
mov %rdi,%rax
mov %rsi,%rdx
sar $0x3f,%rsi
xor %rsi,%rax
xor %rsi,%rdx
sub %rsi,%rax
sbb %rsi,%rdx
retq