public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98348] New: GCC 10.2 AVX512 Mask regression from GCC 9
@ 2020-12-17 14:43 danielhanchen at gmail dot com
  2020-12-17 14:45 ` [Bug c++/98348] " danielhanchen at gmail dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: danielhanchen at gmail dot com @ 2020-12-17 14:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348

            Bug ID: 98348
           Summary: GCC 10.2 AVX512 Mask regression from GCC 9
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danielhanchen at gmail dot com
  Target Milestone: ---

In GCC 9, vector comparisons on 128 and 256bit vectors on a AVX512 machine used
vpcmpeqd without any masks.

In GCC 10, for 128bit and 256bit vectors, AVX512 mask instructions are used.
https://gcc.godbolt.org/z/1sPzM5

GCC 10 should follow GCC 9 for vector comparisons when a mask is not needed.

The reason why is https://uops.info/table.html shows that using mask registers
makes 128/256/512 operations have a throughput of 1 and a latency of 3.

However, using a vector comparison directly has a throughput of 2 and a latency
of 1.

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2022-01-12  6:15 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 14:43 [Bug c++/98348] New: GCC 10.2 AVX512 Mask regression from GCC 9 danielhanchen at gmail dot com
2020-12-17 14:45 ` [Bug c++/98348] " danielhanchen at gmail dot com
2020-12-17 16:26 ` hjl.tools at gmail dot com
2020-12-17 19:34 ` jakub at gcc dot gnu.org
2020-12-18  1:37 ` crazylht at gmail dot com
2020-12-19  2:50 ` crazylht at gmail dot com
2020-12-19 10:22 ` jakub at gcc dot gnu.org
2020-12-19 10:47 ` jakub at gcc dot gnu.org
2020-12-19 11:22 ` jakub at gcc dot gnu.org
2020-12-21 11:23 ` crazylht at gmail dot com
2020-12-21 11:25 ` crazylht at gmail dot com
2020-12-21 11:32 ` jakub at gcc dot gnu.org
2020-12-21 12:12 ` crazylht at gmail dot com
2020-12-22  9:14 ` crazylht at gmail dot com
2021-01-04  6:51 ` crazylht at gmail dot com
2021-01-05  8:21 ` [Bug target/98348] [10/11 Regression] " rguenth at gcc dot gnu.org
2021-01-21 11:52 ` jakub at gcc dot gnu.org
2021-01-21 13:38 ` crazylht at gmail dot com
2021-01-22  4:37 ` cvs-commit at gcc dot gnu.org
2021-01-22  4:40 ` crazylht at gmail dot com
2021-04-08 12:02 ` [Bug target/98348] [10 " rguenth at gcc dot gnu.org
2021-04-11 13:17 ` david.bolvansky at gmail dot com
2021-04-16  7:43 ` crazylht at gmail dot com
2021-05-07  2:25 ` crazylht at gmail dot com
2022-01-12  1:14 ` crazylht at gmail dot com
2022-01-12  5:58 ` cvs-commit at gcc dot gnu.org
2022-01-12  5:59 ` crazylht at gmail dot com
2022-01-12  6:15 ` pinskia at gcc dot gnu.org
2022-01-12  6:15 ` pinskia 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).