Skip to content

Commit 0a834cd

Browse files
committed
apply a IR verification only for cpu feature
1 parent 3fa535b commit 0a834cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hotspot/jtreg/compiler/vectorization/TestOptionVectorizeIR.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public void runTest6() {
123123
}
124124

125125
@Test
126-
@IR(counts = {IRNode.POPULATE_INDEX, "> 0"})
127-
@IR(counts = {IRNode.STORE_VECTOR, "> 0"})
126+
@IR(applyIfCPUFeatureOr = {"avx2", "true", "sve", "true"}, counts = {IRNode.POPULATE_INDEX, "> 0"})
127+
@IR(applyIfCPUFeatureOr = {"avx2", "true", "sve", "true"}, counts = {IRNode.STORE_VECTOR, "> 0"})
128128
static void test1(int[] data) {
129129
for (int j = 0; j < RANGE; j++) {
130130
// Vectorizes even if it is not forced

0 commit comments

Comments
 (0)