Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8281544: assert(VM_Version::supports_avx512bw()) failed for Tests jdk…
…/incubator/vector/

Backport-of: 4e0b81c596f2a2eae49127b9ee98c80500b4e319
  • Loading branch information
TheRealMDoerr committed Mar 30, 2022
1 parent 9068185 commit 6eaf579
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/x86/gc/z/zBarrierSetAssembler_x86.cpp
Expand Up @@ -452,7 +452,7 @@ class ZSaveLiveRegisters {

void opmask_register_save(KRegister reg) {
_spill_offset -= 8;
__ kmovql(Address(rsp, _spill_offset), reg);
__ kmov(Address(rsp, _spill_offset), reg);
}

void gp_register_restore(Register reg) {
Expand All @@ -461,7 +461,7 @@ class ZSaveLiveRegisters {
}

void opmask_register_restore(KRegister reg) {
__ kmovql(reg, Address(rsp, _spill_offset));
__ kmov(reg, Address(rsp, _spill_offset));
_spill_offset += 8;
}

Expand Down
12 changes: 12 additions & 0 deletions test/jdk/jdk/incubator/vector/VectorMaxConversionTests.java
Expand Up @@ -40,6 +40,18 @@
* VectorMaxConversionTests
*/

/*
* @test
* @bug 8281544
* @summary Test that ZGC and vectorapi with KNL work together.
* @requires vm.gc.Z
* @modules jdk.incubator.vector
* @modules java.base/jdk.internal.vm.annotation
* @run testng/othervm -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED
* -XX:+UnlockDiagnosticVMOptions -XX:+UseKNLSetting -XX:+UseZGC -XX:+IgnoreUnrecognizedVMOptions
* VectorMaxConversionTests
*/

@Test
public class VectorMaxConversionTests extends AbstractVectorConversionTest {

Expand Down

1 comment on commit 6eaf579

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.