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: Mon, 30 Jan 2017 19:01:06 +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 #1 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, master has been updated
via 02b78ff749f0c88771713368dbb2a09b1979814f (commit)
from f8bf15febcaf137bbec5a61101e88cd5a9d56ca8 (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=02b78ff749f0c88771713368dbb2a09b1979814f
commit 02b78ff749f0c88771713368dbb2a09b1979814f
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.
-----------------------------------------------------------------------
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.