public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes
@ 2021-08-20 13:23 hjl.tools at gmail dot com
2021-08-22 13:24 ` [Bug math/28252] " cvs-commit at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-20 13:23 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28252
Bug ID: 28252
Summary: Unnecessary memory load in AVX512 SVML codes
Product: glibc
Version: 2.35
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: haochen.jiang at intel dot com
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
AVX512 SVML codes have unnecessary memory load. For example,
svml_s_sincosf16_core_avx512.S has
vmovups .L_2il0floatpacket.13(%rip), %zmm14
...
.section .rodata, "a"
.L_2il0floatpacket.13:
.long
0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff
.type .L_2il0floatpacket.13,@object
They can be replaced by
vpternlogd $0xFF, %zmm0, %zmm0, %zmm0
Any particular reason to use memory load?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug math/28252] Unnecessary memory load in AVX512 SVML codes
2021-08-20 13:23 [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes hjl.tools at gmail dot com
@ 2021-08-22 13:24 ` cvs-commit at gcc dot gnu.org
2021-08-22 13:25 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-22 13:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28252
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=78c9ec9000f873abe7a15a91b87080a2e4308260
commit 78c9ec9000f873abe7a15a91b87080a2e4308260
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 20 06:42:24 2021 -0700
x86-64: Optimize load of all bits set into ZMM register [BZ #28252]
Optimize loads of all bits set into ZMM register in AVX512 SVML codes
by replacing
vpbroadcastq .L_2il0floatpacket.16(%rip), %zmmX
and
vmovups .L_2il0floatpacket.13(%rip), %zmmX
with
vpternlogd $0xff, %zmmX, %zmmX, %zmmX
This fixes BZ #28252.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug math/28252] Unnecessary memory load in AVX512 SVML codes
2021-08-20 13:23 [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes hjl.tools at gmail dot com
2021-08-22 13:24 ` [Bug math/28252] " cvs-commit at gcc dot gnu.org
@ 2021-08-22 13:25 ` hjl.tools at gmail dot com
2022-04-27 2:00 ` cvs-commit at gcc dot gnu.org
2022-05-02 21:30 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-22 13:25 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28252
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 2.35.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug math/28252] Unnecessary memory load in AVX512 SVML codes
2021-08-20 13:23 [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes hjl.tools at gmail dot com
2021-08-22 13:24 ` [Bug math/28252] " cvs-commit at gcc dot gnu.org
2021-08-22 13:25 ` hjl.tools at gmail dot com
@ 2022-04-27 2:00 ` cvs-commit at gcc dot gnu.org
2022-05-02 21:30 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-27 2:00 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28252
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.34/master branch has been updated by Sunil Pandey
<skpgkp2@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=16245986fb9bfe396113fc7dfd1929f69a9e748e
commit 16245986fb9bfe396113fc7dfd1929f69a9e748e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 20 06:42:24 2021 -0700
x86-64: Optimize load of all bits set into ZMM register [BZ #28252]
Optimize loads of all bits set into ZMM register in AVX512 SVML codes
by replacing
vpbroadcastq .L_2il0floatpacket.16(%rip), %zmmX
and
vmovups .L_2il0floatpacket.13(%rip), %zmmX
with
vpternlogd $0xff, %zmmX, %zmmX, %zmmX
This fixes BZ #28252.
(cherry picked from commit 78c9ec9000f873abe7a15a91b87080a2e4308260)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug math/28252] Unnecessary memory load in AVX512 SVML codes
2021-08-20 13:23 [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes hjl.tools at gmail dot com
` (2 preceding siblings ...)
2022-04-27 2:00 ` cvs-commit at gcc dot gnu.org
@ 2022-05-02 21:30 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-02 21:30 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28252
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.33/master branch has been updated by Sunil Pandey
<skpgkp2@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c09d92d4f657560bf884c735bc8fdd53e4276367
commit c09d92d4f657560bf884c735bc8fdd53e4276367
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 20 06:42:24 2021 -0700
x86-64: Optimize load of all bits set into ZMM register [BZ #28252]
Optimize loads of all bits set into ZMM register in AVX512 SVML codes
by replacing
vpbroadcastq .L_2il0floatpacket.16(%rip), %zmmX
and
vmovups .L_2il0floatpacket.13(%rip), %zmmX
with
vpternlogd $0xff, %zmmX, %zmmX, %zmmX
This fixes BZ #28252.
(cherry picked from commit 78c9ec9000f873abe7a15a91b87080a2e4308260)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-05-02 21:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 13:23 [Bug math/28252] New: Unnecessary memory load in AVX512 SVML codes hjl.tools at gmail dot com
2021-08-22 13:24 ` [Bug math/28252] " cvs-commit at gcc dot gnu.org
2021-08-22 13:25 ` hjl.tools at gmail dot com
2022-04-27 2:00 ` cvs-commit at gcc dot gnu.org
2022-05-02 21:30 ` cvs-commit at gcc dot gnu.org
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).