• Home
  • Raw
  • Download

Lines Matching refs:dst

17 let Constraints = "$src1 = $dst", SchedRW = [WriteShift] in {
19 def SHL8rCL : I<0xD2, MRM4r, (outs GR8 :$dst), (ins GR8 :$src1),
20 "shl{b}\t{%cl, $dst|$dst, cl}",
21 [(set GR8:$dst, (shl GR8:$src1, CL))]>;
22 def SHL16rCL : I<0xD3, MRM4r, (outs GR16:$dst), (ins GR16:$src1),
23 "shl{w}\t{%cl, $dst|$dst, cl}",
24 [(set GR16:$dst, (shl GR16:$src1, CL))]>, OpSize16;
25 def SHL32rCL : I<0xD3, MRM4r, (outs GR32:$dst), (ins GR32:$src1),
26 "shl{l}\t{%cl, $dst|$dst, cl}",
27 [(set GR32:$dst, (shl GR32:$src1, CL))]>, OpSize32;
28 def SHL64rCL : RI<0xD3, MRM4r, (outs GR64:$dst), (ins GR64:$src1),
29 "shl{q}\t{%cl, $dst|$dst, cl}",
30 [(set GR64:$dst, (shl GR64:$src1, CL))]>;
34 def SHL8ri : Ii8<0xC0, MRM4r, (outs GR8 :$dst), (ins GR8 :$src1, u8imm:$src2),
35 "shl{b}\t{$src2, $dst|$dst, $src2}",
36 [(set GR8:$dst, (shl GR8:$src1, (i8 imm:$src2)))]>;
38 def SHL16ri : Ii8<0xC1, MRM4r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$src2),
39 "shl{w}\t{$src2, $dst|$dst, $src2}",
40 [(set GR16:$dst, (shl GR16:$src1, (i8 imm:$src2)))]>,
42 def SHL32ri : Ii8<0xC1, MRM4r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$src2),
43 "shl{l}\t{$src2, $dst|$dst, $src2}",
44 [(set GR32:$dst, (shl GR32:$src1, (i8 imm:$src2)))]>,
46 def SHL64ri : RIi8<0xC1, MRM4r, (outs GR64:$dst),
48 "shl{q}\t{$src2, $dst|$dst, $src2}",
49 [(set GR64:$dst, (shl GR64:$src1, (i8 imm:$src2)))]>;
55 def SHL8r1 : I<0xD0, MRM4r, (outs GR8:$dst), (ins GR8:$src1),
56 "shl{b}\t$dst", []>;
57 def SHL16r1 : I<0xD1, MRM4r, (outs GR16:$dst), (ins GR16:$src1),
58 "shl{w}\t$dst", []>, OpSize16;
59 def SHL32r1 : I<0xD1, MRM4r, (outs GR32:$dst), (ins GR32:$src1),
60 "shl{l}\t$dst", []>, OpSize32;
61 def SHL64r1 : RI<0xD1, MRM4r, (outs GR64:$dst), (ins GR64:$src1),
62 "shl{q}\t$dst", []>;
64 } // Constraints = "$src = $dst", SchedRW
69 def SHL8mCL : I<0xD2, MRM4m, (outs), (ins i8mem :$dst),
70 "shl{b}\t{%cl, $dst|$dst, cl}",
71 [(store (shl (loadi8 addr:$dst), CL), addr:$dst)]>;
72 def SHL16mCL : I<0xD3, MRM4m, (outs), (ins i16mem:$dst),
73 "shl{w}\t{%cl, $dst|$dst, cl}",
74 [(store (shl (loadi16 addr:$dst), CL), addr:$dst)]>,
76 def SHL32mCL : I<0xD3, MRM4m, (outs), (ins i32mem:$dst),
77 "shl{l}\t{%cl, $dst|$dst, cl}",
78 [(store (shl (loadi32 addr:$dst), CL), addr:$dst)]>,
80 def SHL64mCL : RI<0xD3, MRM4m, (outs), (ins i64mem:$dst),
81 "shl{q}\t{%cl, $dst|$dst, cl}",
82 [(store (shl (loadi64 addr:$dst), CL), addr:$dst)]>,
87 def SHL8mi : Ii8<0xC0, MRM4m, (outs), (ins i8mem :$dst, u8imm:$src),
88 "shl{b}\t{$src, $dst|$dst, $src}",
89 [(store (shl (loadi8 addr:$dst), (i8 imm:$src)), addr:$dst)]>;
90 def SHL16mi : Ii8<0xC1, MRM4m, (outs), (ins i16mem:$dst, u8imm:$src),
91 "shl{w}\t{$src, $dst|$dst, $src}",
92 [(store (shl (loadi16 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
94 def SHL32mi : Ii8<0xC1, MRM4m, (outs), (ins i32mem:$dst, u8imm:$src),
95 "shl{l}\t{$src, $dst|$dst, $src}",
96 [(store (shl (loadi32 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
98 def SHL64mi : RIi8<0xC1, MRM4m, (outs), (ins i64mem:$dst, u8imm:$src),
99 "shl{q}\t{$src, $dst|$dst, $src}",
100 [(store (shl (loadi64 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
104 def SHL8m1 : I<0xD0, MRM4m, (outs), (ins i8mem :$dst),
105 "shl{b}\t$dst",
106 [(store (shl (loadi8 addr:$dst), (i8 1)), addr:$dst)]>;
107 def SHL16m1 : I<0xD1, MRM4m, (outs), (ins i16mem:$dst),
108 "shl{w}\t$dst",
109 [(store (shl (loadi16 addr:$dst), (i8 1)), addr:$dst)]>,
111 def SHL32m1 : I<0xD1, MRM4m, (outs), (ins i32mem:$dst),
112 "shl{l}\t$dst",
113 [(store (shl (loadi32 addr:$dst), (i8 1)), addr:$dst)]>,
115 def SHL64m1 : RI<0xD1, MRM4m, (outs), (ins i64mem:$dst),
116 "shl{q}\t$dst",
117 [(store (shl (loadi64 addr:$dst), (i8 1)), addr:$dst)]>,
121 let Constraints = "$src1 = $dst", SchedRW = [WriteShift] in {
123 def SHR8rCL : I<0xD2, MRM5r, (outs GR8 :$dst), (ins GR8 :$src1),
124 "shr{b}\t{%cl, $dst|$dst, cl}",
125 [(set GR8:$dst, (srl GR8:$src1, CL))]>;
126 def SHR16rCL : I<0xD3, MRM5r, (outs GR16:$dst), (ins GR16:$src1),
127 "shr{w}\t{%cl, $dst|$dst, cl}",
128 [(set GR16:$dst, (srl GR16:$src1, CL))]>, OpSize16;
129 def SHR32rCL : I<0xD3, MRM5r, (outs GR32:$dst), (ins GR32:$src1),
130 "shr{l}\t{%cl, $dst|$dst, cl}",
131 [(set GR32:$dst, (srl GR32:$src1, CL))]>, OpSize32;
132 def SHR64rCL : RI<0xD3, MRM5r, (outs GR64:$dst), (ins GR64:$src1),
133 "shr{q}\t{%cl, $dst|$dst, cl}",
134 [(set GR64:$dst, (srl GR64:$src1, CL))]>;
137 def SHR8ri : Ii8<0xC0, MRM5r, (outs GR8:$dst), (ins GR8:$src1, u8imm:$src2),
138 "shr{b}\t{$src2, $dst|$dst, $src2}",
139 [(set GR8:$dst, (srl GR8:$src1, (i8 imm:$src2)))]>;
140 def SHR16ri : Ii8<0xC1, MRM5r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$src2),
141 "shr{w}\t{$src2, $dst|$dst, $src2}",
142 [(set GR16:$dst, (srl GR16:$src1, (i8 imm:$src2)))]>,
144 def SHR32ri : Ii8<0xC1, MRM5r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$src2),
145 "shr{l}\t{$src2, $dst|$dst, $src2}",
146 [(set GR32:$dst, (srl GR32:$src1, (i8 imm:$src2)))]>,
148 def SHR64ri : RIi8<0xC1, MRM5r, (outs GR64:$dst), (ins GR64:$src1, u8imm:$src2),
149 "shr{q}\t{$src2, $dst|$dst, $src2}",
150 [(set GR64:$dst, (srl GR64:$src1, (i8 imm:$src2)))]>;
153 def SHR8r1 : I<0xD0, MRM5r, (outs GR8:$dst), (ins GR8:$src1),
154 "shr{b}\t$dst",
155 [(set GR8:$dst, (srl GR8:$src1, (i8 1)))]>;
156 def SHR16r1 : I<0xD1, MRM5r, (outs GR16:$dst), (ins GR16:$src1),
157 "shr{w}\t$dst",
158 [(set GR16:$dst, (srl GR16:$src1, (i8 1)))]>, OpSize16;
159 def SHR32r1 : I<0xD1, MRM5r, (outs GR32:$dst), (ins GR32:$src1),
160 "shr{l}\t$dst",
161 [(set GR32:$dst, (srl GR32:$src1, (i8 1)))]>, OpSize32;
162 def SHR64r1 : RI<0xD1, MRM5r, (outs GR64:$dst), (ins GR64:$src1),
163 "shr{q}\t$dst",
164 [(set GR64:$dst, (srl GR64:$src1, (i8 1)))]>;
165 } // Constraints = "$src = $dst", SchedRW
169 def SHR8mCL : I<0xD2, MRM5m, (outs), (ins i8mem :$dst),
170 "shr{b}\t{%cl, $dst|$dst, cl}",
171 [(store (srl (loadi8 addr:$dst), CL), addr:$dst)]>;
172 def SHR16mCL : I<0xD3, MRM5m, (outs), (ins i16mem:$dst),
173 "shr{w}\t{%cl, $dst|$dst, cl}",
174 [(store (srl (loadi16 addr:$dst), CL), addr:$dst)]>,
176 def SHR32mCL : I<0xD3, MRM5m, (outs), (ins i32mem:$dst),
177 "shr{l}\t{%cl, $dst|$dst, cl}",
178 [(store (srl (loadi32 addr:$dst), CL), addr:$dst)]>,
180 def SHR64mCL : RI<0xD3, MRM5m, (outs), (ins i64mem:$dst),
181 "shr{q}\t{%cl, $dst|$dst, cl}",
182 [(store (srl (loadi64 addr:$dst), CL), addr:$dst)]>,
187 def SHR8mi : Ii8<0xC0, MRM5m, (outs), (ins i8mem :$dst, u8imm:$src),
188 "shr{b}\t{$src, $dst|$dst, $src}",
189 [(store (srl (loadi8 addr:$dst), (i8 imm:$src)), addr:$dst)]>;
190 def SHR16mi : Ii8<0xC1, MRM5m, (outs), (ins i16mem:$dst, u8imm:$src),
191 "shr{w}\t{$src, $dst|$dst, $src}",
192 [(store (srl (loadi16 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
194 def SHR32mi : Ii8<0xC1, MRM5m, (outs), (ins i32mem:$dst, u8imm:$src),
195 "shr{l}\t{$src, $dst|$dst, $src}",
196 [(store (srl (loadi32 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
198 def SHR64mi : RIi8<0xC1, MRM5m, (outs), (ins i64mem:$dst, u8imm:$src),
199 "shr{q}\t{$src, $dst|$dst, $src}",
200 [(store (srl (loadi64 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
204 def SHR8m1 : I<0xD0, MRM5m, (outs), (ins i8mem :$dst),
205 "shr{b}\t$dst",
206 [(store (srl (loadi8 addr:$dst), (i8 1)), addr:$dst)]>;
207 def SHR16m1 : I<0xD1, MRM5m, (outs), (ins i16mem:$dst),
208 "shr{w}\t$dst",
209 [(store (srl (loadi16 addr:$dst), (i8 1)), addr:$dst)]>,
211 def SHR32m1 : I<0xD1, MRM5m, (outs), (ins i32mem:$dst),
212 "shr{l}\t$dst",
213 [(store (srl (loadi32 addr:$dst), (i8 1)), addr:$dst)]>,
215 def SHR64m1 : RI<0xD1, MRM5m, (outs), (ins i64mem:$dst),
216 "shr{q}\t$dst",
217 [(store (srl (loadi64 addr:$dst), (i8 1)), addr:$dst)]>,
221 let Constraints = "$src1 = $dst", SchedRW = [WriteShift] in {
223 def SAR8rCL : I<0xD2, MRM7r, (outs GR8 :$dst), (ins GR8 :$src1),
224 "sar{b}\t{%cl, $dst|$dst, cl}",
225 [(set GR8:$dst, (sra GR8:$src1, CL))]>;
226 def SAR16rCL : I<0xD3, MRM7r, (outs GR16:$dst), (ins GR16:$src1),
227 "sar{w}\t{%cl, $dst|$dst, cl}",
228 [(set GR16:$dst, (sra GR16:$src1, CL))]>,
230 def SAR32rCL : I<0xD3, MRM7r, (outs GR32:$dst), (ins GR32:$src1),
231 "sar{l}\t{%cl, $dst|$dst, cl}",
232 [(set GR32:$dst, (sra GR32:$src1, CL))]>,
234 def SAR64rCL : RI<0xD3, MRM7r, (outs GR64:$dst), (ins GR64:$src1),
235 "sar{q}\t{%cl, $dst|$dst, cl}",
236 [(set GR64:$dst, (sra GR64:$src1, CL))]>;
239 def SAR8ri : Ii8<0xC0, MRM7r, (outs GR8 :$dst), (ins GR8 :$src1, u8imm:$src2),
240 "sar{b}\t{$src2, $dst|$dst, $src2}",
241 [(set GR8:$dst, (sra GR8:$src1, (i8 imm:$src2)))]>;
242 def SAR16ri : Ii8<0xC1, MRM7r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$src2),
243 "sar{w}\t{$src2, $dst|$dst, $src2}",
244 [(set GR16:$dst, (sra GR16:$src1, (i8 imm:$src2)))]>,
246 def SAR32ri : Ii8<0xC1, MRM7r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$src2),
247 "sar{l}\t{$src2, $dst|$dst, $src2}",
248 [(set GR32:$dst, (sra GR32:$src1, (i8 imm:$src2)))]>,
250 def SAR64ri : RIi8<0xC1, MRM7r, (outs GR64:$dst),
252 "sar{q}\t{$src2, $dst|$dst, $src2}",
253 [(set GR64:$dst, (sra GR64:$src1, (i8 imm:$src2)))]>;
256 def SAR8r1 : I<0xD0, MRM7r, (outs GR8 :$dst), (ins GR8 :$src1),
257 "sar{b}\t$dst",
258 [(set GR8:$dst, (sra GR8:$src1, (i8 1)))]>;
259 def SAR16r1 : I<0xD1, MRM7r, (outs GR16:$dst), (ins GR16:$src1),
260 "sar{w}\t$dst",
261 [(set GR16:$dst, (sra GR16:$src1, (i8 1)))]>, OpSize16;
262 def SAR32r1 : I<0xD1, MRM7r, (outs GR32:$dst), (ins GR32:$src1),
263 "sar{l}\t$dst",
264 [(set GR32:$dst, (sra GR32:$src1, (i8 1)))]>, OpSize32;
265 def SAR64r1 : RI<0xD1, MRM7r, (outs GR64:$dst), (ins GR64:$src1),
266 "sar{q}\t$dst",
267 [(set GR64:$dst, (sra GR64:$src1, (i8 1)))]>;
268 } // Constraints = "$src = $dst", SchedRW
272 def SAR8mCL : I<0xD2, MRM7m, (outs), (ins i8mem :$dst),
273 "sar{b}\t{%cl, $dst|$dst, cl}",
274 [(store (sra (loadi8 addr:$dst), CL), addr:$dst)]>;
275 def SAR16mCL : I<0xD3, MRM7m, (outs), (ins i16mem:$dst),
276 "sar{w}\t{%cl, $dst|$dst, cl}",
277 [(store (sra (loadi16 addr:$dst), CL), addr:$dst)]>,
279 def SAR32mCL : I<0xD3, MRM7m, (outs), (ins i32mem:$dst),
280 "sar{l}\t{%cl, $dst|$dst, cl}",
281 [(store (sra (loadi32 addr:$dst), CL), addr:$dst)]>,
283 def SAR64mCL : RI<0xD3, MRM7m, (outs), (ins i64mem:$dst),
284 "sar{q}\t{%cl, $dst|$dst, cl}",
285 [(store (sra (loadi64 addr:$dst), CL), addr:$dst)]>,
290 def SAR8mi : Ii8<0xC0, MRM7m, (outs), (ins i8mem :$dst, u8imm:$src),
291 "sar{b}\t{$src, $dst|$dst, $src}",
292 [(store (sra (loadi8 addr:$dst), (i8 imm:$src)), addr:$dst)]>;
293 def SAR16mi : Ii8<0xC1, MRM7m, (outs), (ins i16mem:$dst, u8imm:$src),
294 "sar{w}\t{$src, $dst|$dst, $src}",
295 [(store (sra (loadi16 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
297 def SAR32mi : Ii8<0xC1, MRM7m, (outs), (ins i32mem:$dst, u8imm:$src),
298 "sar{l}\t{$src, $dst|$dst, $src}",
299 [(store (sra (loadi32 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
301 def SAR64mi : RIi8<0xC1, MRM7m, (outs), (ins i64mem:$dst, u8imm:$src),
302 "sar{q}\t{$src, $dst|$dst, $src}",
303 [(store (sra (loadi64 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
307 def SAR8m1 : I<0xD0, MRM7m, (outs), (ins i8mem :$dst),
308 "sar{b}\t$dst",
309 [(store (sra (loadi8 addr:$dst), (i8 1)), addr:$dst)]>;
310 def SAR16m1 : I<0xD1, MRM7m, (outs), (ins i16mem:$dst),
311 "sar{w}\t$dst",
312 [(store (sra (loadi16 addr:$dst), (i8 1)), addr:$dst)]>,
314 def SAR32m1 : I<0xD1, MRM7m, (outs), (ins i32mem:$dst),
315 "sar{l}\t$dst",
316 [(store (sra (loadi32 addr:$dst), (i8 1)), addr:$dst)]>,
318 def SAR64m1 : RI<0xD1, MRM7m, (outs), (ins i64mem:$dst),
319 "sar{q}\t$dst",
320 [(store (sra (loadi64 addr:$dst), (i8 1)), addr:$dst)]>,
329 let Constraints = "$src1 = $dst", SchedRW = [WriteRotate] in {
332 def RCL8rCL : I<0xD2, MRM2r, (outs GR8:$dst), (ins GR8:$src1),
333 "rcl{b}\t{%cl, $dst|$dst, cl}", []>;
334 def RCL16rCL : I<0xD3, MRM2r, (outs GR16:$dst), (ins GR16:$src1),
335 "rcl{w}\t{%cl, $dst|$dst, cl}", []>, OpSize16;
336 def RCL32rCL : I<0xD3, MRM2r, (outs GR32:$dst), (ins GR32:$src1),
337 "rcl{l}\t{%cl, $dst|$dst, cl}", []>, OpSize32;
338 def RCL64rCL : RI<0xD3, MRM2r, (outs GR64:$dst), (ins GR64:$src1),
339 "rcl{q}\t{%cl, $dst|$dst, cl}", []>;
343 def RCL8r1 : I<0xD0, MRM2r, (outs GR8:$dst), (ins GR8:$src1),
344 "rcl{b}\t$dst", []>;
345 def RCL8ri : Ii8<0xC0, MRM2r, (outs GR8:$dst), (ins GR8:$src1, u8imm:$cnt),
346 "rcl{b}\t{$cnt, $dst|$dst, $cnt}", []>;
347 def RCL16r1 : I<0xD1, MRM2r, (outs GR16:$dst), (ins GR16:$src1),
348 "rcl{w}\t$dst", []>, OpSize16;
349 def RCL16ri : Ii8<0xC1, MRM2r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$cnt),
350 "rcl{w}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize16;
351 def RCL32r1 : I<0xD1, MRM2r, (outs GR32:$dst), (ins GR32:$src1),
352 "rcl{l}\t$dst", []>, OpSize32;
353 def RCL32ri : Ii8<0xC1, MRM2r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$cnt),
354 "rcl{l}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize32;
355 def RCL64r1 : RI<0xD1, MRM2r, (outs GR64:$dst), (ins GR64:$src1),
356 "rcl{q}\t$dst", []>;
357 def RCL64ri : RIi8<0xC1, MRM2r, (outs GR64:$dst), (ins GR64:$src1, u8imm:$cnt),
358 "rcl{q}\t{$cnt, $dst|$dst, $cnt}", []>;
362 def RCR8rCL : I<0xD2, MRM3r, (outs GR8:$dst), (ins GR8:$src1),
363 "rcr{b}\t{%cl, $dst|$dst, cl}", []>;
364 def RCR16rCL : I<0xD3, MRM3r, (outs GR16:$dst), (ins GR16:$src1),
365 "rcr{w}\t{%cl, $dst|$dst, cl}", []>, OpSize16;
366 def RCR32rCL : I<0xD3, MRM3r, (outs GR32:$dst), (ins GR32:$src1),
367 "rcr{l}\t{%cl, $dst|$dst, cl}", []>, OpSize32;
368 def RCR64rCL : RI<0xD3, MRM3r, (outs GR64:$dst), (ins GR64:$src1),
369 "rcr{q}\t{%cl, $dst|$dst, cl}", []>;
373 def RCR8r1 : I<0xD0, MRM3r, (outs GR8:$dst), (ins GR8:$src1),
374 "rcr{b}\t$dst", []>;
375 def RCR8ri : Ii8<0xC0, MRM3r, (outs GR8:$dst), (ins GR8:$src1, u8imm:$cnt),
376 "rcr{b}\t{$cnt, $dst|$dst, $cnt}", []>;
377 def RCR16r1 : I<0xD1, MRM3r, (outs GR16:$dst), (ins GR16:$src1),
378 "rcr{w}\t$dst", []>, OpSize16;
379 def RCR16ri : Ii8<0xC1, MRM3r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$cnt),
380 "rcr{w}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize16;
381 def RCR32r1 : I<0xD1, MRM3r, (outs GR32:$dst), (ins GR32:$src1),
382 "rcr{l}\t$dst", []>, OpSize32;
383 def RCR32ri : Ii8<0xC1, MRM3r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$cnt),
384 "rcr{l}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize32;
385 def RCR64r1 : RI<0xD1, MRM3r, (outs GR64:$dst), (ins GR64:$src1),
386 "rcr{q}\t$dst", []>;
387 def RCR64ri : RIi8<0xC1, MRM3r, (outs GR64:$dst), (ins GR64:$src1, u8imm:$cnt),
388 "rcr{q}\t{$cnt, $dst|$dst, $cnt}", []>;
391 } // Constraints = "$src = $dst"
395 def RCL8m1 : I<0xD0, MRM2m, (outs), (ins i8mem:$dst),
396 "rcl{b}\t$dst", []>;
397 def RCL8mi : Ii8<0xC0, MRM2m, (outs), (ins i8mem:$dst, u8imm:$cnt),
398 "rcl{b}\t{$cnt, $dst|$dst, $cnt}", []>;
399 def RCL16m1 : I<0xD1, MRM2m, (outs), (ins i16mem:$dst),
400 "rcl{w}\t$dst", []>, OpSize16;
401 def RCL16mi : Ii8<0xC1, MRM2m, (outs), (ins i16mem:$dst, u8imm:$cnt),
402 "rcl{w}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize16;
403 def RCL32m1 : I<0xD1, MRM2m, (outs), (ins i32mem:$dst),
404 "rcl{l}\t$dst", []>, OpSize32;
405 def RCL32mi : Ii8<0xC1, MRM2m, (outs), (ins i32mem:$dst, u8imm:$cnt),
406 "rcl{l}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize32;
407 def RCL64m1 : RI<0xD1, MRM2m, (outs), (ins i64mem:$dst),
408 "rcl{q}\t$dst", []>, Requires<[In64BitMode]>;
409 def RCL64mi : RIi8<0xC1, MRM2m, (outs), (ins i64mem:$dst, u8imm:$cnt),
410 "rcl{q}\t{$cnt, $dst|$dst, $cnt}", []>,
413 def RCR8m1 : I<0xD0, MRM3m, (outs), (ins i8mem:$dst),
414 "rcr{b}\t$dst", []>;
415 def RCR8mi : Ii8<0xC0, MRM3m, (outs), (ins i8mem:$dst, u8imm:$cnt),
416 "rcr{b}\t{$cnt, $dst|$dst, $cnt}", []>;
417 def RCR16m1 : I<0xD1, MRM3m, (outs), (ins i16mem:$dst),
418 "rcr{w}\t$dst", []>, OpSize16;
419 def RCR16mi : Ii8<0xC1, MRM3m, (outs), (ins i16mem:$dst, u8imm:$cnt),
420 "rcr{w}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize16;
421 def RCR32m1 : I<0xD1, MRM3m, (outs), (ins i32mem:$dst),
422 "rcr{l}\t$dst", []>, OpSize32;
423 def RCR32mi : Ii8<0xC1, MRM3m, (outs), (ins i32mem:$dst, u8imm:$cnt),
424 "rcr{l}\t{$cnt, $dst|$dst, $cnt}", []>, OpSize32;
425 def RCR64m1 : RI<0xD1, MRM3m, (outs), (ins i64mem:$dst),
426 "rcr{q}\t$dst", []>, Requires<[In64BitMode]>;
427 def RCR64mi : RIi8<0xC1, MRM3m, (outs), (ins i64mem:$dst, u8imm:$cnt),
428 "rcr{q}\t{$cnt, $dst|$dst, $cnt}", []>,
433 def RCL8mCL : I<0xD2, MRM2m, (outs), (ins i8mem:$dst),
434 "rcl{b}\t{%cl, $dst|$dst, cl}", []>;
435 def RCL16mCL : I<0xD3, MRM2m, (outs), (ins i16mem:$dst),
436 "rcl{w}\t{%cl, $dst|$dst, cl}", []>, OpSize16;
437 def RCL32mCL : I<0xD3, MRM2m, (outs), (ins i32mem:$dst),
438 "rcl{l}\t{%cl, $dst|$dst, cl}", []>, OpSize32;
439 def RCL64mCL : RI<0xD3, MRM2m, (outs), (ins i64mem:$dst),
440 "rcl{q}\t{%cl, $dst|$dst, cl}", []>,
443 def RCR8mCL : I<0xD2, MRM3m, (outs), (ins i8mem:$dst),
444 "rcr{b}\t{%cl, $dst|$dst, cl}", []>;
445 def RCR16mCL : I<0xD3, MRM3m, (outs), (ins i16mem:$dst),
446 "rcr{w}\t{%cl, $dst|$dst, cl}", []>, OpSize16;
447 def RCR32mCL : I<0xD3, MRM3m, (outs), (ins i32mem:$dst),
448 "rcr{l}\t{%cl, $dst|$dst, cl}", []>, OpSize32;
449 def RCR64mCL : RI<0xD3, MRM3m, (outs), (ins i64mem:$dst),
450 "rcr{q}\t{%cl, $dst|$dst, cl}", []>,
456 let Constraints = "$src1 = $dst", SchedRW = [WriteRotate] in {
459 def ROL8rCL : I<0xD2, MRM0r, (outs GR8 :$dst), (ins GR8 :$src1),
460 "rol{b}\t{%cl, $dst|$dst, cl}",
461 [(set GR8:$dst, (rotl GR8:$src1, CL))]>;
462 def ROL16rCL : I<0xD3, MRM0r, (outs GR16:$dst), (ins GR16:$src1),
463 "rol{w}\t{%cl, $dst|$dst, cl}",
464 [(set GR16:$dst, (rotl GR16:$src1, CL))]>, OpSize16;
465 def ROL32rCL : I<0xD3, MRM0r, (outs GR32:$dst), (ins GR32:$src1),
466 "rol{l}\t{%cl, $dst|$dst, cl}",
467 [(set GR32:$dst, (rotl GR32:$src1, CL))]>, OpSize32;
468 def ROL64rCL : RI<0xD3, MRM0r, (outs GR64:$dst), (ins GR64:$src1),
469 "rol{q}\t{%cl, $dst|$dst, cl}",
470 [(set GR64:$dst, (rotl GR64:$src1, CL))]>;
473 def ROL8ri : Ii8<0xC0, MRM0r, (outs GR8 :$dst), (ins GR8 :$src1, u8imm:$src2),
474 "rol{b}\t{$src2, $dst|$dst, $src2}",
475 [(set GR8:$dst, (rotl GR8:$src1, (i8 imm:$src2)))]>;
476 def ROL16ri : Ii8<0xC1, MRM0r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$src2),
477 "rol{w}\t{$src2, $dst|$dst, $src2}",
478 [(set GR16:$dst, (rotl GR16:$src1, (i8 imm:$src2)))]>,
480 def ROL32ri : Ii8<0xC1, MRM0r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$src2),
481 "rol{l}\t{$src2, $dst|$dst, $src2}",
482 [(set GR32:$dst, (rotl GR32:$src1, (i8 imm:$src2)))]>,
484 def ROL64ri : RIi8<0xC1, MRM0r, (outs GR64:$dst),
486 "rol{q}\t{$src2, $dst|$dst, $src2}",
487 [(set GR64:$dst, (rotl GR64:$src1, (i8 imm:$src2)))]>;
490 def ROL8r1 : I<0xD0, MRM0r, (outs GR8 :$dst), (ins GR8 :$src1),
491 "rol{b}\t$dst",
492 [(set GR8:$dst, (rotl GR8:$src1, (i8 1)))]>;
493 def ROL16r1 : I<0xD1, MRM0r, (outs GR16:$dst), (ins GR16:$src1),
494 "rol{w}\t$dst",
495 [(set GR16:$dst, (rotl GR16:$src1, (i8 1)))]>, OpSize16;
496 def ROL32r1 : I<0xD1, MRM0r, (outs GR32:$dst), (ins GR32:$src1),
497 "rol{l}\t$dst",
498 [(set GR32:$dst, (rotl GR32:$src1, (i8 1)))]>, OpSize32;
499 def ROL64r1 : RI<0xD1, MRM0r, (outs GR64:$dst), (ins GR64:$src1),
500 "rol{q}\t$dst",
501 [(set GR64:$dst, (rotl GR64:$src1, (i8 1)))]>;
502 } // Constraints = "$src = $dst", SchedRW
505 def ROL8mCL : I<0xD2, MRM0m, (outs), (ins i8mem :$dst),
506 "rol{b}\t{%cl, $dst|$dst, cl}",
507 [(store (rotl (loadi8 addr:$dst), CL), addr:$dst)]>;
508 def ROL16mCL : I<0xD3, MRM0m, (outs), (ins i16mem:$dst),
509 "rol{w}\t{%cl, $dst|$dst, cl}",
510 [(store (rotl (loadi16 addr:$dst), CL), addr:$dst)]>, OpSize16;
511 def ROL32mCL : I<0xD3, MRM0m, (outs), (ins i32mem:$dst),
512 "rol{l}\t{%cl, $dst|$dst, cl}",
513 [(store (rotl (loadi32 addr:$dst), CL), addr:$dst)]>, OpSize32;
514 def ROL64mCL : RI<0xD3, MRM0m, (outs), (ins i64mem:$dst),
515 "rol{q}\t{%cl, $dst|$dst, cl}",
516 [(store (rotl (loadi64 addr:$dst), CL), addr:$dst)]>,
521 def ROL8mi : Ii8<0xC0, MRM0m, (outs), (ins i8mem :$dst, u8imm:$src1),
522 "rol{b}\t{$src1, $dst|$dst, $src1}",
523 [(store (rotl (loadi8 addr:$dst), (i8 imm:$src1)), addr:$dst)]>;
524 def ROL16mi : Ii8<0xC1, MRM0m, (outs), (ins i16mem:$dst, u8imm:$src1),
525 "rol{w}\t{$src1, $dst|$dst, $src1}",
526 [(store (rotl (loadi16 addr:$dst), (i8 imm:$src1)), addr:$dst)]>,
528 def ROL32mi : Ii8<0xC1, MRM0m, (outs), (ins i32mem:$dst, u8imm:$src1),
529 "rol{l}\t{$src1, $dst|$dst, $src1}",
530 [(store (rotl (loadi32 addr:$dst), (i8 imm:$src1)), addr:$dst)]>,
532 def ROL64mi : RIi8<0xC1, MRM0m, (outs), (ins i64mem:$dst, u8imm:$src1),
533 "rol{q}\t{$src1, $dst|$dst, $src1}",
534 [(store (rotl (loadi64 addr:$dst), (i8 imm:$src1)), addr:$dst)]>,
538 def ROL8m1 : I<0xD0, MRM0m, (outs), (ins i8mem :$dst),
539 "rol{b}\t$dst",
540 [(store (rotl (loadi8 addr:$dst), (i8 1)), addr:$dst)]>;
541 def ROL16m1 : I<0xD1, MRM0m, (outs), (ins i16mem:$dst),
542 "rol{w}\t$dst",
543 [(store (rotl (loadi16 addr:$dst), (i8 1)), addr:$dst)]>,
545 def ROL32m1 : I<0xD1, MRM0m, (outs), (ins i32mem:$dst),
546 "rol{l}\t$dst",
547 [(store (rotl (loadi32 addr:$dst), (i8 1)), addr:$dst)]>,
549 def ROL64m1 : RI<0xD1, MRM0m, (outs), (ins i64mem:$dst),
550 "rol{q}\t$dst",
551 [(store (rotl (loadi64 addr:$dst), (i8 1)), addr:$dst)]>,
555 let Constraints = "$src1 = $dst", SchedRW = [WriteRotate] in {
557 def ROR8rCL : I<0xD2, MRM1r, (outs GR8 :$dst), (ins GR8 :$src1),
558 "ror{b}\t{%cl, $dst|$dst, cl}",
559 [(set GR8:$dst, (rotr GR8:$src1, CL))]>;
560 def ROR16rCL : I<0xD3, MRM1r, (outs GR16:$dst), (ins GR16:$src1),
561 "ror{w}\t{%cl, $dst|$dst, cl}",
562 [(set GR16:$dst, (rotr GR16:$src1, CL))]>, OpSize16;
563 def ROR32rCL : I<0xD3, MRM1r, (outs GR32:$dst), (ins GR32:$src1),
564 "ror{l}\t{%cl, $dst|$dst, cl}",
565 [(set GR32:$dst, (rotr GR32:$src1, CL))]>, OpSize32;
566 def ROR64rCL : RI<0xD3, MRM1r, (outs GR64:$dst), (ins GR64:$src1),
567 "ror{q}\t{%cl, $dst|$dst, cl}",
568 [(set GR64:$dst, (rotr GR64:$src1, CL))]>;
571 def ROR8ri : Ii8<0xC0, MRM1r, (outs GR8 :$dst), (ins GR8 :$src1, u8imm:$src2),
572 "ror{b}\t{$src2, $dst|$dst, $src2}",
573 [(set GR8:$dst, (rotr GR8:$src1, (i8 imm:$src2)))]>;
574 def ROR16ri : Ii8<0xC1, MRM1r, (outs GR16:$dst), (ins GR16:$src1, u8imm:$src2),
575 "ror{w}\t{$src2, $dst|$dst, $src2}",
576 [(set GR16:$dst, (rotr GR16:$src1, (i8 imm:$src2)))]>,
578 def ROR32ri : Ii8<0xC1, MRM1r, (outs GR32:$dst), (ins GR32:$src1, u8imm:$src2),
579 "ror{l}\t{$src2, $dst|$dst, $src2}",
580 [(set GR32:$dst, (rotr GR32:$src1, (i8 imm:$src2)))]>,
582 def ROR64ri : RIi8<0xC1, MRM1r, (outs GR64:$dst),
584 "ror{q}\t{$src2, $dst|$dst, $src2}",
585 [(set GR64:$dst, (rotr GR64:$src1, (i8 imm:$src2)))]>;
588 def ROR8r1 : I<0xD0, MRM1r, (outs GR8 :$dst), (ins GR8 :$src1),
589 "ror{b}\t$dst",
590 [(set GR8:$dst, (rotr GR8:$src1, (i8 1)))]>;
591 def ROR16r1 : I<0xD1, MRM1r, (outs GR16:$dst), (ins GR16:$src1),
592 "ror{w}\t$dst",
593 [(set GR16:$dst, (rotr GR16:$src1, (i8 1)))]>, OpSize16;
594 def ROR32r1 : I<0xD1, MRM1r, (outs GR32:$dst), (ins GR32:$src1),
595 "ror{l}\t$dst",
596 [(set GR32:$dst, (rotr GR32:$src1, (i8 1)))]>, OpSize32;
597 def ROR64r1 : RI<0xD1, MRM1r, (outs GR64:$dst), (ins GR64:$src1),
598 "ror{q}\t$dst",
599 [(set GR64:$dst, (rotr GR64:$src1, (i8 1)))]>;
600 } // Constraints = "$src = $dst", SchedRW
603 def ROR8mCL : I<0xD2, MRM1m, (outs), (ins i8mem :$dst),
604 "ror{b}\t{%cl, $dst|$dst, cl}",
605 [(store (rotr (loadi8 addr:$dst), CL), addr:$dst)]>;
606 def ROR16mCL : I<0xD3, MRM1m, (outs), (ins i16mem:$dst),
607 "ror{w}\t{%cl, $dst|$dst, cl}",
608 [(store (rotr (loadi16 addr:$dst), CL), addr:$dst)]>, OpSize16;
609 def ROR32mCL : I<0xD3, MRM1m, (outs), (ins i32mem:$dst),
610 "ror{l}\t{%cl, $dst|$dst, cl}",
611 [(store (rotr (loadi32 addr:$dst), CL), addr:$dst)]>, OpSize32;
612 def ROR64mCL : RI<0xD3, MRM1m, (outs), (ins i64mem:$dst),
613 "ror{q}\t{%cl, $dst|$dst, cl}",
614 [(store (rotr (loadi64 addr:$dst), CL), addr:$dst)]>,
619 def ROR8mi : Ii8<0xC0, MRM1m, (outs), (ins i8mem :$dst, u8imm:$src),
620 "ror{b}\t{$src, $dst|$dst, $src}",
621 [(store (rotr (loadi8 addr:$dst), (i8 imm:$src)), addr:$dst)]>;
622 def ROR16mi : Ii8<0xC1, MRM1m, (outs), (ins i16mem:$dst, u8imm:$src),
623 "ror{w}\t{$src, $dst|$dst, $src}",
624 [(store (rotr (loadi16 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
626 def ROR32mi : Ii8<0xC1, MRM1m, (outs), (ins i32mem:$dst, u8imm:$src),
627 "ror{l}\t{$src, $dst|$dst, $src}",
628 [(store (rotr (loadi32 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
630 def ROR64mi : RIi8<0xC1, MRM1m, (outs), (ins i64mem:$dst, u8imm:$src),
631 "ror{q}\t{$src, $dst|$dst, $src}",
632 [(store (rotr (loadi64 addr:$dst), (i8 imm:$src)), addr:$dst)]>,
636 def ROR8m1 : I<0xD0, MRM1m, (outs), (ins i8mem :$dst),
637 "ror{b}\t$dst",
638 [(store (rotr (loadi8 addr:$dst), (i8 1)), addr:$dst)]>;
639 def ROR16m1 : I<0xD1, MRM1m, (outs), (ins i16mem:$dst),
640 "ror{w}\t$dst",
641 [(store (rotr (loadi16 addr:$dst), (i8 1)), addr:$dst)]>,
643 def ROR32m1 : I<0xD1, MRM1m, (outs), (ins i32mem:$dst),
644 "ror{l}\t$dst",
645 [(store (rotr (loadi32 addr:$dst), (i8 1)), addr:$dst)]>,
647 def ROR64m1 : RI<0xD1, MRM1m, (outs), (ins i64mem:$dst),
648 "ror{q}\t$dst",
649 [(store (rotr (loadi64 addr:$dst), (i8 1)), addr:$dst)]>,
658 let Constraints = "$src1 = $dst" in {
661 def SHLD16rrCL : I<0xA5, MRMDestReg, (outs GR16:$dst),
663 "shld{w}\t{%cl, $src2, $dst|$dst, $src2, cl}",
664 [(set GR16:$dst, (X86fshl GR16:$src1, GR16:$src2, CL))]>,
666 def SHRD16rrCL : I<0xAD, MRMDestReg, (outs GR16:$dst),
668 "shrd{w}\t{%cl, $src2, $dst|$dst, $src2, cl}",
669 [(set GR16:$dst, (X86fshr GR16:$src2, GR16:$src1, CL))]>,
671 def SHLD32rrCL : I<0xA5, MRMDestReg, (outs GR32:$dst),
673 "shld{l}\t{%cl, $src2, $dst|$dst, $src2, cl}",
674 [(set GR32:$dst, (fshl GR32:$src1, GR32:$src2, CL))]>,
676 def SHRD32rrCL : I<0xAD, MRMDestReg, (outs GR32:$dst),
678 "shrd{l}\t{%cl, $src2, $dst|$dst, $src2, cl}",
679 [(set GR32:$dst, (fshr GR32:$src2, GR32:$src1, CL))]>,
681 def SHLD64rrCL : RI<0xA5, MRMDestReg, (outs GR64:$dst),
683 "shld{q}\t{%cl, $src2, $dst|$dst, $src2, cl}",
684 [(set GR64:$dst, (fshl GR64:$src1, GR64:$src2, CL))]>,
686 def SHRD64rrCL : RI<0xAD, MRMDestReg, (outs GR64:$dst),
688 "shrd{q}\t{%cl, $src2, $dst|$dst, $src2, cl}",
689 [(set GR64:$dst, (fshr GR64:$src2, GR64:$src1, CL))]>,
695 (outs GR16:$dst),
697 "shld{w}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
698 [(set GR16:$dst, (X86fshl GR16:$src1, GR16:$src2,
702 (outs GR16:$dst),
704 "shrd{w}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
705 [(set GR16:$dst, (X86fshr GR16:$src2, GR16:$src1,
709 (outs GR32:$dst),
711 "shld{l}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
712 [(set GR32:$dst, (fshl GR32:$src1, GR32:$src2,
716 (outs GR32:$dst),
718 "shrd{l}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
719 [(set GR32:$dst, (fshr GR32:$src2, GR32:$src1,
723 (outs GR64:$dst),
725 "shld{q}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
726 [(set GR64:$dst, (fshl GR64:$src1, GR64:$src2,
730 (outs GR64:$dst),
732 "shrd{q}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
733 [(set GR64:$dst, (fshr GR64:$src2, GR64:$src1,
737 } // Constraints = "$src = $dst"
740 def SHLD16mrCL : I<0xA5, MRMDestMem, (outs), (ins i16mem:$dst, GR16:$src2),
741 "shld{w}\t{%cl, $src2, $dst|$dst, $src2, cl}",
742 [(store (X86fshl (loadi16 addr:$dst), GR16:$src2, CL),
743 addr:$dst)]>, TB, OpSize16;
744 def SHRD16mrCL : I<0xAD, MRMDestMem, (outs), (ins i16mem:$dst, GR16:$src2),
745 "shrd{w}\t{%cl, $src2, $dst|$dst, $src2, cl}",
746 [(store (X86fshr GR16:$src2, (loadi16 addr:$dst), CL),
747 addr:$dst)]>, TB, OpSize16;
749 def SHLD32mrCL : I<0xA5, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$src2),
750 "shld{l}\t{%cl, $src2, $dst|$dst, $src2, cl}",
751 [(store (fshl (loadi32 addr:$dst), GR32:$src2, CL),
752 addr:$dst)]>, TB, OpSize32;
753 def SHRD32mrCL : I<0xAD, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$src2),
754 "shrd{l}\t{%cl, $src2, $dst|$dst, $src2, cl}",
755 [(store (fshr GR32:$src2, (loadi32 addr:$dst), CL),
756 addr:$dst)]>, TB, OpSize32;
758 def SHLD64mrCL : RI<0xA5, MRMDestMem, (outs), (ins i64mem:$dst, GR64:$src2),
759 "shld{q}\t{%cl, $src2, $dst|$dst, $src2, cl}",
760 [(store (fshl (loadi64 addr:$dst), GR64:$src2, CL),
761 addr:$dst)]>, TB;
762 def SHRD64mrCL : RI<0xAD, MRMDestMem, (outs), (ins i64mem:$dst, GR64:$src2),
763 "shrd{q}\t{%cl, $src2, $dst|$dst, $src2, cl}",
764 [(store (fshr GR64:$src2, (loadi64 addr:$dst), CL),
765 addr:$dst)]>, TB;
770 (outs), (ins i16mem:$dst, GR16:$src2, u8imm:$src3),
771 "shld{w}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
772 [(store (X86fshl (loadi16 addr:$dst), GR16:$src2,
773 (i8 imm:$src3)), addr:$dst)]>,
776 (outs), (ins i16mem:$dst, GR16:$src2, u8imm:$src3),
777 "shrd{w}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
778 [(store (X86fshr GR16:$src2, (loadi16 addr:$dst),
779 (i8 imm:$src3)), addr:$dst)]>,
783 (outs), (ins i32mem:$dst, GR32:$src2, u8imm:$src3),
784 "shld{l}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
785 [(store (fshl (loadi32 addr:$dst), GR32:$src2,
786 (i8 imm:$src3)), addr:$dst)]>,
789 (outs), (ins i32mem:$dst, GR32:$src2, u8imm:$src3),
790 "shrd{l}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
791 [(store (fshr GR32:$src2, (loadi32 addr:$dst),
792 (i8 imm:$src3)), addr:$dst)]>,
796 (outs), (ins i64mem:$dst, GR64:$src2, u8imm:$src3),
797 "shld{q}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
798 [(store (fshl (loadi64 addr:$dst), GR64:$src2,
799 (i8 imm:$src3)), addr:$dst)]>,
802 (outs), (ins i64mem:$dst, GR64:$src2, u8imm:$src3),
803 "shrd{q}\t{$src3, $src2, $dst|$dst, $src2, $src3}",
804 [(store (fshr GR64:$src2, (loadi64 addr:$dst),
805 (i8 imm:$src3)), addr:$dst)]>,
821 def : Pat<(store (rotl (loadi8 addr:$dst), (i8 7)), addr:$dst),
822 (ROR8m1 addr:$dst)>;
823 def : Pat<(store (rotl (loadi16 addr:$dst), (i8 15)), addr:$dst),
824 (ROR16m1 addr:$dst)>;
825 def : Pat<(store (rotl (loadi32 addr:$dst), (i8 31)), addr:$dst),
826 (ROR32m1 addr:$dst)>;
827 def : Pat<(store (rotl (loadi64 addr:$dst), (i8 63)), addr:$dst),
828 (ROR64m1 addr:$dst)>, Requires<[In64BitMode]>;
830 def : Pat<(store (rotr (loadi8 addr:$dst), (i8 7)), addr:$dst),
831 (ROL8m1 addr:$dst)>;
832 def : Pat<(store (rotr (loadi16 addr:$dst), (i8 15)), addr:$dst),
833 (ROL16m1 addr:$dst)>;
834 def : Pat<(store (rotr (loadi32 addr:$dst), (i8 31)), addr:$dst),
835 (ROL32m1 addr:$dst)>;
836 def : Pat<(store (rotr (loadi64 addr:$dst), (i8 63)), addr:$dst),
837 (ROL64m1 addr:$dst)>, Requires<[In64BitMode]>;
845 Constraints = "$src1 = $dst" in {
846 def SHLDROT32ri : I<0, Pseudo, (outs GR32:$dst),
848 [(set GR32:$dst, (rotl GR32:$src1, (i8 imm:$shamt)))]>;
849 def SHLDROT64ri : I<0, Pseudo, (outs GR64:$dst),
851 [(set GR64:$dst, (rotl GR64:$src1, (i8 imm:$shamt)))]>;
853 def SHRDROT32ri : I<0, Pseudo, (outs GR32:$dst),
855 [(set GR32:$dst, (rotr GR32:$src1, (i8 imm:$shamt)))]>;
856 def SHRDROT64ri : I<0, Pseudo, (outs GR64:$dst),
858 [(set GR64:$dst, (rotr GR64:$src1, (i8 imm:$shamt)))]>;
875 def ri : Ii8<0xF0, MRMSrcReg, (outs RC:$dst), (ins RC:$src1, u8imm:$src2),
876 !strconcat(asm, "\t{$src2, $src1, $dst|$dst, $src1, $src2}"),
879 def mi : Ii8<0xF0, MRMSrcMem, (outs RC:$dst),
881 !strconcat(asm, "\t{$src2, $src1, $dst|$dst, $src1, $src2}"),
888 def rr : I<0xF7, MRMSrcReg4VOp3, (outs RC:$dst), (ins RC:$src1, RC:$src2),
889 !strconcat(asm, "\t{$src2, $src1, $dst|$dst, $src1, $src2}"), []>,
893 (outs RC:$dst), (ins x86memop:$src1, RC:$src2),
894 !strconcat(asm, "\t{$src2, $src1, $dst|$dst, $src1, $src2}"), []>,