1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
| # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -instruction-tables < %s | FileCheck %s
pabsb %mm0, %mm2
pabsb (%rax), %mm2
pabsb %xmm0, %xmm2
pabsb (%rax), %xmm2
pabsd %mm0, %mm2
pabsd (%rax), %mm2
pabsd %xmm0, %xmm2
pabsd (%rax), %xmm2
pabsw %mm0, %mm2
pabsw (%rax), %mm2
pabsw %xmm0, %xmm2
pabsw (%rax), %xmm2
palignr $1, %mm0, %mm2
palignr $1, (%rax), %mm2
palignr $1, %xmm0, %xmm2
palignr $1, (%rax), %xmm2
phaddd %mm0, %mm2
phaddd (%rax), %mm2
phaddd %xmm0, %xmm2
phaddd (%rax), %xmm2
phaddsw %mm0, %mm2
phaddsw (%rax), %mm2
phaddsw %xmm0, %xmm2
phaddsw (%rax), %xmm2
phaddw %mm0, %mm2
phaddw (%rax), %mm2
phaddw %xmm0, %xmm2
phaddw (%rax), %xmm2
phsubd %mm0, %mm2
phsubd (%rax), %mm2
phsubd %xmm0, %xmm2
phsubd (%rax), %xmm2
phsubsw %mm0, %mm2
phsubsw (%rax), %mm2
phsubsw %xmm0, %xmm2
phsubsw (%rax), %xmm2
phsubw %mm0, %mm2
phsubw (%rax), %mm2
phsubw %xmm0, %xmm2
phsubw (%rax), %xmm2
pmaddubsw %mm0, %mm2
pmaddubsw (%rax), %mm2
pmaddubsw %xmm0, %xmm2
pmaddubsw (%rax), %xmm2
pmulhrsw %mm0, %mm2
pmulhrsw (%rax), %mm2
pmulhrsw %xmm0, %xmm2
pmulhrsw (%rax), %xmm2
pshufb %mm0, %mm2
pshufb (%rax), %mm2
pshufb %xmm0, %xmm2
pshufb (%rax), %xmm2
psignb %mm0, %mm2
psignb (%rax), %mm2
psignb %xmm0, %xmm2
psignb (%rax), %xmm2
psignd %mm0, %mm2
psignd (%rax), %mm2
psignd %xmm0, %xmm2
psignd (%rax), %xmm2
psignw %mm0, %mm2
psignw (%rax), %mm2
psignw %xmm0, %xmm2
psignw (%rax), %xmm2
# CHECK: Instruction Info:
# CHECK-NEXT: [1]: #uOps
# CHECK-NEXT: [2]: Latency
# CHECK-NEXT: [3]: RThroughput
# CHECK-NEXT: [4]: MayLoad
# CHECK-NEXT: [5]: MayStore
# CHECK-NEXT: [6]: HasSideEffects (U)
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 2 0.50 pabsb %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * pabsb (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 pabsb %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * pabsb (%rax), %xmm2
# CHECK-NEXT: 1 2 0.50 pabsd %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * pabsd (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 pabsd %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * pabsd (%rax), %xmm2
# CHECK-NEXT: 1 2 0.50 pabsw %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * pabsw (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 pabsw %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * pabsw (%rax), %xmm2
# CHECK-NEXT: 1 2 1.00 palignr $1, %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * palignr $1, (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 palignr $1, %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * palignr $1, (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phaddd %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phaddd (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phaddd %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phaddd (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phaddsw %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phaddsw (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phaddsw %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phaddsw (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phaddw %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phaddw (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phaddw %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phaddw (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phsubd %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phsubd (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phsubd %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phsubd (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phsubsw %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phsubsw (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phsubsw %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phsubsw (%rax), %xmm2
# CHECK-NEXT: 3 5 2.00 phsubw %mm0, %mm2
# CHECK-NEXT: 4 10 2.00 * phsubw (%rax), %mm2
# CHECK-NEXT: 3 5 2.00 phsubw %xmm0, %xmm2
# CHECK-NEXT: 4 10 2.00 * phsubw (%rax), %xmm2
# CHECK-NEXT: 1 4 1.00 pmaddubsw %mm0, %mm2
# CHECK-NEXT: 1 9 1.50 * pmaddubsw (%rax), %mm2
# CHECK-NEXT: 1 4 1.00 pmaddubsw %xmm0, %xmm2
# CHECK-NEXT: 1 9 1.50 * pmaddubsw (%rax), %xmm2
# CHECK-NEXT: 1 4 1.00 pmulhrsw %mm0, %mm2
# CHECK-NEXT: 1 9 1.50 * pmulhrsw (%rax), %mm2
# CHECK-NEXT: 1 4 1.00 pmulhrsw %xmm0, %xmm2
# CHECK-NEXT: 1 9 1.50 * pmulhrsw (%rax), %xmm2
# CHECK-NEXT: 1 3 1.00 pshufb %mm0, %mm2
# CHECK-NEXT: 1 8 1.50 * pshufb (%rax), %mm2
# CHECK-NEXT: 1 3 1.50 pshufb %xmm0, %xmm2
# CHECK-NEXT: 1 8 1.50 * pshufb (%rax), %xmm2
# CHECK-NEXT: 1 2 0.50 psignb %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * psignb (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 psignb %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * psignb (%rax), %xmm2
# CHECK-NEXT: 1 2 0.50 psignd %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * psignd (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 psignd %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * psignd (%rax), %xmm2
# CHECK-NEXT: 1 2 0.50 psignw %mm0, %mm2
# CHECK-NEXT: 1 7 1.50 * psignw (%rax), %mm2
# CHECK-NEXT: 1 2 1.00 psignw %xmm0, %xmm2
# CHECK-NEXT: 1 7 1.50 * psignw (%rax), %xmm2
# CHECK: Resources:
# CHECK-NEXT: [0.0] - PdAGLU01
# CHECK-NEXT: [0.1] - PdAGLU01
# CHECK-NEXT: [1] - PdBranch
# CHECK-NEXT: [2] - PdCount
# CHECK-NEXT: [3] - PdDiv
# CHECK-NEXT: [4] - PdEX0
# CHECK-NEXT: [5] - PdEX1
# CHECK-NEXT: [6] - PdFPCVT
# CHECK-NEXT: [7.0] - PdFPFMA
# CHECK-NEXT: [7.1] - PdFPFMA
# CHECK-NEXT: [8.0] - PdFPMAL
# CHECK-NEXT: [8.1] - PdFPMAL
# CHECK-NEXT: [9] - PdFPMMA
# CHECK-NEXT: [10] - PdFPSTO
# CHECK-NEXT: [11] - PdFPU0
# CHECK-NEXT: [12] - PdFPU1
# CHECK-NEXT: [13] - PdFPU2
# CHECK-NEXT: [14] - PdFPU3
# CHECK-NEXT: [15] - PdFPXBR
# CHECK-NEXT: [16.0] - PdLoad
# CHECK-NEXT: [16.1] - PdLoad
# CHECK-NEXT: [17] - PdMul
# CHECK-NEXT: [18] - PdStore
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
# CHECK-NEXT: 48.00 48.00 - - - - - - - - 75.00 75.00 8.00 - 36.00 28.00 - - - 48.00 48.00 - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - pabsb %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - pabsb (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - pabsb %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - pabsb (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - pabsd %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - pabsd (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - pabsd %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - pabsd (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - pabsw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - pabsw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - pabsw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - pabsw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - palignr $1, %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - palignr $1, (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - palignr $1, %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - palignr $1, (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddd %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddd (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddd %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddd (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddsw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddsw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddsw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddsw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phaddw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phaddw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubd %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubd (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubd %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubd (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubsw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubsw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubsw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubsw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - - - - - phsubw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 2.00 2.00 - - 0.50 0.50 - - - 1.50 1.50 - - phsubw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - pmaddubsw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - pmaddubsw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - pmaddubsw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - pmaddubsw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - pmulhrsw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - pmulhrsw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - pmulhrsw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - pmulhrsw (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - pshufb %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - pshufb (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.50 1.50 - - 0.50 0.50 - - - - - - - pshufb %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.50 1.50 - - 0.50 0.50 - - - 1.50 1.50 - - pshufb (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - psignb %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - psignb (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - psignb %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - psignb (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - psignd %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - psignd (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - psignd %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - psignd (%rax), %xmm2
# CHECK-NEXT: - - - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - - - - - psignw %mm0, %mm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 0.50 0.50 - - 0.50 0.50 - - - 1.50 1.50 - - psignw (%rax), %mm2
# CHECK-NEXT: - - - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - - - - - psignw %xmm0, %xmm2
# CHECK-NEXT: 1.50 1.50 - - - - - - - - 1.00 1.00 - - 0.50 0.50 - - - 1.50 1.50 - - psignw (%rax), %xmm2
|