1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,-bmi2,+slow-shld | FileCheck %s --check-prefixes=ALL,X64,X64-NO-BMI2,X64-NO-SHLD,X64-NO-BMI2-NO-SHLD
3 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,-bmi2,-slow-shld | FileCheck %s --check-prefixes=ALL,X64,X64-NO-BMI2,X64-SHLD,X64-NO-BMI2-HAVE-SHLD
4 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,+bmi2,+slow-shld | FileCheck %s --check-prefixes=ALL,X64,X64-BMI2,X64-NO-SHLD,X64-HAVE-BMI2-NO-SHLD
5 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,+bmi2,-slow-shld | FileCheck %s --check-prefixes=ALL,X64,X64-BMI2,X64-SHLD,X64-HAVE-BMI2-HAVE-SHLD
6 ; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2,-bmi2,+slow-shld | FileCheck %s --check-prefixes=ALL,X86,X86-NO-BMI2,X86-NO-SHLD,X86-NO-BMI2-NO-SHLD
7 ; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2,-bmi2,-slow-shld | FileCheck %s --check-prefixes=ALL,X86,X86-NO-BMI2,X86-SHLD,X86-NO-BMI2-HAVE-SHLD
8 ; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2,+bmi2,+slow-shld | FileCheck %s --check-prefixes=ALL,X86,X86-BMI2,X86-NO-SHLD,X86-HAVE-BMI2-NO-SHLD
9 ; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2,+bmi2,-slow-shld | FileCheck %s --check-prefixes=ALL,X86,X86-BMI2,X86-SHLD,X86-HAVE-BMI2-HAVE-SHLD
11 define void @lshr_4bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
12 ; X64-NO-BMI2-LABEL: lshr_4bytes:
13 ; X64-NO-BMI2: # %bb.0:
14 ; X64-NO-BMI2-NEXT: movl (%rdi), %eax
15 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
16 ; X64-NO-BMI2-NEXT: shrl %cl, %eax
17 ; X64-NO-BMI2-NEXT: movl %eax, (%rdx)
18 ; X64-NO-BMI2-NEXT: retq
20 ; X64-BMI2-LABEL: lshr_4bytes:
22 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
23 ; X64-BMI2-NEXT: shrxl %eax, (%rdi), %eax
24 ; X64-BMI2-NEXT: movl %eax, (%rdx)
27 ; X86-NO-BMI2-LABEL: lshr_4bytes:
28 ; X86-NO-BMI2: # %bb.0:
29 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
30 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
31 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
32 ; X86-NO-BMI2-NEXT: movl (%edx), %edx
33 ; X86-NO-BMI2-NEXT: movzbl (%ecx), %ecx
34 ; X86-NO-BMI2-NEXT: shrl %cl, %edx
35 ; X86-NO-BMI2-NEXT: movl %edx, (%eax)
36 ; X86-NO-BMI2-NEXT: retl
38 ; X86-BMI2-LABEL: lshr_4bytes:
40 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
41 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
42 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
43 ; X86-BMI2-NEXT: movzbl (%edx), %edx
44 ; X86-BMI2-NEXT: shrxl %edx, (%ecx), %ecx
45 ; X86-BMI2-NEXT: movl %ecx, (%eax)
47 %src = load i32, ptr %src.ptr, align 1
48 %bitOff = load i32, ptr %bitOff.ptr, align 1
49 %res = lshr i32 %src, %bitOff
50 store i32 %res, ptr %dst, align 1
53 define void @shl_4bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
54 ; X64-NO-BMI2-LABEL: shl_4bytes:
55 ; X64-NO-BMI2: # %bb.0:
56 ; X64-NO-BMI2-NEXT: movl (%rdi), %eax
57 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
58 ; X64-NO-BMI2-NEXT: shll %cl, %eax
59 ; X64-NO-BMI2-NEXT: movl %eax, (%rdx)
60 ; X64-NO-BMI2-NEXT: retq
62 ; X64-BMI2-LABEL: shl_4bytes:
64 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
65 ; X64-BMI2-NEXT: shlxl %eax, (%rdi), %eax
66 ; X64-BMI2-NEXT: movl %eax, (%rdx)
69 ; X86-NO-BMI2-LABEL: shl_4bytes:
70 ; X86-NO-BMI2: # %bb.0:
71 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
72 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
73 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
74 ; X86-NO-BMI2-NEXT: movl (%edx), %edx
75 ; X86-NO-BMI2-NEXT: movzbl (%ecx), %ecx
76 ; X86-NO-BMI2-NEXT: shll %cl, %edx
77 ; X86-NO-BMI2-NEXT: movl %edx, (%eax)
78 ; X86-NO-BMI2-NEXT: retl
80 ; X86-BMI2-LABEL: shl_4bytes:
82 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
83 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
84 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
85 ; X86-BMI2-NEXT: movzbl (%edx), %edx
86 ; X86-BMI2-NEXT: shlxl %edx, (%ecx), %ecx
87 ; X86-BMI2-NEXT: movl %ecx, (%eax)
89 %src = load i32, ptr %src.ptr, align 1
90 %bitOff = load i32, ptr %bitOff.ptr, align 1
91 %res = shl i32 %src, %bitOff
92 store i32 %res, ptr %dst, align 1
95 define void @ashr_4bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
96 ; X64-NO-BMI2-LABEL: ashr_4bytes:
97 ; X64-NO-BMI2: # %bb.0:
98 ; X64-NO-BMI2-NEXT: movl (%rdi), %eax
99 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
100 ; X64-NO-BMI2-NEXT: sarl %cl, %eax
101 ; X64-NO-BMI2-NEXT: movl %eax, (%rdx)
102 ; X64-NO-BMI2-NEXT: retq
104 ; X64-BMI2-LABEL: ashr_4bytes:
106 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
107 ; X64-BMI2-NEXT: sarxl %eax, (%rdi), %eax
108 ; X64-BMI2-NEXT: movl %eax, (%rdx)
109 ; X64-BMI2-NEXT: retq
111 ; X86-NO-BMI2-LABEL: ashr_4bytes:
112 ; X86-NO-BMI2: # %bb.0:
113 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
114 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
115 ; X86-NO-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
116 ; X86-NO-BMI2-NEXT: movl (%edx), %edx
117 ; X86-NO-BMI2-NEXT: movzbl (%ecx), %ecx
118 ; X86-NO-BMI2-NEXT: sarl %cl, %edx
119 ; X86-NO-BMI2-NEXT: movl %edx, (%eax)
120 ; X86-NO-BMI2-NEXT: retl
122 ; X86-BMI2-LABEL: ashr_4bytes:
124 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %eax
125 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %ecx
126 ; X86-BMI2-NEXT: movl {{[0-9]+}}(%esp), %edx
127 ; X86-BMI2-NEXT: movzbl (%edx), %edx
128 ; X86-BMI2-NEXT: sarxl %edx, (%ecx), %ecx
129 ; X86-BMI2-NEXT: movl %ecx, (%eax)
130 ; X86-BMI2-NEXT: retl
131 %src = load i32, ptr %src.ptr, align 1
132 %bitOff = load i32, ptr %bitOff.ptr, align 1
133 %res = ashr i32 %src, %bitOff
134 store i32 %res, ptr %dst, align 1
138 define void @lshr_8bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
139 ; X64-NO-BMI2-LABEL: lshr_8bytes:
140 ; X64-NO-BMI2: # %bb.0:
141 ; X64-NO-BMI2-NEXT: movq (%rdi), %rax
142 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
143 ; X64-NO-BMI2-NEXT: shrq %cl, %rax
144 ; X64-NO-BMI2-NEXT: movq %rax, (%rdx)
145 ; X64-NO-BMI2-NEXT: retq
147 ; X64-BMI2-LABEL: lshr_8bytes:
149 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
150 ; X64-BMI2-NEXT: shrxq %rax, (%rdi), %rax
151 ; X64-BMI2-NEXT: movq %rax, (%rdx)
152 ; X64-BMI2-NEXT: retq
154 ; X86-NO-BMI2-NO-SHLD-LABEL: lshr_8bytes:
155 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
156 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
157 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
158 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
159 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
160 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
161 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
162 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %ebx
163 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
164 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%eax), %eax
165 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
166 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
167 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %cl
168 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %edi
169 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
170 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
171 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
172 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
173 ; X86-NO-BMI2-NO-SHLD-NEXT: xorl %ecx, %ecx
174 ; X86-NO-BMI2-NO-SHLD-NEXT: testb $32, %al
175 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovnel %esi, %edi
176 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovel %esi, %ecx
177 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%edx)
178 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, (%edx)
179 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
180 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
181 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
182 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
184 ; X86-NO-BMI2-HAVE-SHLD-LABEL: lshr_8bytes:
185 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
186 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
187 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
188 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
189 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
190 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
191 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esi), %edx
192 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%esi), %esi
193 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
194 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %edi
195 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
196 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
197 ; X86-NO-BMI2-HAVE-SHLD-NEXT: xorl %esi, %esi
198 ; X86-NO-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
199 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovnel %edi, %edx
200 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovel %edi, %esi
201 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 4(%eax)
202 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
203 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
204 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
205 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
207 ; X86-HAVE-BMI2-NO-SHLD-LABEL: lshr_8bytes:
208 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
209 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
210 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
211 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
212 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
213 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
214 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
215 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edx), %esi
216 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %ecx
217 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, (%edx), %edx
218 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %ebx
219 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %bl
220 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %edi
221 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, %edi, %edi
222 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edx, %edi
223 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %edx
224 ; X86-HAVE-BMI2-NO-SHLD-NEXT: xorl %esi, %esi
225 ; X86-HAVE-BMI2-NO-SHLD-NEXT: testb $32, %cl
226 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovnel %edx, %edi
227 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovel %edx, %esi
228 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 4(%eax)
229 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, (%eax)
230 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
231 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
232 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
233 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
235 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_8bytes:
236 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
237 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
238 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
239 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
240 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
241 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
242 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esi), %edx
243 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%esi), %esi
244 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
245 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
246 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
247 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: xorl %edi, %edi
248 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
249 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovnel %esi, %edx
250 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovel %esi, %edi
251 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 4(%eax)
252 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
253 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
254 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
255 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
256 %src = load i64, ptr %src.ptr, align 1
257 %bitOff = load i64, ptr %bitOff.ptr, align 1
258 %res = lshr i64 %src, %bitOff
259 store i64 %res, ptr %dst, align 1
262 define void @shl_8bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
263 ; X64-NO-BMI2-LABEL: shl_8bytes:
264 ; X64-NO-BMI2: # %bb.0:
265 ; X64-NO-BMI2-NEXT: movq (%rdi), %rax
266 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
267 ; X64-NO-BMI2-NEXT: shlq %cl, %rax
268 ; X64-NO-BMI2-NEXT: movq %rax, (%rdx)
269 ; X64-NO-BMI2-NEXT: retq
271 ; X64-BMI2-LABEL: shl_8bytes:
273 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
274 ; X64-BMI2-NEXT: shlxq %rax, (%rdi), %rax
275 ; X64-BMI2-NEXT: movq %rax, (%rdx)
276 ; X64-BMI2-NEXT: retq
278 ; X86-NO-BMI2-NO-SHLD-LABEL: shl_8bytes:
279 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
280 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
281 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
282 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
283 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
284 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
285 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
286 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %esi
287 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %ebx
288 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%eax), %eax
289 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
290 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
291 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %cl
292 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %edi
293 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
294 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
295 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
296 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
297 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
298 ; X86-NO-BMI2-NO-SHLD-NEXT: xorl %ecx, %ecx
299 ; X86-NO-BMI2-NO-SHLD-NEXT: testb $32, %al
300 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovnel %esi, %edi
301 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovel %esi, %ecx
302 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%edx)
303 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 4(%edx)
304 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
305 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
306 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
307 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
309 ; X86-NO-BMI2-HAVE-SHLD-LABEL: shl_8bytes:
310 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
311 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
312 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
313 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
314 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
315 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
316 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%edx), %esi
317 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%edx), %edx
318 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
319 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %edi
320 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
321 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, %edx
322 ; X86-NO-BMI2-HAVE-SHLD-NEXT: xorl %esi, %esi
323 ; X86-NO-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
324 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovnel %edi, %edx
325 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovel %edi, %esi
326 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, 4(%eax)
327 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, (%eax)
328 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
329 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
330 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
332 ; X86-HAVE-BMI2-NO-SHLD-LABEL: shl_8bytes:
333 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
334 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
335 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
336 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
337 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
338 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
339 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
340 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %esi
341 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %ecx
342 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, 4(%edx), %edx
343 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %ebx
344 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %bl
345 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %esi, %edi
346 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
347 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %esi, %esi
348 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edx, %esi
349 ; X86-HAVE-BMI2-NO-SHLD-NEXT: xorl %edx, %edx
350 ; X86-HAVE-BMI2-NO-SHLD-NEXT: testb $32, %cl
351 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovnel %edi, %esi
352 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovel %edi, %edx
353 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, (%eax)
354 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 4(%eax)
355 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
356 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
357 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
358 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
360 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: shl_8bytes:
361 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
362 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
363 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
364 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
365 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
366 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
367 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edx), %esi
368 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edx), %edx
369 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
370 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, %edx
371 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %esi
372 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: xorl %edi, %edi
373 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
374 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovnel %esi, %edx
375 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovel %esi, %edi
376 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, 4(%eax)
377 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, (%eax)
378 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
379 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
380 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
381 %src = load i64, ptr %src.ptr, align 1
382 %bitOff = load i64, ptr %bitOff.ptr, align 1
383 %res = shl i64 %src, %bitOff
384 store i64 %res, ptr %dst, align 1
387 define void @ashr_8bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
388 ; X64-NO-BMI2-LABEL: ashr_8bytes:
389 ; X64-NO-BMI2: # %bb.0:
390 ; X64-NO-BMI2-NEXT: movq (%rdi), %rax
391 ; X64-NO-BMI2-NEXT: movzbl (%rsi), %ecx
392 ; X64-NO-BMI2-NEXT: sarq %cl, %rax
393 ; X64-NO-BMI2-NEXT: movq %rax, (%rdx)
394 ; X64-NO-BMI2-NEXT: retq
396 ; X64-BMI2-LABEL: ashr_8bytes:
398 ; X64-BMI2-NEXT: movzbl (%rsi), %eax
399 ; X64-BMI2-NEXT: sarxq %rax, (%rdi), %rax
400 ; X64-BMI2-NEXT: movq %rax, (%rdx)
401 ; X64-BMI2-NEXT: retq
403 ; X86-NO-BMI2-NO-SHLD-LABEL: ashr_8bytes:
404 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
405 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
406 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
407 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
408 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
409 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
410 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
411 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %ebx
412 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
413 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%eax), %eax
414 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
415 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
416 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %cl
417 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %edi
418 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
419 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
420 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
421 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
422 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl %cl, %ebx
423 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl $31, %esi
424 ; X86-NO-BMI2-NO-SHLD-NEXT: testb $32, %al
425 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovnel %ebx, %edi
426 ; X86-NO-BMI2-NO-SHLD-NEXT: cmovel %ebx, %esi
427 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 4(%edx)
428 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, (%edx)
429 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
430 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
431 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
432 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
434 ; X86-NO-BMI2-HAVE-SHLD-LABEL: ashr_8bytes:
435 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
436 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
437 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
438 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
439 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
440 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
441 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esi), %edx
442 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%esi), %esi
443 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
444 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %edi
445 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl %cl, %edi
446 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
447 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl $31, %esi
448 ; X86-NO-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
449 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovnel %edi, %edx
450 ; X86-NO-BMI2-HAVE-SHLD-NEXT: cmovel %edi, %esi
451 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 4(%eax)
452 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
453 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
454 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
455 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
457 ; X86-HAVE-BMI2-NO-SHLD-LABEL: ashr_8bytes:
458 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
459 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
460 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
461 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
462 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
463 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
464 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
465 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%esi), %ecx
466 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%edx), %edx
467 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, (%esi), %esi
468 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %ebx
469 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %bl
470 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
471 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, %edi, %edi
472 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %edi
473 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarxl %edx, %ecx, %esi
474 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarl $31, %ecx
475 ; X86-HAVE-BMI2-NO-SHLD-NEXT: testb $32, %dl
476 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovnel %esi, %edi
477 ; X86-HAVE-BMI2-NO-SHLD-NEXT: cmovel %esi, %ecx
478 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
479 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, (%eax)
480 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
481 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
482 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
483 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
485 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_8bytes:
486 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
487 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
488 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
489 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
490 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
491 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
492 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esi), %edx
493 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%esi), %esi
494 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
495 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
496 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarxl %ecx, %esi, %edi
497 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarl $31, %esi
498 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: testb $32, %cl
499 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovnel %edi, %edx
500 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: cmovel %edi, %esi
501 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 4(%eax)
502 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
503 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
504 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
505 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
506 %src = load i64, ptr %src.ptr, align 1
507 %bitOff = load i64, ptr %bitOff.ptr, align 1
508 %res = ashr i64 %src, %bitOff
509 store i64 %res, ptr %dst, align 1
513 define void @lshr_16bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
514 ; X64-NO-BMI2-NO-SHLD-LABEL: lshr_16bytes:
515 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
516 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %r8
517 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rdi
518 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %eax
519 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
520 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r8
521 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %cl
522 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rdi,%rdi), %rsi
523 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rsi
524 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r8, %rsi
525 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
526 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rdi
527 ; X64-NO-BMI2-NO-SHLD-NEXT: xorl %ecx, %ecx
528 ; X64-NO-BMI2-NO-SHLD-NEXT: testb $64, %al
529 ; X64-NO-BMI2-NO-SHLD-NEXT: cmovneq %rdi, %rsi
530 ; X64-NO-BMI2-NO-SHLD-NEXT: cmoveq %rdi, %rcx
531 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, 8(%rdx)
532 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rsi, (%rdx)
533 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
535 ; X64-NO-BMI2-HAVE-SHLD-LABEL: lshr_16bytes:
536 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
537 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
538 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
539 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
540 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, %rsi
541 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rsi
542 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %rax
543 ; X64-NO-BMI2-HAVE-SHLD-NEXT: xorl %edi, %edi
544 ; X64-NO-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
545 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmovneq %rsi, %rax
546 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmoveq %rsi, %rdi
547 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
548 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
549 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
551 ; X64-HAVE-BMI2-NO-SHLD-LABEL: lshr_16bytes:
552 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
553 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rax
554 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %ecx
555 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, (%rdi), %rsi
556 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %edi
557 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %dil
558 ; X64-HAVE-BMI2-NO-SHLD-NEXT: leaq (%rax,%rax), %r8
559 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rdi, %r8, %rdi
560 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rsi, %rdi
561 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rax, %rax
562 ; X64-HAVE-BMI2-NO-SHLD-NEXT: xorl %esi, %esi
563 ; X64-HAVE-BMI2-NO-SHLD-NEXT: testb $64, %cl
564 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmovneq %rax, %rdi
565 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmoveq %rax, %rsi
566 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, 8(%rdx)
567 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
568 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
570 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_16bytes:
571 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
572 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
573 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
574 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
575 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %rax
576 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %rdi, %rsi
577 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: xorl %edi, %edi
578 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
579 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmovneq %rsi, %rax
580 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmoveq %rsi, %rdi
581 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
582 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
583 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
585 ; X86-NO-BMI2-NO-SHLD-LABEL: lshr_16bytes:
586 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
587 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
588 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
589 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
590 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
591 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $36, %esp
592 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
593 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
594 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
595 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
596 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
597 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ecx
598 ; X86-NO-BMI2-NO-SHLD-NEXT: movb (%eax), %ah
599 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
600 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
601 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
602 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
603 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
604 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
605 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
606 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
607 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %al
608 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
609 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %ah
610 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $15, %ah
611 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl %ah, %ebp
612 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%esp,%ebp), %esi
613 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
614 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
615 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
616 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edx
617 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %dl
618 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%esp,%ebp), %ecx
619 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
620 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
621 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
622 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
623 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
624 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%esp,%ebp), %ebx
625 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
626 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
627 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %esi, %esi
628 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
629 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
630 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %esi
631 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
632 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, (%esp) # 4-byte Folded Spill
633 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%esp,%ebp), %ebx
634 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %ebp
635 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
636 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
637 ; X86-NO-BMI2-NO-SHLD-NEXT: orl (%esp), %ebp # 4-byte Folded Reload
638 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
639 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
640 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
641 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 12(%edx)
642 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 8(%edx)
643 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, (%edx)
644 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 4(%edx)
645 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $36, %esp
646 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
647 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
648 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
649 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
650 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
652 ; X86-NO-BMI2-HAVE-SHLD-LABEL: lshr_16bytes:
653 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
654 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
655 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
656 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
657 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
658 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
659 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
660 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
661 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
662 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
663 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
664 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ecx
665 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movb (%eax), %ah
666 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
667 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
668 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
669 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%esp)
670 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
671 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
672 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
673 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
674 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movb %ah, %al
675 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
676 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %ah
677 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $15, %ah
678 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl %ah, %ebp
679 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%esp,%ebp), %esi
680 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %edx
681 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
682 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edx
683 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
684 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%esp,%ebp), %ebx
685 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %edi
686 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
687 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edx, %edi
688 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp,%ebp), %edx
689 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%esp,%ebp), %ebp
690 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
691 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebp, %ebx
692 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
693 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 8(%ecx)
694 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
695 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
696 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
697 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
698 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 12(%eax)
699 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
700 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 4(%eax)
701 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
702 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
703 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
704 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
705 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
706 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
708 ; X86-HAVE-BMI2-NO-SHLD-LABEL: lshr_16bytes:
709 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
710 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
711 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
712 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
713 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
714 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $32, %esp
715 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
716 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
717 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
718 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
719 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
720 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ecx
721 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%eax), %ebx
722 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
723 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
724 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
725 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, (%esp)
726 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, %eax
727 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %al
728 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
729 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
730 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
731 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
732 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %bl
733 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $15, %bl
734 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl %bl, %esi
735 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%esp,%esi), %edi
736 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%esp,%esi), %ebx
737 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %edi, %ebp
738 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %edx
739 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %dl
740 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %ecx
741 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ecx, %ecx
742 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %ecx
743 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, (%esp,%esi), %ebp
744 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
745 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %edi, %edi
746 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %edi
747 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ebx, %ebx
748 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%esp,%esi), %esi
749 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %esi, %eax
750 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
751 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %esi, %edx
752 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %edx
753 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
754 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 12(%esi)
755 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, 8(%esi)
756 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, (%esi)
757 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%esi)
758 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $32, %esp
759 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
760 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
761 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
762 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
763 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
765 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_16bytes:
766 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
767 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
768 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
769 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
770 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
771 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
772 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
773 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
774 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
775 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
776 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
777 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ecx
778 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
779 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
780 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
781 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
782 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%esp)
783 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
784 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
785 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
786 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
787 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
788 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
789 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
790 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $15, %al
791 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %al, %ebx
792 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%esp,%ebx), %eax
793 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %ebp
794 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %edx
795 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %dl
796 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%esp,%ebx), %edi
797 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%edi,%edi), %esi
798 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %esi, %edx
799 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
800 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ebp, %edx
801 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp,%ebx), %ebp
802 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%esp,%ebx), %ebx
803 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edi
804 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 8(%esi)
805 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %ebx, %edi
806 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 12(%esi)
807 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
808 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %ebp
809 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, (%esi)
810 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, 4(%esi)
811 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
812 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
813 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
814 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
815 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
816 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
817 %src = load i128, ptr %src.ptr, align 1
818 %bitOff = load i128, ptr %bitOff.ptr, align 1
819 %res = lshr i128 %src, %bitOff
820 store i128 %res, ptr %dst, align 1
823 define void @shl_16bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
824 ; X64-NO-BMI2-NO-SHLD-LABEL: shl_16bytes:
825 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
826 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %r8
827 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rdi
828 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %eax
829 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
830 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rdi
831 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %cl
832 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, %rsi
833 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %rsi
834 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rsi
835 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rdi, %rsi
836 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
837 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
838 ; X64-NO-BMI2-NO-SHLD-NEXT: xorl %ecx, %ecx
839 ; X64-NO-BMI2-NO-SHLD-NEXT: testb $64, %al
840 ; X64-NO-BMI2-NO-SHLD-NEXT: cmovneq %r8, %rsi
841 ; X64-NO-BMI2-NO-SHLD-NEXT: cmoveq %r8, %rcx
842 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, (%rdx)
843 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rsi, 8(%rdx)
844 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
846 ; X64-NO-BMI2-HAVE-SHLD-LABEL: shl_16bytes:
847 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
848 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
849 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
850 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
851 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, %rsi
852 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %rsi
853 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rax, %rdi
854 ; X64-NO-BMI2-HAVE-SHLD-NEXT: xorl %eax, %eax
855 ; X64-NO-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
856 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmovneq %rsi, %rdi
857 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmoveq %rsi, %rax
858 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
859 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
860 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
862 ; X64-HAVE-BMI2-NO-SHLD-LABEL: shl_16bytes:
863 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
864 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
865 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %ecx
866 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rcx, 8(%rdi), %rsi
867 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %edi
868 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %dil
869 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rcx, %rax, %r8
870 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rax
871 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rdi, %rax, %rax
872 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rsi, %rax
873 ; X64-HAVE-BMI2-NO-SHLD-NEXT: xorl %esi, %esi
874 ; X64-HAVE-BMI2-NO-SHLD-NEXT: testb $64, %cl
875 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmovneq %r8, %rax
876 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmoveq %r8, %rsi
877 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, (%rdx)
878 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 8(%rdx)
879 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
881 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: shl_16bytes:
882 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
883 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
884 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
885 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
886 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rax, %rdi
887 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %rax, %rax
888 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: xorl %esi, %esi
889 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
890 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmovneq %rax, %rdi
891 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmoveq %rax, %rsi
892 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
893 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rsi, (%rdx)
894 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
896 ; X86-NO-BMI2-NO-SHLD-LABEL: shl_16bytes:
897 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
898 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
899 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
900 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
901 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
902 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $40, %esp
903 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
904 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
905 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
906 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
907 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
908 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ebx
909 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%eax), %ecx
910 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
911 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
912 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
913 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
914 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
915 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
916 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
917 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
918 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
919 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
920 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %cl
921 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $15, %cl
922 ; X86-NO-BMI2-NO-SHLD-NEXT: negb %cl
923 ; X86-NO-BMI2-NO-SHLD-NEXT: movsbl %cl, %ebp
924 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%esp,%ebp), %ecx
925 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
926 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%esp,%ebp), %esi
927 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %edi
928 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
929 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
930 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edx
931 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %dl
932 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ebx # 4-byte Reload
933 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
934 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
935 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
936 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
937 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%esp,%ebp), %edi
938 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
939 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
940 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
941 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%esp,%ebp), %edi
942 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebp
943 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebp
944 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
945 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebp
946 ; X86-NO-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Folded Reload
947 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
948 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
949 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %esi
950 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
951 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
952 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %esi
953 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
954 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
955 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
956 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
957 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%edx)
958 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 8(%edx)
959 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 12(%edx)
960 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 4(%edx)
961 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $40, %esp
962 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
963 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
964 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
965 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
966 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
968 ; X86-NO-BMI2-HAVE-SHLD-LABEL: shl_16bytes:
969 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
970 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
971 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
972 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
973 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
974 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
975 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
976 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
977 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
978 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
979 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
980 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ebx
981 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %ecx
982 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
983 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
984 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
985 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
986 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
987 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
988 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
989 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, (%esp)
990 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
991 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
992 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %cl
993 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $15, %cl
994 ; X86-NO-BMI2-HAVE-SHLD-NEXT: negb %cl
995 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movsbl %cl, %ebp
996 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%esp,%ebp), %ebx
997 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, %edx
998 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
999 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edx
1000 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
1001 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%esp,%ebp), %edi
1002 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, %esi
1003 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %esi
1004 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
1005 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edx, %esi
1006 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%esp,%ebp), %edx
1007 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebp), %ebp
1008 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1009 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %ebx, %ebp
1010 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
1011 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 12(%ebx)
1012 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, %edi
1013 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edx
1014 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebx)
1015 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 4(%ebx)
1016 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 8(%ebx)
1017 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
1018 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
1019 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
1020 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
1021 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
1022 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
1024 ; X86-HAVE-BMI2-NO-SHLD-LABEL: shl_16bytes:
1025 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
1026 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
1027 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
1028 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
1029 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
1030 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $32, %esp
1031 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1032 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1033 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
1034 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
1035 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
1036 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ebx
1037 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%eax), %ecx
1038 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1039 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1040 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1041 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
1042 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %ebx
1043 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %bl
1044 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1045 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1046 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1047 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, (%esp)
1048 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %cl
1049 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $15, %cl
1050 ; X86-HAVE-BMI2-NO-SHLD-NEXT: negb %cl
1051 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movsbl %cl, %edx
1052 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%esp,%edx), %edi
1053 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%esp,%edx), %ecx
1054 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, %ecx, %esi
1055 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, %edi, %ebp
1056 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, %eax
1057 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %al
1058 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %edi
1059 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %edi, %edi
1060 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %edi
1061 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, 28(%esp,%edx), %esi
1062 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%esp,%edx), %edx
1063 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ebx, %edx, %ebx
1064 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %edx
1065 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %edx, %edx
1066 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %edx
1067 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ecx
1068 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %eax
1069 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %eax
1070 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1071 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, (%ecx)
1072 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 8(%ecx)
1073 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, 12(%ecx)
1074 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 4(%ecx)
1075 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $32, %esp
1076 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
1077 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
1078 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
1079 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
1080 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
1082 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: shl_16bytes:
1083 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
1084 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
1085 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
1086 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
1087 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
1088 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
1089 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1090 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1091 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
1092 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
1093 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
1094 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ecx
1095 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
1096 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1097 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1098 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1099 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
1100 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1101 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
1102 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1103 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1104 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1105 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, (%esp)
1106 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
1107 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $15, %al
1108 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: negb %al
1109 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movsbl %al, %ebx
1110 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%esp,%ebx), %edi
1111 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %edi, %ebp
1112 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %edx
1113 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %dl
1114 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%esp,%ebx), %eax
1115 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %esi
1116 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
1117 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %edx
1118 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
1119 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ebp, %edx
1120 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%esp,%ebx), %ebp
1121 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebx), %ebx
1122 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edi, %ebx
1123 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, 12(%esi)
1124 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %ebp, %edi
1125 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, (%esi)
1126 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
1127 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %ebp, %eax
1128 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%esi)
1129 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, 8(%esi)
1130 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
1131 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
1132 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
1133 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
1134 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
1135 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
1136 %src = load i128, ptr %src.ptr, align 1
1137 %bitOff = load i128, ptr %bitOff.ptr, align 1
1138 %res = shl i128 %src, %bitOff
1139 store i128 %res, ptr %dst, align 1
1142 define void @ashr_16bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
1143 ; X64-NO-BMI2-NO-SHLD-LABEL: ashr_16bytes:
1144 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
1145 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %r8
1146 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rdi
1147 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %eax
1148 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1149 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r8
1150 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %cl
1151 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rdi,%rdi), %rsi
1152 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rsi
1153 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r8, %rsi
1154 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, %r8
1155 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1156 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq %cl, %r8
1157 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq $63, %rdi
1158 ; X64-NO-BMI2-NO-SHLD-NEXT: testb $64, %al
1159 ; X64-NO-BMI2-NO-SHLD-NEXT: cmovneq %r8, %rsi
1160 ; X64-NO-BMI2-NO-SHLD-NEXT: cmoveq %r8, %rdi
1161 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, 8(%rdx)
1162 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rsi, (%rdx)
1163 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
1165 ; X64-NO-BMI2-HAVE-SHLD-LABEL: ashr_16bytes:
1166 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
1167 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
1168 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
1169 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
1170 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, %rsi
1171 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq %cl, %rsi
1172 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %rax
1173 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq $63, %rdi
1174 ; X64-NO-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
1175 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmovneq %rsi, %rax
1176 ; X64-NO-BMI2-HAVE-SHLD-NEXT: cmoveq %rsi, %rdi
1177 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
1178 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
1179 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
1181 ; X64-HAVE-BMI2-NO-SHLD-LABEL: ashr_16bytes:
1182 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
1183 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rax
1184 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %ecx
1185 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, (%rdi), %rsi
1186 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %edi
1187 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %dil
1188 ; X64-HAVE-BMI2-NO-SHLD-NEXT: leaq (%rax,%rax), %r8
1189 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rdi, %r8, %rdi
1190 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rsi, %rdi
1191 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarxq %rcx, %rax, %rsi
1192 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarq $63, %rax
1193 ; X64-HAVE-BMI2-NO-SHLD-NEXT: testb $64, %cl
1194 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmovneq %rsi, %rdi
1195 ; X64-HAVE-BMI2-NO-SHLD-NEXT: cmoveq %rsi, %rax
1196 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 8(%rdx)
1197 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
1198 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
1200 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_16bytes:
1201 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
1202 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
1203 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rdi
1204 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %ecx
1205 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %rax
1206 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarxq %rcx, %rdi, %rsi
1207 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarq $63, %rdi
1208 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: testb $64, %cl
1209 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmovneq %rsi, %rax
1210 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: cmoveq %rsi, %rdi
1211 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
1212 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
1213 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
1215 ; X86-NO-BMI2-NO-SHLD-LABEL: ashr_16bytes:
1216 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
1217 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
1218 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
1219 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
1220 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
1221 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $36, %esp
1222 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1223 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1224 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
1225 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
1226 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
1227 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ebx
1228 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%eax), %ecx
1229 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1230 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1231 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1232 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
1233 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl $31, %ebx
1234 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1235 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1236 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1237 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1238 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
1239 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
1240 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %cl
1241 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $15, %cl
1242 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl %cl, %ebp
1243 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%esp,%ebp), %esi
1244 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
1245 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1246 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1247 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edx
1248 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %dl
1249 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%esp,%ebp), %ecx
1250 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
1251 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
1252 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
1253 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
1254 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
1255 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%esp,%ebp), %ebx
1256 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1257 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1258 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %esi, %esi
1259 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
1260 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
1261 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %esi
1262 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1263 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, (%esp) # 4-byte Folded Spill
1264 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%esp,%ebp), %ebx
1265 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %ebp
1266 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
1267 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
1268 ; X86-NO-BMI2-NO-SHLD-NEXT: orl (%esp), %ebp # 4-byte Folded Reload
1269 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
1270 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1271 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl %cl, %ebx
1272 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 12(%edx)
1273 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 8(%edx)
1274 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, (%edx)
1275 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 4(%edx)
1276 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $36, %esp
1277 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
1278 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
1279 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
1280 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
1281 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
1283 ; X86-NO-BMI2-HAVE-SHLD-LABEL: ashr_16bytes:
1284 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
1285 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
1286 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
1287 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
1288 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
1289 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
1290 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1291 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1292 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
1293 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
1294 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
1295 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ebx
1296 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %ecx
1297 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1298 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1299 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1300 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%esp)
1301 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl $31, %ebx
1302 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1303 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1304 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1305 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1306 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
1307 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
1308 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %cl
1309 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $15, %cl
1310 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl %cl, %ebp
1311 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%esp,%ebp), %esi
1312 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %edx
1313 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1314 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edx
1315 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
1316 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%esp,%ebp), %ebx
1317 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %edi
1318 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
1319 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edx, %edi
1320 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp,%ebp), %edx
1321 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%esp,%ebp), %ebp
1322 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1323 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebp, %ebx
1324 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1325 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 8(%ecx)
1326 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1327 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %edx
1328 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl %cl, %ebp
1329 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1330 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 12(%eax)
1331 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%eax)
1332 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 4(%eax)
1333 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
1334 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
1335 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
1336 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
1337 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
1338 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
1340 ; X86-HAVE-BMI2-NO-SHLD-LABEL: ashr_16bytes:
1341 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
1342 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
1343 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
1344 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
1345 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
1346 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $32, %esp
1347 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1348 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1349 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%ecx), %edx
1350 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%ecx), %esi
1351 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%ecx), %edi
1352 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%ecx), %ebx
1353 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%eax), %ecx
1354 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1355 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1356 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1357 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, (%esp)
1358 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarl $31, %ebx
1359 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1360 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1361 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1362 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1363 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
1364 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %al
1365 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %cl
1366 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $15, %cl
1367 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl %cl, %esi
1368 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%esp,%esi), %edi
1369 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%esp,%esi), %ebx
1370 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %edi, %ebp
1371 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %edx
1372 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %dl
1373 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %ecx
1374 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ecx, %ecx
1375 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %ecx
1376 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, (%esp,%esi), %ebp
1377 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
1378 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %edi, %edi
1379 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %edi
1380 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ebx, %ebx
1381 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%esp,%esi), %esi
1382 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarxl %eax, %esi, %eax
1383 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
1384 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %esi, %edx
1385 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %edx
1386 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
1387 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 12(%esi)
1388 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, 8(%esi)
1389 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, (%esi)
1390 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%esi)
1391 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $32, %esp
1392 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
1393 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
1394 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
1395 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
1396 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
1398 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_16bytes:
1399 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
1400 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
1401 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
1402 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
1403 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
1404 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $32, %esp
1405 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1406 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1407 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%ecx), %edx
1408 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%ecx), %esi
1409 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%ecx), %edi
1410 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%ecx), %ecx
1411 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
1412 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1413 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1414 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1415 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%esp)
1416 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarl $31, %ecx
1417 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1418 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1419 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1420 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1421 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1422 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
1423 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
1424 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $15, %al
1425 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %al, %ebx
1426 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%esp,%ebx), %eax
1427 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %ebp
1428 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %edx
1429 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %dl
1430 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%esp,%ebx), %edi
1431 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%edi,%edi), %esi
1432 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %esi, %edx
1433 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
1434 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ebp, %edx
1435 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp,%ebx), %ebp
1436 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%esp,%ebx), %ebx
1437 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edi
1438 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 8(%esi)
1439 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarxl %ecx, %ebx, %edi
1440 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 12(%esi)
1441 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
1442 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %ebp
1443 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, (%esi)
1444 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, 4(%esi)
1445 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $32, %esp
1446 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
1447 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
1448 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
1449 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
1450 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
1451 %src = load i128, ptr %src.ptr, align 1
1452 %bitOff = load i128, ptr %bitOff.ptr, align 1
1453 %res = ashr i128 %src, %bitOff
1454 store i128 %res, ptr %dst, align 1
1458 define void @lshr_32bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
1459 ; X64-NO-BMI2-NO-SHLD-LABEL: lshr_32bytes:
1460 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
1461 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
1462 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
1463 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
1464 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
1465 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
1466 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
1467 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
1468 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
1469 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
1470 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
1471 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1472 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1473 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1474 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1475 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
1476 ; X64-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
1477 ; X64-NO-BMI2-NO-SHLD-NEXT: shrb $3, %sil
1478 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl %sil, %r9d
1479 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -64(%rsp,%r9), %r10
1480 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%r9), %rdi
1481 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, %r11
1482 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1483 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r11
1484 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
1485 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
1486 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%r9), %rbx
1487 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rbx,%rbx), %r8
1488 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
1489 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
1490 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %r8
1491 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1492 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r10
1493 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
1494 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
1495 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rdi
1496 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r10, %rdi
1497 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1498 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbx
1499 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%r9), %r9
1500 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r9,%r9), %r10
1501 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
1502 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r10
1503 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rbx, %r10
1504 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1505 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r9
1506 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, 24(%rdx)
1507 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, 16(%rdx)
1508 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
1509 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, 8(%rdx)
1510 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
1511 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
1513 ; X64-NO-BMI2-HAVE-SHLD-LABEL: lshr_32bytes:
1514 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
1515 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
1516 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
1517 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
1518 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
1519 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
1520 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
1521 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
1522 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
1523 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
1524 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1525 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1526 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1527 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1528 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
1529 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
1530 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
1531 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl %sil, %esi
1532 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rsi), %rdi
1533 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%rsi), %r8
1534 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, %r9
1535 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1536 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r9
1537 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
1538 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%rsi), %r10
1539 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r10,%r10), %r11
1540 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r11
1541 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r9, %r11
1542 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%rsi), %rsi
1543 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1544 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %r10
1545 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %rdi
1546 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rsi
1547 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, 16(%rdx)
1548 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 24(%rdx)
1549 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, (%rdx)
1550 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 8(%rdx)
1551 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
1553 ; X64-HAVE-BMI2-NO-SHLD-LABEL: lshr_32bytes:
1554 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
1555 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
1556 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
1557 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
1558 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
1559 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
1560 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
1561 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
1562 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
1563 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
1564 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, %eax
1565 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %al
1566 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1567 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1568 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1569 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1570 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %sil
1571 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl %sil, %ecx
1572 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%rcx), %rsi
1573 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%rcx), %rdi
1574 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rsi, %r8
1575 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, -64(%rsp,%rcx), %r9
1576 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rdi, %r10
1577 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%rcx), %rcx
1578 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rcx, %r11
1579 ; X64-HAVE-BMI2-NO-SHLD-NEXT: # kill: def $al killed $al killed $rax def $rax
1580 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %al
1581 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
1582 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rdi, %rdi
1583 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r8, %rdi
1584 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rsi, %rsi
1585 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rsi, %rsi
1586 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r9, %rsi
1587 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rcx, %rcx
1588 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rcx, %rax
1589 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r10, %rax
1590 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, 24(%rdx)
1591 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 16(%rdx)
1592 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, (%rdx)
1593 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, 8(%rdx)
1594 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
1596 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_32bytes:
1597 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
1598 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
1599 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
1600 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
1601 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
1602 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
1603 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
1604 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
1605 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
1606 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
1607 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
1608 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
1609 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
1610 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1611 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1612 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1613 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
1614 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
1615 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %sil, %eax
1616 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%rax), %rsi
1617 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %rsi, %rdi
1618 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%rax), %r8
1619 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r8, %r9
1620 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %r10d
1621 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notb %r10b
1622 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%rax), %r11
1623 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r11,%r11), %rbx
1624 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r10, %rbx, %r10
1625 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rax), %rax
1626 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %rdi, %r10
1627 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %r11
1628 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
1629 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rax
1630 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, 16(%rdx)
1631 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, 24(%rdx)
1632 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
1633 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, 8(%rdx)
1634 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
1635 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
1637 ; X86-NO-BMI2-NO-SHLD-LABEL: lshr_32bytes:
1638 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
1639 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
1640 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
1641 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
1642 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
1643 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $88, %esp
1644 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1645 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
1646 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%edi), %eax
1647 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
1648 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%edi), %eax
1649 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1650 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%edi), %esi
1651 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%edi), %ebx
1652 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%edi), %ebp
1653 ; X86-NO-BMI2-NO-SHLD-NEXT: movb (%ecx), %ch
1654 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%edi), %edx
1655 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%edi), %eax
1656 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%edi), %edi
1657 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1658 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1659 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
1660 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
1661 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1662 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1663 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1664 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1665 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
1666 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1667 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1668 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1669 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1670 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1671 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1672 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1673 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1674 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1675 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %al
1676 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
1677 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %ch
1678 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl %ch, %edi
1679 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1680 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%esp,%edi), %esi
1681 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%esp,%edi), %ebx
1682 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
1683 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1684 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1685 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %ah
1686 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %ah
1687 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%esp,%edi), %edi
1688 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%edi,%edi), %ebp
1689 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1690 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
1691 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
1692 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1693 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1694 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
1695 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ebx # 4-byte Reload
1696 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebx, %ebx
1697 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1698 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
1699 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
1700 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
1701 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
1702 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%esp,%ebx), %ebp
1703 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, %esi
1704 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1705 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
1706 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%esp,%ebx), %ecx
1707 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1708 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %edx
1709 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
1710 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1711 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
1712 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
1713 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1714 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1715 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
1716 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
1717 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1718 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
1719 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
1720 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%esp,%edx), %edi
1721 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebx
1722 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
1723 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1724 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 48(%esp,%edx), %esi
1725 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %edx
1726 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1727 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
1728 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edx
1729 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1730 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %ch
1731 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %cl
1732 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
1733 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1734 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %edi, %edi
1735 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
1736 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %dl
1737 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
1738 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
1739 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %cl
1740 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
1741 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
1742 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
1743 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%esp,%esi), %ebx
1744 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %esi
1745 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %dl, %cl
1746 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
1747 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %esi
1748 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %cl
1749 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
1750 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1751 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 28(%eax)
1752 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 24(%eax)
1753 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 16(%eax)
1754 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1755 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
1756 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 8(%eax)
1757 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1758 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
1759 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
1760 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
1761 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1762 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
1763 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $88, %esp
1764 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
1765 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
1766 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
1767 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
1768 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
1770 ; X86-NO-BMI2-HAVE-SHLD-LABEL: lshr_32bytes:
1771 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
1772 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
1773 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
1774 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
1775 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
1776 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $92, %esp
1777 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1778 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
1779 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%edi), %eax
1780 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1781 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %eax
1782 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
1783 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %esi
1784 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %ebx
1785 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %ebp
1786 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
1787 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %edx
1788 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %eax
1789 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %edi
1790 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1791 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1792 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
1793 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
1794 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1795 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1796 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
1797 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1798 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1799 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1800 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1801 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1802 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1803 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1804 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1805 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1806 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1807 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1808 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
1809 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
1810 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %cl
1811 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl %cl, %ebp
1812 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%esp,%ebp), %esi
1813 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1814 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1815 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
1816 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
1817 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %dl
1818 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%esp,%ebp), %ecx
1819 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1820 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %edi
1821 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
1822 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
1823 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
1824 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1825 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%esp,%ebp), %esi
1826 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1827 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1828 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
1829 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%esp,%ebp), %ecx
1830 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
1831 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %edi
1832 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
1833 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
1834 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
1835 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1836 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 48(%esp,%ebp), %edi
1837 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1838 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1839 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
1840 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%esp,%ebp), %ebx
1841 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %esi
1842 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
1843 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %esi
1844 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %esi
1845 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
1846 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
1847 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
1848 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
1849 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, (%esp) # 4-byte Folded Spill
1850 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebp), %edx
1851 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%esp,%ebp), %edi
1852 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, %ebx
1853 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebp
1854 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 24(%ebp)
1855 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
1856 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edx
1857 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
1858 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 28(%ebp)
1859 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
1860 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%ebp)
1861 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1862 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%ebp)
1863 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebp)
1864 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 20(%ebp)
1865 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1866 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%ebp)
1867 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1868 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%ebp)
1869 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $92, %esp
1870 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
1871 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
1872 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
1873 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
1874 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
1876 ; X86-HAVE-BMI2-NO-SHLD-LABEL: lshr_32bytes:
1877 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
1878 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
1879 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
1880 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
1881 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
1882 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $84, %esp
1883 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
1884 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
1885 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edi), %eax
1886 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1887 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edi), %eax
1888 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1889 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edi), %esi
1890 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edi), %ebx
1891 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edi), %ebp
1892 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %edx
1893 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edi), %ecx
1894 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edi), %eax
1895 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edi), %edi
1896 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
1897 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1898 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
1899 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
1900 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
1901 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
1902 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1903 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1904 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
1905 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
1906 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
1907 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %cl
1908 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1909 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1910 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1911 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1912 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1913 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1914 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1915 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
1916 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %dl
1917 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl %dl, %edi
1918 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%esp,%edi), %esi
1919 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%esp,%edi), %eax
1920 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1921 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %ebx
1922 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %edx
1923 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %dl
1924 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%eax,%eax), %ebp
1925 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebp, %eax
1926 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %eax
1927 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1928 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
1929 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, 20(%esp,%edi), %ebx
1930 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
1931 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %esi, %ecx
1932 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %ecx
1933 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1934 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%esp,%edi), %ecx
1935 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
1936 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
1937 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebx, %ecx
1938 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%esp,%edi), %ebp
1939 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ebp, %ebx
1940 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %ecx
1941 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1942 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
1943 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ebx
1944 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
1945 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebp, %eax
1946 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %eax
1947 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1948 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%esp,%edi), %ebp
1949 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ebp,%ebp), %ecx
1950 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ecx, %ecx
1951 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%esp,%edi), %eax
1952 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %eax, %esi
1953 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ecx
1954 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, (%esp), %esi # 4-byte Folded Reload
1955 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
1956 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %eax, %eax
1957 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %eax, %esi
1958 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl (%esp), %esi # 4-byte Folded Reload
1959 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %ebp, %eax
1960 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%esp,%edi), %edi
1961 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %edi, %ebx
1962 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
1963 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %edi, %edi
1964 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %eax, %edi
1965 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1966 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, 28(%eax)
1967 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 24(%eax)
1968 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 16(%eax)
1969 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
1970 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1971 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
1972 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1973 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
1974 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1975 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
1976 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
1977 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
1978 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $84, %esp
1979 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
1980 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
1981 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
1982 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
1983 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
1985 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_32bytes:
1986 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
1987 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
1988 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
1989 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
1990 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
1991 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $88, %esp
1992 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
1993 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
1994 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edi), %ecx
1995 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
1996 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %ecx
1997 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
1998 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %esi
1999 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %ebx
2000 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %ebp
2001 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
2002 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %edx
2003 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %ecx
2004 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %edi
2005 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2006 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2007 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2008 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2009 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2010 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2011 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
2012 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2013 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2014 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2015 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2016 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
2017 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2018 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2019 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2020 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2021 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2022 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2023 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2024 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2025 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
2026 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %al, %ebx
2027 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebx), %eax
2028 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2029 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %eax
2030 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %edx
2031 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %dl
2032 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%esp,%ebx), %esi
2033 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2034 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
2035 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %esi, %esi
2036 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %eax, %esi
2037 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
2038 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%esp,%ebx), %ebp
2039 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%ebp,%ebp), %eax
2040 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %eax, %edi
2041 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%esp,%ebx), %eax
2042 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2043 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %eax
2044 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %eax, %edi
2045 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2046 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 48(%esp,%ebx), %esi
2047 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%esi,%esi), %edi
2048 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %edi, %eax
2049 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%esp,%ebx), %edx
2050 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %edx, %edi
2051 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %edi, %eax
2052 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2053 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
2054 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2055 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %edi
2056 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, %ebp
2057 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%esp,%ebx), %edx
2058 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%esp,%ebx), %eax
2059 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %esi
2060 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
2061 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 24(%ebx)
2062 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %eax
2063 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%ebx)
2064 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, 16(%ebx)
2065 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 8(%ebx)
2066 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
2067 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2068 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %edx
2069 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebx)
2070 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2071 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%ebx)
2072 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2073 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%ebx)
2074 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2075 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%ebx)
2076 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $88, %esp
2077 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
2078 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
2079 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
2080 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
2081 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
2082 %src = load i256, ptr %src.ptr, align 1
2083 %bitOff = load i256, ptr %bitOff.ptr, align 1
2084 %res = lshr i256 %src, %bitOff
2085 store i256 %res, ptr %dst, align 1
2088 define void @shl_32bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
2089 ; X64-NO-BMI2-NO-SHLD-LABEL: shl_32bytes:
2090 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
2091 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
2092 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
2093 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
2094 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
2095 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
2096 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
2097 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2098 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2099 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2100 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2101 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2102 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2103 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2104 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2105 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
2106 ; X64-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
2107 ; X64-NO-BMI2-NO-SHLD-NEXT: shrb $3, %sil
2108 ; X64-NO-BMI2-NO-SHLD-NEXT: negb %sil
2109 ; X64-NO-BMI2-NO-SHLD-NEXT: movsbq %sil, %r10
2110 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -32(%rsp,%r10), %r8
2111 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -24(%rsp,%r10), %rdi
2112 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, %r11
2113 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2114 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r11
2115 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
2116 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
2117 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, %r9
2118 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r9
2119 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2120 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r9
2121 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %r9
2122 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -8(%rsp,%r10), %r11
2123 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2124 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r11
2125 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -16(%rsp,%r10), %r10
2126 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, %rbx
2127 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %rbx
2128 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2129 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbx
2130 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %rbx
2131 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2132 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r10
2133 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %rdi
2134 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2135 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rdi
2136 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r10, %rdi
2137 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2138 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
2139 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, (%rdx)
2140 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, 16(%rdx)
2141 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
2142 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, 8(%rdx)
2143 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
2144 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
2146 ; X64-NO-BMI2-HAVE-SHLD-LABEL: shl_32bytes:
2147 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
2148 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
2149 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
2150 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
2151 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
2152 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
2153 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2154 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2155 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2156 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2157 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2158 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2159 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2160 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2161 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
2162 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
2163 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
2164 ; X64-NO-BMI2-HAVE-SHLD-NEXT: negb %sil
2165 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movsbq %sil, %rsi
2166 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -16(%rsp,%rsi), %rdi
2167 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, %r8
2168 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2169 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r8
2170 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
2171 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -32(%rsp,%rsi), %r9
2172 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -24(%rsp,%rsi), %r10
2173 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, %r11
2174 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %r11
2175 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r11
2176 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r8, %r11
2177 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -8(%rsp,%rsi), %rsi
2178 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2179 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rdi, %rsi
2180 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r9, %r10
2181 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r9
2182 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 24(%rdx)
2183 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, (%rdx)
2184 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, 8(%rdx)
2185 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 16(%rdx)
2186 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
2188 ; X64-HAVE-BMI2-NO-SHLD-LABEL: shl_32bytes:
2189 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
2190 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
2191 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
2192 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
2193 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
2194 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
2195 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2196 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2197 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2198 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2199 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, %eax
2200 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %al
2201 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2202 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2203 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2204 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2205 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %sil
2206 ; X64-HAVE-BMI2-NO-SHLD-NEXT: negb %sil
2207 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movsbq %sil, %rsi
2208 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -32(%rsp,%rsi), %rdi
2209 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -24(%rsp,%rsi), %rcx
2210 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rcx, %r8
2211 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, -8(%rsp,%rsi), %r9
2212 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -16(%rsp,%rsi), %rsi
2213 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rsi, %r10
2214 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rdi, %r11
2215 ; X64-HAVE-BMI2-NO-SHLD-NEXT: # kill: def $al killed $al killed $rax def $rax
2216 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %al
2217 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rdi
2218 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rdi, %rdi
2219 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r8, %rdi
2220 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rsi
2221 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rsi, %rsi
2222 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r9, %rsi
2223 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rcx
2224 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rcx, %rax
2225 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r10, %rax
2226 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, (%rdx)
2227 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 16(%rdx)
2228 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, 24(%rdx)
2229 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, 8(%rdx)
2230 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
2232 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: shl_32bytes:
2233 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
2234 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
2235 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
2236 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
2237 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
2238 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
2239 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
2240 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2241 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2242 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2243 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2244 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
2245 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
2246 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2247 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2248 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2249 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
2250 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
2251 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: negb %sil
2252 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movsbq %sil, %rax
2253 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -16(%rsp,%rax), %rsi
2254 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %rsi, %rdi
2255 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -32(%rsp,%rax), %r8
2256 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %r8, %r9
2257 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %r10d
2258 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notb %r10b
2259 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -24(%rsp,%rax), %r11
2260 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, %rbx
2261 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrq %rbx
2262 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %r10, %rbx, %r10
2263 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %rdi, %r10
2264 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -8(%rsp,%rax), %rax
2265 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rsi, %rax
2266 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
2267 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r8, %r11
2268 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, 24(%rdx)
2269 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, (%rdx)
2270 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, 8(%rdx)
2271 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, 16(%rdx)
2272 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
2273 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
2275 ; X86-NO-BMI2-NO-SHLD-LABEL: shl_32bytes:
2276 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
2277 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
2278 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
2279 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
2280 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
2281 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $88, %esp
2282 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
2283 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
2284 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%edi), %eax
2285 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
2286 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%edi), %eax
2287 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2288 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%edi), %esi
2289 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%edi), %ebx
2290 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%edi), %ebp
2291 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %ecx
2292 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%edi), %edx
2293 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%edi), %eax
2294 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%edi), %edi
2295 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2296 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2297 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2298 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2299 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2300 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2301 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2302 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2303 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2304 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2305 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2306 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2307 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2308 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2309 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2310 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2311 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2312 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2313 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
2314 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
2315 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %cl
2316 ; X86-NO-BMI2-NO-SHLD-NEXT: negb %cl
2317 ; X86-NO-BMI2-NO-SHLD-NEXT: movsbl %cl, %ecx
2318 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 56(%esp,%ecx), %edi
2319 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2320 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 60(%esp,%ecx), %edx
2321 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %ebp
2322 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %esi
2323 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2324 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
2325 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %ah
2326 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %ah
2327 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
2328 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2329 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
2330 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %edi
2331 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2332 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 68(%esp,%ebp), %edi
2333 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, (%esp) # 4-byte Spill
2334 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2335 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
2336 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 64(%esp,%ebp), %esi
2337 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
2338 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
2339 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2340 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
2341 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
2342 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2343 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2344 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
2345 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edx
2346 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2347 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edx
2348 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %edx
2349 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2350 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2351 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 76(%esp,%ebp), %esi
2352 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
2353 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2354 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
2355 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 72(%esp,%ebp), %edi
2356 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebp
2357 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebp
2358 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2359 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebp
2360 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
2361 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2362 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
2363 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %edx # 4-byte Reload
2364 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edx
2365 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2366 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edx
2367 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %edx
2368 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, (%esp) # 4-byte Spill
2369 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
2370 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 84(%esp,%edi), %edx
2371 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2372 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
2373 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 80(%esp,%edi), %edi
2374 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebx
2375 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
2376 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2377 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
2378 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %ebx
2379 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2380 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
2381 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %esi
2382 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2383 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
2384 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %esi
2385 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2386 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
2387 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
2388 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
2389 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, (%eax)
2390 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 24(%eax)
2391 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 28(%eax)
2392 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
2393 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 16(%eax)
2394 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 20(%eax)
2395 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2396 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
2397 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2398 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
2399 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2400 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
2401 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $88, %esp
2402 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
2403 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
2404 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
2405 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
2406 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
2408 ; X86-NO-BMI2-HAVE-SHLD-LABEL: shl_32bytes:
2409 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
2410 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
2411 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
2412 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
2413 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
2414 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $92, %esp
2415 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
2416 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
2417 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%edi), %eax
2418 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2419 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %eax
2420 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
2421 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %esi
2422 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %ebx
2423 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %ebp
2424 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
2425 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %edx
2426 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %eax
2427 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %edi
2428 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2429 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2430 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2431 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2432 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2433 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2434 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2435 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2436 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2437 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2438 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2439 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2440 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2441 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2442 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2443 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2444 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2445 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2446 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
2447 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
2448 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %cl
2449 ; X86-NO-BMI2-HAVE-SHLD-NEXT: negb %cl
2450 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movsbl %cl, %ebx
2451 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 68(%esp,%ebx), %esi
2452 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2453 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2454 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %esi
2455 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
2456 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %dl
2457 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 64(%esp,%ebx), %edi
2458 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2459 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %edi
2460 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
2461 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
2462 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
2463 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2464 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%ebx), %esi
2465 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2466 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2467 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %esi
2468 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 72(%esp,%ebx), %ebp
2469 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2470 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
2471 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
2472 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
2473 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebp
2474 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%ebx), %esi
2475 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2476 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2477 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %esi
2478 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%ebx), %edi
2479 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, (%esp) # 4-byte Spill
2480 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %edi
2481 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
2482 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
2483 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
2484 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2485 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
2486 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
2487 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
2488 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, (%esp) # 4-byte Folded Spill
2489 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 60(%esp,%ebx), %edx
2490 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 88(%esp,%ebx), %esi
2491 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
2492 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %ebx, %esi
2493 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
2494 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 28(%ebx)
2495 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
2496 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, 20(%ebx)
2497 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2498 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, 12(%ebx)
2499 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2500 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
2501 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, %esi
2502 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edx
2503 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebx)
2504 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 4(%ebx)
2505 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 24(%ebx)
2506 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 16(%ebx)
2507 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2508 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%ebx)
2509 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $92, %esp
2510 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
2511 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
2512 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
2513 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
2514 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
2516 ; X86-HAVE-BMI2-NO-SHLD-LABEL: shl_32bytes:
2517 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
2518 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
2519 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
2520 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
2521 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
2522 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $88, %esp
2523 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
2524 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
2525 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edi), %eax
2526 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2527 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edi), %eax
2528 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2529 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edi), %esi
2530 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edi), %ebx
2531 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edi), %ebp
2532 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %ecx
2533 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edi), %edx
2534 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edi), %eax
2535 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edi), %edi
2536 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2537 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2538 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2539 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2540 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2541 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2542 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2543 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2544 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2545 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2546 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %edx
2547 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %dl
2548 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2549 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2550 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2551 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2552 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2553 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2554 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2555 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2556 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %cl
2557 ; X86-HAVE-BMI2-NO-SHLD-NEXT: negb %cl
2558 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movsbl %cl, %esi
2559 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 56(%esp,%esi), %ebx
2560 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2561 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 60(%esp,%esi), %eax
2562 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
2563 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %eax, %edi
2564 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
2565 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %cl
2566 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebx
2567 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %ebx, %ebx
2568 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
2569 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2570 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 64(%esp,%esi), %ebx
2571 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, %edi
2572 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %edi
2573 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %edi, %eax
2574 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 68(%esp,%esi), %edi
2575 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %edi, %ebp
2576 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %eax
2577 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2578 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebx, %ebx
2579 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2580 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
2581 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %eax, %eax
2582 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %eax
2583 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
2584 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 72(%esp,%esi), %ebx
2585 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2586 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebx
2587 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %ebx, %eax
2588 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 76(%esp,%esi), %ebx
2589 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebx, %ebp
2590 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %eax
2591 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2592 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Folded Reload
2593 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %edi
2594 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %edi, %edi
2595 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %eax, %edi
2596 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Folded Reload
2597 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2598 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, 84(%esp,%esi), %ebp
2599 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 80(%esp,%esi), %esi
2600 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %esi, %eax
2601 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
2602 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %esi
2603 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebp, %esi
2604 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebx
2605 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %ebx, %edx
2606 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %eax, %edx
2607 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
2608 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2609 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
2610 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, 24(%eax)
2611 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 28(%eax)
2612 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 16(%eax)
2613 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2614 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
2615 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
2616 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
2617 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2618 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
2619 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2620 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
2621 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $88, %esp
2622 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
2623 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
2624 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
2625 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
2626 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
2628 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: shl_32bytes:
2629 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
2630 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
2631 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
2632 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
2633 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
2634 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $88, %esp
2635 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
2636 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
2637 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edi), %ecx
2638 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2639 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %ecx
2640 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
2641 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %esi
2642 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %ebx
2643 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %ebp
2644 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
2645 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %edx
2646 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %ecx
2647 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %edi
2648 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2649 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2650 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2651 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2652 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2653 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2654 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
2655 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2656 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
2657 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
2658 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2659 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
2660 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2661 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2662 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2663 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2664 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2665 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2666 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2667 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
2668 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
2669 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: negb %al
2670 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movsbl %al, %esi
2671 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 64(%esp,%esi), %eax
2672 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2673 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %eax, %edx
2674 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
2675 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %al
2676 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 60(%esp,%esi), %ebx
2677 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
2678 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %ebx
2679 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %eax, %ebx, %edi
2680 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %edx, %edi
2681 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2682 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 68(%esp,%esi), %ebx
2683 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, %edx
2684 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %edx
2685 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %eax, %edx, %edi
2686 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 72(%esp,%esi), %edx
2687 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2688 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %edx, %edx
2689 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %edx, %edi
2690 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2691 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%esi), %edi
2692 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, %edx
2693 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %edx
2694 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %eax, %edx, %eax
2695 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%esi), %edx
2696 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %edx, %ebp
2697 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ebp, %eax
2698 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2699 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2700 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %eax, %ebx
2701 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2702 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %eax, %edi
2703 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 56(%esp,%esi), %ebp
2704 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%esi), %eax
2705 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, %eax
2706 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
2707 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%esi)
2708 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 20(%esi)
2709 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, 12(%esi)
2710 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %ebp, %eax
2711 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esi)
2712 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
2713 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2714 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %ebp, %eax
2715 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%esi)
2716 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2717 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 24(%esi)
2718 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2719 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%esi)
2720 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2721 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%esi)
2722 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $88, %esp
2723 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
2724 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
2725 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
2726 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
2727 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
2728 %src = load i256, ptr %src.ptr, align 1
2729 %bitOff = load i256, ptr %bitOff.ptr, align 1
2730 %res = shl i256 %src, %bitOff
2731 store i256 %res, ptr %dst, align 1
2734 define void @ashr_32bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
2735 ; X64-NO-BMI2-NO-SHLD-LABEL: ashr_32bytes:
2736 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
2737 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
2738 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
2739 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
2740 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
2741 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
2742 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
2743 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2744 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2745 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2746 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2747 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq $63, %rdi
2748 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2749 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2750 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2751 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2752 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
2753 ; X64-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
2754 ; X64-NO-BMI2-NO-SHLD-NEXT: shrb $3, %sil
2755 ; X64-NO-BMI2-NO-SHLD-NEXT: movzbl %sil, %r9d
2756 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -64(%rsp,%r9), %r10
2757 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%r9), %rdi
2758 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, %r11
2759 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2760 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r11
2761 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
2762 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
2763 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%r9), %rbx
2764 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rbx,%rbx), %r8
2765 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2766 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
2767 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %r8
2768 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2769 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r10
2770 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
2771 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2772 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rdi
2773 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r10, %rdi
2774 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2775 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbx
2776 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%r9), %r9
2777 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r9,%r9), %r10
2778 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
2779 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r10
2780 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rbx, %r10
2781 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2782 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq %cl, %r9
2783 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, 24(%rdx)
2784 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, 16(%rdx)
2785 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
2786 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, 8(%rdx)
2787 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
2788 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
2790 ; X64-NO-BMI2-HAVE-SHLD-LABEL: ashr_32bytes:
2791 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
2792 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
2793 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
2794 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
2795 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
2796 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
2797 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2798 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2799 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2800 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2801 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq $63, %rdi
2802 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2803 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2804 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2805 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2806 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
2807 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
2808 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
2809 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movzbl %sil, %esi
2810 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rsi), %rdi
2811 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%rsi), %r8
2812 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, %r9
2813 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2814 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r9
2815 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notb %cl
2816 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%rsi), %r10
2817 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r10,%r10), %r11
2818 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r11
2819 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r9, %r11
2820 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%rsi), %rsi
2821 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
2822 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %r10
2823 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %rdi
2824 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq %cl, %rsi
2825 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, 16(%rdx)
2826 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 24(%rdx)
2827 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, (%rdx)
2828 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 8(%rdx)
2829 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
2831 ; X64-HAVE-BMI2-NO-SHLD-LABEL: ashr_32bytes:
2832 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
2833 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
2834 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
2835 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
2836 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %rdi
2837 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%rsi), %esi
2838 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2839 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2840 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2841 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2842 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarq $63, %rdi
2843 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2844 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2845 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2846 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2847 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, %eax
2848 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %al
2849 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %sil
2850 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movzbl %sil, %ecx
2851 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%rcx), %rsi
2852 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%rcx), %rdi
2853 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rsi, %r8
2854 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, -64(%rsp,%rcx), %r9
2855 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rax, %rdi, %r10
2856 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%rcx), %rcx
2857 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarxq %rax, %rcx, %r11
2858 ; X64-HAVE-BMI2-NO-SHLD-NEXT: # kill: def $al killed $al killed $rax def $rax
2859 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %al
2860 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
2861 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rdi, %rdi
2862 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r8, %rdi
2863 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rsi, %rsi
2864 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rsi, %rsi
2865 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r9, %rsi
2866 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rcx, %rcx
2867 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rcx, %rax
2868 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r10, %rax
2869 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, 24(%rdx)
2870 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 16(%rdx)
2871 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, (%rdx)
2872 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, 8(%rdx)
2873 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
2875 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_32bytes:
2876 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
2877 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
2878 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
2879 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
2880 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
2881 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %rdi
2882 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%rsi), %esi
2883 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2884 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
2885 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
2886 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
2887 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarq $63, %rdi
2888 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2889 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2890 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2891 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
2892 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
2893 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
2894 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %sil
2895 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %sil, %eax
2896 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%rax), %rsi
2897 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %rsi, %rdi
2898 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%rax), %r8
2899 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarxq %rcx, %r8, %r9
2900 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %r10d
2901 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notb %r10b
2902 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%rax), %r11
2903 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r11,%r11), %rbx
2904 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r10, %rbx, %r10
2905 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rax), %rax
2906 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %rdi, %r10
2907 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %r11
2908 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
2909 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rax
2910 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, 16(%rdx)
2911 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, 24(%rdx)
2912 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
2913 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, 8(%rdx)
2914 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
2915 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
2917 ; X86-NO-BMI2-NO-SHLD-LABEL: ashr_32bytes:
2918 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
2919 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
2920 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
2921 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
2922 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
2923 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $88, %esp
2924 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
2925 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
2926 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%edx), %eax
2927 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
2928 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%edx), %eax
2929 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2930 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%edx), %edi
2931 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%edx), %ebx
2932 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%edx), %ebp
2933 ; X86-NO-BMI2-NO-SHLD-NEXT: movb (%ecx), %ch
2934 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%edx), %esi
2935 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%edx), %eax
2936 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%edx), %edx
2937 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2938 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
2939 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2940 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
2941 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
2942 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
2943 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
2944 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2945 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
2946 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
2947 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl $31, %edx
2948 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2949 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2950 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2951 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2952 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2953 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2954 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2955 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
2956 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %al
2957 ; X86-NO-BMI2-NO-SHLD-NEXT: andb $7, %al
2958 ; X86-NO-BMI2-NO-SHLD-NEXT: shrb $3, %ch
2959 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl %ch, %edi
2960 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2961 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%esp,%edi), %esi
2962 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%esp,%edi), %ebx
2963 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
2964 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2965 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
2966 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %ah
2967 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %ah
2968 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%esp,%edi), %edi
2969 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%edi,%edi), %ebp
2970 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2971 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
2972 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
2973 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2974 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2975 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
2976 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ebx # 4-byte Reload
2977 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebx, %ebx
2978 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2979 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
2980 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
2981 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
2982 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
2983 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%esp,%ebx), %ebp
2984 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, %esi
2985 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2986 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
2987 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%esp,%ebx), %ecx
2988 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2989 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %edx
2990 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
2991 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2992 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
2993 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
2994 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
2995 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
2996 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
2997 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
2998 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
2999 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3000 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
3001 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%esp,%edx), %edi
3002 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebx
3003 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3004 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3005 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 48(%esp,%edx), %esi
3006 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %edx
3007 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
3008 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
3009 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edx
3010 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3011 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %ch
3012 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %cl
3013 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3014 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3015 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %edi, %edi
3016 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %cl
3017 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ah, %dl
3018 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
3019 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
3020 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %al, %cl
3021 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
3022 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
3023 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
3024 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%esp,%esi), %ebx
3025 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ebx,%ebx), %esi
3026 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %dl, %cl
3027 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
3028 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %esi
3029 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %cl
3030 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl %cl, %ebx
3031 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
3032 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 28(%eax)
3033 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 24(%eax)
3034 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 16(%eax)
3035 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3036 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
3037 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 8(%eax)
3038 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3039 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
3040 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
3041 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
3042 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3043 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
3044 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $88, %esp
3045 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
3046 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
3047 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
3048 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
3049 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
3051 ; X86-NO-BMI2-HAVE-SHLD-LABEL: ashr_32bytes:
3052 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
3053 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
3054 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
3055 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
3056 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
3057 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $92, %esp
3058 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
3059 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
3060 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%edx), %eax
3061 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3062 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%edx), %eax
3063 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
3064 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%edx), %edi
3065 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%edx), %ebx
3066 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%edx), %ebp
3067 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl (%ecx), %ecx
3068 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%edx), %esi
3069 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%edx), %eax
3070 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%edx), %edx
3071 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3072 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
3073 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3074 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
3075 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
3076 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
3077 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
3078 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3079 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3080 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3081 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl $31, %edx
3082 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3083 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3084 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3085 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3086 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3087 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3088 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3089 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3090 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
3091 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andb $7, %al
3092 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrb $3, %cl
3093 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movzbl %cl, %ebp
3094 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%esp,%ebp), %esi
3095 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3096 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3097 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
3098 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
3099 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notb %dl
3100 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%esp,%ebp), %ecx
3101 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3102 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %edi
3103 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
3104 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
3105 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
3106 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3107 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%esp,%ebp), %esi
3108 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3109 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3110 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
3111 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%esp,%ebp), %ecx
3112 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
3113 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %edi
3114 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
3115 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %edi
3116 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
3117 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3118 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 48(%esp,%ebp), %edi
3119 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3120 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3121 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
3122 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%esp,%ebp), %ebx
3123 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %esi
3124 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
3125 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %esi
3126 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %esi
3127 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3128 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
3129 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
3130 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
3131 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, (%esp) # 4-byte Folded Spill
3132 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebp), %edx
3133 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%esp,%ebp), %edi
3134 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, %ebx
3135 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebp
3136 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 24(%ebp)
3137 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3138 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edx
3139 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl %cl, %edi
3140 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 28(%ebp)
3141 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
3142 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%ebp)
3143 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3144 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%ebp)
3145 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebp)
3146 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 20(%ebp)
3147 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3148 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%ebp)
3149 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3150 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%ebp)
3151 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $92, %esp
3152 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
3153 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
3154 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
3155 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
3156 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
3158 ; X86-HAVE-BMI2-NO-SHLD-LABEL: ashr_32bytes:
3159 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
3160 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
3161 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
3162 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
3163 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
3164 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $84, %esp
3165 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
3166 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
3167 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %eax
3168 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
3169 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edx), %eax
3170 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3171 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edx), %edi
3172 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edx), %ebx
3173 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edx), %ebp
3174 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl (%ecx), %ecx
3175 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edx), %esi
3176 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edx), %eax
3177 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edx), %edx
3178 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3179 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
3180 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3181 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
3182 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
3183 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
3184 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3185 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3186 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
3187 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3188 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarl $31, %edx
3189 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3190 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3191 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3192 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3193 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3194 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3195 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3196 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3197 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %ebx
3198 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andb $7, %bl
3199 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrb $3, %cl
3200 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movzbl %cl, %edi
3201 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%esp,%edi), %esi
3202 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%esp,%edi), %ecx
3203 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3204 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %esi, %edx
3205 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, (%esp) # 4-byte Spill
3206 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, %edx
3207 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %dl
3208 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebp
3209 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebp, %eax
3210 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl (%esp), %eax # 4-byte Folded Reload
3211 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
3212 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
3213 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, 20(%esp,%edi), %ebx
3214 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
3215 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %esi, %eax
3216 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %eax
3217 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3218 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%esp,%edi), %eax
3219 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3220 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%eax,%eax), %ebx
3221 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebx, %esi
3222 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%esp,%edi), %ebp
3223 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
3224 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %ebp, %ebx
3225 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %esi
3226 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3227 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
3228 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ebx
3229 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3230 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ebp, %eax
3231 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %eax
3232 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3233 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%esp,%edi), %ebp
3234 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%ebp,%ebp), %ecx
3235 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %ecx, %ecx
3236 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%esp,%edi), %eax
3237 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %eax, %esi
3238 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ecx
3239 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Folded Reload
3240 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3241 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %eax, %eax
3242 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %eax, %esi
3243 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Folded Reload
3244 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ebx, %ebp, %eax
3245 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%esp,%edi), %edi
3246 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarxl %ebx, %edi, %ebx
3247 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
3248 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edx, %edi, %edi
3249 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %eax, %edi
3250 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
3251 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, 28(%eax)
3252 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 24(%eax)
3253 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 16(%eax)
3254 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
3255 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3256 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
3257 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3258 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
3259 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3260 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
3261 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
3262 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
3263 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $84, %esp
3264 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
3265 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
3266 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
3267 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
3268 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
3270 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_32bytes:
3271 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
3272 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
3273 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
3274 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
3275 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
3276 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $88, %esp
3277 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
3278 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
3279 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edx), %ecx
3280 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3281 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edx), %ecx
3282 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
3283 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%edx), %edi
3284 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%edx), %ebx
3285 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%edx), %ebp
3286 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl (%eax), %eax
3287 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%edx), %esi
3288 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%edx), %ecx
3289 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%edx), %edx
3290 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
3291 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
3292 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3293 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
3294 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
3295 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
3296 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
3297 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
3298 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
3299 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
3300 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarl $31, %edx
3301 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3302 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3303 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3304 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3305 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3306 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3307 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3308 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3309 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3310 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andb $7, %cl
3311 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrb $3, %al
3312 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movzbl %al, %ebx
3313 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%esp,%ebx), %eax
3314 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3315 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %eax
3316 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %edx
3317 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notb %dl
3318 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%esp,%ebx), %esi
3319 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3320 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
3321 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %esi, %esi
3322 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %eax, %esi
3323 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
3324 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%esp,%ebx), %ebp
3325 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%ebp,%ebp), %eax
3326 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %eax, %edi
3327 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%esp,%ebx), %eax
3328 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3329 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %eax
3330 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %eax, %edi
3331 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3332 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 48(%esp,%ebx), %esi
3333 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%esi,%esi), %edi
3334 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %edx, %edi, %eax
3335 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%esp,%ebx), %edx
3336 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %edx, %edi
3337 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %edi, %eax
3338 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3339 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
3340 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3341 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %edi
3342 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, %ebp
3343 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%esp,%ebx), %edx
3344 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%esp,%ebx), %eax
3345 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %esi
3346 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
3347 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 24(%ebx)
3348 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarxl %ecx, %eax, %eax
3349 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%ebx)
3350 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, 16(%ebx)
3351 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 8(%ebx)
3352 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
3353 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3354 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %edx
3355 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, (%ebx)
3356 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3357 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%ebx)
3358 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3359 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%ebx)
3360 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
3361 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%ebx)
3362 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $88, %esp
3363 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
3364 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
3365 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
3366 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
3367 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
3368 %src = load i256, ptr %src.ptr, align 1
3369 %bitOff = load i256, ptr %bitOff.ptr, align 1
3370 %res = ashr i256 %src, %bitOff
3371 store i256 %res, ptr %dst, align 1
3375 define void @lshr_64bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
3376 ; X64-NO-BMI2-NO-SHLD-LABEL: lshr_64bytes:
3377 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
3378 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbp
3379 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r15
3380 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r14
3381 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r13
3382 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r12
3383 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
3384 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
3385 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
3386 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r9
3387 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r10
3388 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r11
3389 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %rbx
3390 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %r14
3391 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
3392 ; X64-NO-BMI2-NO-SHLD-NEXT: movl (%rsi), %r8d
3393 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
3394 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
3395 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
3396 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
3397 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
3398 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
3399 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
3400 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
3401 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3402 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3403 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3404 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3405 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3406 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3407 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3408 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3409 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %r8d, %eax
3410 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $7, %eax
3411 ; X64-NO-BMI2-NO-SHLD-NEXT: shrl $3, %r8d
3412 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %r8d
3413 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -128(%rsp,%r8), %r11
3414 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -120(%rsp,%r8), %r9
3415 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, %rsi
3416 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3417 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rsi
3418 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edi
3419 ; X64-NO-BMI2-NO-SHLD-NEXT: notl %edi
3420 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %edi
3421 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -112(%rsp,%r8), %r14
3422 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r14,%r14), %r10
3423 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
3424 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r10
3425 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rsi, %r10
3426 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3427 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r11
3428 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
3429 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
3430 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r9, %r9
3431 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
3432 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r9
3433 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %r9
3434 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -104(%rsp,%r8), %r11
3435 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, %r12
3436 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3437 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r12
3438 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -96(%rsp,%r8), %r15
3439 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r15,%r15), %rbx
3440 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
3441 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rbx
3442 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r12, %rbx
3443 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3444 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r14
3445 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r11, %r11
3446 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
3447 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r11
3448 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r14, %r11
3449 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -88(%rsp,%r8), %r14
3450 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, %r13
3451 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3452 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r13
3453 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -80(%rsp,%r8), %rbp
3454 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rbp,%rbp), %r12
3455 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
3456 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r12
3457 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r13, %r12
3458 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3459 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r15
3460 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r14, %r14
3461 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
3462 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r14
3463 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r15, %r14
3464 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3465 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbp
3466 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -72(%rsp,%r8), %rdi
3467 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rdi,%rdi), %r8
3468 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
3469 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
3470 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rbp, %r8
3471 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3472 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rdi
3473 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, 56(%rdx)
3474 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, 48(%rdx)
3475 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, 32(%rdx)
3476 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r12, 40(%rdx)
3477 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, 16(%rdx)
3478 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
3479 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, (%rdx)
3480 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, 8(%rdx)
3481 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
3482 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r12
3483 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r13
3484 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r14
3485 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r15
3486 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbp
3487 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
3489 ; X64-NO-BMI2-HAVE-SHLD-LABEL: lshr_64bytes:
3490 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
3491 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbp
3492 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r15
3493 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r14
3494 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r13
3495 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r12
3496 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbx
3497 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rax
3498 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
3499 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
3500 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
3501 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r9
3502 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r10
3503 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %r11
3504 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %rbx
3505 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %r14
3506 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %edi
3507 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
3508 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
3509 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
3510 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
3511 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
3512 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
3513 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
3514 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
3515 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, (%rsp)
3516 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3517 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3518 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3519 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3520 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3521 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3522 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3523 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, %eax
3524 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
3525 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %edi
3526 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %edi
3527 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -120(%rsp,%rdi), %r8
3528 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -112(%rsp,%rdi), %rbx
3529 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
3530 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3531 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rbx
3532 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %esi
3533 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notl %esi
3534 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
3535 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -104(%rsp,%rdi), %r11
3536 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r11,%r11), %r10
3537 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
3538 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r10
3539 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %rbx, %r10
3540 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -96(%rsp,%rdi), %r15
3541 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r15, %r12
3542 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3543 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r12
3544 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -88(%rsp,%rdi), %r14
3545 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r14,%r14), %rbx
3546 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
3547 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %rbx
3548 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r12, %rbx
3549 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -80(%rsp,%rdi), %r12
3550 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r12, %r13
3551 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3552 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r13
3553 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -72(%rsp,%rdi), %rbp
3554 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%rbp,%rbp), %r9
3555 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
3556 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r9
3557 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r13, %r9
3558 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3559 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r15, %r11
3560 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r12, %r14
3561 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rdi), %rsi
3562 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rbp
3563 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rdi # 8-byte Reload
3564 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %r8
3565 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rsi
3566 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbp, 48(%rdx)
3567 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 56(%rdx)
3568 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, 32(%rdx)
3569 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 16(%rdx)
3570 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, (%rdx)
3571 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, 40(%rdx)
3572 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, 24(%rdx)
3573 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, 8(%rdx)
3574 ; X64-NO-BMI2-HAVE-SHLD-NEXT: addq $8, %rsp
3575 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbx
3576 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r12
3577 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r13
3578 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r14
3579 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r15
3580 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbp
3581 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
3583 ; X64-HAVE-BMI2-NO-SHLD-LABEL: lshr_64bytes:
3584 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
3585 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbp
3586 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r15
3587 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r14
3588 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r13
3589 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r12
3590 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbx
3591 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rcx
3592 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %r8
3593 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r9
3594 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r10
3595 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r11
3596 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %rbx
3597 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %r14
3598 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
3599 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl (%rsi), %eax
3600 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
3601 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
3602 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
3603 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
3604 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
3605 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
3606 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
3607 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
3608 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3609 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %ecx
3610 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3611 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3612 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3613 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3614 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3615 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3616 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3617 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3618 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %eax
3619 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %eax
3620 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -120(%rsp,%rax), %rdi
3621 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -112(%rsp,%rax), %r9
3622 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rdi, %rbx
3623 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, -128(%rsp,%rax), %r14
3624 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %esi
3625 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -104(%rsp,%rax), %r8
3626 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r8, %r13
3627 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r9, %r10
3628 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -88(%rsp,%rax), %r11
3629 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r11, %r15
3630 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %r12d
3631 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notl %r12d
3632 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %r12d
3633 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r9, %r9
3634 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %r9, %r9
3635 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rbx, %r9
3636 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -96(%rsp,%rax), %rbx
3637 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rbx, %rbp
3638 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %sil
3639 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
3640 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %rdi, %rdi
3641 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r14, %rdi
3642 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rbx, %rbx
3643 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %rbx, %rbx
3644 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r13, %rbx
3645 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -80(%rsp,%rax), %r14
3646 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r14, %r13
3647 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -72(%rsp,%rax), %rax
3648 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rax, %rcx
3649 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r8, %r8
3650 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %r8, %r8
3651 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r10, %r8
3652 ; X64-HAVE-BMI2-NO-SHLD-NEXT: leaq (%r14,%r14), %r10
3653 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %r10, %r10
3654 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r15, %r10
3655 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r11, %r11
3656 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %r11, %r11
3657 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rbp, %r11
3658 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rax, %rax
3659 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %rax, %rax
3660 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r13, %rax
3661 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, 56(%rdx)
3662 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 48(%rdx)
3663 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, 32(%rdx)
3664 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, 40(%rdx)
3665 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, 16(%rdx)
3666 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
3667 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
3668 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, 8(%rdx)
3669 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbx
3670 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r12
3671 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r13
3672 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r14
3673 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r15
3674 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbp
3675 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
3677 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_64bytes:
3678 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
3679 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbp
3680 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r15
3681 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r14
3682 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r13
3683 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r12
3684 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
3685 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rcx
3686 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %r8
3687 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r9
3688 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r10
3689 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r11
3690 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %rbx
3691 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %r14
3692 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %rdi
3693 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %eax
3694 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
3695 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
3696 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
3697 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
3698 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
3699 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
3700 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
3701 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
3702 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
3703 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %ecx
3704 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3705 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3706 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3707 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3708 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3709 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3710 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3711 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
3712 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %eax
3713 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %eax
3714 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -120(%rsp,%rax), %rsi
3715 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %rsi, %r10
3716 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -104(%rsp,%rax), %r8
3717 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r8, %r15
3718 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -88(%rsp,%rax), %r11
3719 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r11, %r14
3720 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %r12d
3721 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notl %r12d
3722 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %r12d
3723 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -112(%rsp,%rax), %r9
3724 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r9,%r9), %rdi
3725 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %rdi, %rdi
3726 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r10, %rdi
3727 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -96(%rsp,%rax), %rbx
3728 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%rbx,%rbx), %r10
3729 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %r10, %r10
3730 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r15, %r10
3731 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -80(%rsp,%rax), %r13
3732 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r13,%r13), %r15
3733 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %r15, %r15
3734 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -72(%rsp,%rax), %r12
3735 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r12, %rbp
3736 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -128(%rsp,%rax), %rax
3737 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r14, %r15
3738 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %r9
3739 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r11, %rbx
3740 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r12, %r13
3741 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
3742 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rax
3743 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r13, 48(%rdx)
3744 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbp, 56(%rdx)
3745 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, 32(%rdx)
3746 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, 16(%rdx)
3747 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
3748 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r15, 40(%rdx)
3749 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, 24(%rdx)
3750 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
3751 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
3752 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r12
3753 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r13
3754 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r14
3755 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r15
3756 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbp
3757 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
3759 ; X86-NO-BMI2-NO-SHLD-LABEL: lshr_64bytes:
3760 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
3761 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
3762 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
3763 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
3764 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
3765 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $208, %esp
3766 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
3767 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esi), %eax
3768 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3769 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%esi), %eax
3770 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3771 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%esi), %eax
3772 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3773 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%esi), %eax
3774 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3775 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%esi), %eax
3776 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3777 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%esi), %eax
3778 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
3779 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%esi), %eax
3780 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3781 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%esi), %eax
3782 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3783 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%esi), %eax
3784 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3785 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%esi), %eax
3786 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3787 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%esi), %ebp
3788 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%esi), %ebx
3789 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 48(%esi), %edi
3790 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%esi), %edx
3791 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 56(%esi), %ecx
3792 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 60(%esi), %eax
3793 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
3794 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esi), %esi
3795 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3796 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
3797 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
3798 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
3799 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
3800 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
3801 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3802 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3803 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3804 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3805 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3806 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3807 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3808 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3809 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
3810 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3811 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3812 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3813 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3814 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3815 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3816 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3817 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3818 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3819 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3820 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
3821 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3822 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3823 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3824 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3825 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3826 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3827 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3828 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3829 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3830 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3831 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3832 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3833 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3834 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3835 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3836 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
3837 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
3838 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $7, %ecx
3839 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl $3, %esi
3840 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $63, %esi
3841 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 84(%esp,%esi), %edi
3842 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3843 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
3844 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 88(%esp,%esi), %eax
3845 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3846 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%eax,%eax), %ebx
3847 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %edx
3848 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
3849 ; X86-NO-BMI2-NO-SHLD-NEXT: notl %edx
3850 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $31, %edx
3851 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3852 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
3853 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
3854 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3855 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 92(%esp,%esi), %edi
3856 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3857 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3858 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
3859 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 96(%esp,%esi), %ecx
3860 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3861 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
3862 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3863 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
3864 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
3865 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3866 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 100(%esp,%esi), %edi
3867 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3868 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3869 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
3870 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 104(%esp,%esi), %ecx
3871 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3872 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
3873 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3874 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
3875 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
3876 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3877 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 108(%esp,%esi), %edi
3878 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3879 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3880 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
3881 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 112(%esp,%esi), %ecx
3882 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3883 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
3884 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3885 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
3886 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
3887 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3888 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 116(%esp,%esi), %ebx
3889 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3890 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3891 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3892 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 120(%esp,%esi), %ecx
3893 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3894 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
3895 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3896 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
3897 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
3898 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3899 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 124(%esp,%esi), %ebx
3900 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
3901 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3902 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3903 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 128(%esp,%esi), %ecx
3904 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3905 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
3906 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3907 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
3908 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
3909 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3910 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 132(%esp,%esi), %edi
3911 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebx
3912 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3913 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3914 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 136(%esp,%esi), %ecx
3915 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3916 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebp
3917 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3918 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3919 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3920 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3921 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 80(%esp,%esi), %ebx
3922 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3923 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3924 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edx
3925 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %dl
3926 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
3927 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3928 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3929 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3930 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3931 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3932 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3933 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3934 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3935 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
3936 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3937 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3938 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3939 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3940 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3941 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3942 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3943 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3944 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
3945 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3946 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3947 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3948 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3949 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3950 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3951 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3952 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3953 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
3954 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3955 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3956 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3957 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3958 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3959 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3960 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3961 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3962 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
3963 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3964 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3965 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3966 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3967 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
3968 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3969 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3970 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3971 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ebp # 4-byte Reload
3972 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
3973 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3974 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
3975 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
3976 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, (%esp) # 4-byte Spill
3977 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3978 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
3979 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
3980 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %edi, %edi
3981 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3982 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
3983 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
3984 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
3985 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ebp
3986 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
3987 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
3988 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 140(%esp,%esi), %esi
3989 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %ebx
3990 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
3991 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
3992 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %ebx
3993 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, %ecx
3994 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
3995 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
3996 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
3997 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 60(%eax)
3998 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 56(%eax)
3999 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 48(%eax)
4000 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
4001 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 40(%eax)
4002 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4003 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 32(%eax)
4004 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4005 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 24(%eax)
4006 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4007 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 16(%eax)
4008 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4009 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
4010 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4011 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
4012 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4013 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 52(%eax)
4014 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4015 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 44(%eax)
4016 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4017 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 36(%eax)
4018 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4019 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 28(%eax)
4020 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4021 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
4022 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4023 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
4024 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4025 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
4026 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $208, %esp
4027 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
4028 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
4029 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
4030 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
4031 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
4033 ; X86-NO-BMI2-HAVE-SHLD-LABEL: lshr_64bytes:
4034 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
4035 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
4036 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
4037 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
4038 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
4039 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $204, %esp
4040 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
4041 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esi), %eax
4042 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4043 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%esi), %eax
4044 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4045 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%esi), %eax
4046 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4047 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%esi), %eax
4048 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4049 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%esi), %eax
4050 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4051 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%esi), %eax
4052 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
4053 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%esi), %eax
4054 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4055 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%esi), %eax
4056 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4057 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%esi), %eax
4058 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4059 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%esi), %eax
4060 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4061 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%esi), %ebp
4062 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%esi), %ebx
4063 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 48(%esi), %edi
4064 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%esi), %edx
4065 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%esi), %ecx
4066 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 60(%esi), %eax
4067 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
4068 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esi), %esi
4069 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4070 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4071 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
4072 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
4073 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
4074 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
4075 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4076 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4077 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4078 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4079 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4080 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4081 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4082 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4083 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
4084 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4085 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4086 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4087 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4088 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4089 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4090 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4091 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4092 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4093 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4094 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4095 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4096 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4097 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4098 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4099 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4100 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4101 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4102 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4103 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4104 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4105 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4106 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4107 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4108 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4109 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4110 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4111 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
4112 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
4113 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %esi
4114 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
4115 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%esi), %edi
4116 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4117 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4118 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4119 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%esi), %ecx
4120 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4121 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4122 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
4123 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notl %edx
4124 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $31, %edx
4125 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4126 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4127 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4128 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4129 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 88(%esp,%esi), %edi
4130 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4131 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4132 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4133 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 92(%esp,%esi), %ecx
4134 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4135 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4136 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4137 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4138 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4139 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4140 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 96(%esp,%esi), %edi
4141 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4142 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4143 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4144 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 100(%esp,%esi), %ecx
4145 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4146 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4147 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4148 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4149 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4150 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4151 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 104(%esp,%esi), %edi
4152 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4153 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4154 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4155 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 108(%esp,%esi), %ecx
4156 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4157 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4158 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4159 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4160 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4161 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4162 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 112(%esp,%esi), %edi
4163 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4164 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4165 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4166 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 116(%esp,%esi), %ecx
4167 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4168 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4169 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4170 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4171 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4172 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4173 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 120(%esp,%esi), %edi
4174 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4175 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4176 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4177 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 124(%esp,%esi), %ecx
4178 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
4179 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
4180 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4181 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
4182 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
4183 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4184 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 128(%esp,%esi), %edi
4185 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4186 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4187 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
4188 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 132(%esp,%esi), %ebx
4189 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %ebp
4190 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4191 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebp
4192 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebp
4193 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4194 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4195 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4196 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4197 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4198 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4199 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4200 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4201 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4202 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4203 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4204 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4205 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, (%esp) # 4-byte Folded Spill
4206 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%esi), %edi
4207 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 136(%esp,%esi), %esi
4208 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %ebx
4209 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
4210 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 56(%edx)
4211 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
4212 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edi
4213 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
4214 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 60(%edx)
4215 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
4216 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 48(%edx)
4217 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4218 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 40(%edx)
4219 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4220 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 32(%edx)
4221 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4222 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 24(%edx)
4223 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4224 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%edx)
4225 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4226 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%edx)
4227 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, (%edx)
4228 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 52(%edx)
4229 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4230 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 44(%edx)
4231 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4232 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 36(%edx)
4233 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4234 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%edx)
4235 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4236 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%edx)
4237 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4238 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%edx)
4239 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4240 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%edx)
4241 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $204, %esp
4242 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
4243 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
4244 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
4245 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
4246 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
4248 ; X86-HAVE-BMI2-NO-SHLD-LABEL: lshr_64bytes:
4249 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
4250 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
4251 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
4252 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
4253 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
4254 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $204, %esp
4255 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
4256 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %eax
4257 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4258 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edx), %eax
4259 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4260 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edx), %eax
4261 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4262 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edx), %eax
4263 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4264 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edx), %eax
4265 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4266 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edx), %eax
4267 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4268 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edx), %eax
4269 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4270 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edx), %eax
4271 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4272 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%edx), %eax
4273 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4274 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%edx), %eax
4275 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
4276 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%edx), %ebp
4277 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%edx), %ebx
4278 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%edx), %edi
4279 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 52(%edx), %esi
4280 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 56(%edx), %ecx
4281 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 60(%edx), %eax
4282 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
4283 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %edx
4284 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4285 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4286 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
4287 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
4288 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
4289 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
4290 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
4291 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4292 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4293 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4294 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4295 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4296 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4297 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4298 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4299 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4300 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4301 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4302 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4303 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4304 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4305 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4306 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4307 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4308 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
4309 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
4310 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %eax
4311 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %eax
4312 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4313 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4314 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4315 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4316 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4317 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4318 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4319 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4320 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4321 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4322 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4323 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4324 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4325 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4326 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4327 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4328 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %edx
4329 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %edx
4330 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 80(%esp,%edx), %ecx
4331 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4332 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 84(%esp,%edx), %esi
4333 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4334 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
4335 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %edi
4336 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notl %edi
4337 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $31, %edi
4338 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
4339 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %esi, %esi
4340 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4341 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4342 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 92(%esp,%edx), %ecx
4343 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
4344 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4345 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
4346 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 88(%esp,%edx), %ecx
4347 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4348 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
4349 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4350 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4351 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 100(%esp,%edx), %ecx
4352 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4353 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4354 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
4355 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 96(%esp,%edx), %ecx
4356 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4357 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
4358 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4359 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4360 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 108(%esp,%edx), %ecx
4361 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4362 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4363 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
4364 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 104(%esp,%edx), %ecx
4365 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4366 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
4367 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4368 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4369 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 116(%esp,%edx), %ecx
4370 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4371 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4372 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
4373 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 112(%esp,%edx), %ecx
4374 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4375 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
4376 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4377 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4378 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 124(%esp,%edx), %ecx
4379 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4380 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4381 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
4382 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 120(%esp,%edx), %ebx
4383 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ebx, %ecx
4384 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
4385 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4386 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 132(%esp,%edx), %ecx
4387 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4388 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
4389 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %edi
4390 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 128(%esp,%edx), %esi
4391 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %esi, %ecx
4392 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %edi
4393 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4394 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4395 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %cl
4396 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4397 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
4398 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %edi, %ebp
4399 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, 76(%esp,%edx), %edi
4400 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
4401 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4402 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4403 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
4404 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
4405 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
4406 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
4407 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4408 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, (%esp), %edi # 4-byte Folded Reload
4409 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
4410 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
4411 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
4412 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
4413 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, (%esp) # 4-byte Spill
4414 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4415 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
4416 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
4417 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
4418 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
4419 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4420 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4421 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
4422 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
4423 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
4424 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
4425 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4426 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebx, %ebx
4427 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebx, %ebx
4428 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
4429 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4430 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
4431 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %esi, %esi
4432 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %esi
4433 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
4434 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4435 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 136(%esp,%edx), %edx
4436 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %edx, %edi
4437 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%edx,%edx), %eax
4438 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %eax, %ecx
4439 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
4440 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
4441 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 60(%eax)
4442 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 56(%eax)
4443 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 48(%eax)
4444 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, 40(%eax)
4445 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, 32(%eax)
4446 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4447 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 24(%eax)
4448 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
4449 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 16(%eax)
4450 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4451 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
4452 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4453 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
4454 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4455 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 52(%eax)
4456 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4457 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 44(%eax)
4458 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4459 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 36(%eax)
4460 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4461 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 28(%eax)
4462 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4463 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
4464 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4465 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
4466 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4467 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
4468 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $204, %esp
4469 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
4470 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
4471 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
4472 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
4473 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
4475 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: lshr_64bytes:
4476 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
4477 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
4478 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
4479 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
4480 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
4481 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $200, %esp
4482 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
4483 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%eax), %ecx
4484 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4485 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%eax), %ecx
4486 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4487 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%eax), %ecx
4488 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4489 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%eax), %ecx
4490 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4491 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%eax), %ecx
4492 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
4493 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%eax), %ecx
4494 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4495 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%eax), %ecx
4496 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4497 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%eax), %ecx
4498 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4499 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%eax), %ecx
4500 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4501 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%eax), %ecx
4502 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4503 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%eax), %ebp
4504 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%eax), %ebx
4505 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 48(%eax), %edi
4506 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%eax), %esi
4507 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 56(%eax), %edx
4508 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 60(%eax), %ecx
4509 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
4510 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%eax), %eax
4511 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4512 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
4513 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
4514 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
4515 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
4516 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
4517 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4518 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4519 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4520 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4521 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4522 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4523 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4524 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4525 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4526 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4527 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
4528 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4529 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4530 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4531 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4532 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4533 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4534 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4535 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4536 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
4537 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
4538 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %edx
4539 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4540 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4541 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4542 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4543 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4544 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4545 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4546 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4547 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4548 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4549 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4550 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4551 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4552 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4553 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4554 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
4555 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %eax
4556 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %eax
4557 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%eax), %ecx
4558 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4559 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %ecx, %esi
4560 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4561 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notl %ecx
4562 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $31, %ecx
4563 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%eax), %edi
4564 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4565 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %edi, %edi
4566 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %edi, %edi
4567 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4568 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4569 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 88(%esp,%eax), %esi
4570 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4571 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
4572 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4573 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%eax), %esi
4574 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4575 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %esi
4576 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4577 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4578 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 96(%esp,%eax), %esi
4579 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4580 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
4581 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4582 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 92(%esp,%eax), %esi
4583 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4584 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %esi
4585 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4586 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4587 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 104(%esp,%eax), %esi
4588 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4589 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
4590 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4591 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 100(%esp,%eax), %esi
4592 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4593 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %esi
4594 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4595 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4596 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 112(%esp,%eax), %esi
4597 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
4598 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
4599 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4600 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 108(%esp,%eax), %esi
4601 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4602 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %esi
4603 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4604 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4605 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 120(%esp,%eax), %ebp
4606 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%ebp,%ebp), %esi
4607 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4608 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 116(%esp,%eax), %esi
4609 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4610 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %esi
4611 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
4612 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4613 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 128(%esp,%eax), %ebx
4614 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %esi
4615 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %ecx, %esi, %edi
4616 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 124(%esp,%eax), %esi
4617 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %esi, %ecx
4618 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ecx, %edi
4619 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
4620 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4621 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4622 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4623 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4624 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4625 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4626 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4627 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4628 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
4629 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
4630 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, (%esp) # 4-byte Folded Spill
4631 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %ebp
4632 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 72(%esp,%eax), %esi
4633 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 132(%esp,%eax), %edi
4634 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, %ebx
4635 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
4636 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, 56(%eax)
4637 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, 48(%eax)
4638 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
4639 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 40(%eax)
4640 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4641 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 32(%eax)
4642 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4643 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 24(%eax)
4644 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4645 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 16(%eax)
4646 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4647 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 8(%eax)
4648 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %edx, %edi, %edi
4649 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
4650 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
4651 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, %esi
4652 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, (%eax)
4653 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 60(%eax)
4654 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4655 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 52(%eax)
4656 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4657 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 44(%eax)
4658 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4659 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 36(%eax)
4660 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4661 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 28(%eax)
4662 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4663 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 20(%eax)
4664 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4665 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 12(%eax)
4666 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
4667 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, 4(%eax)
4668 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $200, %esp
4669 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
4670 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
4671 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
4672 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
4673 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
4674 %src = load i512, ptr %src.ptr, align 1
4675 %bitOff = load i512, ptr %bitOff.ptr, align 1
4676 %res = lshr i512 %src, %bitOff
4677 store i512 %res, ptr %dst, align 1
4680 define void @shl_64bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
4681 ; X64-NO-BMI2-NO-SHLD-LABEL: shl_64bytes:
4682 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
4683 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbp
4684 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r15
4685 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r14
4686 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r13
4687 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r12
4688 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
4689 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
4690 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
4691 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
4692 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r9
4693 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r10
4694 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %r11
4695 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %rbx
4696 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
4697 ; X64-NO-BMI2-NO-SHLD-NEXT: movl (%rsi), %esi
4698 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
4699 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
4700 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
4701 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
4702 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
4703 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
4704 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
4705 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
4706 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4707 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4708 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4709 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4710 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4711 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4712 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4713 ; X64-NO-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4714 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %eax
4715 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $7, %eax
4716 ; X64-NO-BMI2-NO-SHLD-NEXT: shrl $3, %esi
4717 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %esi
4718 ; X64-NO-BMI2-NO-SHLD-NEXT: negl %esi
4719 ; X64-NO-BMI2-NO-SHLD-NEXT: movslq %esi, %r14
4720 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -64(%rsp,%r14), %r9
4721 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%r14), %r8
4722 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, %rdi
4723 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4724 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rdi
4725 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
4726 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
4727 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, %r10
4728 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r10
4729 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
4730 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r10
4731 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rdi, %r10
4732 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%r14), %r11
4733 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, %rdi
4734 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4735 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rdi
4736 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%r14), %r15
4737 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r15, %rbx
4738 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %rbx
4739 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
4740 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbx
4741 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rdi, %rbx
4742 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4743 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r15
4744 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edi
4745 ; X64-NO-BMI2-NO-SHLD-NEXT: notl %edi
4746 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %edi
4747 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r8
4748 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
4749 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r8
4750 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r15, %r8
4751 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -24(%rsp,%r14), %r15
4752 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r15, %r13
4753 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4754 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r13
4755 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -32(%rsp,%r14), %rbp
4756 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbp, %r12
4757 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r12
4758 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
4759 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r12
4760 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r13, %r12
4761 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4762 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rbp
4763 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r11
4764 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
4765 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r11
4766 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rbp, %r11
4767 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -8(%rsp,%r14), %r13
4768 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4769 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r13
4770 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -16(%rsp,%r14), %r14
4771 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, %rbp
4772 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %rbp
4773 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
4774 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbp
4775 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r13, %rbp
4776 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4777 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r14
4778 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %r15
4779 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
4780 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r15
4781 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r14, %r15
4782 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
4783 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r9
4784 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, (%rdx)
4785 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r15, 48(%rdx)
4786 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbp, 56(%rdx)
4787 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, 32(%rdx)
4788 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r12, 40(%rdx)
4789 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, 16(%rdx)
4790 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
4791 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, 8(%rdx)
4792 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
4793 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r12
4794 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r13
4795 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r14
4796 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r15
4797 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbp
4798 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
4800 ; X64-NO-BMI2-HAVE-SHLD-LABEL: shl_64bytes:
4801 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
4802 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbp
4803 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r15
4804 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r14
4805 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r13
4806 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r12
4807 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbx
4808 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rax
4809 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
4810 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
4811 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
4812 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r9
4813 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r10
4814 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %r11
4815 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %rbx
4816 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %rdi
4817 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %esi
4818 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, (%rsp)
4819 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
4820 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
4821 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
4822 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
4823 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
4824 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
4825 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
4826 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4827 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4828 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4829 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4830 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4831 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4832 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4833 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4834 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
4835 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
4836 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %esi
4837 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
4838 ; X64-NO-BMI2-HAVE-SHLD-NEXT: negl %esi
4839 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movslq %esi, %r10
4840 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%r10), %rbx
4841 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
4842 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4843 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %rbx
4844 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %esi
4845 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notl %esi
4846 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
4847 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%r10), %r9
4848 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%r10), %r8
4849 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, %rdi
4850 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %rdi
4851 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
4852 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rdi
4853 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %rbx, %rdi
4854 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -24(%rsp,%r10), %r15
4855 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r15, %r12
4856 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4857 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r12
4858 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -32(%rsp,%r10), %r14
4859 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, %rbx
4860 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %rbx
4861 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
4862 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rbx
4863 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r12, %rbx
4864 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -8(%rsp,%r10), %r12
4865 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r12, %r13
4866 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4867 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r13
4868 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -16(%rsp,%r10), %r11
4869 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, %rbp
4870 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %rbp
4871 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
4872 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rbp
4873 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r13, %rbp
4874 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
4875 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rsi # 8-byte Reload
4876 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rsi, %r14
4877 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r15, %r11
4878 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rsp,%r10), %rsi
4879 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r12, %rsi
4880 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r9, %r8
4881 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r9
4882 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 56(%rdx)
4883 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 40(%rdx)
4884 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, 24(%rdx)
4885 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, (%rdx)
4886 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, 8(%rdx)
4887 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbp, 48(%rdx)
4888 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, 32(%rdx)
4889 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rdi, 16(%rdx)
4890 ; X64-NO-BMI2-HAVE-SHLD-NEXT: addq $8, %rsp
4891 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbx
4892 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r12
4893 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r13
4894 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r14
4895 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r15
4896 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbp
4897 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
4899 ; X64-HAVE-BMI2-NO-SHLD-LABEL: shl_64bytes:
4900 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
4901 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbp
4902 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r15
4903 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r14
4904 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r13
4905 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r12
4906 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbx
4907 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
4908 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
4909 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r8
4910 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r9
4911 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r10
4912 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %r11
4913 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %rbx
4914 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
4915 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl (%rsi), %esi
4916 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
4917 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
4918 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
4919 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
4920 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
4921 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
4922 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
4923 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
4924 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, %eax
4925 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %eax
4926 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4927 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4928 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4929 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4930 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4931 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4932 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4933 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
4934 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %esi
4935 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %esi
4936 ; X64-HAVE-BMI2-NO-SHLD-NEXT: negl %esi
4937 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movslq %esi, %rcx
4938 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -64(%rsp,%rcx), %r10
4939 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -56(%rsp,%rcx), %rsi
4940 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rsi, %r9
4941 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -40(%rsp,%rcx), %rdi
4942 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rdi, %rbx
4943 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -48(%rsp,%rcx), %r15
4944 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %r15, %r14
4945 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %r8d
4946 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -24(%rsp,%rcx), %r11
4947 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %r11, %r12
4948 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %r10, %r13
4949 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ebp
4950 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %bpl
4951 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %r10
4952 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rbp, %r10, %r10
4953 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r9, %r10
4954 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %r15
4955 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rbp, %r15, %r9
4956 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rbx, %r9
4957 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -32(%rsp,%rcx), %rbx
4958 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rbx, %r15
4959 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notl %r8d
4960 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %r8d
4961 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rsi
4962 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %r8, %rsi, %rsi
4963 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r14, %rsi
4964 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, -8(%rsp,%rcx), %r14
4965 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -16(%rsp,%rcx), %rcx
4966 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rax, %rcx, %rax
4967 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rbx
4968 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rbp, %rbx, %rbx
4969 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r12, %rbx
4970 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rdi
4971 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %r8, %rdi, %rdi
4972 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r15, %rdi
4973 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %rcx
4974 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rbp, %rcx, %rcx
4975 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r14, %rcx
4976 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrq %r11
4977 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %r8, %r11, %r8
4978 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rax, %r8
4979 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r13, (%rdx)
4980 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, 48(%rdx)
4981 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, 56(%rdx)
4982 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, 32(%rdx)
4983 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, 40(%rdx)
4984 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rsi, 16(%rdx)
4985 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, 24(%rdx)
4986 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, 8(%rdx)
4987 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbx
4988 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r12
4989 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r13
4990 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r14
4991 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r15
4992 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbp
4993 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
4995 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: shl_64bytes:
4996 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
4997 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbp
4998 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r15
4999 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r14
5000 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r13
5001 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r12
5002 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
5003 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
5004 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
5005 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
5006 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r9
5007 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r10
5008 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %r11
5009 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %rbx
5010 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %rdi
5011 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %esi
5012 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
5013 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
5014 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
5015 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
5016 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
5017 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
5018 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
5019 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
5020 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
5021 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %ecx
5022 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5023 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5024 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5025 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5026 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5027 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5028 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5029 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq $0, -{{[0-9]+}}(%rsp)
5030 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %esi
5031 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
5032 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: negl %esi
5033 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movslq %esi, %rax
5034 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -48(%rsp,%rax), %rsi
5035 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %rsi, %rbx
5036 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -32(%rsp,%rax), %rdi
5037 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %rdi, %r12
5038 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -16(%rsp,%rax), %r10
5039 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %r10, %r15
5040 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %ebp
5041 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notl %ebp
5042 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %ebp
5043 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rax), %r11
5044 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -56(%rsp,%rax), %r9
5045 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, %r8
5046 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrq %r8
5047 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rbp, %r8, %r8
5048 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %rbx, %r8
5049 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -40(%rsp,%rax), %r14
5050 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r14, %rbx
5051 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrq %rbx
5052 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rbp, %rbx, %rbx
5053 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r12, %rbx
5054 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -24(%rsp,%rax), %r13
5055 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r13, %r12
5056 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrq %r12
5057 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rbp, %r12, %r12
5058 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %rcx, %r11, %rbp
5059 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r15, %r12
5060 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rsi, %r14
5061 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %rdi, %r13
5062 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -8(%rsp,%rax), %rax
5063 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r10, %rax
5064 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
5065 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shldq %cl, %r11, %r9
5066 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, 56(%rdx)
5067 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r13, 40(%rdx)
5068 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r14, 24(%rdx)
5069 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbp, (%rdx)
5070 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, 8(%rdx)
5071 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r12, 48(%rdx)
5072 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, 32(%rdx)
5073 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, 16(%rdx)
5074 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
5075 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r12
5076 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r13
5077 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r14
5078 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r15
5079 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbp
5080 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
5082 ; X86-NO-BMI2-NO-SHLD-LABEL: shl_64bytes:
5083 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
5084 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
5085 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
5086 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
5087 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
5088 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $192, %esp
5089 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
5090 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ebx), %eax
5091 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5092 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ebx), %eax
5093 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
5094 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%ebx), %eax
5095 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5096 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%ebx), %eax
5097 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5098 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%ebx), %eax
5099 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5100 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%ebx), %eax
5101 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5102 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%ebx), %eax
5103 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5104 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%ebx), %eax
5105 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5106 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%ebx), %eax
5107 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5108 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%ebx), %eax
5109 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5110 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%ebx), %ebp
5111 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%ebx), %edi
5112 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 48(%ebx), %esi
5113 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%ebx), %edx
5114 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 56(%ebx), %ecx
5115 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 60(%ebx), %eax
5116 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ebx
5117 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ebx), %ebx
5118 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5119 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5120 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
5121 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
5122 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
5123 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
5124 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5125 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5126 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5127 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5128 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5129 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5130 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5131 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5132 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5133 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5134 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5135 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5136 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5137 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5138 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5139 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5140 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
5141 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5142 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5143 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5144 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %eax
5145 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl $3, %eax
5146 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $63, %eax
5147 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5148 ; X86-NO-BMI2-NO-SHLD-NEXT: leal {{[0-9]+}}(%esp), %ebp
5149 ; X86-NO-BMI2-NO-SHLD-NEXT: subl %eax, %ebp
5150 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5151 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5152 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5153 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5154 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5155 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5156 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5157 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5158 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5159 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5160 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5161 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5162 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5163 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5164 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5165 ; X86-NO-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5166 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%ebp), %edx
5167 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5168 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%ebp), %edi
5169 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $7, %ebx
5170 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %eax
5171 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5172 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
5173 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edx
5174 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %bl, %ch
5175 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %ch
5176 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %cl
5177 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, (%esp) # 1-byte Spill
5178 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edx
5179 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %edx
5180 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5181 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%ebp), %edx
5182 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5183 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %bl, %cl
5184 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %esi
5185 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5186 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%ebp), %eax
5187 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ebx
5188 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
5189 ; X86-NO-BMI2-NO-SHLD-NEXT: movb %ch, %cl
5190 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
5191 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %ebx
5192 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5193 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
5194 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5195 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
5196 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
5197 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %edx
5198 ; X86-NO-BMI2-NO-SHLD-NEXT: notl %edx
5199 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $31, %edx
5200 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5201 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
5202 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
5203 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %edi
5204 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5205 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%ebp), %edx
5206 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5207 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5208 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5209 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%ebp), %eax
5210 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ebx
5211 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
5212 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5213 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
5214 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %ebx
5215 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5216 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
5217 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5218 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
5219 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
5220 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
5221 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5222 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5223 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
5224 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %edi
5225 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5226 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%ebp), %edi
5227 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %esi
5228 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5229 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %esi
5230 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%ebp), %edx
5231 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %eax
5232 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %eax
5233 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5234 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
5235 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %esi, %eax
5236 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5237 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5238 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5239 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5240 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %eax
5241 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5242 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5243 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
5244 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %eax
5245 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5246 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%ebp), %edx
5247 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5248 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5249 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %esi
5250 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5251 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%ebp), %eax
5252 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ebx
5253 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebx
5254 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5255 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
5256 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %ebx
5257 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5258 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
5259 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5260 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
5261 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
5262 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5263 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5264 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
5265 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %edi
5266 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5267 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%ebp), %edx
5268 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5269 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5270 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5271 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%ebp), %eax
5272 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edi
5273 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
5274 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5275 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
5276 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %edi
5277 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5278 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5279 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %eax
5280 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5281 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %esi
5282 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5283 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5284 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
5285 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %esi
5286 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5287 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%ebp), %eax
5288 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edi
5289 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5290 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
5291 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5292 ; X86-NO-BMI2-NO-SHLD-NEXT: negl %ecx
5293 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 176(%esp,%ecx), %edx
5294 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %esi
5295 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %esi
5296 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5297 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %esi
5298 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %esi
5299 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5300 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5301 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
5302 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %edi
5303 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5304 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5305 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
5306 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %edi
5307 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5308 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 60(%ebp), %edi
5309 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5310 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
5311 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 56(%ebp), %edx
5312 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ebp
5313 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %ebp
5314 ; X86-NO-BMI2-NO-SHLD-NEXT: movzbl (%esp), %ecx # 1-byte Folded Reload
5315 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebp
5316 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
5317 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5318 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5319 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %eax
5320 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5321 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
5322 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
5323 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edx, %eax
5324 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, %ecx
5325 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5326 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edx
5327 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %ecx
5328 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, (%ecx)
5329 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 56(%ecx)
5330 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, 60(%ecx)
5331 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5332 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 48(%ecx)
5333 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 52(%ecx)
5334 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5335 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 40(%ecx)
5336 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5337 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 44(%ecx)
5338 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5339 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 32(%ecx)
5340 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5341 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 36(%ecx)
5342 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5343 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 24(%ecx)
5344 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5345 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 28(%ecx)
5346 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5347 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 16(%ecx)
5348 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5349 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 20(%ecx)
5350 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5351 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 8(%ecx)
5352 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5353 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 12(%ecx)
5354 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5355 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, 4(%ecx)
5356 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $192, %esp
5357 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
5358 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
5359 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
5360 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
5361 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
5363 ; X86-NO-BMI2-HAVE-SHLD-LABEL: shl_64bytes:
5364 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
5365 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
5366 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
5367 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
5368 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
5369 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $204, %esp
5370 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
5371 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%eax), %ecx
5372 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5373 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%eax), %ecx
5374 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5375 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%eax), %ecx
5376 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5377 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%eax), %ecx
5378 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5379 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%eax), %ecx
5380 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
5381 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%eax), %ecx
5382 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5383 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%eax), %ecx
5384 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5385 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%eax), %ecx
5386 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5387 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%eax), %ecx
5388 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5389 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%eax), %ecx
5390 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5391 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%eax), %ebp
5392 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%eax), %ebx
5393 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 48(%eax), %edi
5394 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%eax), %esi
5395 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%eax), %edx
5396 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 60(%eax), %ecx
5397 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
5398 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%eax), %eax
5399 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5400 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
5401 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
5402 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
5403 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
5404 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
5405 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5406 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5407 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5408 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5409 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5410 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5411 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5412 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5413 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5414 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5415 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
5416 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5417 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5418 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5419 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5420 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5421 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5422 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5423 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5424 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5425 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %esi
5426 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %esi
5427 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
5428 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal {{[0-9]+}}(%esp), %edi
5429 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl %esi, %edi
5430 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5431 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5432 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5433 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5434 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5435 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5436 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5437 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5438 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5439 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5440 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5441 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5442 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5443 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5444 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5445 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5446 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %ebx
5447 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5448 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
5449 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5450 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5451 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %ebp
5452 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5453 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5454 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
5455 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notl %edx
5456 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $31, %edx
5457 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5458 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5459 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5460 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5461 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %ebx
5462 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5463 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5464 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5465 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %ebp
5466 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5467 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5468 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5469 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5470 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5471 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5472 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %ebx
5473 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5474 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5475 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5476 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %ebp
5477 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5478 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5479 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5480 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5481 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5482 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5483 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%edi), %ebx
5484 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5485 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5486 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5487 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %ebp
5488 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5489 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5490 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5491 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5492 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5493 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5494 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%edi), %ebx
5495 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5496 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5497 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5498 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%edi), %ebp
5499 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5500 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5501 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5502 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5503 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5504 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5505 ; X86-NO-BMI2-HAVE-SHLD-NEXT: negl %esi
5506 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 188(%esp,%esi), %ebx
5507 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5508 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5509 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5510 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%edi), %esi
5511 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
5512 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %esi
5513 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5514 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %esi
5515 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %esi
5516 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5517 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%edi), %esi
5518 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ebx
5519 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5520 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5521 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%edi), %ebp
5522 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5523 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %ebp
5524 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
5525 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %ebp
5526 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %ebx, %ebp
5527 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5528 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5529 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5530 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5531 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5532 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5533 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5534 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5535 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5536 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5537 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, (%esp) # 4-byte Folded Spill
5538 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%edi), %ebx
5539 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 60(%edi), %edi
5540 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, %edi
5541 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
5542 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 60(%edx)
5543 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
5544 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %ebx, %edi
5545 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
5546 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5547 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5548 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shldl %cl, %eax, %esi
5549 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 52(%edx)
5550 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
5551 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 44(%edx)
5552 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5553 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 36(%edx)
5554 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5555 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%edx)
5556 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5557 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%edx)
5558 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5559 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%edx)
5560 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, (%edx)
5561 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, 4(%edx)
5562 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 56(%edx)
5563 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5564 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 48(%edx)
5565 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5566 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 40(%edx)
5567 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5568 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 32(%edx)
5569 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5570 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 24(%edx)
5571 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5572 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%edx)
5573 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5574 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%edx)
5575 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $204, %esp
5576 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
5577 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
5578 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
5579 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
5580 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
5582 ; X86-HAVE-BMI2-NO-SHLD-LABEL: shl_64bytes:
5583 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
5584 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
5585 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
5586 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
5587 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
5588 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $216, %esp
5589 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
5590 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %eax
5591 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5592 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edx), %eax
5593 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5594 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edx), %eax
5595 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5596 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edx), %eax
5597 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5598 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edx), %eax
5599 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5600 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edx), %eax
5601 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5602 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edx), %eax
5603 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5604 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edx), %eax
5605 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5606 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%edx), %eax
5607 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5608 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%edx), %eax
5609 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5610 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%edx), %ebp
5611 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%edx), %ebx
5612 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%edx), %edi
5613 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 52(%edx), %esi
5614 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 56(%edx), %ecx
5615 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 60(%edx), %eax
5616 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
5617 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %edx
5618 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5619 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5620 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
5621 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
5622 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
5623 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
5624 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5625 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5626 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5627 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5628 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5629 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5630 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5631 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5632 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5633 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5634 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5635 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5636 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5637 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5638 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5639 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5640 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5641 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5642 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5643 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5644 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %eax
5645 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %eax
5646 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %edx
5647 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %edx
5648 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5649 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal {{[0-9]+}}(%esp), %edi
5650 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl %edx, %edi
5651 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5652 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5653 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5654 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5655 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5656 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5657 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5658 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5659 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5660 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5661 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5662 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5663 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5664 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5665 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5666 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5667 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%edi), %ebp
5668 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
5669 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notl %ecx
5670 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $31, %ecx
5671 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%edi), %esi
5672 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
5673 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5674 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5675 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %ebp, %esi
5676 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
5677 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5678 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%edi), %esi
5679 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5680 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5681 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5682 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%edi), %edx
5683 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5684 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %edx, %esi
5685 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
5686 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5687 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%edi), %esi
5688 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5689 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5690 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5691 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%edi), %edx
5692 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5693 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %edx, %esi
5694 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
5695 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5696 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%edi), %esi
5697 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5698 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5699 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5700 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%edi), %edx
5701 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5702 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %edx, %esi
5703 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %ebx
5704 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5705 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%edi), %esi
5706 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5707 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5708 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %edx
5709 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%edi), %esi
5710 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5711 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %esi, %esi
5712 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %edx
5713 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5714 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%edi), %esi
5715 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5716 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %esi
5717 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %esi, %edx
5718 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%edi), %esi
5719 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5720 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %esi, %esi
5721 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %esi, %edx
5722 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5723 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 52(%edi), %esi
5724 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, %ebx
5725 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebx
5726 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %ecx, %ebx, %edx
5727 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 56(%edi), %ecx
5728 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5729 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %ecx, %ecx
5730 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %edx
5731 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5732 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, (%esp), %ebx # 4-byte Folded Reload
5733 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5734 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
5735 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5736 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5737 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5738 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5739 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5740 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5741 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5742 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5743 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %esi, %ecx
5744 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5745 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
5746 ; X86-HAVE-BMI2-NO-SHLD-NEXT: negl %ecx
5747 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, 212(%esp,%ecx), %ecx
5748 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5749 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edi), %ecx
5750 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %edx
5751 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %eax, %ecx, %eax
5752 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5753 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %dl
5754 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ecx
5755 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %ecx, %eax
5756 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ebx, %eax
5757 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5758 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebp
5759 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %ebp, %eax
5760 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl (%esp), %eax # 4-byte Folded Reload
5761 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
5762 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5763 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
5764 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %eax, %eax
5765 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Folded Reload
5766 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5767 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5768 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
5769 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %eax, %edi
5770 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
5771 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5772 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
5773 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %eax, %esi
5774 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Folded Reload
5775 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5776 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
5777 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %eax, %ecx
5778 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
5779 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5780 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %eax
5781 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %eax, %eax
5782 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Folded Reload
5783 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
5784 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl %ebp
5785 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %edx, %ebp, %edx
5786 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
5787 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edx, %ebp
5788 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
5789 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
5790 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, (%edx)
5791 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, 60(%edx)
5792 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 52(%edx)
5793 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 44(%edx)
5794 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 36(%edx)
5795 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 28(%edx)
5796 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5797 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 20(%edx)
5798 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
5799 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 12(%edx)
5800 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5801 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 4(%edx)
5802 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5803 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 56(%edx)
5804 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5805 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 48(%edx)
5806 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5807 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 40(%edx)
5808 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5809 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 32(%edx)
5810 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5811 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 24(%edx)
5812 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5813 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 16(%edx)
5814 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5815 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, 8(%edx)
5816 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $216, %esp
5817 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
5818 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
5819 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
5820 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
5821 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
5823 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: shl_64bytes:
5824 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
5825 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
5826 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
5827 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
5828 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
5829 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $204, %esp
5830 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
5831 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edi), %eax
5832 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5833 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edi), %eax
5834 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5835 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%edi), %eax
5836 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5837 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%edi), %eax
5838 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5839 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%edi), %eax
5840 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5841 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%edi), %eax
5842 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5843 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%edi), %eax
5844 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5845 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%edi), %eax
5846 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5847 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%edi), %eax
5848 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5849 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%edi), %eax
5850 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, (%esp) # 4-byte Spill
5851 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%edi), %ebp
5852 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%edi), %ebx
5853 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 48(%edi), %esi
5854 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%edi), %edx
5855 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 56(%edi), %ecx
5856 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 60(%edi), %eax
5857 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edi
5858 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edi), %edi
5859 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5860 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
5861 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
5862 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
5863 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
5864 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
5865 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
5866 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5867 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5868 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5869 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5870 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5871 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5872 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5873 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5874 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5875 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5876 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5877 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5878 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5879 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5880 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5881 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5882 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5883 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5884 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
5885 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, %eax
5886 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
5887 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %edi
5888 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %edi
5889 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5890 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal {{[0-9]+}}(%esp), %edx
5891 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl %edi, %edx
5892 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5893 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5894 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5895 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5896 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5897 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5898 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5899 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5900 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5901 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5902 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5903 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5904 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5905 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5906 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5907 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl $0, {{[0-9]+}}(%esp)
5908 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%edx), %ebp
5909 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, (%esp) # 4-byte Spill
5910 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5911 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notl %ecx
5912 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $31, %ecx
5913 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%edx), %esi
5914 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5915 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5916 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5917 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %ebp, %esi
5918 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5919 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5920 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%edx), %esi
5921 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5922 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5923 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5924 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%edx), %esi
5925 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5926 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5927 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5928 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5929 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%edx), %esi
5930 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5931 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5932 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5933 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%edx), %esi
5934 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5935 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5936 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5937 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5938 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%edx), %esi
5939 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5940 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5941 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5942 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%edx), %esi
5943 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5944 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5945 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5946 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5947 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%edx), %esi
5948 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5949 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5950 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5951 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%edx), %esi
5952 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5953 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5954 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5955 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5956 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%edx), %ebp
5957 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, %esi
5958 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5959 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ebx
5960 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 56(%edx), %esi
5961 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5962 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5963 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %ebx
5964 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5965 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%edx), %ebx
5966 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, %esi
5967 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl %esi
5968 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %ecx
5969 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5970 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: negl %esi
5971 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 188(%esp,%esi), %esi
5972 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5973 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %esi
5974 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ecx, %esi
5975 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
5976 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5977 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %esi # 4-byte Reload
5978 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5979 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5980 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5981 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5982 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5983 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5984 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
5985 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5986 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %esi, %ebx
5987 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edx), %edi
5988 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 60(%edx), %esi
5989 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
5990 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edx, %esi
5991 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
5992 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 60(%edx)
5993 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %edi, %ecx
5994 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
5995 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
5996 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
5997 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %edi, %esi
5998 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
5999 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shldl %cl, %eax, %ebp
6000 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, 52(%edx)
6001 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, 44(%edx)
6002 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6003 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 36(%edx)
6004 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6005 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%edx)
6006 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6007 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%edx)
6008 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6009 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%edx)
6010 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
6011 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, (%edx)
6012 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 4(%edx)
6013 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6014 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 56(%edx)
6015 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6016 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 48(%edx)
6017 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6018 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 40(%edx)
6019 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6020 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 32(%edx)
6021 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6022 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 24(%edx)
6023 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6024 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%edx)
6025 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6026 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%edx)
6027 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $204, %esp
6028 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
6029 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
6030 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
6031 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
6032 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
6033 %src = load i512, ptr %src.ptr, align 1
6034 %bitOff = load i512, ptr %bitOff.ptr, align 1
6035 %res = shl i512 %src, %bitOff
6036 store i512 %res, ptr %dst, align 1
6039 define void @ashr_64bytes(ptr %src.ptr, ptr %bitOff.ptr, ptr %dst) nounwind {
6040 ; X64-NO-BMI2-NO-SHLD-LABEL: ashr_64bytes:
6041 ; X64-NO-BMI2-NO-SHLD: # %bb.0:
6042 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbp
6043 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r15
6044 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r14
6045 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r13
6046 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %r12
6047 ; X64-NO-BMI2-NO-SHLD-NEXT: pushq %rbx
6048 ; X64-NO-BMI2-NO-SHLD-NEXT: movq (%rdi), %rax
6049 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %rcx
6050 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r9
6051 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r10
6052 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r11
6053 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %rbx
6054 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %r14
6055 ; X64-NO-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
6056 ; X64-NO-BMI2-NO-SHLD-NEXT: movl (%rsi), %r8d
6057 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6058 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6059 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
6060 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
6061 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
6062 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
6063 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
6064 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
6065 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq $63, %rdi
6066 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6067 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6068 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6069 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6070 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6071 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6072 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6073 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6074 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %r8d, %eax
6075 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $7, %eax
6076 ; X64-NO-BMI2-NO-SHLD-NEXT: shrl $3, %r8d
6077 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %r8d
6078 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -128(%rsp,%r8), %r11
6079 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -120(%rsp,%r8), %r9
6080 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, %rsi
6081 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6082 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rsi
6083 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edi
6084 ; X64-NO-BMI2-NO-SHLD-NEXT: notl %edi
6085 ; X64-NO-BMI2-NO-SHLD-NEXT: andl $63, %edi
6086 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -112(%rsp,%r8), %r14
6087 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r14,%r14), %r10
6088 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
6089 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r10
6090 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rsi, %r10
6091 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6092 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r11
6093 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %esi
6094 ; X64-NO-BMI2-NO-SHLD-NEXT: notb %sil
6095 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r9, %r9
6096 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
6097 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r9
6098 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r11, %r9
6099 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -104(%rsp,%r8), %r11
6100 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, %r12
6101 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6102 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r12
6103 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -96(%rsp,%r8), %r15
6104 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%r15,%r15), %rbx
6105 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
6106 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %rbx
6107 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r12, %rbx
6108 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6109 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r14
6110 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r11, %r11
6111 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
6112 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r11
6113 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r14, %r11
6114 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -88(%rsp,%r8), %r14
6115 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, %r13
6116 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6117 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r13
6118 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -80(%rsp,%r8), %rbp
6119 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rbp,%rbp), %r12
6120 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ecx
6121 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r12
6122 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r13, %r12
6123 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6124 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %r15
6125 ; X64-NO-BMI2-NO-SHLD-NEXT: addq %r14, %r14
6126 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
6127 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r14
6128 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %r15, %r14
6129 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6130 ; X64-NO-BMI2-NO-SHLD-NEXT: shrq %cl, %rbp
6131 ; X64-NO-BMI2-NO-SHLD-NEXT: movq -72(%rsp,%r8), %rdi
6132 ; X64-NO-BMI2-NO-SHLD-NEXT: leaq (%rdi,%rdi), %r8
6133 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
6134 ; X64-NO-BMI2-NO-SHLD-NEXT: shlq %cl, %r8
6135 ; X64-NO-BMI2-NO-SHLD-NEXT: orq %rbp, %r8
6136 ; X64-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6137 ; X64-NO-BMI2-NO-SHLD-NEXT: sarq %cl, %rdi
6138 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rdi, 56(%rdx)
6139 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r8, 48(%rdx)
6140 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r14, 32(%rdx)
6141 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r12, 40(%rdx)
6142 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r11, 16(%rdx)
6143 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
6144 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r9, (%rdx)
6145 ; X64-NO-BMI2-NO-SHLD-NEXT: movq %r10, 8(%rdx)
6146 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbx
6147 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r12
6148 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r13
6149 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r14
6150 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %r15
6151 ; X64-NO-BMI2-NO-SHLD-NEXT: popq %rbp
6152 ; X64-NO-BMI2-NO-SHLD-NEXT: retq
6154 ; X64-NO-BMI2-HAVE-SHLD-LABEL: ashr_64bytes:
6155 ; X64-NO-BMI2-HAVE-SHLD: # %bb.0:
6156 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbp
6157 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r15
6158 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r14
6159 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r13
6160 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %r12
6161 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rbx
6162 ; X64-NO-BMI2-HAVE-SHLD-NEXT: pushq %rax
6163 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rax
6164 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %rcx
6165 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r8
6166 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r9
6167 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r10
6168 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %r11
6169 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %rbx
6170 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %r14
6171 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %edi
6172 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6173 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
6174 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
6175 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
6176 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
6177 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
6178 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
6179 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
6180 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq $63, %r14
6181 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, (%rsp)
6182 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6183 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6184 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6185 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6186 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6187 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6188 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6189 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, %eax
6190 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
6191 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %edi
6192 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %edi
6193 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -120(%rsp,%rdi), %r8
6194 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -112(%rsp,%rdi), %rbx
6195 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
6196 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6197 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %rbx
6198 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %esi
6199 ; X64-NO-BMI2-HAVE-SHLD-NEXT: notl %esi
6200 ; X64-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
6201 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -104(%rsp,%rdi), %r11
6202 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r11,%r11), %r10
6203 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
6204 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r10
6205 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %rbx, %r10
6206 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -96(%rsp,%rdi), %r15
6207 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r15, %r12
6208 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6209 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r12
6210 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -88(%rsp,%rdi), %r14
6211 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%r14,%r14), %rbx
6212 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
6213 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %rbx
6214 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r12, %rbx
6215 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -80(%rsp,%rdi), %r12
6216 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r12, %r13
6217 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6218 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrq %cl, %r13
6219 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -72(%rsp,%rdi), %rbp
6220 ; X64-NO-BMI2-HAVE-SHLD-NEXT: leaq (%rbp,%rbp), %r9
6221 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %ecx
6222 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shlq %cl, %r9
6223 ; X64-NO-BMI2-HAVE-SHLD-NEXT: orq %r13, %r9
6224 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6225 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r15, %r11
6226 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r12, %r14
6227 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq -64(%rsp,%rdi), %rsi
6228 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rbp
6229 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rdi # 8-byte Reload
6230 ; X64-NO-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rdi, %r8
6231 ; X64-NO-BMI2-HAVE-SHLD-NEXT: sarq %cl, %rsi
6232 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbp, 48(%rdx)
6233 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rsi, 56(%rdx)
6234 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r14, 32(%rdx)
6235 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r11, 16(%rdx)
6236 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r8, (%rdx)
6237 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r9, 40(%rdx)
6238 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %rbx, 24(%rdx)
6239 ; X64-NO-BMI2-HAVE-SHLD-NEXT: movq %r10, 8(%rdx)
6240 ; X64-NO-BMI2-HAVE-SHLD-NEXT: addq $8, %rsp
6241 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbx
6242 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r12
6243 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r13
6244 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r14
6245 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %r15
6246 ; X64-NO-BMI2-HAVE-SHLD-NEXT: popq %rbp
6247 ; X64-NO-BMI2-HAVE-SHLD-NEXT: retq
6249 ; X64-HAVE-BMI2-NO-SHLD-LABEL: ashr_64bytes:
6250 ; X64-HAVE-BMI2-NO-SHLD: # %bb.0:
6251 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbp
6252 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r15
6253 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r14
6254 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r13
6255 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %r12
6256 ; X64-HAVE-BMI2-NO-SHLD-NEXT: pushq %rbx
6257 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq (%rdi), %rcx
6258 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 8(%rdi), %r8
6259 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 16(%rdi), %r9
6260 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 24(%rdi), %r10
6261 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 32(%rdi), %r11
6262 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 40(%rdi), %rbx
6263 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 48(%rdi), %r14
6264 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq 56(%rdi), %rdi
6265 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl (%rsi), %eax
6266 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6267 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6268 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
6269 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
6270 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
6271 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
6272 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
6273 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
6274 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarq $63, %rdi
6275 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6276 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6277 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6278 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6279 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6280 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6281 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6282 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6283 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6284 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %ecx
6285 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %eax
6286 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %eax
6287 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -120(%rsp,%rax), %rdi
6288 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -112(%rsp,%rax), %r9
6289 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rdi, %rbx
6290 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, -128(%rsp,%rax), %r14
6291 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %esi
6292 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -104(%rsp,%rax), %r8
6293 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r8, %r13
6294 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r9, %r10
6295 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -88(%rsp,%rax), %r11
6296 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r11, %r15
6297 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, %r12d
6298 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notl %r12d
6299 ; X64-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %r12d
6300 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r9, %r9
6301 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %r9, %r9
6302 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rbx, %r9
6303 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -96(%rsp,%rax), %rbx
6304 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %rbx, %rbp
6305 ; X64-HAVE-BMI2-NO-SHLD-NEXT: notb %sil
6306 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rdi, %rdi
6307 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %rdi, %rdi
6308 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r14, %rdi
6309 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rbx, %rbx
6310 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %rbx, %rbx
6311 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r13, %rbx
6312 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -80(%rsp,%rax), %r14
6313 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shrxq %rcx, %r14, %r13
6314 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq -72(%rsp,%rax), %rax
6315 ; X64-HAVE-BMI2-NO-SHLD-NEXT: sarxq %rcx, %rax, %rcx
6316 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r8, %r8
6317 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %r8, %r8
6318 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r10, %r8
6319 ; X64-HAVE-BMI2-NO-SHLD-NEXT: leaq (%r14,%r14), %r10
6320 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %r12, %r10, %r10
6321 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r15, %r10
6322 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %r11, %r11
6323 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %r11, %r11
6324 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %rbp, %r11
6325 ; X64-HAVE-BMI2-NO-SHLD-NEXT: addq %rax, %rax
6326 ; X64-HAVE-BMI2-NO-SHLD-NEXT: shlxq %rsi, %rax, %rax
6327 ; X64-HAVE-BMI2-NO-SHLD-NEXT: orq %r13, %rax
6328 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rcx, 56(%rdx)
6329 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rax, 48(%rdx)
6330 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r11, 32(%rdx)
6331 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r10, 40(%rdx)
6332 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r8, 16(%rdx)
6333 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rbx, 24(%rdx)
6334 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %rdi, (%rdx)
6335 ; X64-HAVE-BMI2-NO-SHLD-NEXT: movq %r9, 8(%rdx)
6336 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbx
6337 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r12
6338 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r13
6339 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r14
6340 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %r15
6341 ; X64-HAVE-BMI2-NO-SHLD-NEXT: popq %rbp
6342 ; X64-HAVE-BMI2-NO-SHLD-NEXT: retq
6344 ; X64-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_64bytes:
6345 ; X64-HAVE-BMI2-HAVE-SHLD: # %bb.0:
6346 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbp
6347 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r15
6348 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r14
6349 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r13
6350 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %r12
6351 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: pushq %rbx
6352 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq (%rdi), %rcx
6353 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 8(%rdi), %r8
6354 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 16(%rdi), %r9
6355 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 24(%rdi), %r10
6356 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 32(%rdi), %r11
6357 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 40(%rdi), %rbx
6358 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 48(%rdi), %r14
6359 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq 56(%rdi), %rdi
6360 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%rsi), %eax
6361 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6362 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r14, -{{[0-9]+}}(%rsp)
6363 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, -{{[0-9]+}}(%rsp)
6364 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r11, -{{[0-9]+}}(%rsp)
6365 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, -{{[0-9]+}}(%rsp)
6366 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, -{{[0-9]+}}(%rsp)
6367 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r8, -{{[0-9]+}}(%rsp)
6368 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rcx, -{{[0-9]+}}(%rsp)
6369 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarq $63, %rdi
6370 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6371 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6372 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6373 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6374 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6375 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6376 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6377 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, -{{[0-9]+}}(%rsp)
6378 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6379 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %ecx
6380 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %eax
6381 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %eax
6382 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -120(%rsp,%rax), %rsi
6383 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %rsi, %r10
6384 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -104(%rsp,%rax), %r8
6385 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r8, %r15
6386 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -88(%rsp,%rax), %r11
6387 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrxq %rcx, %r11, %r14
6388 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %r12d
6389 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: notl %r12d
6390 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %r12d
6391 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -112(%rsp,%rax), %r9
6392 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r9,%r9), %rdi
6393 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %rdi, %rdi
6394 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r10, %rdi
6395 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -96(%rsp,%rax), %rbx
6396 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%rbx,%rbx), %r10
6397 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %r10, %r10
6398 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r15, %r10
6399 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -80(%rsp,%rax), %r13
6400 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: leaq (%r13,%r13), %r15
6401 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shlxq %r12, %r15, %r15
6402 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -72(%rsp,%rax), %r12
6403 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: sarxq %rcx, %r12, %rbp
6404 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq -128(%rsp,%rax), %rax
6405 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: orq %r14, %r15
6406 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r8, %r9
6407 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r11, %rbx
6408 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %r12, %r13
6409 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $rcx
6410 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: shrdq %cl, %rsi, %rax
6411 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r13, 48(%rdx)
6412 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbp, 56(%rdx)
6413 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rbx, 32(%rdx)
6414 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r9, 16(%rdx)
6415 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rax, (%rdx)
6416 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r15, 40(%rdx)
6417 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %r10, 24(%rdx)
6418 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: movq %rdi, 8(%rdx)
6419 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbx
6420 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r12
6421 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r13
6422 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r14
6423 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %r15
6424 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: popq %rbp
6425 ; X64-HAVE-BMI2-HAVE-SHLD-NEXT: retq
6427 ; X86-NO-BMI2-NO-SHLD-LABEL: ashr_64bytes:
6428 ; X86-NO-BMI2-NO-SHLD: # %bb.0:
6429 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebp
6430 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %ebx
6431 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %edi
6432 ; X86-NO-BMI2-NO-SHLD-NEXT: pushl %esi
6433 ; X86-NO-BMI2-NO-SHLD-NEXT: subl $208, %esp
6434 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
6435 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%eax), %ecx
6436 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6437 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 4(%eax), %ecx
6438 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6439 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 8(%eax), %ecx
6440 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6441 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 12(%eax), %ecx
6442 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6443 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 16(%eax), %ecx
6444 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6445 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 20(%eax), %ecx
6446 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
6447 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 24(%eax), %ecx
6448 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6449 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 28(%eax), %ecx
6450 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6451 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 32(%eax), %ecx
6452 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6453 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 36(%eax), %ecx
6454 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6455 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 40(%eax), %ebp
6456 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 44(%eax), %ebx
6457 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 48(%eax), %edi
6458 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 52(%eax), %edx
6459 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 56(%eax), %ecx
6460 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 60(%eax), %eax
6461 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
6462 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esi), %esi
6463 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6464 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
6465 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
6466 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
6467 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
6468 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6469 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6470 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6471 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6472 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6473 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6474 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6475 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6476 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
6477 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6478 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6479 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6480 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6481 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6482 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6483 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6484 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6485 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6486 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6487 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6488 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6489 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl $31, %eax
6490 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6491 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6492 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6493 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6494 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6495 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6496 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6497 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6498 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6499 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6500 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6501 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6502 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6503 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6504 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6505 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6506 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, %ecx
6507 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $7, %ecx
6508 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl $3, %esi
6509 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $63, %esi
6510 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 84(%esp,%esi), %edi
6511 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6512 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
6513 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 88(%esp,%esi), %eax
6514 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6515 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%eax,%eax), %ebx
6516 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %edx
6517 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, %eax
6518 ; X86-NO-BMI2-NO-SHLD-NEXT: notl %edx
6519 ; X86-NO-BMI2-NO-SHLD-NEXT: andl $31, %edx
6520 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6521 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
6522 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
6523 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6524 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 92(%esp,%esi), %edi
6525 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6526 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6527 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
6528 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 96(%esp,%esi), %ecx
6529 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6530 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6531 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6532 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
6533 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
6534 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6535 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 100(%esp,%esi), %edi
6536 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6537 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6538 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
6539 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 104(%esp,%esi), %ecx
6540 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6541 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6542 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6543 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
6544 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
6545 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6546 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 108(%esp,%esi), %edi
6547 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6548 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6549 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %edi
6550 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 112(%esp,%esi), %ecx
6551 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6552 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6553 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6554 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
6555 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
6556 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6557 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 116(%esp,%esi), %ebx
6558 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6559 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6560 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6561 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 120(%esp,%esi), %ecx
6562 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6563 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
6564 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6565 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
6566 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
6567 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6568 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 124(%esp,%esi), %ebx
6569 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, (%esp) # 4-byte Spill
6570 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6571 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6572 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 128(%esp,%esi), %ecx
6573 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6574 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %edi
6575 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6576 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
6577 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
6578 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6579 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 132(%esp,%esi), %edi
6580 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, %ebx
6581 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6582 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6583 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 136(%esp,%esi), %ecx
6584 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6585 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%ecx,%ecx), %ebp
6586 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6587 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6588 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6589 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6590 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 80(%esp,%esi), %ebx
6591 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6592 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6593 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %edx
6594 ; X86-NO-BMI2-NO-SHLD-NEXT: notb %dl
6595 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
6596 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6597 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6598 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6599 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6600 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6601 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6602 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6603 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6604 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
6605 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6606 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6607 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6608 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6609 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6610 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6611 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6612 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6613 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
6614 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6615 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6616 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6617 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6618 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6619 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6620 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6621 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6622 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
6623 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6624 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6625 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6626 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6627 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6628 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6629 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6630 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6631 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
6632 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6633 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6634 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6635 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6636 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6637 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6638 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6639 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6640 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ebp # 4-byte Reload
6641 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
6642 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6643 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebp
6644 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %ebp
6645 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, (%esp) # 4-byte Spill
6646 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6647 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6648 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %ebx
6649 ; X86-NO-BMI2-NO-SHLD-NEXT: addl %edi, %edi
6650 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6651 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %edi
6652 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %ebx, %edi
6653 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
6654 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %eax, %ebp
6655 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6656 ; X86-NO-BMI2-NO-SHLD-NEXT: shrl %cl, %eax
6657 ; X86-NO-BMI2-NO-SHLD-NEXT: movl 140(%esp,%esi), %esi
6658 ; X86-NO-BMI2-NO-SHLD-NEXT: leal (%esi,%esi), %ebx
6659 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edx, %ecx
6660 ; X86-NO-BMI2-NO-SHLD-NEXT: shll %cl, %ebx
6661 ; X86-NO-BMI2-NO-SHLD-NEXT: orl %eax, %ebx
6662 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebp, %ecx
6663 ; X86-NO-BMI2-NO-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
6664 ; X86-NO-BMI2-NO-SHLD-NEXT: sarl %cl, %esi
6665 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
6666 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %esi, 60(%eax)
6667 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ebx, 56(%eax)
6668 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %edi, 48(%eax)
6669 ; X86-NO-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
6670 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 40(%eax)
6671 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6672 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 32(%eax)
6673 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6674 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 24(%eax)
6675 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6676 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 16(%eax)
6677 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6678 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
6679 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6680 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
6681 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6682 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 52(%eax)
6683 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6684 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 44(%eax)
6685 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6686 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 36(%eax)
6687 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6688 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 28(%eax)
6689 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6690 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
6691 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6692 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
6693 ; X86-NO-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6694 ; X86-NO-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
6695 ; X86-NO-BMI2-NO-SHLD-NEXT: addl $208, %esp
6696 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %esi
6697 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %edi
6698 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebx
6699 ; X86-NO-BMI2-NO-SHLD-NEXT: popl %ebp
6700 ; X86-NO-BMI2-NO-SHLD-NEXT: retl
6702 ; X86-NO-BMI2-HAVE-SHLD-LABEL: ashr_64bytes:
6703 ; X86-NO-BMI2-HAVE-SHLD: # %bb.0:
6704 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebp
6705 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %ebx
6706 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %edi
6707 ; X86-NO-BMI2-HAVE-SHLD-NEXT: pushl %esi
6708 ; X86-NO-BMI2-HAVE-SHLD-NEXT: subl $204, %esp
6709 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
6710 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%eax), %ecx
6711 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6712 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 4(%eax), %ecx
6713 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6714 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 8(%eax), %ecx
6715 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6716 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 12(%eax), %ecx
6717 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6718 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 16(%eax), %ecx
6719 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6720 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 20(%eax), %ecx
6721 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
6722 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 24(%eax), %ecx
6723 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6724 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 28(%eax), %ecx
6725 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6726 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 32(%eax), %ecx
6727 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6728 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 36(%eax), %ecx
6729 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6730 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 40(%eax), %ebp
6731 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 44(%eax), %ebx
6732 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 48(%eax), %edi
6733 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 52(%eax), %edx
6734 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 56(%eax), %ecx
6735 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 60(%eax), %eax
6736 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %esi
6737 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esi), %esi
6738 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6739 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, {{[0-9]+}}(%esp)
6740 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
6741 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
6742 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
6743 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6744 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6745 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6746 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6747 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6748 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6749 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6750 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6751 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
6752 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6753 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6754 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6755 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6756 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6757 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6758 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6759 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6760 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6761 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6762 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6763 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6764 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl $31, %eax
6765 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6766 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6767 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6768 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6769 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6770 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6771 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6772 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6773 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6774 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6775 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6776 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6777 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6778 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6779 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6780 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6781 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, %eax
6782 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $7, %eax
6783 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl $3, %esi
6784 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $63, %esi
6785 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%esi), %edi
6786 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6787 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6788 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6789 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%esi), %ecx
6790 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6791 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6792 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %edx
6793 ; X86-NO-BMI2-HAVE-SHLD-NEXT: notl %edx
6794 ; X86-NO-BMI2-HAVE-SHLD-NEXT: andl $31, %edx
6795 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6796 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6797 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6798 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6799 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 88(%esp,%esi), %edi
6800 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6801 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6802 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6803 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 92(%esp,%esi), %ecx
6804 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6805 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6806 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6807 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6808 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6809 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6810 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 96(%esp,%esi), %edi
6811 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6812 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6813 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6814 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 100(%esp,%esi), %ecx
6815 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6816 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6817 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6818 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6819 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6820 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6821 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 104(%esp,%esi), %edi
6822 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6823 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6824 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6825 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 108(%esp,%esi), %ecx
6826 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6827 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6828 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6829 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6830 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6831 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6832 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 112(%esp,%esi), %edi
6833 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6834 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6835 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6836 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 116(%esp,%esi), %ecx
6837 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6838 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6839 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6840 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6841 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6842 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6843 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 120(%esp,%esi), %edi
6844 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6845 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6846 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6847 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 124(%esp,%esi), %ecx
6848 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
6849 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ecx,%ecx), %ebx
6850 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6851 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebx
6852 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebx
6853 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6854 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 128(%esp,%esi), %edi
6855 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6856 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6857 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrl %cl, %edi
6858 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 132(%esp,%esi), %ebx
6859 ; X86-NO-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %ebp
6860 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
6861 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shll %cl, %ebp
6862 ; X86-NO-BMI2-HAVE-SHLD-NEXT: orl %edi, %ebp
6863 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, %ecx
6864 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6865 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
6866 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6867 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
6868 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6869 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
6870 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6871 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
6872 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6873 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
6874 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edx # 4-byte Reload
6875 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edx, (%esp) # 4-byte Folded Spill
6876 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%esi), %edi
6877 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl 136(%esp,%esi), %esi
6878 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, %ebx
6879 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
6880 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebx, 56(%edx)
6881 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
6882 ; X86-NO-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebx, %edi
6883 ; X86-NO-BMI2-HAVE-SHLD-NEXT: sarl %cl, %esi
6884 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %esi, 60(%edx)
6885 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl (%esp), %eax # 4-byte Reload
6886 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 48(%edx)
6887 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6888 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 40(%edx)
6889 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6890 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 32(%edx)
6891 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6892 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 24(%edx)
6893 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6894 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 16(%edx)
6895 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6896 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 8(%edx)
6897 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %edi, (%edx)
6898 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %ebp, 52(%edx)
6899 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6900 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 44(%edx)
6901 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6902 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 36(%edx)
6903 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6904 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%edx)
6905 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6906 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%edx)
6907 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6908 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%edx)
6909 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
6910 ; X86-NO-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%edx)
6911 ; X86-NO-BMI2-HAVE-SHLD-NEXT: addl $204, %esp
6912 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %esi
6913 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %edi
6914 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebx
6915 ; X86-NO-BMI2-HAVE-SHLD-NEXT: popl %ebp
6916 ; X86-NO-BMI2-HAVE-SHLD-NEXT: retl
6918 ; X86-HAVE-BMI2-NO-SHLD-LABEL: ashr_64bytes:
6919 ; X86-HAVE-BMI2-NO-SHLD: # %bb.0:
6920 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebp
6921 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %ebx
6922 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %edi
6923 ; X86-HAVE-BMI2-NO-SHLD-NEXT: pushl %esi
6924 ; X86-HAVE-BMI2-NO-SHLD-NEXT: subl $204, %esp
6925 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
6926 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%eax), %ecx
6927 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6928 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 4(%eax), %ecx
6929 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6930 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 8(%eax), %ecx
6931 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6932 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 12(%eax), %ecx
6933 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6934 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 16(%eax), %ecx
6935 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6936 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 20(%eax), %ecx
6937 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6938 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 24(%eax), %ecx
6939 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6940 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 28(%eax), %ecx
6941 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6942 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 32(%eax), %ecx
6943 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
6944 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 36(%eax), %ecx
6945 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
6946 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 40(%eax), %ebp
6947 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 44(%eax), %ebx
6948 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 48(%eax), %edi
6949 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 52(%eax), %esi
6950 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 56(%eax), %ecx
6951 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 60(%eax), %eax
6952 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
6953 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%edx), %edx
6954 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6955 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
6956 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
6957 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
6958 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
6959 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
6960 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6961 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6962 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6963 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6964 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6965 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6966 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6967 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6968 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6969 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6970 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6971 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6972 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6973 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6974 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6975 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6976 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6977 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6978 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
6979 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
6980 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarl $31, %eax
6981 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6982 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6983 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6984 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6985 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6986 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6987 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6988 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6989 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6990 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6991 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6992 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6993 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6994 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6995 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6996 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
6997 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edx, %eax
6998 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $7, %eax
6999 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrl $3, %edx
7000 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $63, %edx
7001 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 80(%esp,%edx), %ecx
7002 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7003 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 84(%esp,%edx), %esi
7004 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7005 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
7006 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %edi
7007 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notl %edi
7008 ; X86-HAVE-BMI2-NO-SHLD-NEXT: andl $31, %edi
7009 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
7010 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %esi, %esi
7011 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7012 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7013 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 92(%esp,%edx), %ecx
7014 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
7015 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7016 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
7017 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 88(%esp,%edx), %ecx
7018 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7019 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
7020 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7021 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7022 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 100(%esp,%edx), %ecx
7023 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7024 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7025 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
7026 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 96(%esp,%edx), %ecx
7027 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7028 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
7029 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7030 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7031 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 108(%esp,%edx), %ecx
7032 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7033 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7034 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
7035 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 104(%esp,%edx), %ecx
7036 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7037 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
7038 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7039 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7040 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 116(%esp,%edx), %ecx
7041 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7042 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7043 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
7044 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 112(%esp,%edx), %ecx
7045 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7046 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ecx, %ecx
7047 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7048 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7049 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 124(%esp,%edx), %ecx
7050 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7051 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7052 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %esi
7053 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 120(%esp,%edx), %ebx
7054 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %ebx, %ecx
7055 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %esi
7056 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7057 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 132(%esp,%edx), %ecx
7058 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7059 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ecx, %ecx
7060 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %edi, %ecx, %edi
7061 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 128(%esp,%edx), %esi
7062 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, %esi, %ecx
7063 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %ecx, %edi
7064 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7065 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %eax, %ecx
7066 ; X86-HAVE-BMI2-NO-SHLD-NEXT: notb %cl
7067 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
7068 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %edi, %edi
7069 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %edi, %ebp
7070 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, 76(%esp,%edx), %edi
7071 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
7072 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7073 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7074 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7075 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
7076 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
7077 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
7078 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7079 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, (%esp), %edi # 4-byte Folded Reload
7080 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7081 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
7082 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
7083 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
7084 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, (%esp) # 4-byte Spill
7085 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7086 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7087 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
7088 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
7089 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
7090 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7091 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7092 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7093 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebp, %ebp
7094 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebp, %ebp
7095 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebp
7096 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7097 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %ebx, %ebx
7098 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %ebx, %ebx
7099 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %ebx
7100 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7101 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl %esi, %esi
7102 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %esi, %esi
7103 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl %edi, %esi
7104 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shrxl %eax, {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
7105 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7106 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl 136(%esp,%edx), %edx
7107 ; X86-HAVE-BMI2-NO-SHLD-NEXT: sarxl %eax, %edx, %edi
7108 ; X86-HAVE-BMI2-NO-SHLD-NEXT: leal (%edx,%edx), %eax
7109 ; X86-HAVE-BMI2-NO-SHLD-NEXT: shlxl %ecx, %eax, %ecx
7110 ; X86-HAVE-BMI2-NO-SHLD-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
7111 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
7112 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %edi, 60(%eax)
7113 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 56(%eax)
7114 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %esi, 48(%eax)
7115 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebx, 40(%eax)
7116 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ebp, 32(%eax)
7117 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7118 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 24(%eax)
7119 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
7120 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 16(%eax)
7121 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7122 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 8(%eax)
7123 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7124 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, (%eax)
7125 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7126 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 52(%eax)
7127 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7128 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 44(%eax)
7129 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7130 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 36(%eax)
7131 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7132 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 28(%eax)
7133 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7134 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 20(%eax)
7135 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7136 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 12(%eax)
7137 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7138 ; X86-HAVE-BMI2-NO-SHLD-NEXT: movl %ecx, 4(%eax)
7139 ; X86-HAVE-BMI2-NO-SHLD-NEXT: addl $204, %esp
7140 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %esi
7141 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %edi
7142 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebx
7143 ; X86-HAVE-BMI2-NO-SHLD-NEXT: popl %ebp
7144 ; X86-HAVE-BMI2-NO-SHLD-NEXT: retl
7146 ; X86-HAVE-BMI2-HAVE-SHLD-LABEL: ashr_64bytes:
7147 ; X86-HAVE-BMI2-HAVE-SHLD: # %bb.0:
7148 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebp
7149 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %ebx
7150 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %edi
7151 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: pushl %esi
7152 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: subl $200, %esp
7153 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %eax
7154 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%eax), %ecx
7155 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7156 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 4(%eax), %ecx
7157 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7158 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 8(%eax), %ecx
7159 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7160 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 12(%eax), %ecx
7161 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, (%esp) # 4-byte Spill
7162 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 16(%eax), %ecx
7163 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7164 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 20(%eax), %ecx
7165 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7166 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 24(%eax), %ecx
7167 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7168 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 28(%eax), %ecx
7169 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7170 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 32(%eax), %ecx
7171 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7172 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 36(%eax), %ecx
7173 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7174 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 40(%eax), %ebp
7175 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 44(%eax), %ebx
7176 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 48(%eax), %edi
7177 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 52(%eax), %esi
7178 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 56(%eax), %ecx
7179 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 60(%eax), %eax
7180 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
7181 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%edx), %edx
7182 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7183 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[0-9]+}}(%esp)
7184 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[0-9]+}}(%esp)
7185 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, {{[0-9]+}}(%esp)
7186 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebp, {{[0-9]+}}(%esp)
7187 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7188 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7189 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7190 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7191 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7192 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7193 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7194 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7195 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7196 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7197 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7198 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7199 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7200 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %ecx # 4-byte Reload
7201 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7202 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7203 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7204 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7205 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7206 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
7207 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, {{[0-9]+}}(%esp)
7208 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarl $31, %eax
7209 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7210 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7211 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7212 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7213 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7214 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7215 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7216 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7217 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7218 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7219 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7220 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7221 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7222 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7223 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7224 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[0-9]+}}(%esp)
7225 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edx, %ecx
7226 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $7, %ecx
7227 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrl $3, %edx
7228 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $63, %edx
7229 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 76(%esp,%edx), %eax
7230 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7231 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %esi
7232 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ecx, %eax
7233 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: notl %eax
7234 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: andl $31, %eax
7235 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 80(%esp,%edx), %edi
7236 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7237 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %edi, %edi
7238 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %edi, %edi
7239 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7240 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7241 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 88(%esp,%edx), %esi
7242 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7243 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
7244 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %edi
7245 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 84(%esp,%edx), %esi
7246 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7247 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
7248 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7249 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7250 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 96(%esp,%edx), %esi
7251 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7252 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
7253 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %edi
7254 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 92(%esp,%edx), %esi
7255 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7256 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
7257 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7258 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7259 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 104(%esp,%edx), %esi
7260 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7261 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
7262 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %edi
7263 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 100(%esp,%edx), %esi
7264 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7265 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
7266 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7267 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7268 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 112(%esp,%edx), %esi
7269 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, (%esp) # 4-byte Spill
7270 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl %esi, %esi
7271 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %edi
7272 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 108(%esp,%edx), %esi
7273 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7274 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
7275 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7276 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7277 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 120(%esp,%edx), %ebx
7278 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%ebx,%ebx), %esi
7279 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %esi, %edi
7280 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 116(%esp,%edx), %esi
7281 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7282 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %esi, %esi
7283 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %esi, %edi
7284 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7285 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 128(%esp,%edx), %edi
7286 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: leal (%edi,%edi), %ebp
7287 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shlxl %eax, %ebp, %esi
7288 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 124(%esp,%edx), %eax
7289 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrxl %ecx, %eax, %ebp
7290 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: orl %ebp, %esi
7291 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
7292 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7293 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
7294 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7295 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
7296 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7297 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
7298 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7299 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7300 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebp, %esi
7301 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebp # 4-byte Reload
7302 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebp, (%esp) # 4-byte Folded Spill
7303 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %eax, %ebx
7304 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 72(%esp,%edx), %eax
7305 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl 132(%esp,%edx), %ebp
7306 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %ebp, %edi
7307 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[0-9]+}}(%esp), %edx
7308 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 56(%edx)
7309 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %ebx, 48(%edx)
7310 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl (%esp), %edi # 4-byte Reload
7311 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %edi, 40(%edx)
7312 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 32(%edx)
7313 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7314 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 24(%edx)
7315 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7316 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 16(%edx)
7317 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
7318 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 8(%edx)
7319 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: sarxl %ecx, %ebp, %esi
7320 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: # kill: def $cl killed $cl killed $ecx
7321 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Reload
7322 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: shrdl %cl, %edi, %eax
7323 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, (%edx)
7324 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %esi, 60(%edx)
7325 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7326 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 52(%edx)
7327 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7328 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 44(%edx)
7329 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7330 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 36(%edx)
7331 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7332 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 28(%edx)
7333 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7334 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 20(%edx)
7335 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7336 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 12(%edx)
7337 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
7338 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: movl %eax, 4(%edx)
7339 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: addl $200, %esp
7340 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %esi
7341 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %edi
7342 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebx
7343 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: popl %ebp
7344 ; X86-HAVE-BMI2-HAVE-SHLD-NEXT: retl
7345 %src = load i512, ptr %src.ptr, align 1
7346 %bitOff = load i512, ptr %bitOff.ptr, align 1
7347 %res = ashr i512 %src, %bitOff
7348 store i512 %res, ptr %dst, align 1
7351 ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
7354 ; X64-NO-SHLD: {{.*}}
7357 ; X86-NO-SHLD: {{.*}}