@@ -164,7 +164,7 @@ public static void testMaskedAndMinusOne1() {
164
164
@ Test
165
165
@ Warmup (10000 )
166
166
@ IR (counts = {IRNode .LOAD_VECTOR , ">=1" })
167
- @ IR (failOn = IRNode .AND_V , applyIfCPUFeature = {"asimd" , "true" }, applyIf = { "UseSVE " , "0 " })
167
+ @ IR (failOn = IRNode .AND_V , applyIfCPUFeatureAnd = {"asimd" , "true" , "sve " , "false " })
168
168
public static void testMaskedAndMinusOne2 () {
169
169
VectorMask <Byte > mask = VectorMask .fromArray (B_SPECIES , m , 0 );
170
170
ByteVector av = ByteVector .fromArray (B_SPECIES , ba , 0 );
@@ -185,7 +185,7 @@ public static void testMaskedAndMinusOne2() {
185
185
@ Test
186
186
@ Warmup (10000 )
187
187
@ IR (counts = {IRNode .STORE_VECTOR , ">=1" })
188
- @ IR (failOn = IRNode .AND_V , applyIfCPUFeature = {"asimd" , "true" }, applyIf = { "UseSVE " , "0 " })
188
+ @ IR (failOn = IRNode .AND_V , applyIfCPUFeatureAnd = {"asimd" , "true" , "sve " , "false " })
189
189
public static void testMaskedAndZero1 () {
190
190
VectorMask <Short > mask = VectorMask .fromArray (S_SPECIES , m , 0 );
191
191
ShortVector av = ShortVector .fromArray (S_SPECIES , sa , 0 );
@@ -302,8 +302,7 @@ public static void testAndSameValue4() {
302
302
// Transform AndV(AndV(a, b, m), b, m) ==> AndV(a, b, m)
303
303
@ Test
304
304
@ Warmup (10000 )
305
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
306
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
305
+ @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
307
306
public static void testAndMaskSameValue1 () {
308
307
VectorMask <Integer > mask = VectorMask .fromArray (I_SPECIES , m , 0 );
309
308
IntVector av = IntVector .fromArray (I_SPECIES , ia , 0 );
@@ -324,8 +323,7 @@ public static void testAndMaskSameValue1() {
324
323
// Transform AndV(AndV(a, b, m), a, m) ==> AndV(a, b, m)
325
324
@ Test
326
325
@ Warmup (10000 )
327
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
328
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
326
+ @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
329
327
public static void testAndMaskSameValue2 () {
330
328
VectorMask <Long > mask = VectorMask .fromArray (L_SPECIES , m , 0 );
331
329
LongVector av = LongVector .fromArray (L_SPECIES , la , 0 );
@@ -346,8 +344,7 @@ public static void testAndMaskSameValue2() {
346
344
// Transform AndV(a, AndV(a, b, m), m) ==> AndV(a, b, m)
347
345
@ Test
348
346
@ Warmup (10000 )
349
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
350
- @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
347
+ @ IR (counts = {IRNode .AND_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
351
348
public static void testAndMaskSameValue3 () {
352
349
VectorMask <Integer > mask = VectorMask .fromArray (I_SPECIES , m , 0 );
353
350
IntVector av = IntVector .fromArray (I_SPECIES , ia , 0 );
@@ -412,7 +409,7 @@ public static void testOrSame() {
412
409
@ Test
413
410
@ Warmup (10000 )
414
411
@ IR (counts = {IRNode .STORE_VECTOR , ">=1" })
415
- @ IR (failOn = IRNode .OR_V , applyIfCPUFeature = {"asimd" , "true" }, applyIf = { "UseSVE " , "0 " })
412
+ @ IR (failOn = IRNode .OR_V , applyIfCPUFeatureAnd = {"asimd" , "true" , "sve " , "false " })
416
413
public static void testMaskedOrMinusOne1 () {
417
414
VectorMask <Byte > mask = VectorMask .fromArray (B_SPECIES , m , 0 );
418
415
ByteVector av = ByteVector .fromArray (B_SPECIES , ba , 0 );
@@ -471,7 +468,7 @@ public static void testMaskedOrZero1() {
471
468
@ Test
472
469
@ Warmup (10000 )
473
470
@ IR (counts = {IRNode .LOAD_VECTOR , ">=1" })
474
- @ IR (failOn = IRNode .OR_V , applyIfCPUFeature = {"asimd" , "true" }, applyIf = { "UseSVE " , "0 " })
471
+ @ IR (failOn = IRNode .OR_V , applyIfCPUFeatureAnd = {"asimd" , "true" , "sve " , "false " })
475
472
public static void testMaskedOrZero2 () {
476
473
VectorMask <Byte > mask = VectorMask .fromArray (B_SPECIES , m , 0 );
477
474
ByteVector av = ByteVector .fromArray (B_SPECIES , ba , 0 );
@@ -569,8 +566,7 @@ public static void testOrSameValue4() {
569
566
// Transform OrV(OrV(a, b, m), b, m) ==> OrV(a, b, m)
570
567
@ Test
571
568
@ Warmup (10000 )
572
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
573
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
569
+ @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
574
570
public static void testOrMaskSameValue1 () {
575
571
VectorMask <Integer > mask = VectorMask .fromArray (I_SPECIES , m , 0 );
576
572
IntVector av = IntVector .fromArray (I_SPECIES , ia , 0 );
@@ -591,8 +587,7 @@ public static void testOrMaskSameValue1() {
591
587
// Transform OrV(OrV(a, b, m), a, m) ==> OrV(a, b, m)
592
588
@ Test
593
589
@ Warmup (10000 )
594
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
595
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
590
+ @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
596
591
public static void testOrMaskSameValue2 () {
597
592
VectorMask <Long > mask = VectorMask .fromArray (L_SPECIES , m , 0 );
598
593
LongVector av = LongVector .fromArray (L_SPECIES , la , 0 );
@@ -613,8 +608,7 @@ public static void testOrMaskSameValue2() {
613
608
// Transform OrV(a, OrV(a, b, m), m) ==> OrV(a, b, m)
614
609
@ Test
615
610
@ Warmup (10000 )
616
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"sve" , "true" }, applyIf = {"UseSVE" , "> 0" })
617
- @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeature = {"avx512" , "true" })
611
+ @ IR (counts = {IRNode .OR_V , "1" }, applyIfCPUFeatureOr = {"sve" , "true" , "avx512" , "true" })
618
612
public static void testOrMaskSameValue3 () {
619
613
VectorMask <Integer > mask = VectorMask .fromArray (I_SPECIES , m , 0 );
620
614
IntVector av = IntVector .fromArray (I_SPECIES , ia , 0 );
@@ -653,7 +647,7 @@ public static void testXorSame() {
653
647
@ Test
654
648
@ Warmup (10000 )
655
649
@ IR (counts = {IRNode .STORE_VECTOR , ">=1" })
656
- @ IR (failOn = IRNode .XOR_V , applyIfCPUFeature = {"asimd" , "true" }, applyIf = { "UseSVE " , "0 " })
650
+ @ IR (failOn = IRNode .XOR_V , applyIfCPUFeatureAnd = {"asimd" , "true" , "sve " , "false " })
657
651
public static void testMaskedXorSame () {
658
652
VectorMask <Short > mask = VectorMask .fromArray (S_SPECIES , m , 0 );
659
653
ShortVector av = ShortVector .fromArray (S_SPECIES , sa , 0 );
0 commit comments