https://bugs.llvm.org/show_bug.cgi?id=48614

            Bug ID: 48614
           Summary: _builtin_cpu_supports is missing a check for sha
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

You can use _builtin_cpu_supports("aes") to check for AES-NI but you can't use
_builtin_cpu_supports("sha") to check for SHA-NI support in the CPU.

This builtin was invented by gcc and they are missing a way to check for sha as
well. I filed a bug with them, too. It would be great if both clang and gcc
added this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to