public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/81274] x86 optimizer emits unnecessary LEA instruction when using AVX intrinsics
       [not found] <bug-81274-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-14 21:52 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |8.0
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
In GCC 8.1 and above we get:

        .cfi_startproc
        push    ebp
        .cfi_def_cfa_offset 8
        .cfi_offset 5, -8
        mov     ebp, esp
        .cfi_def_cfa_register 5
        mov     eax, DWORD PTR [ebp+8]
        pop     ebp
        .cfi_restore 5
        .cfi_def_cfa 4, 4
        vmovaps ymm0, YMMWORD PTR [eax]
        vaddsubps       ymm0, ymm0, ymm0
        ret

So fixed.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-14 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-81274-4@http.gcc.gnu.org/bugzilla/>
2021-12-14 21:52 ` [Bug target/81274] x86 optimizer emits unnecessary LEA instruction when using AVX intrinsics pinskia at gcc dot gnu.org

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).