RFR: 8341527: AVX-512 intrinsic for SHA3 [v4]

Ferenc Rakoczi duke at openjdk.org
Wed Oct 16 17:37:10 UTC 2024


On Wed, 16 Oct 2024 17:02:23 GMT, Volodymyr Paprotski <duke at openjdk.org> wrote:

>> Added the #ifdef.
>
> The 'rest' of the comment I owed you.. need `AVX512F`, `AVX512DQ`, `AVX512BW`.
> So you will need `supports_avx512bwdq()` here
> 
> "Showing my (math) work.."
> 
> grep '__ ' src/hotspot/cpu/x86/stubGenerator_x86_64_sha3.cpp | sed -e 's| *__ *||' -e 's|(.*||' | sort -u
> (only using the full 512 versions, no need for VL)
> evmovdquq  AVX512F
> evmovdquw  AVX512BW
> evpermt2q  AVX512F
> evprolq    AVX512F
> evprolvq   AVX512F
> evpxorq    AVX512F
> vpternlogq AVX512F
> kmovbl     AVX512DQ
> ...

Thanks! I will change the kmovbl()s to kmovwl() and then supports_avx512bw() will suffice.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21352#discussion_r1803539650


More information about the hotspot-dev mailing list