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

Jie Fu jiefu at openjdk.java.net
Wed May 19 08:37:22 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

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

Commit messages:
 - 8267370: [Vector API] Fix several crashes after JDK-8256973

Changes: https://git.openjdk.java.net/jdk/pull/4109/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4109&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8267370
  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 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