public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/95220] New: Incorrect GFNI dectection
@ 2020-05-19 19:55 hjl.tools at gmail dot com
2020-05-19 21:52 ` [Bug libgcc/95220] " cvs-commit at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-19 19:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
Bug ID: 95220
Summary: Incorrect GFNI dectection
Product: gcc
Version: 10.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: ubizjak at gmail dot com
Target Milestone: ---
Target: i386, x86-64
get_available_features in libgcc/config/i386/cpuinfo.c has
if (avx512_usable)
{
...
if (ecx & bit_GFNI)
set_feature (FEATURE_GFNI);
But GFNI is independent of A X512. There are processors with SSE, AVX and
AVX512 versions of GFNI:
const wide_int_bitmask PTA_TREMONT = PTA_GOLDMONT_PLUS | PTA_CLWB
| PTA_GFNI;
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/95220] Incorrect GFNI dectection
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
@ 2020-05-19 21:52 ` cvs-commit at gcc dot gnu.org
2020-05-19 22:52 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-19 21:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:453954451be68d22462442268a29f54809182d2b
commit r11-505-g453954451be68d22462442268a29f54809182d2b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 19 14:42:12 2020 -0700
x86: Add FEATURE_AVX512VP2INTERSECT and update GFNI check
Add FEATURE_AVX512VP2INTERSECT to libgcc so that enum processor_features
in libgcc matches enum processor_features in i386-builtins.c. Update
GFNI check to support processors with SSE and AVX versions of GFNI.
PR target/95212
PR target/95220
* config/i386/cpuinfo.c (get_available_features): Fix
FEATURE_GFNI check. Also check FEATURE_AVX512VP2INTERSECT.
* config/i386/cpuinfo.h (processor_features): Add
FEATURE_AVX512VP2INTERSECT.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/95220] Incorrect GFNI dectection
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
2020-05-19 21:52 ` [Bug libgcc/95220] " cvs-commit at gcc dot gnu.org
@ 2020-05-19 22:52 ` cvs-commit at gcc dot gnu.org
2020-05-19 22:53 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-19 22:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:e54fa81e16eb5633ed09c816311135ecc434f105
commit r10-8158-ge54fa81e16eb5633ed09c816311135ecc434f105
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 19 14:42:12 2020 -0700
x86: Add FEATURE_AVX512VP2INTERSECT and update GFNI check
Add FEATURE_AVX512VP2INTERSECT to libgcc so that enum processor_features
in libgcc matches enum processor_features in i386-builtins.c. Update
GFNI check to support processors with SSE and AVX versions of GFNI.
Backport from master
PR target/95212
PR target/95220
* config/i386/cpuinfo.c (get_available_features): Fix
FEATURE_GFNI check. Also check FEATURE_AVX512VP2INTERSECT.
* config/i386/cpuinfo.h (processor_features): Add
FEATURE_AVX512VP2INTERSECT.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/95220] Incorrect GFNI dectection
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
2020-05-19 21:52 ` [Bug libgcc/95220] " cvs-commit at gcc dot gnu.org
2020-05-19 22:52 ` cvs-commit at gcc dot gnu.org
@ 2020-05-19 22:53 ` cvs-commit at gcc dot gnu.org
2020-05-19 23:04 ` hjl.tools at gmail dot com
2020-05-21 11:03 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-19 22:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:2c7b747995a687d513dddfeafa54c6af4d10dc17
commit r9-8606-g2c7b747995a687d513dddfeafa54c6af4d10dc17
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 19 14:42:12 2020 -0700
x86: Update GFNI check
Update GFNI check to support processors with SSE and AVX versions of GFNI.
Backport from master
PR target/95220
* config/i386/cpuinfo.c (get_available_features): Fix
FEATURE_GFNI check.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/95220] Incorrect GFNI dectection
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
` (2 preceding siblings ...)
2020-05-19 22:53 ` cvs-commit at gcc dot gnu.org
@ 2020-05-19 23:04 ` hjl.tools at gmail dot com
2020-05-21 11:03 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-19 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Target Milestone|--- |9.4
Resolution|--- |FIXED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 11, GCC 10.2 and GCC 9.4.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/95220] Incorrect GFNI dectection
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
` (3 preceding siblings ...)
2020-05-19 23:04 ` hjl.tools at gmail dot com
@ 2020-05-21 11:03 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-21 11:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95220
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:aad7ffb62247fce56e03b03dd696b49bbc8913e7
commit r8-10263-gaad7ffb62247fce56e03b03dd696b49bbc8913e7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 19 14:42:12 2020 -0700
x86: Update GFNI check
Update GFNI check to support processors with SSE and AVX versions of GFNI.
Backport from master
PR target/95220
* config/i386/cpuinfo.c (get_available_features): Fix
FEATURE_GFNI check.
(cherry picked from commit 1e46a443f25d26816536c0c480211714b123a1d5)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-05-21 11:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 19:55 [Bug libgcc/95220] New: Incorrect GFNI dectection hjl.tools at gmail dot com
2020-05-19 21:52 ` [Bug libgcc/95220] " cvs-commit at gcc dot gnu.org
2020-05-19 22:52 ` cvs-commit at gcc dot gnu.org
2020-05-19 22:53 ` cvs-commit at gcc dot gnu.org
2020-05-19 23:04 ` hjl.tools at gmail dot com
2020-05-21 11:03 ` 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).