public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/79185] [8 Regression] register allocation in the addition of two 128/9 bit ints
       [not found] <bug-79185-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-14 10:10 ` jakub at gcc dot gnu.org
  2021-06-11 10:05 ` drraph at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
8 branch is being closed, fixed in 9.0.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/79185] [8 Regression] register allocation in the addition of two 128/9 bit ints
       [not found] <bug-79185-4@http.gcc.gnu.org/bugzilla/>
  2021-05-14 10:10 ` [Bug target/79185] [8 Regression] register allocation in the addition of two 128/9 bit ints jakub at gcc dot gnu.org
@ 2021-06-11 10:05 ` drraph at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: drraph at gmail dot com @ 2021-06-11 10:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Raphael C <drraph at gmail dot com> ---
Tested in gcc 11.1 with -O2

ai(__int128, __int128):
        mov     r9, rdi
        mov     rax, rdx
        mov     r8, rsi
        mov     rdx, rcx
        add     rax, r9
        adc     rdx, r8
        ret


This looks like two more mov's than needed but I may be wrong.

By contrast clang gives

ai(__int128, __int128):                              
        mov     rax, rdi
        add     rax, rdx
        adc     rsi, rcx
        mov     rdx, rsi
        ret

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-11 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-79185-4@http.gcc.gnu.org/bugzilla/>
2021-05-14 10:10 ` [Bug target/79185] [8 Regression] register allocation in the addition of two 128/9 bit ints jakub at gcc dot gnu.org
2021-06-11 10:05 ` drraph at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).