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

Vladimir Kozlov kvn at openjdk.java.net
Tue Dec 21 18:09:11 UTC 2021


On Sat, 18 Dec 2021 02:15:00 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

> This patch fixes a crash spotted in `compiler/vectorapi/reshape/TestVectorCastAVX1.java` in mainline. The reason for the failure is the incorrect vector encoding of integer promotion operation leads to unsupported instruction `vpmovsxbd/vpmovsxwd ymm, xmm` on AVX1. For the same reason we currently cannot cast a short or byte vector to a 256-bit float vector on AVX1, so I also fixed that.

Thank you for explaining. These tests are not present in JDK18 and that confused me. I suggest to add new simple regression test with your changes for JDK 18 so we can verify the fix. And file a separate RFE for JDK 19 to uncomment lines in TestCastMethods.java when the fix is auto-pushed into JDK 19. 

And what about commented line 42 `makePair(BSPEC64, DSPEC256)1` ?

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

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


More information about the hotspot-compiler-dev mailing list