RFR: 8287835: Add support for additional float/double to integral conversion for x86 [v5]

Jatin Bhateja jbhateja at openjdk.java.net
Thu Jun 9 02:12:41 UTC 2022


On Wed, 8 Jun 2022 16:28:54 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:

>> src/hotspot/cpu/x86/x86.ad line 7388:
>> 
>>> 7386:         case T_BYTE:
>>> 7387:           __ evpmovsqd($dst$$XMMRegister, $dst$$XMMRegister, vlen_enc);
>>> 7388:           __ evpmovdb($dst$$XMMRegister, $dst$$XMMRegister, vlen_enc);
>> 
>> Sub-word handling can be extended for AVX2 using packing instruction sequence similar to VectorStoreMask for quad ward lanes.
>
> D2X in general needs AVX 512 due to evcvttpd2qq.

Yes, but can't we take D2F route to cast to integer and subword range. 
D2X -> D2F(AVX2) -> F2X.

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

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


More information about the hotspot-compiler-dev mailing list