fix IR rule that failed on neon

This commit is contained in:
Emanuel Peter 2026-01-27 17:06:04 +01:00
parent 3abe02a0c5
commit 0d585b18f6

View File

@ -272,7 +272,8 @@ public class TestVectorAlgorithms {
@Test @Test
@IR(counts = {IRNode.ADD_VI, "> 0", @IR(counts = {IRNode.ADD_VI, "> 0",
IRNode.STORE_VECTOR, "> 0"}, IRNode.STORE_VECTOR, "> 0"},
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"}) applyIfCPUFeature = {"sse4.1", "true"})
// Note: also works with NEON/asimd, but only with TieredCompilation.
public Object iotaI_VectorAPI(int[] r) { public Object iotaI_VectorAPI(int[] r) {
return VectorAlgorithmsImpl.iotaI_VectorAPI(r); return VectorAlgorithmsImpl.iotaI_VectorAPI(r);
} }