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

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).