public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late
       [not found] <bug-31985-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-05 23:44 ` pinskia at gcc dot gnu.org
  2023-06-04 18:21 ` roger at nextmovesoftware dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 23:44 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-08-05
              Build|i686-pc-linux-gnu           |
     Ever confirmed|0                           |1
               Host|i686-pc-linux-gnu           |

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

* [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late
       [not found] <bug-31985-4@http.gcc.gnu.org/bugzilla/>
  2021-08-05 23:44 ` [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late pinskia at gcc dot gnu.org
@ 2023-06-04 18:21 ` roger at nextmovesoftware dot com
  2023-06-16 15:22 ` cvs-commit at gcc dot gnu.org
  2023-06-30 19:31 ` roger at nextmovesoftware dot com
  3 siblings, 0 replies; 4+ messages in thread
From: roger at nextmovesoftware dot com @ 2023-06-04 18:21 UTC (permalink / raw)
  To: gcc-bugs

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

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot com
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |roger at nextmovesoftware dot com

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

* [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late
       [not found] <bug-31985-4@http.gcc.gnu.org/bugzilla/>
  2021-08-05 23:44 ` [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late pinskia at gcc dot gnu.org
  2023-06-04 18:21 ` roger at nextmovesoftware dot com
@ 2023-06-16 15:22 ` cvs-commit at gcc dot gnu.org
  2023-06-30 19:31 ` roger at nextmovesoftware dot com
  3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-16 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Roger Sayle <sayle@gcc.gnu.org>:

https://gcc.gnu.org/g:95020d33ad6991fe4fbdccf70e7133116cac68f4

commit r14-1892-g95020d33ad6991fe4fbdccf70e7133116cac68f4
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Fri Jun 16 16:18:27 2023 +0100

    PR target/31985: Improve memory operand use with doubleword add.

    This patch addresses the last remaining issue with PR target/31985, that
    GCC could make better use of memory addressing modes when implementing
    double word addition.  This is achieved by adding a define_insn_and_split
    that combines an *add<dwi>3_doubleword with a *concat<mode><dwi>3, so
    that the components of the concat can be used directly, without first
    being loaded into a double word register.

    For test_c in the bugzilla PR:

    Before:
            pushl   %ebx
            subl    $16, %esp
            movl    28(%esp), %eax
            movl    36(%esp), %ecx
            movl    32(%esp), %ebx
            movl    24(%esp), %edx
            addl    %ecx, %eax
            adcl    %ebx, %edx
            movl    %eax, 8(%esp)
            movl    %edx, 12(%esp)
            addl    $16, %esp
            popl    %ebx
            ret

    After:
    test_c:
            subl    $20, %esp
            movl    36(%esp), %eax
            movl    32(%esp), %edx
            addl    28(%esp), %eax
            adcl    24(%esp), %edx
            movl    %eax, 8(%esp)
            movl    %edx, 12(%esp)
            addl    $20, %esp
            ret

    2023-06-16  Roger Sayle  <roger@nextmovesoftware.com>
                Uros Bizjak  <ubizjak@gmail.com>

    gcc/ChangeLog
            PR target/31985
            * config/i386/i386.md (*add<dwi>3_doubleword_concat): New
            define_insn_and_split combine *add<dwi>3_doubleword with
            a *concat<mode><dwi>3 for more efficient lowering after reload.

    gcc/testsuite/ChangeLog
            PR target/31985
            * gcc.target/i386/pr31985.c: New test case.

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

* [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late
       [not found] <bug-31985-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-06-16 15:22 ` cvs-commit at gcc dot gnu.org
@ 2023-06-30 19:31 ` roger at nextmovesoftware dot com
  3 siblings, 0 replies; 4+ messages in thread
From: roger at nextmovesoftware dot com @ 2023-06-30 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Roger Sayle <roger at nextmovesoftware dot com> ---
This is now fixed on mainline.

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

end of thread, other threads:[~2023-06-30 19:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-31985-4@http.gcc.gnu.org/bugzilla/>
2021-08-05 23:44 ` [Bug middle-end/31985] Wide operations (i.e. adddi3) are split too late pinskia at gcc dot gnu.org
2023-06-04 18:21 ` roger at nextmovesoftware dot com
2023-06-16 15:22 ` cvs-commit at gcc dot gnu.org
2023-06-30 19:31 ` roger at nextmovesoftware 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).