[jdk18] RFR: 8278948: compiler/vectorapi/reshape/TestVectorCastAVX1.java crashes in assembler [v2]

Quan Anh Mai duke at openjdk.java.net
Wed Dec 22 18:31:10 UTC 2021


On Tue, 21 Dec 2021 19:42:27 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:

>> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   add test
>
> src/hotspot/cpu/x86/x86.ad line 1778:
> 
>> 1776:     case Op_VectorCastS2X:
>> 1777:     case Op_VectorCastI2X:
>> 1778:       if (bt != T_DOUBLE && size_in_bits == 256 && UseAVX < 2) {
> 
> CastI2X  should work with (UseAVX == 1) for (bt == T_FLOAT) so the prior code was correct for CastI2X. 
> The fix is only needed for  CastS2X and CastB2X.

AFAIK int vectors of size 256 bit are not supported on AVX1 so we cannot cast from int vectors to float vectors of size 256 anyway. So it is essentially the same.

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

PR: https://git.openjdk.java.net/jdk18/pull/46


More information about the hotspot-compiler-dev mailing list