public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95427] New: Failure to avoid emitting rbp initialization when doing 256-bit memory store
@ 2020-05-29 23:59 gabravier at gmail dot com
  2021-09-02  0:08 ` [Bug target/95427] " gabravier at gmail dot com
  2023-02-18  1:22 ` gabravier at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: gabravier at gmail dot com @ 2020-05-29 23:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95427
           Summary: Failure to avoid emitting rbp initialization when
                    doing 256-bit memory store
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

void f(int64_t *p)
{
    p[0] = 0;
    p[1] = 0;
    p[2] = 0;
    p[3] = 0;
}

With -O3 -max, LLVM produces this : 

f(long*): # @f(long*)
  vxorps xmm0, xmm0, xmm0
  vmovups ymmword ptr [rdi], ymm0
  vzeroupper
  ret

GCC produces this :

f(long*):
  push rbp
  vpxor xmm0, xmm0, xmm0
  vmovdqu XMMWORD PTR [rdi], xmm0
  vextractf128 XMMWORD PTR [rdi+16], ymm0, 0x1
  mov rbp, rsp
  vzeroupper
  pop rbp
  ret

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

* [Bug target/95427] Failure to avoid emitting rbp initialization when doing 256-bit memory store
  2020-05-29 23:59 [Bug target/95427] New: Failure to avoid emitting rbp initialization when doing 256-bit memory store gabravier at gmail dot com
@ 2021-09-02  0:08 ` gabravier at gmail dot com
  2023-02-18  1:22 ` gabravier at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: gabravier at gmail dot com @ 2021-09-02  0:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Gabriel Ravier <gabravier at gmail dot com> ---
Seems to be fixed in trunk.

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

* [Bug target/95427] Failure to avoid emitting rbp initialization when doing 256-bit memory store
  2020-05-29 23:59 [Bug target/95427] New: Failure to avoid emitting rbp initialization when doing 256-bit memory store gabravier at gmail dot com
  2021-09-02  0:08 ` [Bug target/95427] " gabravier at gmail dot com
@ 2023-02-18  1:22 ` gabravier at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: gabravier at gmail dot com @ 2023-02-18  1:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Gabriel Ravier <gabravier at gmail dot com> ---
Still appears to be fixed on trunk.

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

end of thread, other threads:[~2023-02-18  1:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 23:59 [Bug target/95427] New: Failure to avoid emitting rbp initialization when doing 256-bit memory store gabravier at gmail dot com
2021-09-02  0:08 ` [Bug target/95427] " gabravier at gmail dot com
2023-02-18  1:22 ` gabravier 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).