# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -mtriple=riscv64 -mcpu=sifive-p470 -iterations=1 < %s | FileCheck %s
# Simple integer reductions: varies by LMUL
vsetvli zero, zero, e32, m1, tu, mu
vredsum.vs v5, v7, v8
vsetvli zero, zero, e32, m2, tu, mu
vredsum.vs v5, v7, v8
vsetvli zero, zero, e32, m4, tu, mu
vredsum.vs v5, v7, v8
vsetvli zero, zero, e32, m8, tu, mu
vredsum.vs v5, v7, v8
# Advanced integer reductions: varies by LMUL and SEW
vsetvli zero, zero, e16, m1, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m2, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m4, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m8, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m1, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m2, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m4, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m8, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m1, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m2, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m4, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m8, tu, mu
vredmin.vs v5, v7, v8
vredmax.vs v5, v7, v8
# Simple floating point reductions: varies by LMUL and SEW
vsetvli zero, zero, e16, m1, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e16, m2, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e16, m4, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e16, m8, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e32, m1, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e32, m2, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e32, m4, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e32, m8, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e64, m1, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e64, m2, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e64, m4, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
vsetvli zero, zero, e64, m8, tu, mu
vfredusum.vs v5, v7, v8
vfredosum.vs v5, v7, v8
# Advanced floating point reductions: varies by LMUL and SEW
vsetvli zero, zero, e16, m1, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m2, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m4, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e16, m8, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m1, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m2, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m4, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e32, m8, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m1, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m2, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m4, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
vsetvli zero, zero, e64, m8, tu, mu
vfredmin.vs v5, v7, v8
vfredmax.vs v5, v7, v8
# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 116
# CHECK-NEXT: Total Cycles: 921
# CHECK-NEXT: Total uOps: 116
# CHECK: Dispatch Width: 3
# CHECK-NEXT: uOps Per Cycle: 0.13
# CHECK-NEXT: IPC: 0.13
# CHECK-NEXT: Block RThroughput: 916.0
# CHECK: Instruction Info:
# CHECK-NEXT: [1]: #uOps
# CHECK-NEXT: [2]: Latency
# CHECK-NEXT: [3]: RThroughput
# CHECK-NEXT: [4]: MayLoad
# CHECK-NEXT: [5]: MayStore
# CHECK-NEXT: [6]: HasSideEffects (U)
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: 1 2 1.00 vredsum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: 1 4 2.00 vredsum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: 1 8 4.00 vredsum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: 1 16 9.00 vredsum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: 1 8 4.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 4.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: 1 10 5.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 10 5.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: 1 12 8.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 12 8.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: 1 15 14.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 15 14.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: 1 6 3.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 6 3.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: 1 8 4.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 4.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: 1 10 6.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 10 6.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: 1 13 12.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 13 12.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: 1 4 2.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 4 2.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: 1 6 3.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 6 3.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: 1 8 5.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 5.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: 1 11 10.00 vredmin.vs v5, v7, v8
# CHECK-NEXT: 1 11 10.00 vredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: 1 16 16.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 16 16.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: 1 22 16.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 32 32.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: 1 28 16.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 64 64.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: 1 34 16.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 128 128.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: 1 10 10.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 10 10.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: 1 16 10.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 20 20.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: 1 22 10.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 40 40.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: 1 28 10.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 80 80.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: 1 6 6.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 6 6.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: 1 12 6.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 12 12.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: 1 18 6.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 24 24.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: 1 24 6.00 vfredusum.vs v5, v7, v8
# CHECK-NEXT: 1 48 48.00 vfredosum.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: 1 6 3.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 6 3.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: 1 8 4.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 4.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: 1 10 6.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 10 6.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: 1 13 12.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 13 12.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: 1 6 3.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 6 3.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: 1 8 4.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 4.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: 1 10 6.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 10 6.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: 1 13 12.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 13 12.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: 1 4 2.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 4 2.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: 1 6 3.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 6 3.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: 1 8 5.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 8 5.00 vfredmax.vs v5, v7, v8
# CHECK-NEXT: 1 1 1.00 U vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: 1 11 10.00 vfredmin.vs v5, v7, v8
# CHECK-NEXT: 1 11 10.00 vfredmax.vs v5, v7, v8
# CHECK: Resources:
# CHECK-NEXT: [0] - SiFiveP400Div
# CHECK-NEXT: [1] - SiFiveP400FEXQ0
# CHECK-NEXT: [2] - SiFiveP400FloatDiv
# CHECK-NEXT: [3] - SiFiveP400IEXQ0
# CHECK-NEXT: [4] - SiFiveP400IEXQ1
# CHECK-NEXT: [5] - SiFiveP400IEXQ2
# CHECK-NEXT: [6] - SiFiveP400Load
# CHECK-NEXT: [7] - SiFiveP400Store
# CHECK-NEXT: [8] - SiFiveP400VDiv
# CHECK-NEXT: [9] - SiFiveP400VEXQ0
# CHECK-NEXT: [10] - SiFiveP400VFloatDiv
# CHECK-NEXT: [11] - SiFiveP400VLD
# CHECK-NEXT: [12] - SiFiveP400VST
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
# CHECK-NEXT: - - - - 40.00 - - - - 916.00 - - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 1.00 - - - vredsum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 2.00 - - - vredsum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vredsum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 9.00 - - - vredsum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 8.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 8.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 14.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 14.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 2.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 2.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 16.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 16.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 16.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 32.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 16.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 64.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 16.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 128.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 20.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 40.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 80.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 24.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredusum.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 48.00 - - - vfredosum.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e16, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 4.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 6.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e32, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 12.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m1, tu, mu
# CHECK-NEXT: - - - - - - - - - 2.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 2.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m2, tu, mu
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 3.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m4, tu, mu
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 5.00 - - - vfredmax.vs v5, v7, v8
# CHECK-NEXT: - - - - 1.00 - - - - - - - - vsetvli zero, zero, e64, m8, tu, mu
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredmin.vs v5, v7, v8
# CHECK-NEXT: - - - - - - - - - 10.00 - - - vfredmax.vs v5, v7, v8