ppc64-encoding.s revision 9679c47a07386cbf3547a0927609c7ee080b2aab
1
2# RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck %s
3
4# Branch facility
5
6# Branch instructions
7
8# CHECK: b target                        # encoding: [0b010010AA,A,A,0bAAAAAA00]
9# CHECK-NEXT:                            #   fixup A - offset: 0, value: target, kind: fixup_ppc_br24
10         b target
11# CHECK: ba target                       # encoding: [0b010010AA,A,A,0bAAAAAA10]
12# CHECK-NEXT:                            #   fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
13         ba target
14# CHECK: bl target                       # encoding: [0b010010AA,A,A,0bAAAAAA01]
15# CHECK-NEXT:                            #   fixup A - offset: 0, value: target, kind: fixup_ppc_br24
16         bl target
17# CHECK: bla target                      # encoding: [0b010010AA,A,A,0bAAAAAA11]
18# CHECK-NEXT:                            #   fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
19         bla target
20
21# FIXME: bc 4, 10, target
22# FIXME: bca 4, 10, target
23# FIXME: bcl 4, 10, target
24# FIXME: bcla 4, 10, target
25
26# FIXME: bclr 4, 10, 3
27# FIXME: bclrl 4, 10, 3
28# FIXME: bcctr 4, 10, 3
29# FIXME: bcctrl 4, 10, 3
30
31# Condition register instructions
32
33# FIXME: crand 2, 3, 4
34# FIXME: crnand 2, 3, 4
35# CHECK: cror 2, 3, 4                    # encoding: [0x4c,0x43,0x23,0x82]
36         cror 2, 3, 4
37# FIXME: crxor 2, 3, 4
38# FIXME: crnor 2, 3, 4
39# CHECK: creqv 2, 3, 4                   # encoding: [0x4c,0x43,0x22,0x42]
40         creqv 2, 3, 4
41# FIXME: crandc 2, 3, 4
42# FIXME: crorc 2, 3, 4
43# CHECK: mcrf 2, 3                       # encoding: [0x4d,0x0c,0x00,0x00]
44         mcrf 2, 3
45
46# System call instruction
47
48# CHECK: sc 1                            # encoding: [0x44,0x00,0x00,0x22]
49         sc 1
50# CHECK: sc 0                            # encoding: [0x44,0x00,0x00,0x02]
51         sc
52
53# Fixed-point facility
54
55# Fixed-point load instructions
56
57# CHECK: lbz 2, 128(4)                   # encoding: [0x88,0x44,0x00,0x80]
58         lbz 2, 128(4)
59# CHECK: lbzx 2, 3, 4                    # encoding: [0x7c,0x43,0x20,0xae]
60         lbzx 2, 3, 4
61# CHECK: lbzu 2, 128(4)                  # encoding: [0x8c,0x44,0x00,0x80]
62         lbzu 2, 128(4)
63# CHECK: lbzux 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0xee]
64         lbzux 2, 3, 4
65# CHECK: lhz 2, 128(4)                   # encoding: [0xa0,0x44,0x00,0x80]
66         lhz 2, 128(4)
67# CHECK: lhzx 2, 3, 4                    # encoding: [0x7c,0x43,0x22,0x2e]
68         lhzx 2, 3, 4
69# CHECK: lhzu 2, 128(4)                  # encoding: [0xa4,0x44,0x00,0x80]
70         lhzu 2, 128(4)
71# CHECK: lhzux 2, 3, 4                   # encoding: [0x7c,0x43,0x22,0x6e]
72         lhzux 2, 3, 4
73# CHECK: lha 2, 128(4)                   # encoding: [0xa8,0x44,0x00,0x80]
74         lha 2, 128(4)
75# CHECK: lhax 2, 3, 4                    # encoding: [0x7c,0x43,0x22,0xae]
76         lhax 2, 3, 4
77# CHECK: lhau 2, 128(4)                  # encoding: [0xac,0x44,0x00,0x80]
78         lhau 2, 128(4)
79# CHECK: lhaux 2, 3, 4                   # encoding: [0x7c,0x43,0x22,0xee]
80         lhaux 2, 3, 4
81# CHECK: lwz 2, 128(4)                   # encoding: [0x80,0x44,0x00,0x80]
82         lwz 2, 128(4)
83# CHECK: lwzx 2, 3, 4                    # encoding: [0x7c,0x43,0x20,0x2e]
84         lwzx 2, 3, 4
85# CHECK: lwzu 2, 128(4)                  # encoding: [0x84,0x44,0x00,0x80]
86         lwzu 2, 128(4)
87# CHECK: lwzux 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x6e]
88         lwzux 2, 3, 4
89# CHECK: lwa 2, 128(4)                   # encoding: [0xe8,0x44,0x00,0x82]
90         lwa 2, 128(4)
91# CHECK: lwax 2, 3, 4                    # encoding: [0x7c,0x43,0x22,0xaa]
92         lwax 2, 3, 4
93# CHECK: lwaux 2, 3, 4                   # encoding: [0x7c,0x43,0x22,0xea]
94         lwaux 2, 3, 4
95# CHECK: ld 2, 128(4)                    # encoding: [0xe8,0x44,0x00,0x80]
96         ld 2, 128(4)
97# CHECK: ldx 2, 3, 4                     # encoding: [0x7c,0x43,0x20,0x2a]
98         ldx 2, 3, 4
99# CHECK: ldu 2, 128(4)                   # encoding: [0xe8,0x44,0x00,0x81]
100         ldu 2, 128(4)
101# CHECK: ldux 2, 3, 4                    # encoding: [0x7c,0x43,0x20,0x6a]
102         ldux 2, 3, 4
103
104# Fixed-point store instructions
105
106# CHECK: stb 2, 128(4)                   # encoding: [0x98,0x44,0x00,0x80]
107         stb 2, 128(4)
108# CHECK: stbx 2, 3, 4                    # encoding: [0x7c,0x43,0x21,0xae]
109         stbx 2, 3, 4
110# CHECK: stbu 2, 128(4)                  # encoding: [0x9c,0x44,0x00,0x80]
111         stbu 2, 128(4)
112# CHECK: stbux 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0xee]
113         stbux 2, 3, 4
114# CHECK: sth 2, 128(4)                   # encoding: [0xb0,0x44,0x00,0x80]
115         sth 2, 128(4)
116# CHECK: sthx 2, 3, 4                    # encoding: [0x7c,0x43,0x23,0x2e]
117         sthx 2, 3, 4
118# CHECK: sthu 2, 128(4)                  # encoding: [0xb4,0x44,0x00,0x80]
119         sthu 2, 128(4)
120# CHECK: sthux 2, 3, 4                   # encoding: [0x7c,0x43,0x23,0x6e]
121         sthux 2, 3, 4
122# CHECK: stw 2, 128(4)                   # encoding: [0x90,0x44,0x00,0x80]
123         stw 2, 128(4)
124# CHECK: stwx 2, 3, 4                    # encoding: [0x7c,0x43,0x21,0x2e]
125         stwx 2, 3, 4
126# CHECK: stwu 2, 128(4)                  # encoding: [0x94,0x44,0x00,0x80]
127         stwu 2, 128(4)
128# CHECK: stwux 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0x6e]
129         stwux 2, 3, 4
130# CHECK: std 2, 128(4)                   # encoding: [0xf8,0x44,0x00,0x80]
131         std 2, 128(4)
132# CHECK: stdx 2, 3, 4                    # encoding: [0x7c,0x43,0x21,0x2a]
133         stdx 2, 3, 4
134# CHECK: stdu 2, 128(4)                  # encoding: [0xf8,0x44,0x00,0x81]
135         stdu 2, 128(4)
136# CHECK: stdux 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0x6a]
137         stdux 2, 3, 4
138
139# Fixed-point load and store with byte reversal instructions
140
141# CHECK: lhbrx 2, 3, 4                   # encoding: [0x7c,0x43,0x26,0x2c]
142         lhbrx 2, 3, 4
143# CHECK: sthbrx 2, 3, 4                  # encoding: [0x7c,0x43,0x27,0x2c]
144         sthbrx 2, 3, 4
145# CHECK: lwbrx 2, 3, 4                   # encoding: [0x7c,0x43,0x24,0x2c]
146         lwbrx 2, 3, 4
147# CHECK: stwbrx 2, 3, 4                  # encoding: [0x7c,0x43,0x25,0x2c]
148         stwbrx 2, 3, 4
149# CHECK: ldbrx 2, 3, 4                   # encoding: [0x7c,0x43,0x24,0x28]
150         ldbrx 2, 3, 4
151# CHECK: stdbrx 2, 3, 4                  # encoding: [0x7c,0x43,0x25,0x28]
152         stdbrx 2, 3, 4
153
154# FIXME: Fixed-point load and store multiple instructions
155
156# FIXME: Fixed-point move assist instructions
157
158# Fixed-point arithmetic instructions
159
160# CHECK: addi 2, 3, 128                  # encoding: [0x38,0x43,0x00,0x80]
161         addi 2, 3, 128
162# CHECK: addis 2, 3, 128                 # encoding: [0x3c,0x43,0x00,0x80]
163         addis 2, 3, 128
164# CHECK: add 2, 3, 4                     # encoding: [0x7c,0x43,0x22,0x14]
165         add 2, 3, 4
166# CHECK: add. 2, 3, 4                    # encoding: [0x7c,0x43,0x22,0x15]
167         add. 2, 3, 4
168# FIXME: addo 2, 3, 4
169# FIXME: addo. 2, 3, 4
170# CHECK: subf 2, 3, 4                    # encoding: [0x7c,0x43,0x20,0x50]
171         subf 2, 3, 4
172# CHECK: subf. 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x51]
173         subf. 2, 3, 4
174# FIXME: subfo 2, 3, 4
175# FIXME: subfo. 2, 3, 4
176# CHECK: addic 2, 3, 128                 # encoding: [0x30,0x43,0x00,0x80]
177         addic 2, 3, 128
178# CHECK: addic. 2, 3, 128                # encoding: [0x34,0x43,0x00,0x80]
179         addic. 2, 3, 128
180# CHECK: subfic 2, 3, 4                  # encoding: [0x20,0x43,0x00,0x04]
181         subfic 2, 3, 4
182
183# CHECK: addc 2, 3, 4                    # encoding: [0x7c,0x43,0x20,0x14]
184         addc 2, 3, 4
185# CHECK: addc. 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x15]
186         addc. 2, 3, 4
187# FIXME: addco 2, 3, 4
188# FIXME: addco. 2, 3, 4
189# CHECK: subfc 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x10]
190         subfc 2, 3, 4
191# CHECK: subfc 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x10]
192         subfc 2, 3, 4
193# FIXME: subfco 2, 3, 4
194# FIXME: subfco. 2, 3, 4
195
196# CHECK: adde 2, 3, 4                    # encoding: [0x7c,0x43,0x21,0x14]
197         adde 2, 3, 4
198# CHECK: adde. 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0x15]
199         adde. 2, 3, 4
200# FIXME: addeo 2, 3, 4
201# FIXME: addeo. 2, 3, 4
202# CHECK: subfe 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0x10]
203         subfe 2, 3, 4
204# CHECK: subfe. 2, 3, 4                  # encoding: [0x7c,0x43,0x21,0x11]
205         subfe. 2, 3, 4
206# FIXME: subfeo 2, 3, 4
207# FIXME: subfeo. 2, 3, 4
208
209# CHECK: addme 2, 3                      # encoding: [0x7c,0x43,0x01,0xd4]
210         addme 2, 3
211# CHECK: addme. 2, 3                     # encoding: [0x7c,0x43,0x01,0xd5]
212         addme. 2, 3
213# FIXME: addmeo 2, 3
214# FIXME: addmeo. 2, 3
215# CHECK: subfme 2, 3                     # encoding: [0x7c,0x43,0x01,0xd0]
216         subfme 2, 3
217# CHECK: subfme. 2, 3                    # encoding: [0x7c,0x43,0x01,0xd1]
218         subfme. 2, 3
219# FIXME: subfmeo 2, 3
220# FIXME: subfmeo. 2, 3
221
222# CHECK: addze 2, 3                      # encoding: [0x7c,0x43,0x01,0x94]
223         addze 2, 3
224# CHECK: addze. 2, 3                     # encoding: [0x7c,0x43,0x01,0x95]
225         addze. 2, 3
226# FIXME: addzeo 2, 3
227# FIXME: addzeo. 2, 3
228# CHECK: subfze 2, 3                     # encoding: [0x7c,0x43,0x01,0x90]
229         subfze 2, 3
230# CHECK: subfze. 2, 3                    # encoding: [0x7c,0x43,0x01,0x91]
231         subfze. 2, 3
232# FIXME: subfzeo 2, 3
233# FIXME: subfzeo. 2, 3
234
235# CHECK: neg 2, 3                        # encoding: [0x7c,0x43,0x00,0xd0]
236         neg 2, 3
237# CHECK: neg. 2, 3                       # encoding: [0x7c,0x43,0x00,0xd1]
238         neg. 2, 3
239# FIXME: nego 2, 3
240# FIXME: nego. 2, 3
241
242# CHECK: mulli 2, 3, 128                 # encoding: [0x1c,0x43,0x00,0x80]
243         mulli 2, 3, 128
244# CHECK: mulhw 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x96]
245         mulhw 2, 3, 4
246# CHECK: mulhw. 2, 3, 4                  # encoding: [0x7c,0x43,0x20,0x97]
247         mulhw. 2, 3, 4
248# CHECK: mullw 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0xd6]
249         mullw 2, 3, 4
250# CHECK: mullw. 2, 3, 4                  # encoding: [0x7c,0x43,0x21,0xd7]
251         mullw. 2, 3, 4
252# FIXME: mullwo 2, 3, 4
253# FIXME: mullwo. 2, 3, 4
254# CHECK: mulhwu 2, 3, 4                  # encoding: [0x7c,0x43,0x20,0x16]
255         mulhwu 2, 3, 4
256# CHECK: mulhwu. 2, 3, 4                 # encoding: [0x7c,0x43,0x20,0x17]
257         mulhwu. 2, 3, 4
258
259# CHECK: divw 2, 3, 4                    # encoding: [0x7c,0x43,0x23,0xd6]
260         divw 2, 3, 4
261# CHECK: divw. 2, 3, 4                   # encoding: [0x7c,0x43,0x23,0xd7]
262         divw. 2, 3, 4
263# FIXME: divwo 2, 3, 4
264# FIXME: divwo. 2, 3, 4
265# CHECK: divwu 2, 3, 4                   # encoding: [0x7c,0x43,0x23,0x96]
266         divwu 2, 3, 4
267# CHECK: divwu. 2, 3, 4                  # encoding: [0x7c,0x43,0x23,0x97]
268         divwu. 2, 3, 4
269# FIXME: divwuo 2, 3, 4
270# FIXME: divwuo. 2, 3, 4
271# FIXME: divwe 2, 3, 4
272# FIXME: divwe. 2, 3, 4
273# FIXME: divweo 2, 3, 4
274# FIXME: divweo. 2, 3, 4
275# FIXME: divweu 2, 3, 4
276# FIXME: divweu. 2, 3, 4
277# FIXME: divweuo 2, 3, 4
278# FIXME: divweuo. 2, 3, 4
279
280# CHECK: mulld 2, 3, 4                   # encoding: [0x7c,0x43,0x21,0xd2]
281         mulld 2, 3, 4
282# CHECK: mulld. 2, 3, 4                  # encoding: [0x7c,0x43,0x21,0xd3]
283         mulld. 2, 3, 4
284# FIXME: mulldo 2, 3, 4
285# FIXME: mulldo. 2, 3, 4
286# CHECK: mulhd 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x92]
287         mulhd 2, 3, 4
288# CHECK: mulhd. 2, 3, 4                  # encoding: [0x7c,0x43,0x20,0x93]
289         mulhd. 2, 3, 4
290# CHECK: mulhdu 2, 3, 4                  # encoding: [0x7c,0x43,0x20,0x12]
291         mulhdu 2, 3, 4
292# CHECK: mulhdu. 2, 3, 4                 # encoding: [0x7c,0x43,0x20,0x13]
293         mulhdu. 2, 3, 4
294
295# CHECK: divd 2, 3, 4                    # encoding: [0x7c,0x43,0x23,0xd2]
296         divd 2, 3, 4
297# CHECK: divd. 2, 3, 4                   # encoding: [0x7c,0x43,0x23,0xd3]
298         divd. 2, 3, 4
299# FIXME: divdo 2, 3, 4
300# FIXME: divdo. 2, 3, 4
301# CHECK: divdu 2, 3, 4                   # encoding: [0x7c,0x43,0x23,0x92]
302         divdu 2, 3, 4
303# CHECK: divdu. 2, 3, 4                  # encoding: [0x7c,0x43,0x23,0x93]
304         divdu. 2, 3, 4
305# FIXME: divduo 2, 3, 4
306# FIXME: divduo. 2, 3, 4
307# FIXME: divde 2, 3, 4
308# FIXME: divde. 2, 3, 4
309# FIXME: divdeo 2, 3, 4
310# FIXME: divdeo. 2, 3, 4
311# FIXME: divdeu 2, 3, 4
312# FIXME: divdeu. 2, 3, 4
313# FIXME: divdeuo 2, 3, 4
314# FIXME: divdeuo. 2, 3, 4
315
316# FIXME: Fixed-point compare instructions
317
318# FIXME: Fixed-point trap instructions
319
320# Fixed-point select
321
322# CHECK: isel 2, 3, 4, 5                 # encoding: [0x7c,0x43,0x21,0x5e]
323         isel 2, 3, 4, 5
324
325# Fixed-point logical instructions
326
327# CHECK: andi. 2, 3, 128                 # encoding: [0x70,0x62,0x00,0x80]
328         andi. 2, 3, 128
329# CHECK: andis. 2, 3, 128                # encoding: [0x74,0x62,0x00,0x80]
330         andis. 2, 3, 128
331# CHECK: ori 2, 3, 128                   # encoding: [0x60,0x62,0x00,0x80]
332         ori 2, 3, 128
333# CHECK: oris 2, 3, 128                  # encoding: [0x64,0x62,0x00,0x80]
334         oris 2, 3, 128
335# CHECK: xori 2, 3, 128                  # encoding: [0x68,0x62,0x00,0x80]
336         xori 2, 3, 128
337# CHECK: xoris 2, 3, 128                 # encoding: [0x6c,0x62,0x00,0x80]
338         xoris 2, 3, 128
339# CHECK: and 2, 3, 4                     # encoding: [0x7c,0x62,0x20,0x38]
340         and 2, 3, 4
341# CHECK: and. 2, 3, 4                    # encoding: [0x7c,0x62,0x20,0x39]
342         and. 2, 3, 4
343# CHECK: xor 2, 3, 4                     # encoding: [0x7c,0x62,0x22,0x78]
344         xor 2, 3, 4
345# CHECK: xor. 2, 3, 4                    # encoding: [0x7c,0x62,0x22,0x79]
346         xor. 2, 3, 4
347# CHECK: nand 2, 3, 4                    # encoding: [0x7c,0x62,0x23,0xb8]
348         nand 2, 3, 4
349# CHECK: nand. 2, 3, 4                   # encoding: [0x7c,0x62,0x23,0xb9]
350         nand. 2, 3, 4
351# CHECK: or 2, 3, 4                      # encoding: [0x7c,0x62,0x23,0x78]
352         or 2, 3, 4
353# CHECK: or. 2, 3, 4                     # encoding: [0x7c,0x62,0x23,0x79]
354         or. 2, 3, 4
355# CHECK: nor 2, 3, 4                     # encoding: [0x7c,0x62,0x20,0xf8]
356         nor 2, 3, 4
357# CHECK: nor. 2, 3, 4                    # encoding: [0x7c,0x62,0x20,0xf9]
358         nor. 2, 3, 4
359# CHECK: eqv 2, 3, 4                     # encoding: [0x7c,0x62,0x22,0x38]
360         eqv 2, 3, 4
361# CHECK: eqv. 2, 3, 4                    # encoding: [0x7c,0x62,0x22,0x39]
362         eqv. 2, 3, 4
363# CHECK: andc 2, 3, 4                    # encoding: [0x7c,0x62,0x20,0x78]
364         andc 2, 3, 4
365# CHECK: andc. 2, 3, 4                   # encoding: [0x7c,0x62,0x20,0x79]
366         andc. 2, 3, 4
367# CHECK: orc 2, 3, 4                     # encoding: [0x7c,0x62,0x23,0x38]
368         orc 2, 3, 4
369# CHECK: orc. 2, 3, 4                    # encoding: [0x7c,0x62,0x23,0x39]
370         orc. 2, 3, 4
371
372# CHECK: extsb 2, 3                      # encoding: [0x7c,0x62,0x07,0x74]
373         extsb 2, 3
374# CHECK: extsb. 2, 3                     # encoding: [0x7c,0x62,0x07,0x75]
375         extsb. 2, 3
376# CHECK: extsh 2, 3                      # encoding: [0x7c,0x62,0x07,0x34]
377         extsh 2, 3
378# CHECK: extsh. 2, 3                     # encoding: [0x7c,0x62,0x07,0x35]
379         extsh. 2, 3
380
381# CHECK: cntlzw 2, 3                     # encoding: [0x7c,0x62,0x00,0x34]
382         cntlzw 2, 3
383# CHECK: cntlzw. 2, 3                    # encoding: [0x7c,0x62,0x00,0x35]
384         cntlzw. 2, 3
385# FIXME: cmpb 2, 3, 4
386# FIXME: popcntb 2, 3
387# CHECK: popcntw 2, 3                    # encoding: [0x7c,0x62,0x02,0xf4]
388         popcntw 2, 3
389# FIXME: prtyd 2, 3
390# FIXME: prtyw 2, 3
391
392# CHECK: extsw 2, 3                      # encoding: [0x7c,0x62,0x07,0xb4]
393         extsw 2, 3
394# CHECK: extsw. 2, 3                     # encoding: [0x7c,0x62,0x07,0xb5]
395         extsw. 2, 3
396
397# CHECK: cntlzd 2, 3                     # encoding: [0x7c,0x62,0x00,0x74]
398         cntlzd 2, 3
399# CHECK: cntlzd. 2, 3                    # encoding: [0x7c,0x62,0x00,0x75]
400         cntlzd. 2, 3
401# CHECK: popcntd 2, 3                    # encoding: [0x7c,0x62,0x03,0xf4]
402         popcntd 2, 3
403# FIXME: bpermd 2, 3, 4
404
405# Fixed-point rotate and shift instructions
406
407# CHECK: rlwinm 2, 3, 4, 5, 6            # encoding: [0x54,0x62,0x21,0x4c]
408         rlwinm 2, 3, 4, 5, 6
409# CHECK: rlwinm. 2, 3, 4, 5, 6           # encoding: [0x54,0x62,0x21,0x4d]
410         rlwinm. 2, 3, 4, 5, 6
411# CHECK: rlwnm 2, 3, 4, 5, 6             # encoding: [0x5c,0x62,0x21,0x4c]
412         rlwnm 2, 3, 4, 5, 6
413# CHECK: rlwnm. 2, 3, 4, 5, 6            # encoding: [0x5c,0x62,0x21,0x4d]
414         rlwnm. 2, 3, 4, 5, 6
415# CHECK: rlwimi 2, 3, 4, 5, 6            # encoding: [0x50,0x62,0x21,0x4c]
416         rlwimi 2, 3, 4, 5, 6
417# CHECK: rlwimi. 2, 3, 4, 5, 6           # encoding: [0x50,0x62,0x21,0x4d]
418         rlwimi. 2, 3, 4, 5, 6
419# CHECK: rldicl 2, 3, 4, 5               # encoding: [0x78,0x62,0x21,0x40]
420         rldicl 2, 3, 4, 5
421# CHECK: rldicl. 2, 3, 4, 5              # encoding: [0x78,0x62,0x21,0x41]
422         rldicl. 2, 3, 4, 5
423# CHECK: rldicr 2, 3, 4, 5               # encoding: [0x78,0x62,0x21,0x44]
424         rldicr 2, 3, 4, 5
425# CHECK: rldicr. 2, 3, 4, 5              # encoding: [0x78,0x62,0x21,0x45]
426         rldicr. 2, 3, 4, 5
427# FIXME: rldic 2, 3, 4, 5
428# FIXME: rldic. 2, 3, 4, 5
429# CHECK: rldcl 2, 3, 4, 5                # encoding: [0x78,0x62,0x21,0x50]
430         rldcl 2, 3, 4, 5
431# CHECK: rldcl. 2, 3, 4, 5               # encoding: [0x78,0x62,0x21,0x51]
432         rldcl. 2, 3, 4, 5
433# FIXME: rldcr 2, 3, 4, 5
434# FIXME: rldcr. 2, 3, 4, 5
435# CHECK: rldimi 2, 3, 4, 5               # encoding: [0x78,0x62,0x21,0x4c]
436         rldimi 2, 3, 4, 5
437# CHECK: rldimi. 2, 3, 4, 5              # encoding: [0x78,0x62,0x21,0x4d]
438         rldimi. 2, 3, 4, 5
439
440# CHECK: slw 2, 3, 4                     # encoding: [0x7c,0x62,0x20,0x30]
441         slw 2, 3, 4
442# CHECK: slw. 2, 3, 4                    # encoding: [0x7c,0x62,0x20,0x31]
443         slw. 2, 3, 4
444# CHECK: srw 2, 3, 4                     # encoding: [0x7c,0x62,0x24,0x30]
445         srw 2, 3, 4
446# CHECK: srw. 2, 3, 4                    # encoding: [0x7c,0x62,0x24,0x31]
447         srw. 2, 3, 4
448# CHECK: srawi 2, 3, 4                   # encoding: [0x7c,0x62,0x26,0x70]
449         srawi 2, 3, 4
450# CHECK: srawi. 2, 3, 4                  # encoding: [0x7c,0x62,0x26,0x71]
451         srawi. 2, 3, 4
452# CHECK: sraw 2, 3, 4                    # encoding: [0x7c,0x62,0x26,0x30]
453         sraw 2, 3, 4
454# CHECK: sraw. 2, 3, 4                   # encoding: [0x7c,0x62,0x26,0x31]
455         sraw. 2, 3, 4
456# CHECK: sld 2, 3, 4                     # encoding: [0x7c,0x62,0x20,0x36]
457         sld 2, 3, 4
458# CHECK: sld. 2, 3, 4                    # encoding: [0x7c,0x62,0x20,0x37]
459         sld. 2, 3, 4
460# CHECK: srd 2, 3, 4                     # encoding: [0x7c,0x62,0x24,0x36]
461         srd 2, 3, 4
462# CHECK: srd. 2, 3, 4                    # encoding: [0x7c,0x62,0x24,0x37]
463         srd. 2, 3, 4
464# CHECK: sradi 2, 3, 4                   # encoding: [0x7c,0x62,0x26,0x74]
465         sradi 2, 3, 4
466# CHECK: sradi. 2, 3, 4                  # encoding: [0x7c,0x62,0x26,0x75]
467         sradi. 2, 3, 4
468# CHECK: srad 2, 3, 4                    # encoding: [0x7c,0x62,0x26,0x34]
469         srad 2, 3, 4
470# CHECK: srad. 2, 3, 4                   # encoding: [0x7c,0x62,0x26,0x35]
471         srad. 2, 3, 4
472
473# FIXME: BCD assist instructions
474
475# Move to/from system register instructions
476
477# FIXME: mtspr 256, 2
478# FIXME: mfspr 2, 256
479# CHECK: mtcrf 16, 2                     # encoding: [0x7c,0x41,0x01,0x20]
480         mtcrf 16, 2
481# CHECK: mfcr 2                          # encoding: [0x7c,0x40,0x00,0x26]
482         mfcr 2
483# FIXME: mtocrf 16, 2
484# CHECK: mfocrf 16, 8                    # encoding: [0x7e,0x10,0x80,0x26]
485         mfocrf 16, 8
486# FIXME: mcrxr 2
487
488