From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67FDF3835411; Mon, 1 Mar 2021 13:27:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67FDF3835411 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug string/27457] vzeroupper use in AVX2 multiarch string functions cause HTM aborts Date: Mon, 01 Mar 2021 13:27:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: 2.34 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2021 13:27:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27457 --- Comment #12 from H.J. Lu --- (In reply to Florian Weimer from comment #9) > (In reply to rguenther from comment #7) > > On Mon, 1 Mar 2021, fweimer at redhat dot com wrote: > > > The sources do not seem to show the selection logic. > > > __memset_avx2_unaligned_rtm seems to simply have dropped the VZEROUPP= ER > > > instruction, which can't be good for general application performance. > >=20 > > The intent was to use %ymm16+ only which does not cause any transition > > penalty even w/o vzeroupper. >=20 > I still saw %ymm0 usage in the disassembly, if I recall correctly. And for > AVX2, there isn't much choice. I didn't try to reverse-engineer the > corresponding IFUNC selector. >=20 memset-evex-unaligned-erms.S has # define VEC_SIZE 32 # define XMM0 xmm16 # define YMM0 ymm16 # define VEC0 ymm16 # define VEC(i) VEC##i # define VMOVU vmovdqu64 # define VMOVA vmovdqa64 # define VZEROUPPER There are no %ymm0 nor vzeroupper. --=20 You are receiving this mail because: You are on the CC list for the bug.=