[Bug target/104998] Incorrect __cpuid usage

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 21 21:50:46 GMT 2022


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

--- 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:d0363a80690a299179d010c1d8a6d6430e7eb73f

commit r12-7742-gd0363a80690a299179d010c1d8a6d6430e7eb73f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Mar 21 06:50:14 2022 -0700

    x86: Properly check FEATURE_AESKLE

    1. Pass 0x19 to __cpuid for bit_AESKLE.
    2. Enable FEATURE_AESKLE only if bit_AESKLE is set.

            PR target/104998
            * common/config/i386/cpuinfo.h (get_available_features): Pass
            0x19 to __cpuid for bit_AESKLE.  Enable FEATURE_AESKLE only if
            bit_AESKLE is set.


More information about the Gcc-bugs mailing list