1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver4 -timeline -timeline-max-iterations=1 < %s | FileCheck %s -check-prefixes=ALL,NOALIAS
3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver4 -timeline -timeline-max-iterations=1 -noalias=false < %s | FileCheck %s -check-prefixes=ALL,YESALIAS
16 # ALL: Iterations: 100
17 # ALL-NEXT: Instructions: 1000
19 # NOALIAS-NEXT: Total Cycles: 675
20 # YESALIAS-NEXT: Total Cycles: 6003
22 # ALL-NEXT: Total uOps: 1000
24 # ALL: Dispatch Width: 6
26 # NOALIAS-NEXT: uOps Per Cycle: 1.48
27 # NOALIAS-NEXT: IPC: 1.48
29 # YESALIAS-NEXT: uOps Per Cycle: 0.17
30 # YESALIAS-NEXT: IPC: 0.17
32 # ALL-NEXT: Block RThroughput: 6.7
34 # ALL: Instruction Info:
35 # ALL-NEXT: [1]: #uOps
36 # ALL-NEXT: [2]: Latency
37 # ALL-NEXT: [3]: RThroughput
38 # ALL-NEXT: [4]: MayLoad
39 # ALL-NEXT: [5]: MayStore
40 # ALL-NEXT: [6]: HasSideEffects (U)
42 # ALL: [1] [2] [3] [4] [5] [6] Instructions:
43 # ALL-NEXT: 1 6 0.67 * * addq $44, 64(%r14)
44 # ALL-NEXT: 1 6 0.67 * * addq $44, 128(%r14)
45 # ALL-NEXT: 1 6 0.67 * * addq $44, 192(%r14)
46 # ALL-NEXT: 1 6 0.67 * * addq $44, 256(%r14)
47 # ALL-NEXT: 1 6 0.67 * * addq $44, 320(%r14)
48 # ALL-NEXT: 1 6 0.67 * * addq $44, 384(%r14)
49 # ALL-NEXT: 1 6 0.67 * * addq $44, 448(%r14)
50 # ALL-NEXT: 1 6 0.67 * * addq $44, 512(%r14)
51 # ALL-NEXT: 1 6 0.67 * * addq $44, 576(%r14)
52 # ALL-NEXT: 1 6 0.67 * * addq $44, 640(%r14)
55 # ALL-NEXT: [0] - Zn4AGU0
56 # ALL-NEXT: [1] - Zn4AGU1
57 # ALL-NEXT: [2] - Zn4AGU2
58 # ALL-NEXT: [3] - Zn4ALU0
59 # ALL-NEXT: [4] - Zn4ALU1
60 # ALL-NEXT: [5] - Zn4ALU2
61 # ALL-NEXT: [6] - Zn4ALU3
62 # ALL-NEXT: [7] - Zn4BRU1
63 # ALL-NEXT: [8] - Zn4FP0
64 # ALL-NEXT: [9] - Zn4FP1
65 # ALL-NEXT: [10] - Zn4FP2
66 # ALL-NEXT: [11] - Zn4FP3
67 # ALL-NEXT: [12.0] - Zn4FP45
68 # ALL-NEXT: [12.1] - Zn4FP45
69 # ALL-NEXT: [13] - Zn4FPSt
70 # ALL-NEXT: [14.0] - Zn4LSU
71 # ALL-NEXT: [14.1] - Zn4LSU
72 # ALL-NEXT: [14.2] - Zn4LSU
73 # ALL-NEXT: [15.0] - Zn4Load
74 # ALL-NEXT: [15.1] - Zn4Load
75 # ALL-NEXT: [15.2] - Zn4Load
76 # ALL-NEXT: [16.0] - Zn4Store
77 # ALL-NEXT: [16.1] - Zn4Store
79 # ALL: Resource pressure per iteration:
80 # ALL-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]
81 # ALL-NEXT: 6.66 6.66 6.68 2.50 2.50 2.50 2.50 - - - - - - - - 6.66 6.66 6.68 3.33 3.33 3.34 5.00 5.00
83 # ALL: Resource pressure by instruction:
84 # ALL-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:
85 # ALL-NEXT: 0.66 0.66 0.68 - 0.50 - 0.50 - - - - - - - - 0.66 0.66 0.68 0.33 0.33 0.34 - 1.00 addq $44, 64(%r14)
86 # ALL-NEXT: 0.66 0.68 0.66 0.50 - 0.50 - - - - - - - - - 0.66 0.68 0.66 0.33 0.34 0.33 1.00 - addq $44, 128(%r14)
87 # ALL-NEXT: 0.68 0.66 0.66 - 0.50 - 0.50 - - - - - - - - 0.68 0.66 0.66 0.34 0.33 0.33 - 1.00 addq $44, 192(%r14)
88 # ALL-NEXT: 0.66 0.66 0.68 0.50 - 0.50 - - - - - - - - - 0.66 0.66 0.68 0.33 0.33 0.34 1.00 - addq $44, 256(%r14)
89 # ALL-NEXT: 0.66 0.68 0.66 - 0.50 - 0.50 - - - - - - - - 0.66 0.68 0.66 0.33 0.34 0.33 - 1.00 addq $44, 320(%r14)
90 # ALL-NEXT: 0.68 0.66 0.66 0.50 - 0.50 - - - - - - - - - 0.68 0.66 0.66 0.34 0.33 0.33 1.00 - addq $44, 384(%r14)
91 # ALL-NEXT: 0.66 0.66 0.68 - 0.50 - 0.50 - - - - - - - - 0.66 0.66 0.68 0.33 0.33 0.34 - 1.00 addq $44, 448(%r14)
92 # ALL-NEXT: 0.66 0.68 0.66 0.50 - 0.50 - - - - - - - - - 0.66 0.68 0.66 0.33 0.34 0.33 1.00 - addq $44, 512(%r14)
93 # ALL-NEXT: 0.68 0.66 0.66 - 0.50 - 0.50 - - - - - - - - 0.68 0.66 0.66 0.34 0.33 0.33 - 1.00 addq $44, 576(%r14)
94 # ALL-NEXT: 0.66 0.66 0.68 0.50 - 0.50 - - - - - - - - - 0.66 0.66 0.68 0.33 0.33 0.34 1.00 - addq $44, 640(%r14)
99 # NOALIAS-NEXT: Index 0123456789
101 # YESALIAS-NEXT: 0123456789 0123456789 0123456789
102 # YESALIAS-NEXT: Index 0123456789 0123456789 0123456789 012
104 # NOALIAS: [0,0] DeeeeeeER . . addq $44, 64(%r14)
105 # NOALIAS-NEXT: [0,1] DeeeeeeER . . addq $44, 128(%r14)
106 # NOALIAS-NEXT: [0,2] D=eeeeeeER. . addq $44, 192(%r14)
107 # NOALIAS-NEXT: [0,3] D==eeeeeeER . addq $44, 256(%r14)
108 # NOALIAS-NEXT: [0,4] D==eeeeeeER . addq $44, 320(%r14)
109 # NOALIAS-NEXT: [0,5] D===eeeeeeER . addq $44, 384(%r14)
110 # NOALIAS-NEXT: [0,6] .D===eeeeeeER . addq $44, 448(%r14)
111 # NOALIAS-NEXT: [0,7] .D===eeeeeeER . addq $44, 512(%r14)
112 # NOALIAS-NEXT: [0,8] .D====eeeeeeER. addq $44, 576(%r14)
113 # NOALIAS-NEXT: [0,9] .D=====eeeeeeER addq $44, 640(%r14)
115 # YESALIAS: [0,0] DeeeeeeER . . . . . . . . . . . . addq $44, 64(%r14)
116 # YESALIAS-NEXT: [0,1] D======eeeeeeER. . . . . . . . . . . addq $44, 128(%r14)
117 # YESALIAS-NEXT: [0,2] D============eeeeeeER . . . . . . . . . addq $44, 192(%r14)
118 # YESALIAS-NEXT: [0,3] D==================eeeeeeER . . . . . . . . addq $44, 256(%r14)
119 # YESALIAS-NEXT: [0,4] D========================eeeeeeER . . . . . . . addq $44, 320(%r14)
120 # YESALIAS-NEXT: [0,5] D==============================eeeeeeER . . . . . . addq $44, 384(%r14)
121 # YESALIAS-NEXT: [0,6] .D===================================eeeeeeER. . . . . addq $44, 448(%r14)
122 # YESALIAS-NEXT: [0,7] .D=========================================eeeeeeER . . . addq $44, 512(%r14)
123 # YESALIAS-NEXT: [0,8] .D===============================================eeeeeeER . . addq $44, 576(%r14)
124 # YESALIAS-NEXT: [0,9] .D=====================================================eeeeeeER addq $44, 640(%r14)
126 # ALL: Average Wait times (based on the timeline view):
127 # ALL-NEXT: [0]: Executions
128 # ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
129 # ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
130 # ALL-NEXT: [3]: Average time elapsed from WB until retire stage
132 # ALL: [0] [1] [2] [3]
133 # ALL-NEXT: 0. 1 1.0 1.0 0.0 addq $44, 64(%r14)
135 # NOALIAS-NEXT: 1. 1 1.0 0.0 0.0 addq $44, 128(%r14)
136 # NOALIAS-NEXT: 2. 1 2.0 1.0 0.0 addq $44, 192(%r14)
137 # NOALIAS-NEXT: 3. 1 3.0 1.0 0.0 addq $44, 256(%r14)
138 # NOALIAS-NEXT: 4. 1 3.0 0.0 0.0 addq $44, 320(%r14)
139 # NOALIAS-NEXT: 5. 1 4.0 1.0 0.0 addq $44, 384(%r14)
140 # NOALIAS-NEXT: 6. 1 4.0 1.0 0.0 addq $44, 448(%r14)
141 # NOALIAS-NEXT: 7. 1 4.0 0.0 0.0 addq $44, 512(%r14)
142 # NOALIAS-NEXT: 8. 1 5.0 1.0 0.0 addq $44, 576(%r14)
143 # NOALIAS-NEXT: 9. 1 6.0 1.0 0.0 addq $44, 640(%r14)
144 # NOALIAS-NEXT: 1 3.3 0.7 0.0 <total>
146 # YESALIAS-NEXT: 1. 1 7.0 0.0 0.0 addq $44, 128(%r14)
147 # YESALIAS-NEXT: 2. 1 13.0 0.0 0.0 addq $44, 192(%r14)
148 # YESALIAS-NEXT: 3. 1 19.0 0.0 0.0 addq $44, 256(%r14)
149 # YESALIAS-NEXT: 4. 1 25.0 0.0 0.0 addq $44, 320(%r14)
150 # YESALIAS-NEXT: 5. 1 31.0 0.0 0.0 addq $44, 384(%r14)
151 # YESALIAS-NEXT: 6. 1 36.0 0.0 0.0 addq $44, 448(%r14)
152 # YESALIAS-NEXT: 7. 1 42.0 0.0 0.0 addq $44, 512(%r14)
153 # YESALIAS-NEXT: 8. 1 48.0 0.0 0.0 addq $44, 576(%r14)
154 # YESALIAS-NEXT: 9. 1 54.0 0.0 0.0 addq $44, 640(%r14)
155 # YESALIAS-NEXT: 1 27.6 0.1 0.0 <total>