1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1500 -timeline -timeline-max-iterations=8 < %s | FileCheck %s
4 lzcnt
%ax
, %bx
## partial register stall.
6 # CHECK: Iterations: 1500
7 # CHECK-NEXT: Instructions: 1500
8 # CHECK-NEXT: Total Cycles: 1504
9 # CHECK-NEXT: Total uOps: 1500
11 # CHECK: Dispatch Width: 4
12 # CHECK-NEXT: uOps Per Cycle: 1.00
13 # CHECK-NEXT: IPC: 1.00
14 # CHECK-NEXT: Block RThroughput: 0.3
16 # CHECK: Instruction Info:
17 # CHECK-NEXT: [1]: #uOps
18 # CHECK-NEXT: [2]: Latency
19 # CHECK-NEXT: [3]: RThroughput
20 # CHECK-NEXT: [4]: MayLoad
21 # CHECK-NEXT: [5]: MayStore
22 # CHECK-NEXT: [6]: HasSideEffects (U)
24 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
25 # CHECK-NEXT: 1 2 0.25 lzcntw %ax, %bx
28 # CHECK-NEXT: [0] - ZnAGU0
29 # CHECK-NEXT: [1] - ZnAGU1
30 # CHECK-NEXT: [2] - ZnALU0
31 # CHECK-NEXT: [3] - ZnALU1
32 # CHECK-NEXT: [4] - ZnALU2
33 # CHECK-NEXT: [5] - ZnALU3
34 # CHECK-NEXT: [6] - ZnDivider
35 # CHECK-NEXT: [7] - ZnFPU0
36 # CHECK-NEXT: [8] - ZnFPU1
37 # CHECK-NEXT: [9] - ZnFPU2
38 # CHECK-NEXT: [10] - ZnFPU3
39 # CHECK-NEXT: [11] - ZnMultiplier
41 # CHECK: Resource pressure per iteration:
42 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
43 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - -
45 # CHECK: Resource pressure by instruction:
46 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
47 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - lzcntw %ax, %bx
49 # CHECK: Timeline view:
51 # CHECK-NEXT: Index 0123456789
53 # CHECK: [0,0] DeeER. .. lzcntw %ax, %bx
54 # CHECK-NEXT: [1,0] D=eeER .. lzcntw %ax, %bx
55 # CHECK-NEXT: [2,0] D==eeER .. lzcntw %ax, %bx
56 # CHECK-NEXT: [3,0] D===eeER .. lzcntw %ax, %bx
57 # CHECK-NEXT: [4,0] .D===eeER .. lzcntw %ax, %bx
58 # CHECK-NEXT: [5,0] .D====eeER.. lzcntw %ax, %bx
59 # CHECK-NEXT: [6,0] .D=====eeER. lzcntw %ax, %bx
60 # CHECK-NEXT: [7,0] .D======eeER lzcntw %ax, %bx
62 # CHECK: Average Wait times (based on the timeline view):
63 # CHECK-NEXT: [0]: Executions
64 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
65 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
66 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
68 # CHECK: [0] [1] [2] [3]
69 # CHECK-NEXT: 0. 8 4.0 0.1 0.0 lzcntw %ax, %bx