Skip to content

Commit 2b55979

Browse files
author
Hamlin Li
committed
8352529: RISC-V: enable loopopts tests
Reviewed-by: fyang, luhenry, rehn
1 parent 8469458 commit 2b55979

10 files changed

+190
-190
lines changed

test/hotspot/jtreg/compiler/loopopts/superword/TestAlignVector.java

Lines changed: 70 additions & 70 deletions
Large diffs are not rendered by default.

test/hotspot/jtreg/compiler/loopopts/superword/TestCompatibleUseDefTypeSize.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static void verifyD(String name, int i, double[] g, double[] r) {
315315
@Test
316316
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
317317
applyIfPlatform = {"64-bit", "true"},
318-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
318+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
319319
// "inflate" method: 1 byte -> 2 byte.
320320
// Java scalar code has no explicit conversion.
321321
// Vector code would need a conversion. We may add this in the future.
@@ -329,7 +329,7 @@ static Object[] test0(byte[] src, char[] dst) {
329329
@Test
330330
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
331331
applyIfPlatform = {"64-bit", "true"},
332-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
332+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
333333
// "inflate" method: 1 byte -> 2 byte.
334334
// Java scalar code has no explicit conversion.
335335
// Vector code would need a conversion. We may add this in the future.
@@ -343,7 +343,7 @@ static Object[] test1(byte[] src, char[] dst) {
343343
@Test
344344
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
345345
applyIfPlatform = {"64-bit", "true"},
346-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
346+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
347347
// "deflate" method: 2 byte -> 1 byte.
348348
// Java scalar code has no explicit conversion.
349349
// Vector code would need a conversion. We may add this in the future.
@@ -360,7 +360,7 @@ static Object[] test2(byte[] src, char[] dst) {
360360
IRNode.STORE_VECTOR, "> 0"},
361361
applyIfPlatform = {"64-bit", "true"},
362362
applyIf = {"AlignVector", "false"}, // a[i] and a[i+1] cannot both be aligned.
363-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
363+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
364364
// Used to not vectorize because of "alignment boundaries".
365365
// Assume 64 byte vector width:
366366
// a[i+0:i+15] and a[i+1:i+16], each are 4 * 16 = 64 byte.
@@ -378,7 +378,7 @@ static Object[] test3(int[] a, int[] b) {
378378
IRNode.STORE_VECTOR, "> 0"},
379379
applyIfPlatform = {"64-bit", "true"},
380380
applyIf = {"AlignVector", "false"}, // a[i] and a[i+1] cannot both be aligned.
381-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
381+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
382382
// same as test3, but hand-unrolled
383383
static Object[] test4(int[] a, int[] b) {
384384
for (int i = 0; i < a.length-2; i+=2) {
@@ -391,7 +391,7 @@ static Object[] test4(int[] a, int[] b) {
391391
@Test
392392
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
393393
applyIfPlatform = {"64-bit", "true"},
394-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
394+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
395395
// In theory, one would expect this to be a simple 4byte -> 4byte conversion.
396396
// But there is a CmpF and CMove here because we check for isNaN. Plus a MoveF2I.
397397
//
@@ -406,7 +406,7 @@ static Object[] test5(int[] a, float[] b) {
406406
@Test
407407
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
408408
applyIfPlatform = {"64-bit", "true"},
409-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
409+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
410410
// Missing support for MoveF2I
411411
static Object[] test6(int[] a, float[] b) {
412412
for (int i = 0; i < a.length; i++) {
@@ -418,7 +418,7 @@ static Object[] test6(int[] a, float[] b) {
418418
@Test
419419
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
420420
applyIfPlatform = {"64-bit", "true"},
421-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
421+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
422422
// Missing support for MoveI2F
423423
static Object[] test7(int[] a, float[] b) {
424424
for (int i = 0; i < a.length; i++) {
@@ -430,7 +430,7 @@ static Object[] test7(int[] a, float[] b) {
430430
@Test
431431
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
432432
applyIfPlatform = {"64-bit", "true"},
433-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
433+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
434434
// Missing support for Needs CmpD, CMove and MoveD2L
435435
static Object[] test8(long[] a, double[] b) {
436436
for (int i = 0; i < a.length; i++) {
@@ -442,7 +442,7 @@ static Object[] test8(long[] a, double[] b) {
442442
@Test
443443
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
444444
applyIfPlatform = {"64-bit", "true"},
445-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
445+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
446446
// Missing support for MoveD2L
447447
static Object[] test9(long[] a, double[] b) {
448448
for (int i = 0; i < a.length; i++) {
@@ -454,7 +454,7 @@ static Object[] test9(long[] a, double[] b) {
454454
@Test
455455
@IR(counts = {IRNode.STORE_VECTOR, "= 0"},
456456
applyIfPlatform = {"64-bit", "true"},
457-
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
457+
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true", "rvv", "true"})
458458
// Missing support for MoveL2D
459459
static Object[] test10(long[] a, double[] b) {
460460
for (int i = 0; i < a.length; i++) {

0 commit comments

Comments
 (0)