public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug string/29839] New: [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0
@ 2022-12-01 22:24 hjl.tools at gmail dot com
2022-12-01 22:31 ` [Bug string/29839] " hjl.tools at gmail dot com
2022-12-01 22:42 ` goldstein.w.n at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2022-12-01 22:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29839
Bug ID: 29839
Summary: [2.37 Regression] Wrong result in function
__strncpy_avx2: 75 != 0
Product: glibc
Version: 2.37
Status: NEW
Severity: normal
Priority: P2
Component: string
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: goldstein.w.n at gmail dot com
Target Milestone: ---
Target: x32
987f8647e8 scripts: Add "|" operator support to glibcpp's parsing
gave
string/tst-size_t-strncpy: Wrong result in function __strncpy_avx2: 75 != 0
on x32.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug string/29839] [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0
2022-12-01 22:24 [Bug string/29839] New: [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0 hjl.tools at gmail dot com
@ 2022-12-01 22:31 ` hjl.tools at gmail dot com
2022-12-01 22:42 ` goldstein.w.n at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2022-12-01 22:31 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29839
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
I am testing this:
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 @@
.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
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug string/29839] [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0
2022-12-01 22:24 [Bug string/29839] New: [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0 hjl.tools at gmail dot com
2022-12-01 22:31 ` [Bug string/29839] " hjl.tools at gmail dot com
@ 2022-12-01 22:42 ` goldstein.w.n at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: goldstein.w.n at gmail dot com @ 2022-12-01 22:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29839
--- Comment #2 from Noah Goldstein <goldstein.w.n at gmail dot com> ---
(In reply to H.J. Lu from comment #1)
> I am testing this:
>
> 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 @@
>
> .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).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-01 22:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-01 22:24 [Bug string/29839] New: [2.37 Regression] Wrong result in function __strncpy_avx2: 75 != 0 hjl.tools at gmail dot com
2022-12-01 22:31 ` [Bug string/29839] " hjl.tools at gmail dot com
2022-12-01 22:42 ` goldstein.w.n 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).