1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=riscv64 -mcpu=sifive-x280 -timeline -iterations=1 < %s | FileCheck %s
4 vsetvli zero
, a0
, e8
, m1
, tu
, mu
5 # LLVM-MCA-RISCV-LMUL M1
9 # CHECK-NEXT: Instructions: 2
10 # CHECK-NEXT: Total Cycles: 8
11 # CHECK-NEXT: Total uOps: 2
13 # CHECK: Dispatch Width: 2
14 # CHECK-NEXT: uOps Per Cycle: 0.25
15 # CHECK-NEXT: IPC: 0.25
16 # CHECK-NEXT: Block RThroughput: 3.0
18 # CHECK: Instruction Info:
19 # CHECK-NEXT: [1]: #uOps
20 # CHECK-NEXT: [2]: Latency
21 # CHECK-NEXT: [3]: RThroughput
22 # CHECK-NEXT: [4]: MayLoad
23 # CHECK-NEXT: [5]: MayStore
24 # CHECK-NEXT: [6]: HasSideEffects (U)
26 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
27 # CHECK-NEXT: 1 3 1.00 U vsetvli zero, a0, e8, m1, tu, mu
28 # CHECK-NEXT: 1 4 3.00 vadd.vv v12, v12, v12
31 # CHECK-NEXT: [0] - SiFive7FDiv
32 # CHECK-NEXT: [1] - SiFive7IDiv
33 # CHECK-NEXT: [2] - SiFive7PipeA
34 # CHECK-NEXT: [3] - SiFive7PipeB
35 # CHECK-NEXT: [4] - SiFive7VA
36 # CHECK-NEXT: [5] - SiFive7VCQ
37 # CHECK-NEXT: [6] - SiFive7VL
38 # CHECK-NEXT: [7] - SiFive7VS
40 # CHECK: Resource pressure per iteration:
41 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7]
42 # CHECK-NEXT: - - 1.00 - 3.00 1.00 - -
44 # CHECK: Resource pressure by instruction:
45 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] Instructions:
46 # CHECK-NEXT: - - 1.00 - - - - - vsetvli zero, a0, e8, m1, tu, mu
47 # CHECK-NEXT: - - - - 3.00 1.00 - - vadd.vv v12, v12, v12
49 # CHECK: Timeline view:
50 # CHECK-NEXT: Index 01234567
52 # CHECK: [0,0] DeeE . . vsetvli zero, a0, e8, m1, tu, mu
53 # CHECK-NEXT: [0,1] . DeeeE vadd.vv v12, v12, v12
55 # CHECK: Average Wait times (based on the timeline view):
56 # CHECK-NEXT: [0]: Executions
57 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
58 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
59 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
61 # CHECK: [0] [1] [2] [3]
62 # CHECK-NEXT: 0. 1 0.0 0.0 0.0 vsetvli zero, a0, e8, m1, tu, mu
63 # CHECK-NEXT: 1. 1 0.0 0.0 0.0 vadd.vv v12, v12, v12
64 # CHECK-NEXT: 1 0.0 0.0 0.0 <total>