Skip to content

Commit

Permalink
Update AARCH64 specific test using UNSIGNED_* comparison operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin-bhateja committed Sep 14, 2024
1 parent 71114d0 commit ec7c755
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static void testByteGTInRange_runner() {
@IR(counts = { IRNode.VMASK_CMPU_IMM_I_SVE, ">= 1" })
public static void testByteUnsignedGTInRange() {
ByteVector av = ByteVector.fromArray(B_SPECIES, ba, 0);
av.compare(VectorOperators.UNSIGNED_GT, 64).intoArray(br, 0);
av.compare(VectorOperators.UGT, 64).intoArray(br, 0);
}

@Run(test = "testByteUnsignedGTInRange")
Expand All @@ -163,7 +163,7 @@ public static void testByteGTOutOfRange() {
@IR(failOn = { IRNode.VMASK_CMPU_IMM_I_SVE })
public static void testByteUnsignedGTOutOfRange() {
ByteVector av = ByteVector.fromArray(B_SPECIES, ba, 0);
av.compare(VectorOperators.UNSIGNED_GT, -91).intoArray(br, 0);
av.compare(VectorOperators.UGT, -91).intoArray(br, 0);
}

@Test
Expand All @@ -183,7 +183,7 @@ public static void testShortGEInRange_runner() {
@IR(counts = { IRNode.VMASK_CMPU_IMM_I_SVE, ">= 1" })
public static void testShortUnsignedGEInRange() {
ShortVector av = ShortVector.fromArray(S_SPECIES, sa, 0);
av.compare(VectorOperators.UNSIGNED_GE, 56).intoArray(sr, 0);
av.compare(VectorOperators.UGE, 56).intoArray(sr, 0);
}

@Run(test = "testShortUnsignedGEInRange")
Expand All @@ -203,7 +203,7 @@ public static void testShortGEOutOfRange() {
@IR(failOn = { IRNode.VMASK_CMPU_IMM_I_SVE })
public static void testShortUnsignedGEOutOfRange() {
ShortVector av = ShortVector.fromArray(S_SPECIES, sa, 0);
av.compare(VectorOperators.UNSIGNED_GE, -85).intoArray(sr, 0);
av.compare(VectorOperators.UGE, -85).intoArray(sr, 0);
}

@Test
Expand All @@ -223,7 +223,7 @@ public static void testIntLTInRange_runner() {
@IR(counts = { IRNode.VMASK_CMPU_IMM_I_SVE, ">= 1" })
public static void testIntUnsignedLTInRange() {
IntVector av = IntVector.fromArray(I_SPECIES, ia, 0);
av.compare(VectorOperators.UNSIGNED_LT, 101).intoArray(ir, 0);
av.compare(VectorOperators.ULT, 101).intoArray(ir, 0);
}

@Run(test = "testIntUnsignedLTInRange")
Expand All @@ -243,7 +243,7 @@ public static void testIntLTOutOfRange() {
@IR(failOn = { IRNode.VMASK_CMPU_IMM_I_SVE })
public static void testIntUnsignedLTOutOfRange() {
IntVector av = IntVector.fromArray(I_SPECIES, ia, 0);
av.compare(VectorOperators.UNSIGNED_LT, -110).intoArray(ir, 0);
av.compare(VectorOperators.ULT, -110).intoArray(ir, 0);
}

@Test
Expand All @@ -263,7 +263,7 @@ public static void testLongLEInRange_runner() {
@IR(counts = { IRNode.VMASK_CMPU_IMM_L_SVE, ">= 1" })
public static void testLongUnsignedLEInRange() {
LongVector av = LongVector.fromArray(L_SPECIES, la, 0);
av.compare(VectorOperators.UNSIGNED_LE, 95).intoArray(lr, 0);
av.compare(VectorOperators.ULE, 95).intoArray(lr, 0);
}

@Run(test = "testLongUnsignedLEInRange")
Expand All @@ -283,7 +283,7 @@ public static void testLongLEOutOfRange() {
@IR(failOn = { IRNode.VMASK_CMPU_IMM_L_SVE })
public static void testLongUnsignedLEOutOfRange() {
LongVector av = LongVector.fromArray(L_SPECIES, la, 0);
av.compare(VectorOperators.UNSIGNED_LE, -99).intoArray(lr, 0);
av.compare(VectorOperators.ULE, -99).intoArray(lr, 0);
}

@Test
Expand Down

0 comments on commit ec7c755

Please sign in to comment.