Skip to content

Commit 134c3ef

Browse files
DingliZhangRealFYang
authored andcommitted
8367293: RISC-V: enable vectorapi test for VectorMask.laneIsSet
Reviewed-by: fyang, epeter
1 parent 7fcce27 commit 134c3ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class VectorMaskLaneIsSetTest {
6969

7070
@Test
7171
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 6" }, applyIfCPUFeature = { "asimd", "true" })
72-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 6" }, applyIfCPUFeature = { "avx2", "true" })
72+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 6" }, applyIfCPUFeatureOr = { "avx2", "true", "rvv", "true" })
7373
public static void testVectorMaskLaneIsSetByte_const() {
7474
Asserts.assertEquals(ma[0], mask_b.laneIsSet(0));
7575
Asserts.assertEquals(ma[0], mask_s.laneIsSet(0));
@@ -81,7 +81,7 @@ public static void testVectorMaskLaneIsSetByte_const() {
8181

8282
@Test
8383
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
84-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx", "true" })
84+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx", "true", "rvv", "true" })
8585
public static boolean testVectorMaskLaneIsSet_Byte_variable(int i) {
8686
return mask_b.laneIsSet(i);
8787
}
@@ -93,7 +93,7 @@ public static void testVectorMaskLaneIsSet_Byte_variable_runner() {
9393

9494
@Test
9595
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
96-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx", "true" })
96+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx", "true", "rvv", "true" })
9797
public static boolean testVectorMaskLaneIsSet_Short_variable(int i) {
9898
return mask_s.laneIsSet(i);
9999
}
@@ -105,7 +105,7 @@ public static void testVectorMaskLaneIsSet_Short_variable_runner() {
105105

106106
@Test
107107
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
108-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx", "true" })
108+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx", "true", "rvv", "true" })
109109
public static boolean testVectorMaskLaneIsSet_Int_variable(int i) {
110110
return mask_i.laneIsSet(i);
111111
}
@@ -117,7 +117,7 @@ public static void testVectorMaskLaneIsSet_Int_variable_runner() {
117117

118118
@Test
119119
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
120-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx2", "true" })
120+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx2", "true", "rvv", "true" })
121121
public static boolean testVectorMaskLaneIsSet_Long_variable(int i) {
122122
return mask_l.laneIsSet(i);
123123
}
@@ -129,7 +129,7 @@ public static void testVectorMaskLaneIsSet_Long_variable_runner() {
129129

130130
@Test
131131
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
132-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx", "true" })
132+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx", "true", "rvv", "true" })
133133
public static boolean testVectorMaskLaneIsSet_Float_variable(int i) {
134134
return mask_f.laneIsSet(i);
135135
}
@@ -141,7 +141,7 @@ public static void testVectorMaskLaneIsSet_Float_variable_runner() {
141141

142142
@Test
143143
@IR(counts = { IRNode.VECTOR_MASK_LANE_IS_SET, "= 1" }, applyIfCPUFeature = { "asimd", "true" })
144-
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeature = { "avx2", "true" })
144+
@IR(counts = { IRNode.VECTOR_MASK_TO_LONG, "= 1" }, applyIfCPUFeatureOr = { "avx2", "true", "rvv", "true" })
145145
public static boolean testVectorMaskLaneIsSet_Double_variable(int i) {
146146
return mask_d.laneIsSet(i);
147147
}

0 commit comments

Comments
 (0)