Skip to content

Commit a8c75e6

Browse files
authored
Added timeline to ensure specific instructuion execution is tested
1 parent 818c140 commit a8c75e6

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

llvm/test/tools/llvm-mca/RISCV/SiFiveX280/latency-instrument.s

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2-
# RUN: llvm-mca -mtriple=riscv64 -mcpu=sifive-x280 -iterations=1 < %s | FileCheck %s
2+
# RUN: llvm-mca -mtriple=riscv64 -mcpu=sifive-x280 --timeline -iterations=1 < %s | FileCheck %s
33

4-
# LLVM-MCA-LATENCY 100
4+
# LLVM-MCA-LATENCY 20
55
add a0, a0, a0
66

77
# CHECK: Iterations: 1
88
# CHECK-NEXT: Instructions: 1
9-
# CHECK-NEXT: Total Cycles: 101
9+
# CHECK-NEXT: Total Cycles: 21
1010
# CHECK-NEXT: Total uOps: 1
1111

1212
# CHECK: Dispatch Width: 2
13-
# CHECK-NEXT: uOps Per Cycle: 0.01
14-
# CHECK-NEXT: IPC: 0.01
13+
# CHECK-NEXT: uOps Per Cycle: 0.05
14+
# CHECK-NEXT: IPC: 0.05
1515
# CHECK-NEXT: Block RThroughput: 0.5
1616

1717
# CHECK: Instruction Info:
@@ -42,3 +42,18 @@ add a0, a0, a0
4242
# CHECK: Resource pressure by instruction:
4343
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] Instructions:
4444
# CHECK-NEXT: - - - 1.00 - - - - add a0, a0, a0
45+
46+
# CHECK: Timeline view:
47+
# CHECK-NEXT: 0123456789
48+
# CHECK-NEXT: Index 0123456789 0
49+
50+
# CHECK: [0,0] DeeeeeeeeeeeeeeeeeeeE add a0, a0, a0
51+
52+
# CHECK: Average Wait times (based on the timeline view):
53+
# CHECK-NEXT: [0]: Executions
54+
# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
55+
# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
56+
# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
57+
58+
# CHECK: [0] [1] [2] [3]
59+
# CHECK-NEXT: 0. 1 0.0 0.0 0.0 add a0, a0, a0

0 commit comments

Comments
 (0)