From 6a274f15eda410a14fb3780508d43f03189b2618 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Mon, 14 Oct 2024 15:58:18 +0800 Subject: [PATCH] [tests] add missing tests cases and sort by name --- .github/cases/blastoise/default.json | 158 ++++++++++++++------------- .github/cases/machamp/default.json | 18 +-- .github/cases/psyduck/default.json | 4 + .github/cases/sandslash/default.json | 18 +-- tests/codegen/fp.txt | 14 ++- 5 files changed, 112 insertions(+), 100 deletions(-) diff --git a/.github/cases/blastoise/default.json b/.github/cases/blastoise/default.json index eb0890659..5a76bc6a4 100644 --- a/.github/cases/blastoise/default.json +++ b/.github/cases/blastoise/default.json @@ -1,17 +1,6 @@ { - "pytorch.demo": 76, - "pytorch.lenet": 394687, - "pytorch.matmul": 14497, - "pytorch.mobilenet": 15139469, - "mlir.rvv_vp_intrinsic_add": 435, - "mlir.rvv_vp_intrinsic_add_scalable": 583, - "mlir.hello": 145, - "mlir.stripmining": 26790, "asm.mmm": 92623, "asm.smoke": 4922, - "intrinsic.conv2d_less_m2": 2647, - "intrinsic.linear_normalization": 3333, - "intrinsic.softmax": 8400, "codegen.vaadd_vv": 98389, "codegen.vaadd_vx": 260192, "codegen.vaaddu_vv": 98389, @@ -35,7 +24,63 @@ "codegen.vdiv_vx": 197052, "codegen.vdivu_vv": 34305, "codegen.vdivu_vx": 205045, + "codegen.vfadd_vf": 323156, + "codegen.vfadd_vv": 92389, + "codegen.vfclass_v": 6649, + "codegen.vfcvt_f_x_v": 6565, + "codegen.vfcvt_f_xu_v": 6559, + "codegen.vfcvt_rtz_x_f_v": 6579, + "codegen.vfcvt_rtz_xu_f_v": 6560, + "codegen.vfcvt_x_f_v": 6559, + "codegen.vfcvt_xu_f_v": 6559, + "codegen.vfdiv_vf": 668784, + "codegen.vfdiv_vv": 134005, "codegen.vfirst_m": 1915, + "codegen.vfmacc_vf": 379509, + "codegen.vfmacc_vv": 95749, + "codegen.vfmadd_vf": 379509, + "codegen.vfmadd_vv": 95749, + "codegen.vfmax_vf": 323156, + "codegen.vfmax_vv": 92389, + "codegen.vfmerge_vfm": 185844, + "codegen.vfmin_vf": 323156, + "codegen.vfmin_vv": 92389, + "codegen.vfmsac_vf": 379509, + "codegen.vfmsac_vv": 95749, + "codegen.vfmsub_vf": 379509, + "codegen.vfmsub_vv": 95749, + "codegen.vfmul_vf": 323156, + "codegen.vfmul_vv": 92389, + "codegen.vfmv_f_s": 8091, + "codegen.vfmv_s_f": 766, + "codegen.vfmv_v_f": 2233, + "codegen.vfnmacc_vf": 379509, + "codegen.vfnmacc_vv": 95749, + "codegen.vfnmadd_vf": 379509, + "codegen.vfnmadd_vv": 95749, + "codegen.vfnmsac_vf": 379509, + "codegen.vfnmsac_vv": 95749, + "codegen.vfnmsub_vf": 379509, + "codegen.vfnmsub_vv": 95749, + "codegen.vfrdiv_vf": 668784, + "codegen.vfrec7_v": 6589, + "codegen.vfredmax_vs": 122757, + "codegen.vfredmin_vs": 122757, + "codegen.vfredosum_vs": 160996, + "codegen.vfredusum_vs": 122757, + "codegen.vfrsqrt7_v": 6568, + "codegen.vfrsub_vf": 323156, + "codegen.vfsgnj_vf": 277156, + "codegen.vfsgnj_vv": 92389, + "codegen.vfsgnjn_vf": 277156, + "codegen.vfsgnjn_vv": 92389, + "codegen.vfsgnjx_vf": 277156, + "codegen.vfsgnjx_vv": 92389, + "codegen.vfslide1down_vf": 0, + "codegen.vfslide1up_vf": 0, + "codegen.vfsqrt_v": 10373, + "codegen.vfsub_vf": 323156, + "codegen.vfsub_vv": 92389, "codegen.vid_v": 17680, "codegen.viota_m": 45144, "codegen.vl1re16_v": 747, @@ -169,6 +214,16 @@ "codegen.vmerge_vim": 33608, "codegen.vmerge_vvm": 14004, "codegen.vmerge_vxm": 43336, + "codegen.vmfeq_vf": 559109, + "codegen.vmfeq_vv": 99636, + "codegen.vmfge_vf": 559109, + "codegen.vmfgt_vf": 559109, + "codegen.vmfle_vf": 0, + "codegen.vmfle_vv": 0, + "codegen.vmflt_vf": 559109, + "codegen.vmflt_vv": 99636, + "codegen.vmfne_vf": 559109, + "codegen.vmfne_vv": 99636, "codegen.vmin_vv": 24937, "codegen.vmin_vx": 65387, "codegen.vminu_vv": 24937, @@ -214,15 +269,15 @@ "codegen.vmulhsu_vx": 87365, "codegen.vmulhu_vv": 25151, "codegen.vmulhu_vx": 87365, + "codegen.vmv1r_v": 1755, + "codegen.vmv2r_v": 1861, + "codegen.vmv4r_v": 2099, + "codegen.vmv8r_v": 2581, "codegen.vmv_s_x": 1356, "codegen.vmv_v_i": 17850, "codegen.vmv_v_v": 9959, "codegen.vmv_v_x": 8280, "codegen.vmv_x_s": 1836, - "codegen.vmv1r_v": 1755, - "codegen.vmv2r_v": 1861, - "codegen.vmv4r_v": 2099, - "codegen.vmv8r_v": 2581, "codegen.vmxnor_mm": 10038, "codegen.vmxor_mm": 10038, "codegen.vnclip_wi": 157469, @@ -441,68 +496,17 @@ "codegen.vxor_vx": 65361, "codegen.vzext_vf2": 23961, "codegen.vzext_vf4": 4449, - "codegen.vfadd_vv": 92389, - "codegen.vfadd_vf": 323156, - "codegen.vfsub_vv": 92389, - "codegen.vfsub_vf": 323156, - "codegen.vfrsub_vf": 323156, - "codegen.vfmul_vv": 92389, - "codegen.vfmul_vf": 323156, - "codegen.vfdiv_vv": 134005, - "codegen.vfdiv_vf": 668784, - "codegen.vfrdiv_vf": 668784, - "codegen.vfmacc_vv": 95749, - "codegen.vfmacc_vf": 379509, - "codegen.vfnmacc_vv": 95749, - "codegen.vfnmacc_vf": 379509, - "codegen.vfmsac_vv": 95749, - "codegen.vfmsac_vf": 379509, - "codegen.vfnmsac_vv": 95749, - "codegen.vfnmsac_vf": 379509, - "codegen.vfmadd_vv": 95749, - "codegen.vfmadd_vf": 379509, - "codegen.vfnmadd_vv": 95749, - "codegen.vfnmadd_vf": 379509, - "codegen.vfmsub_vv": 95749, - "codegen.vfmsub_vf": 379509, - "codegen.vfnmsub_vv": 95749, - "codegen.vfnmsub_vf": 379509, - "codegen.vfsqrt_v": 10373, - "codegen.vfrsqrt7_v": 6568, - "codegen.vfrec7_v": 6589, - "codegen.vfmin_vv": 92389, - "codegen.vfmin_vf": 323156, - "codegen.vfmax_vv": 92389, - "codegen.vfmax_vf": 323156, - "codegen.vfsgnj_vv": 92389, - "codegen.vfsgnj_vf": 277156, - "codegen.vfsgnjn_vv": 92389, - "codegen.vfsgnjn_vf": 277156, - "codegen.vfsgnjx_vv": 92389, - "codegen.vfsgnjx_vf": 277156, - "codegen.vmfeq_vv": 99636, - "codegen.vmfeq_vf": 559109, - "codegen.vmfne_vv": 99636, - "codegen.vmfne_vf": 559109, - "codegen.vmflt_vv": 99636, - "codegen.vmflt_vf": 559109, - "codegen.vmfgt_vf": 559109, - "codegen.vmfge_vf": 559109, - "codegen.vfclass_v": 6649, - "codegen.vfmerge_vfm": 185844, - "codegen.vfmv_v_f": 2233, - "codegen.vfmv_f_s": 8091, - "codegen.vfmv_s_f": 766, - "codegen.vfcvt_xu_f_v": 6559, - "codegen.vfcvt_x_f_v": 6559, - "codegen.vfcvt_rtz_xu_f_v": 6560, - "codegen.vfcvt_rtz_x_f_v": 6579, - "codegen.vfcvt_f_xu_v": 6559, - "codegen.vfcvt_f_x_v": 6565, - "codegen.vfredosum_vs": 160996, - "codegen.vfredusum_vs": 122757, - "codegen.vfredmax_vs": 122757, - "codegen.vfredmin_vs": 122757, + "intrinsic.conv2d_less_m2": 2647, + "intrinsic.linear_normalization": 3333, + "intrinsic.softmax": 8400, + "mlir.hello": 145, + "mlir.rvv_vp_intrinsic_add": 435, + "mlir.rvv_vp_intrinsic_add_scalable": 583, + "mlir.stripmining": 26790, + "pytorch.demo": 76, + "pytorch.lenet": 394687, + "pytorch.matmul": 14497, + "pytorch.mobilenet": 15139469, "rvv_bench.ascii_to_utf16": 39155, "rvv_bench.ascii_to_utf32": 11277, "rvv_bench.byteswap": 114251, diff --git a/.github/cases/machamp/default.json b/.github/cases/machamp/default.json index e76f92645..05139e74e 100644 --- a/.github/cases/machamp/default.json +++ b/.github/cases/machamp/default.json @@ -1,11 +1,6 @@ { - "mlir.rvv_vp_intrinsic_add": 422, - "mlir.rvv_vp_intrinsic_add_scalable": 577, - "mlir.hello": 113, - "mlir.stripmining": 13447, "asm.mmm": 91448, "asm.smoke": 5028, - "intrinsic.conv2d_less_m2": 2606, "codegen.vaadd_vv": 97093, "codegen.vaadd_vx": 257348, "codegen.vaaddu_vv": 97093, @@ -208,15 +203,15 @@ "codegen.vmulhsu_vx": 87325, "codegen.vmulhu_vv": 24892, "codegen.vmulhu_vx": 87325, + "codegen.vmv1r_v": 1723, + "codegen.vmv2r_v": 1829, + "codegen.vmv4r_v": 2067, + "codegen.vmv8r_v": 2549, "codegen.vmv_s_x": 1300, "codegen.vmv_v_i": 17659, "codegen.vmv_v_v": 9922, "codegen.vmv_v_x": 8212, "codegen.vmv_x_s": 1777, - "codegen.vmv1r_v": 1723, - "codegen.vmv2r_v": 1829, - "codegen.vmv4r_v": 2067, - "codegen.vmv8r_v": 2549, "codegen.vmxnor_mm": 10003, "codegen.vmxor_mm": 10003, "codegen.vnclip_wi": 158712, @@ -435,6 +430,11 @@ "codegen.vxor_vx": 64727, "codegen.vzext_vf2": 40172, "codegen.vzext_vf4": 6653, + "intrinsic.conv2d_less_m2": 2606, + "mlir.hello": 113, + "mlir.rvv_vp_intrinsic_add": 422, + "mlir.rvv_vp_intrinsic_add_scalable": 577, + "mlir.stripmining": 13447, "rvv_bench.ascii_to_utf16": 35463, "rvv_bench.ascii_to_utf32": 9918, "rvv_bench.byteswap": 106931, diff --git a/.github/cases/psyduck/default.json b/.github/cases/psyduck/default.json index b208cb21b..003101fed 100644 --- a/.github/cases/psyduck/default.json +++ b/.github/cases/psyduck/default.json @@ -83,6 +83,8 @@ "codegen.vfsgnjn_vv": 92389, "codegen.vfsgnjx_vf": 277156, "codegen.vfsgnjx_vv": 92389, + "codegen.vfslide1down_vf": 0, + "codegen.vfslide1up_vf": 0, "codegen.vfsqrt_v": 10373, "codegen.vfsub_vf": 323156, "codegen.vfsub_vv": 92389, @@ -223,6 +225,8 @@ "codegen.vmfeq_vv": 99636, "codegen.vmfge_vf": 559109, "codegen.vmfgt_vf": 559109, + "codegen.vmfle_vf": 0, + "codegen.vmfle_vv": 0, "codegen.vmflt_vf": 559109, "codegen.vmflt_vv": 99636, "codegen.vmfne_vf": 559109, diff --git a/.github/cases/sandslash/default.json b/.github/cases/sandslash/default.json index 6a555068a..ea0edca29 100644 --- a/.github/cases/sandslash/default.json +++ b/.github/cases/sandslash/default.json @@ -1,11 +1,6 @@ { - "mlir.rvv_vp_intrinsic_add": 428, - "mlir.rvv_vp_intrinsic_add_scalable": 650, - "mlir.hello": 115, - "mlir.stripmining": 3598, "asm.mmm": 91448, "asm.smoke": 3581, - "intrinsic.conv2d_less_m2": 2597, "codegen.vaadd_vv": 125559, "codegen.vaadd_vx": 342898, "codegen.vaaddu_vv": 125559, @@ -208,15 +203,15 @@ "codegen.vmulhsu_vx": 116506, "codegen.vmulhu_vv": 32377, "codegen.vmulhu_vx": 116506, + "codegen.vmv1r_v": 2213, + "codegen.vmv2r_v": 2451, + "codegen.vmv4r_v": 3137, + "codegen.vmv8r_v": 4378, "codegen.vmv_s_x": 1741, "codegen.vmv_v_i": 27467, "codegen.vmv_v_v": 13837, "codegen.vmv_v_x": 11282, "codegen.vmv_x_s": 2293, - "codegen.vmv1r_v": 2213, - "codegen.vmv2r_v": 2451, - "codegen.vmv4r_v": 3137, - "codegen.vmv8r_v": 4378, "codegen.vmxnor_mm": 13213, "codegen.vmxor_mm": 13213, "codegen.vnclip_wi": 220694, @@ -435,6 +430,11 @@ "codegen.vxor_vx": 86474, "codegen.vzext_vf2": 135647, "codegen.vzext_vf4": 20033, + "intrinsic.conv2d_less_m2": 2597, + "mlir.hello": 115, + "mlir.rvv_vp_intrinsic_add": 428, + "mlir.rvv_vp_intrinsic_add_scalable": 650, + "mlir.stripmining": 3598, "rvv_bench.ascii_to_utf16": 31642, "rvv_bench.ascii_to_utf32": 9368, "rvv_bench.byteswap": 102376, diff --git a/tests/codegen/fp.txt b/tests/codegen/fp.txt index 2faf64b3d..92bbde8e8 100644 --- a/tests/codegen/fp.txt +++ b/tests/codegen/fp.txt @@ -37,6 +37,10 @@ vfnmsub.vf vfnmsub.vv vfrdiv.vf vfrec7.v +vfredmax.vs +vfredmin.vs +vfredosum.vs +vfredusum.vs vfrsqrt7.v vfrsub.vf vfsgnj.vf @@ -45,6 +49,8 @@ vfsgnjn.vf vfsgnjn.vv vfsgnjx.vf vfsgnjx.vv +vfslide1down.vf +vfslide1up.vf vfsqrt.v vfsub.vf vfsub.vv @@ -52,11 +58,9 @@ vmfeq.vf vmfeq.vv vmfge.vf vmfgt.vf +vmfle.vf +vmfle.vv vmflt.vf vmflt.vv vmfne.vf -vmfne.vv -vfredosum.vs -vfredusum.vs -vfredmax.vs -vfredmin.vs \ No newline at end of file +vmfne.vv \ No newline at end of file