RFR: 8289552: Make intrinsic conversions between bit representations of half precision values and floats [v11]

Smita Kamath svkamath at openjdk.org
Mon Oct 3 17:49:17 UTC 2022


On Mon, 3 Oct 2022 08:34:06 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> src/hotspot/cpu/x86/x86.ad line 3674:
>> 
>>> 3672: %}
>>> 3673: 
>>> 3674: instruct convF2HF_mem_reg(memory mem, regF src, kReg ktmp, rRegI rtmp) %{
>> 
>> You can use `kmovwl` instead which will relax the avx512bw constraint, however, you will need avx512vl for `evcvtps2ph`. Thanks.
>
> Rethink about it, you can get 0x01 by right shifting k0 to the right - `kshiftrw(ktmp, k0, 15)`

@merykitty Thanks for the suggestion. I will update the instruct to use kmovwl. I will also experiment with kshiftrw and let you know.

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

PR: https://git.openjdk.org/jdk/pull/9781


More information about the core-libs-dev mailing list