RFR: 8278173: [vectorapi] Add x64 intrinsics for unsigned (zero extended) casts

Sandhya Viswanathan sviswanathan at openjdk.java.net
Wed Feb 9 23:27:07 UTC 2022


On Sat, 5 Feb 2022 15:34:08 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

> Hi,
> 
> This patch implements the unsigned upcast intrinsics in x86, which are used in vector lane-wise reinterpreting operations.
> 
> Thank you very much.

src/hotspot/cpu/x86/assembler_x86.cpp line 4782:

> 4780:   vector_len == AVX_256bit? VM_Version::supports_avx2() :
> 4781:   vector_len == AVX_512bit? VM_Version::supports_evex() : 0, " ");
> 4782:   InstructionAttr attributes(vector_len, /* rex_w */ false, /* legacy_mode */ _legacy_mode_bw, /* no_mask_reg */ true, /* uses_vl */ true);

legacy_mode should be false here instead of _legacy_mode_bw.

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

PR: https://git.openjdk.java.net/jdk/pull/7358


More information about the core-libs-dev mailing list