This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug string/21081] Missing vzeroupper in memset-vec-unaligned-erms.S
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 24 Feb 2017 17:54:30 +0000
- Subject: [Bug string/21081] Missing vzeroupper in memset-vec-unaligned-erms.S
- Auto-submitted: auto-generated
- References: <bug-21081-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21081
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.24/master has been updated
via 4d393a8831fc0ab1b7c29e2d5bafbdbfe2102082 (commit)
from d012ea850680a2a94959f1c5136502a0f712b30a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4d393a8831fc0ab1b7c29e2d5bafbdbfe2102082
commit 4d393a8831fc0ab1b7c29e2d5bafbdbfe2102082
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jan 30 10:59:15 2017 -0800
Add VZEROUPPER to memset-vec-unaligned-erms.S [BZ #21081]
Since memset-vec-unaligned-erms.S has VDUP_TO_VEC0_AND_SET_RETURN at
function entry, memset optimized for AVX2 and AVX512 will always use
ymm/zmm register. VZEROUPPER should be placed before ret in
L(stosb):
movq %rdx, %rcx
movzbl %sil, %eax
movq %rdi, %rdx
rep stosb
movq %rdx, %rax
ret
since it can be reached from
L(stosb_more_2x_vec):
cmpq $REP_STOSB_THRESHOLD, %rdx
ja L(stosb)
[BZ #21081]
* sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
(L(stosb)): Add VZEROUPPER before ret.
(cherry picked from commit 02b78ff749f0c88771713368dbb2a09b1979814f)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
.../x86_64/multiarch/memset-vec-unaligned-erms.S | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.