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

            Bug ID: 98460
           Summary: _builtin_cpu_supports("sha") missing
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: felix-gcc at fefe dot de
  Target Milestone: ---

gcc offers a useful builtin around the cpuid instruction on x86 and x86_64,
which can be used to check for specific instruction set extensions, e.g.

  if (_builtin_cpu_supports("avx2"))

I need to check for the SHA-NI extension, which does not appear to be
supported.
However, checking for AES-NI is supported with the string "aes".

Reply via email to