[Instrumentation] Fix a warning
[llvm-project.git] / llvm / test / tools / llvm-mca / RISCV / lmul-instrument-straddles-region.s
blob2b500ab9d014c704ee33ad488f6b013da7995bad
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 # LLVM-MCA-BEGIN foo
5 vsetvli zero, a0, e8, m1, tu, mu
6 # LLVM-MCA-RISCV-LMUL M1
7 vadd.vv v12, v12, v12
8 # LLVM-MCA-END foo
9 vadd.vv v12, v12, v12
11 # CHECK: [0] Code Region - foo
13 # CHECK: Iterations: 1
14 # CHECK-NEXT: Instructions: 2
15 # CHECK-NEXT: Total Cycles: 8
16 # CHECK-NEXT: Total uOps: 2
18 # CHECK: Dispatch Width: 2
19 # CHECK-NEXT: uOps Per Cycle: 0.25
20 # CHECK-NEXT: IPC: 0.25
21 # CHECK-NEXT: Block RThroughput: 3.0
23 # CHECK: Instruction Info:
24 # CHECK-NEXT: [1]: #uOps
25 # CHECK-NEXT: [2]: Latency
26 # CHECK-NEXT: [3]: RThroughput
27 # CHECK-NEXT: [4]: MayLoad
28 # CHECK-NEXT: [5]: MayStore
29 # CHECK-NEXT: [6]: HasSideEffects (U)
31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
32 # CHECK-NEXT: 1 3 1.00 U vsetvli zero, a0, e8, m1, tu, mu
33 # CHECK-NEXT: 1 4 3.00 vadd.vv v12, v12, v12
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - SiFive7FDiv
37 # CHECK-NEXT: [1] - SiFive7IDiv
38 # CHECK-NEXT: [2] - SiFive7PipeA
39 # CHECK-NEXT: [3] - SiFive7PipeB
40 # CHECK-NEXT: [4] - SiFive7VA
41 # CHECK-NEXT: [5] - SiFive7VCQ
42 # CHECK-NEXT: [6] - SiFive7VL
43 # CHECK-NEXT: [7] - SiFive7VS
45 # CHECK: Resource pressure per iteration:
46 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7]
47 # CHECK-NEXT: - - 1.00 - 3.00 1.00 - -
49 # CHECK: Resource pressure by instruction:
50 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] Instructions:
51 # CHECK-NEXT: - - 1.00 - - - - - vsetvli zero, a0, e8, m1, tu, mu
52 # CHECK-NEXT: - - - - 3.00 1.00 - - vadd.vv v12, v12, v12
54 # CHECK: Timeline view:
55 # CHECK-NEXT: Index 01234567
57 # CHECK: [0,0] DeeE . . vsetvli zero, a0, e8, m1, tu, mu
58 # CHECK-NEXT: [0,1] . DeeeE vadd.vv v12, v12, v12
60 # CHECK: Average Wait times (based on the timeline view):
61 # CHECK-NEXT: [0]: Executions
62 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
63 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
64 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
66 # CHECK: [0] [1] [2] [3]
67 # CHECK-NEXT: 0. 1 0.0 0.0 0.0 vsetvli zero, a0, e8, m1, tu, mu
68 # CHECK-NEXT: 1. 1 0.0 0.0 0.0 vadd.vv v12, v12, v12
69 # CHECK-NEXT: 1 0.0 0.0 0.0 <total>