On Mon, 3 Oct 2022 08:34:06 GMT, Quan Anh Mai <qa...@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

Reply via email to