What is the builtin for _mm_sha256rnds2_epu32?
Tue Apr 18 08:39:00 GMT 2017
On Tue, Apr 18, 2017 at 4:32 AM, Marc Glisse <email@example.com> wrote:
> On Tue, 18 Apr 2017, Jeffrey Walton wrote:
>> I'm having trouble locating the builtin functions for the SHA
>> extensions. The 5.4 and 6.3 docs do not list them. (See, for example,
>> What are the builtin functions for the various SHA extensions, like
> Uh, open the file shaintrin.h and see what builtins are used there? Why are
> you looking at the builtins anyway? I can see why people use intrinsics, or
> why they use inline asm, but not builtins.
We can't use intrinsics because they are only available when -msha is
used during compile. Some compilers don't add the necessary flags,
even with -march=native. Some users and distros don't add that flag.
Also see GCC Issue 57202.
More information about the Gcc-help