On Fri, 13 Nov 2026 19:22:34 GMT, Vladimir Kozlov <[email protected]> wrote:
>> Volodymyr Paprotski has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> third round of comments from Sandhya
>
> src/hotspot/cpu/x86/assembler_x86.cpp line 1523:
>
>> 1521:
>> 1522: void Assembler::vaesdec(XMMRegister dst, XMMRegister nds, XMMRegister
>> src, int vector_len) {
>> 1523: assert(VM_Version::supports_vaes(), "");
>
> You moved clearing CPU_VAES feature from under `UseAVX < 2` to `UseAVX < 3`.
> I assume `vaes*` can be used with `UseAVX=2` now. With `UseAVX=2` 256 bits
> instructions could be generated even if 512 is requested. You need additional
> asserts which check that `vector_len = 512` needs `evex` support.
done. Not the exhaustive list I had removed before, but sufficient/conservative
four our cases. I think
> src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp line 542:
>
>> 540:
>> 541: // Constants/parameters
>> 542: int totalRegs = VM_Version::supports_avx512vl() ? 32 : 16;
>
> `keysAndRounds` generation uses `pshufb` (line 653) which requires AVX512BW.
> Consider using `supports_avx512vlbw()` here.
Thanks for catching, done.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33128#discussion_r4607669537
PR Review Comment: https://git.openjdk.org/jdk/pull/33128#discussion_r4591796264