From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC55C3858D32; Thu, 1 Dec 2022 22:42:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC55C3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669934561; bh=dFWiNGRxvK67+ygQ5YwShFmWotcHrt4/TD039hKH0uc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V3gzUz8Q/9y90I+RCp0WM/kI/3VcNM3oGC3J72h1YG/V1li5DcHUEMUX/4GEioxft rVObdzHvCb2EnH5SIR8kKkwaw6ViXahtWNK6hgphZ3QZH5vFjLdNREtnPR0Iy3510k kHqkFUad2fmomjdLLsaD/PnAOVBS1lBnU2IhJwh4= From: "goldstein.w.n at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug string/29839] [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0 Date: Thu, 01 Dec 2022 22:42:41 +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.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: goldstein.w.n at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29839 --- Comment #2 from Noah Goldstein --- (In reply to H.J. Lu from comment #1) > I am testing this: >=20 > diff --git a/sysdeps/x86_64/multiarch/strncpy-avx2.S > b/sysdeps/x86_64/multiarch/strncpy-avx2.S > index e9afd8fbed..3e6350ce4a 100644 > --- a/sysdeps/x86_64/multiarch/strncpy-avx2.S > +++ b/sysdeps/x86_64/multiarch/strncpy-avx2.S > @@ -52,6 +52,10 @@ >=20=20 > .section SECTION(.text), "ax", @progbits > ENTRY(STRNCPY) > +# ifdef __ILP32__ > + /* Clear the upper 32 bits. */ > + movl %edx, %edx > +# endif > /* Filter zero length strings and very long strings. Zero > length strings just return, very long strings are handled by > just running rep stos{b|l} to zero set (which will almost evex version will need the same treatment (assuming that works). --=20 You are receiving this mail because: You are on the CC list for the bug.=