Skip to content

Commit 801469d

Browse files
committed
8392195: [PPC64] Several vector tests fail on Power8
Reviewed-by: mbaesken, rrich
1 parent e69047e commit 801469d

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎test/hotspot/jtreg/compiler/vectorapi/TestVectorFallbackInlining.java‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,17 @@ public class TestVectorFallbackInlining {
7878
"-XX:CompileCommand=inline,jdk.internal.vm.vector.VectorSupport::insert";
7979

8080
public static void main(String[] args) {
81+
// Note: Some platforms don't activate EnableVectorSupport by default. Required here.
8182
TestFramework.runWithFlags("--add-modules=jdk.incubator.vector",
8283
FORCE_INLINE_FALLBACK,
83-
"-XX:+IncrementalInlineVector");
84+
"-XX:+IncrementalInlineVector",
85+
"-XX:+UnlockExperimentalVMOptions",
86+
"-XX:+EnableVectorSupport");
8487
TestFramework.runWithFlags("--add-modules=jdk.incubator.vector",
8588
FORCE_INLINE_FALLBACK,
86-
"-XX:-IncrementalInlineVector");
89+
"-XX:-IncrementalInlineVector",
90+
"-XX:+UnlockExperimentalVMOptions",
91+
"-XX:+EnableVectorSupport");
8792
}
8893

8994
@Test

‎test/hotspot/jtreg/compiler/vectorapi/VectorMaskCompareNotTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @library /test/lib /
3636
* @summary test combining vector not operation with compare
3737
* @modules jdk.incubator.vector
38-
* @requires vm.opt.final.MaxVectorSize == "null" | vm.opt.final.MaxVectorSize >= 16
38+
* @requires vm.opt.final.MaxVectorSize == null | vm.opt.final.MaxVectorSize >= 16
3939
*
4040
* @run driver compiler.vectorapi.VectorMaskCompareNotTest
4141
*/

‎test/hotspot/jtreg/compiler/vectorapi/reshape/TestVectorReinterpret.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@
3939
* @modules jdk.incubator.vector
4040
* @modules java.base/jdk.internal.misc
4141
* @summary Test that vector reinterpret intrinsics work as intended.
42-
* @requires os.arch != "riscv64" | vm.cpu.features ~= ".*rvv.*"
42+
* @requires vm.opt.final.MaxVectorSize == null | vm.opt.final.MaxVectorSize >= 16
4343
* @library /test/lib /
4444
* @run main compiler.vectorapi.reshape.TestVectorReinterpret
4545
*/

0 commit comments

Comments
 (0)