Home | History | Annotate | Download | only in X86

Lines Matching full:cost

1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
5 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX
6 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver4 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX2
8 ; Verify the cost of vector logical shift right instructions.
15 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v2i64':
16 ; SSE2: Found an estimated cost of 4 for instruction: %shift
17 ; SSE41: Found an estimated cost of 4 for instruction: %shift
18 ; AVX: Found an estimated cost of 4 for instruction: %shift
19 ; AVX2: Found an estimated cost of 1 for instruction: %shift
20 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
21 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
27 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v4i64':
28 ; SSE2: Found an estimated cost of 8 for instruction: %shift
29 ; SSE41: Found an estimated cost of 8 for instruction: %shift
30 ; AVX: Found an estimated cost of 8 for instruction: %shift
31 ; AVX2: Found an estimated cost of 1 for instruction: %shift
32 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
33 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
39 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v4i32':
40 ; SSE2: Found an estimated cost of 16 for instruction: %shift
41 ; SSE41: Found an estimated cost of 16 for instruction: %shift
42 ; AVX: Found an estimated cost of 16 for instruction: %shift
43 ; AVX2: Found an estimated cost of 1 for instruction: %shift
44 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
45 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
51 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v8i32':
52 ; SSE2: Found an estimated cost of 32 for instruction: %shift
53 ; SSE41: Found an estimated cost of 32 for instruction: %shift
54 ; AVX: Found an estimated cost of 32 for instruction: %shift
55 ; AVX2: Found an estimated cost of 1 for instruction: %shift
56 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
57 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
63 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v8i16':
64 ; SSE2: Found an estimated cost of 32 for instruction: %shift
65 ; SSE41: Found an estimated cost of 32 for instruction: %shift
66 ; AVX: Found an estimated cost of 32 for instruction: %shift
67 ; AVX2: Found an estimated cost of 32 for instruction: %shift
68 ; XOP: Found an estimated cost of 2 for instruction: %shift
74 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v16i16':
75 ; SSE2: Found an estimated cost of 64 for instruction: %shift
76 ; SSE41: Found an estimated cost of 64 for instruction: %shift
77 ; AVX: Found an estimated cost of 64 for instruction: %shift
78 ; AVX2: Found an estimated cost of 10 for instruction: %shift
79 ; XOP: Found an estimated cost of 4 for instruction: %shift
85 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v16i8':
86 ; SSE2: Found an estimated cost of 26 for instruction: %shift
87 ; SSE41: Found an estimated cost of 26 for instruction: %shift
88 ; AVX: Found an estimated cost of 26 for instruction: %shift
89 ; AVX2: Found an estimated cost of 26 for instruction: %shift
90 ; XOP: Found an estimated cost of 2 for instruction: %shift
96 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v32i8':
97 ; SSE2: Found an estimated cost of 52 for instruction: %shift
98 ; SSE41: Found an estimated cost of 52 for instruction: %shift
99 ; AVX: Found an estimated cost of 52 for instruction: %shift
100 ; AVX2: Found an estimated cost of 11 for instruction: %shift
101 ; XOP: Found an estimated cost of 4 for instruction: %shift
111 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v2i64':
112 ; SSE2: Found an estimated cost of 4 for instruction: %shift
113 ; SSE41: Found an estimated cost of 4 for instruction: %shift
114 ; AVX: Found an estimated cost of 4 for instruction: %shift
115 ; AVX2: Found an estimated cost of 1 for instruction: %shift
116 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
117 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
124 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v4i64':
125 ; SSE2: Found an estimated cost of 8 for instruction: %shift
126 ; SSE41: Found an estimated cost of 8 for instruction: %shift
127 ; AVX: Found an estimated cost of 8 for instruction: %shift
128 ; AVX2: Found an estimated cost of 1 for instruction: %shift
129 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
130 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
137 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v4i32':
138 ; SSE2: Found an estimated cost of 16 for instruction: %shift
139 ; SSE41: Found an estimated cost of 16 for instruction: %shift
140 ; AVX: Found an estimated cost of 16 for instruction: %shift
141 ; AVX2: Found an estimated cost of 1 for instruction: %shift
142 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
143 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
150 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v8i32':
151 ; SSE2: Found an estimated cost of 32 for instruction: %shift
152 ; SSE41: Found an estimated cost of 32 for instruction: %shift
153 ; AVX: Found an estimated cost of 32 for instruction: %shift
154 ; AVX2: Found an estimated cost of 1 for instruction: %shift
155 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
156 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
163 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v8i16':
164 ; SSE2: Found an estimated cost of 32 for instruction: %shift
165 ; SSE41: Found an estimated cost of 32 for instruction: %shift
166 ; AVX: Found an estimated cost of 32 for instruction: %shift
167 ; AVX2: Found an estimated cost of 32 for instruction: %shift
168 ; XOP: Found an estimated cost of 2 for instruction: %shift
175 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v16i16':
176 ; SSE2: Found an estimated cost of 64 for instruction: %shift
177 ; SSE41: Found an estimated cost of 64 for instruction: %shift
178 ; AVX: Found an estimated cost of 64 for instruction: %shift
179 ; AVX2: Found an estimated cost of 10 for instruction: %shift
180 ; XOP: Found an estimated cost of 4 for instruction: %shift
187 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v16i8':
188 ; SSE2: Found an estimated cost of 26 for instruction: %shift
189 ; SSE41: Found an estimated cost of 26 for instruction: %shift
190 ; AVX: Found an estimated cost of 26 for instruction: %shift
191 ; AVX2: Found an estimated cost of 26 for instruction: %shift
192 ; XOP: Found an estimated cost of 2 for instruction: %shift
199 ; CHECK: 'Cost Model Analysis' for function 'splatvar_shift_v32i8':
200 ; SSE2: Found an estimated cost of 52 for instruction: %shift
201 ; SSE41: Found an estimated cost of 52 for instruction: %shift
202 ; AVX: Found an estimated cost of 52 for instruction: %shift
203 ; AVX2: Found an estimated cost of 11 for instruction: %shift
204 ; XOP: Found an estimated cost of 4 for instruction: %shift
215 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v2i64':
216 ; SSE2: Found an estimated cost of 4 for instruction: %shift
217 ; SSE41: Found an estimated cost of 4 for instruction: %shift
218 ; AVX: Found an estimated cost of 4 for instruction: %shift
219 ; AVX2: Found an estimated cost of 1 for instruction: %shift
220 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
221 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
227 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v4i64':
228 ; SSE2: Found an estimated cost of 8 for instruction: %shift
229 ; SSE41: Found an estimated cost of 8 for instruction: %shift
230 ; AVX: Found an estimated cost of 8 for instruction: %shift
231 ; AVX2: Found an estimated cost of 1 for instruction: %shift
232 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
233 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
239 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v4i32':
240 ; SSE2: Found an estimated cost of 16 for instruction: %shift
241 ; SSE41: Found an estimated cost of 16 for instruction: %shift
242 ; AVX: Found an estimated cost of 16 for instruction: %shift
243 ; AVX2: Found an estimated cost of 1 for instruction: %shift
244 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
245 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
251 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v8i32':
252 ; SSE2: Found an estimated cost of 32 for instruction: %shift
253 ; SSE41: Found an estimated cost of 32 for instruction: %shift
254 ; AVX: Found an estimated cost of 32 for instruction: %shift
255 ; AVX2: Found an estimated cost of 1 for instruction: %shift
256 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
257 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
263 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v8i16':
264 ; SSE2: Found an estimated cost of 32 for instruction: %shift
265 ; SSE41: Found an estimated cost of 32 for instruction: %shift
266 ; AVX: Found an estimated cost of 32 for instruction: %shift
267 ; AVX2: Found an estimated cost of 32 for instruction: %shift
268 ; XOP: Found an estimated cost of 2 for instruction: %shift
274 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v16i16':
275 ; SSE2: Found an estimated cost of 64 for instruction: %shift
276 ; SSE41: Found an estimated cost of 64 for instruction: %shift
277 ; AVX: Found an estimated cost of 64 for instruction: %shift
278 ; AVX2: Found an estimated cost of 10 for instruction: %shift
279 ; XOP: Found an estimated cost of 4 for instruction: %shift
285 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v16i8':
286 ; SSE2: Found an estimated cost of 26 for instruction: %shift
287 ; SSE41: Found an estimated cost of 26 for instruction: %shift
288 ; AVX: Found an estimated cost of 26 for instruction: %shift
289 ; AVX2: Found an estimated cost of 26 for instruction: %shift
290 ; XOP: Found an estimated cost of 2 for instruction: %shift
296 ; CHECK: 'Cost Model Analysis' for function 'constant_shift_v32i8':
297 ; SSE2: Found an estimated cost of 52 for instruction: %shift
298 ; SSE41: Found an estimated cost of 52 for instruction: %shift
299 ; AVX: Found an estimated cost of 52 for instruction: %shift
300 ; AVX2: Found an estimated cost of 11 for instruction: %shift
301 ; XOP: Found an estimated cost of 4 for instruction: %shift
311 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v2i64':
312 ; SSE2: Found an estimated cost of 1 for instruction: %shift
313 ; SSE41: Found an estimated cost of 1 for instruction: %shift
314 ; AVX: Found an estimated cost of 1 for instruction: %shift
315 ; AVX2: Found an estimated cost of 1 for instruction: %shift
316 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
317 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
323 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v4i64':
324 ; SSE2: Found an estimated cost of 2 for instruction: %shift
325 ; SSE41: Found an estimated cost of 2 for instruction: %shift
326 ; AVX: Found an estimated cost of 2 for instruction: %shift
327 ; AVX2: Found an estimated cost of 1 for instruction: %shift
328 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
329 ; XOPAVX2: Found an estimated cost
335 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v4i32':
336 ; SSE2: Found an estimated cost of 1 for instruction: %shift
337 ; SSE41: Found an estimated cost of 1 for instruction: %shift
338 ; AVX: Found an estimated cost of 1 for instruction: %shift
339 ; AVX2: Found an estimated cost of 1 for instruction: %shift
340 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift
341 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
347 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v8i32':
348 ; SSE2: Found an estimated cost of 2 for instruction: %shift
349 ; SSE41: Found an estimated cost of 2 for instruction: %shift
350 ; AVX: Found an estimated cost of 2 for instruction: %shift
351 ; AVX2: Found an estimated cost of 1 for instruction: %shift
352 ; XOPAVX: Found an estimated cost of 4 for instruction: %shift
353 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift
359 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v8i16':
360 ; SSE2: Found an estimated cost of 1 for instruction: %shift
361 ; SSE41: Found an estimated cost of 1 for instruction: %shift
362 ; AVX: Found an estimated cost of 1 for instruction: %shift
363 ; AVX2: Found an estimated cost of 1 for instruction: %shift
364 ; XOP: Found an estimated cost of 2 for instruction: %shift
370 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v16i16':
371 ; SSE2: Found an estimated cost of 2 for instruction: %shift
372 ; SSE41: Found an estimated cost of 2 for instruction: %shift
373 ; AVX: Found an estimated cost of 2 for instruction: %shift
374 ; AVX2: Found an estimated cost of 10 for instruction: %shift
375 ; XOP: Found an estimated cost of 4 for instruction: %shift
381 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v16i8':
382 ; SSE2: Found an estimated cost of 1 for instruction: %shift
383 ; SSE41: Found an estimated cost of 1 for instruction: %shift
384 ; AVX: Found an estimated cost of 1 for instruction: %shift
385 ; AVX2: Found an estimated cost of 1 for instruction: %shift
386 ; XOP: Found an estimated cost of 2 for instruction: %shift
392 ; CHECK: 'Cost Model Analysis' for function 'splatconstant_shift_v32i8':
393 ; SSE2: Found an estimated cost of 2 for instruction: %shift
394 ; SSE41: Found an estimated cost of 2 for instruction: %shift
395 ; AVX: Found an estimated cost of 2 for instruction: %shift
396 ; AVX2: Found an estimated cost of 11 for instruction: %shift
397 ; XOP: Found an estimated cost of 4 for instruction: %shift