1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver3 -iterations=1500 -timeline -timeline-max-iterations=6 < %s | FileCheck %s
4 # The ILP is limited by the false dependency on %dx. So, the mov cannot execute
5 # in parallel with the add.
11 # CHECK: Iterations: 1500
12 # CHECK-NEXT: Instructions: 4500
13 # CHECK-NEXT: Total Cycles: 4503
14 # CHECK-NEXT: Total uOps: 4500
16 # CHECK: Dispatch Width: 6
17 # CHECK-NEXT: uOps Per Cycle: 1.00
18 # CHECK-NEXT: IPC: 1.00
19 # CHECK-NEXT: Block RThroughput: 1.5
21 # CHECK: Instruction Info:
22 # CHECK-NEXT: [1]: #uOps
23 # CHECK-NEXT: [2]: Latency
24 # CHECK-NEXT: [3]: RThroughput
25 # CHECK-NEXT: [4]: MayLoad
26 # CHECK-NEXT: [5]: MayStore
27 # CHECK-NEXT: [6]: HasSideEffects (U)
29 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
30 # CHECK-NEXT: 1 1 0.25 addw %cx, %dx
31 # CHECK-NEXT: 1 1 1.00 movw %ax, %dx
32 # CHECK-NEXT: 1 1 0.25 xorw %bx, %dx
35 # CHECK-NEXT: [0] - Zn3AGU0
36 # CHECK-NEXT: [1] - Zn3AGU1
37 # CHECK-NEXT: [2] - Zn3AGU2
38 # CHECK-NEXT: [3] - Zn3ALU0
39 # CHECK-NEXT: [4] - Zn3ALU1
40 # CHECK-NEXT: [5] - Zn3ALU2
41 # CHECK-NEXT: [6] - Zn3ALU3
42 # CHECK-NEXT: [7] - Zn3BRU1
43 # CHECK-NEXT: [8] - Zn3FPP0
44 # CHECK-NEXT: [9] - Zn3FPP1
45 # CHECK-NEXT: [10] - Zn3FPP2
46 # CHECK-NEXT: [11] - Zn3FPP3
47 # CHECK-NEXT: [12.0] - Zn3FPP45
48 # CHECK-NEXT: [12.1] - Zn3FPP45
49 # CHECK-NEXT: [13] - Zn3FPSt
50 # CHECK-NEXT: [14.0] - Zn3LSU
51 # CHECK-NEXT: [14.1] - Zn3LSU
52 # CHECK-NEXT: [14.2] - Zn3LSU
53 # CHECK-NEXT: [15.0] - Zn3Load
54 # CHECK-NEXT: [15.1] - Zn3Load
55 # CHECK-NEXT: [15.2] - Zn3Load
56 # CHECK-NEXT: [16.0] - Zn3Store
57 # CHECK-NEXT: [16.1] - Zn3Store
59 # CHECK: Resource pressure per iteration:
60 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1]
61 # CHECK-NEXT: - - - 1.50 1.50 1.50 1.50 - - - - - - - - - - - - - - - -
63 # CHECK: Resource pressure by instruction:
64 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1] Instructions:
65 # CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - addw %cx, %dx
66 # CHECK-NEXT: - - - 1.00 1.00 1.00 1.00 - - - - - - - - - - - - - - - - movw %ax, %dx
67 # CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - xorw %bx, %dx
69 # CHECK: Timeline view:
70 # CHECK-NEXT: 0123456789
71 # CHECK-NEXT: Index 0123456789 0
73 # CHECK: [0,0] DeER . . . . addw %cx, %dx
74 # CHECK-NEXT: [0,1] D=eER. . . . movw %ax, %dx
75 # CHECK-NEXT: [0,2] D==eER . . . xorw %bx, %dx
76 # CHECK-NEXT: [1,0] D===eER . . . addw %cx, %dx
77 # CHECK-NEXT: [1,1] D====eER . . . movw %ax, %dx
78 # CHECK-NEXT: [1,2] D=====eER . . . xorw %bx, %dx
79 # CHECK-NEXT: [2,0] .D=====eER. . . addw %cx, %dx
80 # CHECK-NEXT: [2,1] .D======eER . . movw %ax, %dx
81 # CHECK-NEXT: [2,2] .D=======eER . . xorw %bx, %dx
82 # CHECK-NEXT: [3,0] .D========eER . . addw %cx, %dx
83 # CHECK-NEXT: [3,1] .D=========eER . . movw %ax, %dx
84 # CHECK-NEXT: [3,2] .D==========eER. . xorw %bx, %dx
85 # CHECK-NEXT: [4,0] . D==========eER . addw %cx, %dx
86 # CHECK-NEXT: [4,1] . D===========eER . movw %ax, %dx
87 # CHECK-NEXT: [4,2] . D============eER . xorw %bx, %dx
88 # CHECK-NEXT: [5,0] . D=============eER . addw %cx, %dx
89 # CHECK-NEXT: [5,1] . D==============eER. movw %ax, %dx
90 # CHECK-NEXT: [5,2] . D===============eER xorw %bx, %dx
92 # CHECK: Average Wait times (based on the timeline view):
93 # CHECK-NEXT: [0]: Executions
94 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
95 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
96 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
98 # CHECK: [0] [1] [2] [3]
99 # CHECK-NEXT: 0. 6 7.5 0.2 0.0 addw %cx, %dx
100 # CHECK-NEXT: 1. 6 8.5 0.0 0.0 movw %ax, %dx
101 # CHECK-NEXT: 2. 6 9.5 0.0 0.0 xorw %bx, %dx
102 # CHECK-NEXT: 6 8.5 0.1 0.0 <total>