Skip to content

Commit e9e33fc

Browse files
committed
RISC-V: C2: Support Zvbb Vector And-Not instruction
fix the Test format
1 parent f265ddf commit e9e33fc

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

test/hotspot/jtreg/compiler/lib/ir_framework/IRNode.java

+12-4
Original file line numberDiff line numberDiff line change
@@ -1985,18 +1985,26 @@ public class IRNode {
19851985
public static final String VAND_NOT_I = PREFIX + "VAND_NOT_I" + POSTFIX;
19861986
static {
19871987
machOnlyNameRegex(VAND_NOT_I, "vand_notI");
1988-
machOnlyNameRegex(VAND_NOT_I, "vandnI");
19891988
}
19901989

19911990
public static final String VAND_NOT_L = PREFIX + "VAND_NOT_L" + POSTFIX;
19921991
static {
19931992
machOnlyNameRegex(VAND_NOT_L, "vand_notL");
1994-
machOnlyNameRegex(VAND_NOT_L, "vandnL");
19951993
}
19961994

1997-
public static final String VAND_NOT_I_MASKED = PREFIX + "VAND_NOT_I_MASKED" + POSTFIX;
1995+
public static final String RISCV_VAND_NOT_I = PREFIX + "RISCV_VAND_NOT_I" + POSTFIX;
19981996
static {
1999-
machOnlyNameRegex(VAND_NOT_I_MASKED, "vandnI_masked");
1997+
machOnlyNameRegex(RISCV_VAND_NOT_I, "vandnI");
1998+
}
1999+
2000+
public static final String RISCV_VAND_NOT_L = PREFIX + "RISCV_VAND_NOT_L" + POSTFIX;
2001+
static {
2002+
machOnlyNameRegex(RISCV_VAND_NOT_L, "vandnL");
2003+
}
2004+
2005+
public static final String RISCV_VAND_NOT_I_MASKED = PREFIX + "RISCV_VAND_NOT_I_MASKED" + POSTFIX;
2006+
static {
2007+
machOnlyNameRegex(RISCV_VAND_NOT_I_MASKED, "vandnI_masked");
20002008
}
20012009

20022010
public static final String VECTOR_BLEND_B = VECTOR_PREFIX + "VECTOR_BLEND_B" + POSTFIX;

test/hotspot/jtreg/compiler/vectorapi/VectorAndNotMatchRuleTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @key randomness
4343
* @library /test/lib /
4444
* @requires vm.compiler2.enabled
45-
* @requires os.arch == "riscv64" & vm.cpu.features ~= ".*zvbb.*"
45+
* @requires os.arch == "riscv64"
4646
* @summary RISCV: [vector] zvbb extension And-Not support Test for match rules
4747
* @modules jdk.incubator.vector
4848
*
@@ -84,7 +84,7 @@ public class VectorAndNotMatchRuleTest {
8484

8585
@Test
8686
@Warmup(10000)
87-
@IR(counts = { IRNode.VAND_NOT_I, " >= 1" }, applyIf = {"UseZvbb", "> 0"})
87+
@IR(counts = { IRNode.RISCV_VAND_NOT_I, " >= 1" }, applyIf = {"UseZvbb", "> 0"})
8888
public static void testVectorVAndNotI() {
8989
IntVector av = IntVector.fromArray(I_SPECIES, ia, 0);
9090
IntVector bv = IntVector.fromArray(I_SPECIES, ib, 0);
@@ -98,7 +98,7 @@ public static void testVectorVAndNotI() {
9898

9999
@Test
100100
@Warmup(10000)
101-
@IR(counts = { IRNode.VAND_NOT_L, " >= 1" }, applyIf = {"UseZvbb", "> 0"})
101+
@IR(counts = { IRNode.RISCV_VAND_NOT_L, " >= 1" }, applyIf = {"UseZvbb", "> 0"})
102102
public static void testVectorVAndNotL() {
103103
VectorMask<Long> avm = VectorMask.fromArray(L_SPECIES, ma, 0);
104104
VectorMask<Long> bvm = VectorMask.fromArray(L_SPECIES, mb, 0);
@@ -113,7 +113,7 @@ public static void testVectorVAndNotL() {
113113

114114
@Test
115115
@Warmup(10000)
116-
@IR(counts = { IRNode.VAND_NOT_I_MASKED, " >= 1" }, applyIf = {"UseZvbb", "> 0"} )
116+
@IR(counts = { IRNode.RISCV_VAND_NOT_I_MASKED, " >= 1" }, applyIf = {"UseZvbb", "> 0"} )
117117
public static void testVectorVAndNotIMasked() {
118118
VectorMask<Integer> avm = VectorMask.fromArray(I_SPECIES, ma, 0);
119119
IntVector av = IntVector.fromArray(I_SPECIES, ia, 0);

0 commit comments

Comments
 (0)