RFR: 8267370: [Vector API] Fix several crashes after JDK-8256973 [v2]

Jie Fu jiefu at openjdk.java.net
Wed May 19 11:23:05 UTC 2021


> Hi all,
> 
> Several vector tests fail with UseAVX=1 after JDK-8256973.
> The reason is that `vpmovmskb` [1] can be only used with UseAVX > 1 [2].
> The fix just disables the intrinsics when UseAVX < 2.
> 
> Testing:
>  - jdk/incubator/vector with UseAVX={0/1/2/3} on Linux/x64
> 
> Thanks.
> Best regards,
> Jie
> 
> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L3785
> [2] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/x86/assembler_x86.cpp#L4127

Jie Fu has updated the pull request incrementally with one additional commit since the last revision:

  Enable vpmovmskb for 128-bit vectors

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4109/files
  - new: https://git.openjdk.java.net/jdk/pull/4109/files/319fe057..efc23727

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4109&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4109&range=00-01

  Stats: 11 lines in 6 files changed: 1 ins; 0 del; 10 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4109.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4109/head:pull/4109

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


More information about the hotspot-compiler-dev mailing list