2 # RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
3 # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
9 # CHECK-BE: b target # encoding: [0b010010AA,A,A,0bAAAAAA00]
10 # CHECK-LE: b target # encoding: [0bAAAAAA00,A,A,0b010010AA]
11 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24
12 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24
14 # CHECK-BE: ba target # encoding: [0b010010AA,A,A,0bAAAAAA10]
15 # CHECK-LE: ba target # encoding: [0bAAAAAA10,A,A,0b010010AA]
16 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
17 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
19 # CHECK-BE: bl target # encoding: [0b010010AA,A,A,0bAAAAAA01]
20 # CHECK-LE: bl target # encoding: [0bAAAAAA01,A,A,0b010010AA]
21 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24
22 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24
24 # CHECK-BE: bla target # encoding: [0b010010AA,A,A,0bAAAAAA11]
25 # CHECK-LE: bla target # encoding: [0bAAAAAA11,A,A,0b010010AA]
26 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
27 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_br24abs
30 # CHECK-BE: bf 10, target # encoding: [0x40,0x8a,A,0bAAAAAA00]
31 # CHECK-LE: bf 10, target # encoding: [0bAAAAAA00,A,0x8a,0x40]
32 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
33 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
35 # CHECK-BE: bfa 10, target # encoding: [0x40,0x8a,A,0bAAAAAA10]
36 # CHECK-LE: bfa 10, target # encoding: [0bAAAAAA10,A,0x8a,0x40]
37 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
38 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
40 # CHECK-BE: bfl 10, target # encoding: [0x40,0x8a,A,0bAAAAAA01]
41 # CHECK-LE: bfl 10, target # encoding: [0bAAAAAA01,A,0x8a,0x40]
42 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
43 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
45 # CHECK-BE: bfla 10, target # encoding: [0x40,0x8a,A,0bAAAAAA11]
46 # CHECK-LE: bfla 10, target # encoding: [0bAAAAAA11,A,0x8a,0x40]
47 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
48 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
51 # CHECK-BE: bc+ 12, 28, target # encoding: [0x41,0xfc,A,0bAAAAAA00]
52 # CHECK-LE: bc+ 12, 28, target # encoding: [0bAAAAAA00,A,0xfc,0x41]
53 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
54 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
56 # CHECK-BE: bc- 12, 28, target # encoding: [0x41,0xdc,A,0bAAAAAA00]
57 # CHECK-LE: bc- 12, 28, target # encoding: [0bAAAAAA00,A,0xdc,0x41]
58 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
59 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
61 # CHECK-BE: bca+ 12, 28, target # encoding: [0x41,0xfc,A,0bAAAAAA10]
62 # CHECK-LE: bca+ 12, 28, target # encoding: [0bAAAAAA10,A,0xfc,0x41]
63 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
64 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
66 # CHECK-BE: bca- 12, 28, target # encoding: [0x41,0xdc,A,0bAAAAAA10]
67 # CHECK-LE: bca- 12, 28, target # encoding: [0bAAAAAA10,A,0xdc,0x41]
68 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
69 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
71 # CHECK-BE: bcl+ 12, 28, target # encoding: [0x41,0xfc,A,0bAAAAAA01]
72 # CHECK-LE: bcl+ 12, 28, target # encoding: [0bAAAAAA01,A,0xfc,0x41]
73 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
74 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
76 # CHECK-BE: bcl- 12, 28, target # encoding: [0x41,0xdc,A,0bAAAAAA01]
77 # CHECK-LE: bcl- 12, 28, target # encoding: [0bAAAAAA01,A,0xdc,0x41]
78 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
79 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14
81 # CHECK-BE: bcla+ 12, 28, target # encoding: [0x41,0xfc,A,0bAAAAAA11]
82 # CHECK-LE: bcla+ 12, 28, target # encoding: [0bAAAAAA11,A,0xfc,0x41]
83 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
84 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
86 # CHECK-BE: bcla- 12, 28, target # encoding: [0x41,0xdc,A,0bAAAAAA11]
87 # CHECK-LE: bcla- 12, 28, target # encoding: [0bAAAAAA11,A,0xdc,0x41]
88 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
89 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc_brcond14abs
92 # CHECK-BE: bclr 4, 10, 3 # encoding: [0x4c,0x8a,0x18,0x20]
93 # CHECK-LE: bclr 4, 10, 3 # encoding: [0x20,0x18,0x8a,0x4c]
95 # CHECK-BE: bclr 4, 10 # encoding: [0x4c,0x8a,0x00,0x20]
96 # CHECK-LE: bclr 4, 10 # encoding: [0x20,0x00,0x8a,0x4c]
98 # CHECK-BE: bclrl 4, 10, 3 # encoding: [0x4c,0x8a,0x18,0x21]
99 # CHECK-LE: bclrl 4, 10, 3 # encoding: [0x21,0x18,0x8a,0x4c]
101 # CHECK-BE: bclrl 4, 10 # encoding: [0x4c,0x8a,0x00,0x21]
102 # CHECK-LE: bclrl 4, 10 # encoding: [0x21,0x00,0x8a,0x4c]
104 # CHECK-BE: bcctr 4, 10, 3 # encoding: [0x4c,0x8a,0x1c,0x20]
105 # CHECK-LE: bcctr 4, 10, 3 # encoding: [0x20,0x1c,0x8a,0x4c]
107 # CHECK-BE: bcctr 4, 10 # encoding: [0x4c,0x8a,0x04,0x20]
108 # CHECK-LE: bcctr 4, 10 # encoding: [0x20,0x04,0x8a,0x4c]
110 # CHECK-BE: bcctrl 4, 10, 3 # encoding: [0x4c,0x8a,0x1c,0x21]
111 # CHECK-LE: bcctrl 4, 10, 3 # encoding: [0x21,0x1c,0x8a,0x4c]
113 # CHECK-BE: bcctrl 4, 10 # encoding: [0x4c,0x8a,0x04,0x21]
114 # CHECK-LE: bcctrl 4, 10 # encoding: [0x21,0x04,0x8a,0x4c]
117 # Condition register instructions
119 # CHECK-BE: crand 2, 3, 4 # encoding: [0x4c,0x43,0x22,0x02]
120 # CHECK-LE: crand 2, 3, 4 # encoding: [0x02,0x22,0x43,0x4c]
122 # CHECK-BE: crnand 2, 3, 4 # encoding: [0x4c,0x43,0x21,0xc2]
123 # CHECK-LE: crnand 2, 3, 4 # encoding: [0xc2,0x21,0x43,0x4c]
125 # CHECK-BE: cror 2, 3, 4 # encoding: [0x4c,0x43,0x23,0x82]
126 # CHECK-LE: cror 2, 3, 4 # encoding: [0x82,0x23,0x43,0x4c]
128 # CHECK-BE: crxor 2, 3, 4 # encoding: [0x4c,0x43,0x21,0x82]
129 # CHECK-LE: crxor 2, 3, 4 # encoding: [0x82,0x21,0x43,0x4c]
131 # CHECK-BE: crnor 2, 3, 4 # encoding: [0x4c,0x43,0x20,0x42]
132 # CHECK-LE: crnor 2, 3, 4 # encoding: [0x42,0x20,0x43,0x4c]
134 # CHECK-BE: creqv 2, 3, 4 # encoding: [0x4c,0x43,0x22,0x42]
135 # CHECK-LE: creqv 2, 3, 4 # encoding: [0x42,0x22,0x43,0x4c]
137 # CHECK-BE: crandc 2, 3, 4 # encoding: [0x4c,0x43,0x21,0x02]
138 # CHECK-LE: crandc 2, 3, 4 # encoding: [0x02,0x21,0x43,0x4c]
140 # CHECK-BE: crorc 2, 3, 4 # encoding: [0x4c,0x43,0x23,0x42]
141 # CHECK-LE: crorc 2, 3, 4 # encoding: [0x42,0x23,0x43,0x4c]
143 # CHECK-BE: mcrf 2, 3 # encoding: [0x4d,0x0c,0x00,0x00]
144 # CHECK-LE: mcrf 2, 3 # encoding: [0x00,0x00,0x0c,0x4d]
147 # System call instruction
149 # CHECK-BE: sc 1 # encoding: [0x44,0x00,0x00,0x22]
150 # CHECK-LE: sc 1 # encoding: [0x22,0x00,0x00,0x44]
152 # CHECK-BE: sc # encoding: [0x44,0x00,0x00,0x02]
153 # CHECK-LE: sc # encoding: [0x02,0x00,0x00,0x44]
156 # Branch history rolling buffer
158 # CHECK-BE: clrbhrb # encoding: [0x7c,0x00,0x03,0x5c]
159 # CHECK-LE: clrbhrb # encoding: [0x5c,0x03,0x00,0x7c]
161 # CHECK-BE: mfbhrbe 9, 983 # encoding: [0x7d,0x3e,0xba,0x5c]
162 # CHECK-LE: mfbhrbe 9, 983 # encoding: [0x5c,0xba,0x3e,0x7d]
164 # CHECK-BE: rfebb # encoding: [0x4c,0x00,0x09,0x24]
165 # CHECK-LE: rfebb # encoding: [0x24,0x09,0x00,0x4c]
168 # Fixed-point facility
170 # Fixed-point load instructions
172 # CHECK-BE: lbz 2, 128(4) # encoding: [0x88,0x44,0x00,0x80]
173 # CHECK-LE: lbz 2, 128(4) # encoding: [0x80,0x00,0x44,0x88]
175 # CHECK-BE: lbzx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xae]
176 # CHECK-LE: lbzx 2, 3, 4 # encoding: [0xae,0x20,0x43,0x7c]
178 # CHECK-BE: lbzu 2, 128(4) # encoding: [0x8c,0x44,0x00,0x80]
179 # CHECK-LE: lbzu 2, 128(4) # encoding: [0x80,0x00,0x44,0x8c]
181 # CHECK-BE: lbzux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xee]
182 # CHECK-LE: lbzux 2, 3, 4 # encoding: [0xee,0x20,0x43,0x7c]
184 # CHECK-BE: lhz 2, 128(4) # encoding: [0xa0,0x44,0x00,0x80]
185 # CHECK-LE: lhz 2, 128(4) # encoding: [0x80,0x00,0x44,0xa0]
187 # CHECK-BE: lhzx 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x2e]
188 # CHECK-LE: lhzx 2, 3, 4 # encoding: [0x2e,0x22,0x43,0x7c]
190 # CHECK-BE: lhzu 2, 128(4) # encoding: [0xa4,0x44,0x00,0x80]
191 # CHECK-LE: lhzu 2, 128(4) # encoding: [0x80,0x00,0x44,0xa4]
193 # CHECK-BE: lhzux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x6e]
194 # CHECK-LE: lhzux 2, 3, 4 # encoding: [0x6e,0x22,0x43,0x7c]
196 # CHECK-BE: lha 2, 128(4) # encoding: [0xa8,0x44,0x00,0x80]
197 # CHECK-LE: lha 2, 128(4) # encoding: [0x80,0x00,0x44,0xa8]
199 # CHECK-BE: lhax 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xae]
200 # CHECK-LE: lhax 2, 3, 4 # encoding: [0xae,0x22,0x43,0x7c]
202 # CHECK-BE: lhau 2, 128(4) # encoding: [0xac,0x44,0x00,0x80]
203 # CHECK-LE: lhau 2, 128(4) # encoding: [0x80,0x00,0x44,0xac]
205 # CHECK-BE: lhaux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xee]
206 # CHECK-LE: lhaux 2, 3, 4 # encoding: [0xee,0x22,0x43,0x7c]
208 # CHECK-BE: lwz 2, 128(4) # encoding: [0x80,0x44,0x00,0x80]
209 # CHECK-LE: lwz 2, 128(4) # encoding: [0x80,0x00,0x44,0x80]
211 # CHECK-BE: lwzx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x2e]
212 # CHECK-LE: lwzx 2, 3, 4 # encoding: [0x2e,0x20,0x43,0x7c]
214 # CHECK-BE: lwzu 2, 128(4) # encoding: [0x84,0x44,0x00,0x80]
215 # CHECK-LE: lwzu 2, 128(4) # encoding: [0x80,0x00,0x44,0x84]
217 # CHECK-BE: lwzux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x6e]
218 # CHECK-LE: lwzux 2, 3, 4 # encoding: [0x6e,0x20,0x43,0x7c]
220 # CHECK-BE: lwa 2, 128(4) # encoding: [0xe8,0x44,0x00,0x82]
221 # CHECK-LE: lwa 2, 128(4) # encoding: [0x82,0x00,0x44,0xe8]
223 # CHECK-BE: lwax 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xaa]
224 # CHECK-LE: lwax 2, 3, 4 # encoding: [0xaa,0x22,0x43,0x7c]
226 # CHECK-BE: lwaux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xea]
227 # CHECK-LE: lwaux 2, 3, 4 # encoding: [0xea,0x22,0x43,0x7c]
229 # CHECK-BE: ld 2, 128(4) # encoding: [0xe8,0x44,0x00,0x80]
230 # CHECK-LE: ld 2, 128(4) # encoding: [0x80,0x00,0x44,0xe8]
232 # CHECK-BE: ldx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x2a]
233 # CHECK-LE: ldx 2, 3, 4 # encoding: [0x2a,0x20,0x43,0x7c]
235 # CHECK-BE: ldu 2, 128(4) # encoding: [0xe8,0x44,0x00,0x81]
236 # CHECK-LE: ldu 2, 128(4) # encoding: [0x81,0x00,0x44,0xe8]
238 # CHECK-BE: ldux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x6a]
239 # CHECK-LE: ldux 2, 3, 4 # encoding: [0x6a,0x20,0x43,0x7c]
241 # CHECK-BE: lq 2, 128(4) # encoding: [0xe0,0x44,0x00,0x80]
242 # CHECK-LE: lq 2, 128(4) # encoding: [0x80,0x00,0x44,0xe0]
244 # CHECK-BE: lq 28, 128(30) # encoding: [0xe3,0x9e,0x00,0x80]
245 # CHECK-LE: lq 28, 128(30) # encoding: [0x80,0x00,0x9e,0xe3]
248 # Fixed-point store instructions
250 # CHECK-BE: stb 2, 128(4) # encoding: [0x98,0x44,0x00,0x80]
251 # CHECK-LE: stb 2, 128(4) # encoding: [0x80,0x00,0x44,0x98]
253 # CHECK-BE: stbx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xae]
254 # CHECK-LE: stbx 2, 3, 4 # encoding: [0xae,0x21,0x43,0x7c]
256 # CHECK-BE: stbu 2, 128(4) # encoding: [0x9c,0x44,0x00,0x80]
257 # CHECK-LE: stbu 2, 128(4) # encoding: [0x80,0x00,0x44,0x9c]
259 # CHECK-BE: stbux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xee]
260 # CHECK-LE: stbux 2, 3, 4 # encoding: [0xee,0x21,0x43,0x7c]
262 # CHECK-BE: sth 2, 128(4) # encoding: [0xb0,0x44,0x00,0x80]
263 # CHECK-LE: sth 2, 128(4) # encoding: [0x80,0x00,0x44,0xb0]
265 # CHECK-BE: sthx 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x2e]
266 # CHECK-LE: sthx 2, 3, 4 # encoding: [0x2e,0x23,0x43,0x7c]
268 # CHECK-BE: sthu 2, 128(4) # encoding: [0xb4,0x44,0x00,0x80]
269 # CHECK-LE: sthu 2, 128(4) # encoding: [0x80,0x00,0x44,0xb4]
271 # CHECK-BE: sthux 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x6e]
272 # CHECK-LE: sthux 2, 3, 4 # encoding: [0x6e,0x23,0x43,0x7c]
274 # CHECK-BE: stw 2, 128(4) # encoding: [0x90,0x44,0x00,0x80]
275 # CHECK-LE: stw 2, 128(4) # encoding: [0x80,0x00,0x44,0x90]
277 # CHECK-BE: stwx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x2e]
278 # CHECK-LE: stwx 2, 3, 4 # encoding: [0x2e,0x21,0x43,0x7c]
280 # CHECK-BE: stwu 2, 128(4) # encoding: [0x94,0x44,0x00,0x80]
281 # CHECK-LE: stwu 2, 128(4) # encoding: [0x80,0x00,0x44,0x94]
283 # CHECK-BE: stwux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x6e]
284 # CHECK-LE: stwux 2, 3, 4 # encoding: [0x6e,0x21,0x43,0x7c]
286 # CHECK-BE: std 2, 128(4) # encoding: [0xf8,0x44,0x00,0x80]
287 # CHECK-LE: std 2, 128(4) # encoding: [0x80,0x00,0x44,0xf8]
289 # CHECK-BE: stdx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x2a]
290 # CHECK-LE: stdx 2, 3, 4 # encoding: [0x2a,0x21,0x43,0x7c]
292 # CHECK-BE: stdu 2, 128(4) # encoding: [0xf8,0x44,0x00,0x81]
293 # CHECK-LE: stdu 2, 128(4) # encoding: [0x81,0x00,0x44,0xf8]
295 # CHECK-BE: stdux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x6a]
296 # CHECK-LE: stdux 2, 3, 4 # encoding: [0x6a,0x21,0x43,0x7c]
298 # CHECK-BE: stq 2, 128(4) # encoding: [0xf8,0x44,0x00,0x82]
299 # CHECK-LE: stq 2, 128(4) # encoding: [0x82,0x00,0x44,0xf8]
301 # CHECK-BE: stq 28, 128(30) # encoding: [0xfb,0x9e,0x00,0x82]
302 # CHECK-LE: stq 28, 128(30) # encoding: [0x82,0x00,0x9e,0xfb]
305 # Fixed-point load and store with byte reversal instructions
307 # CHECK-BE: lhbrx 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x2c]
308 # CHECK-LE: lhbrx 2, 3, 4 # encoding: [0x2c,0x26,0x43,0x7c]
310 # CHECK-BE: sthbrx 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x2c]
311 # CHECK-LE: sthbrx 2, 3, 4 # encoding: [0x2c,0x27,0x43,0x7c]
313 # CHECK-BE: lwbrx 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x2c]
314 # CHECK-LE: lwbrx 2, 3, 4 # encoding: [0x2c,0x24,0x43,0x7c]
316 # CHECK-BE: stwbrx 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x2c]
317 # CHECK-LE: stwbrx 2, 3, 4 # encoding: [0x2c,0x25,0x43,0x7c]
319 # CHECK-BE: ldbrx 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x28]
320 # CHECK-LE: ldbrx 2, 3, 4 # encoding: [0x28,0x24,0x43,0x7c]
322 # CHECK-BE: stdbrx 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x28]
323 # CHECK-LE: stdbrx 2, 3, 4 # encoding: [0x28,0x25,0x43,0x7c]
326 # Fixed-point load and store multiple instructions
328 # CHECK-BE: lmw 2, 128(1) # encoding: [0xb8,0x41,0x00,0x80]
329 # CHECK-LE: lmw 2, 128(1) # encoding: [0x80,0x00,0x41,0xb8]
331 # CHECK-BE: stmw 2, 128(1) # encoding: [0xbc,0x41,0x00,0x80]
332 # CHECK-LE: stmw 2, 128(1) # encoding: [0x80,0x00,0x41,0xbc]
335 # FIXME: Fixed-point move assist instructions
337 # Fixed-point arithmetic instructions
339 # CHECK-BE: addi 2, 3, 128 # encoding: [0x38,0x43,0x00,0x80]
340 # CHECK-LE: addi 2, 3, 128 # encoding: [0x80,0x00,0x43,0x38]
342 # CHECK-BE: addis 2, 3, 128 # encoding: [0x3c,0x43,0x00,0x80]
343 # CHECK-LE: addis 2, 3, 128 # encoding: [0x80,0x00,0x43,0x3c]
345 # CHECK-BE: add 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x14]
346 # CHECK-LE: add 2, 3, 4 # encoding: [0x14,0x22,0x43,0x7c]
348 # CHECK-BE: add. 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x15]
349 # CHECK-LE: add. 2, 3, 4 # encoding: [0x15,0x22,0x43,0x7c]
351 # CHECK-BE: addo 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x14]
352 # CHECK-LE: addo 2, 3, 4 # encoding: [0x14,0x26,0x43,0x7c]
354 # CHECK-BE: addo. 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x15]
355 # CHECK-LE: addo. 2, 3, 4 # encoding: [0x15,0x26,0x43,0x7c]
357 # CHECK-BE: sub 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x50]
358 # CHECK-LE: sub 2, 4, 3 # encoding: [0x50,0x20,0x43,0x7c]
360 # CHECK-BE: sub. 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x51]
361 # CHECK-LE: sub. 2, 4, 3 # encoding: [0x51,0x20,0x43,0x7c]
363 # CHECK-BE: subfo 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x50]
364 # CHECK-LE: subfo 2, 3, 4 # encoding: [0x50,0x24,0x43,0x7c]
366 # CHECK-BE: subfo. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x51]
367 # CHECK-LE: subfo. 2, 3, 4 # encoding: [0x51,0x24,0x43,0x7c]
369 # CHECK-BE: addic 2, 3, 128 # encoding: [0x30,0x43,0x00,0x80]
370 # CHECK-LE: addic 2, 3, 128 # encoding: [0x80,0x00,0x43,0x30]
372 # CHECK-BE: addic. 2, 3, 128 # encoding: [0x34,0x43,0x00,0x80]
373 # CHECK-LE: addic. 2, 3, 128 # encoding: [0x80,0x00,0x43,0x34]
375 # CHECK-BE: subfic 2, 3, 4 # encoding: [0x20,0x43,0x00,0x04]
376 # CHECK-LE: subfic 2, 3, 4 # encoding: [0x04,0x00,0x43,0x20]
379 # CHECK-BE: addc 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x14]
380 # CHECK-LE: addc 2, 3, 4 # encoding: [0x14,0x20,0x43,0x7c]
382 # CHECK-BE: addc. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x15]
383 # CHECK-LE: addc. 2, 3, 4 # encoding: [0x15,0x20,0x43,0x7c]
385 # CHECK-BE: addco 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x14]
386 # CHECK-LE: addco 2, 3, 4 # encoding: [0x14,0x24,0x43,0x7c]
388 # CHECK-BE: addco. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x15]
389 # CHECK-LE: addco. 2, 3, 4 # encoding: [0x15,0x24,0x43,0x7c]
391 # CHECK-BE: subc 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x10]
392 # CHECK-LE: subc 2, 4, 3 # encoding: [0x10,0x20,0x43,0x7c]
394 # CHECK-BE: subc 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x10]
395 # CHECK-LE: subc 2, 4, 3 # encoding: [0x10,0x20,0x43,0x7c]
397 # CHECK-BE: subfco 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x10]
398 # CHECK-LE: subfco 2, 3, 4 # encoding: [0x10,0x24,0x43,0x7c]
400 # CHECK-BE: subfco. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x11]
401 # CHECK-LE: subfco. 2, 3, 4 # encoding: [0x11,0x24,0x43,0x7c]
404 # CHECK-BE: adde 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x14]
405 # CHECK-LE: adde 2, 3, 4 # encoding: [0x14,0x21,0x43,0x7c]
407 # CHECK-BE: adde. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x15]
408 # CHECK-LE: adde. 2, 3, 4 # encoding: [0x15,0x21,0x43,0x7c]
410 # CHECK-BE: addeo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x14]
411 # CHECK-LE: addeo 2, 3, 4 # encoding: [0x14,0x25,0x43,0x7c]
413 # CHECK-BE: addeo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x15]
414 # CHECK-LE: addeo. 2, 3, 4 # encoding: [0x15,0x25,0x43,0x7c]
416 # CHECK-BE: addex 2, 4, 5, 0 # encoding: [0x7c,0x44,0x29,0x54]
417 # CHECK-LE: addex 2, 4, 5, 0 # encoding: [0x54,0x29,0x44,0x7c]
419 # CHECK-BE: subfe 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x10]
420 # CHECK-LE: subfe 2, 3, 4 # encoding: [0x10,0x21,0x43,0x7c]
422 # CHECK-BE: subfe. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x11]
423 # CHECK-LE: subfe. 2, 3, 4 # encoding: [0x11,0x21,0x43,0x7c]
425 # CHECK-BE: subfeo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x10]
426 # CHECK-LE: subfeo 2, 3, 4 # encoding: [0x10,0x25,0x43,0x7c]
428 # CHECK-BE: subfeo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x11]
429 # CHECK-LE: subfeo. 2, 3, 4 # encoding: [0x11,0x25,0x43,0x7c]
432 # CHECK-BE: addme 2, 3 # encoding: [0x7c,0x43,0x01,0xd4]
433 # CHECK-LE: addme 2, 3 # encoding: [0xd4,0x01,0x43,0x7c]
435 # CHECK-BE: addme. 2, 3 # encoding: [0x7c,0x43,0x01,0xd5]
436 # CHECK-LE: addme. 2, 3 # encoding: [0xd5,0x01,0x43,0x7c]
438 # CHECK-BE: addmeo 2, 3 # encoding: [0x7c,0x43,0x05,0xd4]
439 # CHECK-LE: addmeo 2, 3 # encoding: [0xd4,0x05,0x43,0x7c]
441 # CHECK-BE: addmeo. 2, 3 # encoding: [0x7c,0x43,0x05,0xd5]
442 # CHECK-LE: addmeo. 2, 3 # encoding: [0xd5,0x05,0x43,0x7c]
444 # CHECK-BE: subfme 2, 3 # encoding: [0x7c,0x43,0x01,0xd0]
445 # CHECK-LE: subfme 2, 3 # encoding: [0xd0,0x01,0x43,0x7c]
447 # CHECK-BE: subfme. 2, 3 # encoding: [0x7c,0x43,0x01,0xd1]
448 # CHECK-LE: subfme. 2, 3 # encoding: [0xd1,0x01,0x43,0x7c]
450 # CHECK-BE: subfmeo 2, 3 # encoding: [0x7c,0x43,0x05,0xd0]
451 # CHECK-LE: subfmeo 2, 3 # encoding: [0xd0,0x05,0x43,0x7c]
453 # CHECK-BE: subfmeo. 2, 3 # encoding: [0x7c,0x43,0x05,0xd1]
454 # CHECK-LE: subfmeo. 2, 3 # encoding: [0xd1,0x05,0x43,0x7c]
457 # CHECK-BE: addze 2, 3 # encoding: [0x7c,0x43,0x01,0x94]
458 # CHECK-LE: addze 2, 3 # encoding: [0x94,0x01,0x43,0x7c]
460 # CHECK-BE: addze. 2, 3 # encoding: [0x7c,0x43,0x01,0x95]
461 # CHECK-LE: addze. 2, 3 # encoding: [0x95,0x01,0x43,0x7c]
463 # CHECK-BE: addzeo 2, 3 # encoding: [0x7c,0x43,0x05,0x94]
464 # CHECK-LE: addzeo 2, 3 # encoding: [0x94,0x05,0x43,0x7c]
466 # CHECK-BE: addzeo. 2, 3 # encoding: [0x7c,0x43,0x05,0x95]
467 # CHECK-LE: addzeo. 2, 3 # encoding: [0x95,0x05,0x43,0x7c]
469 # CHECK-BE: subfze 2, 3 # encoding: [0x7c,0x43,0x01,0x90]
470 # CHECK-LE: subfze 2, 3 # encoding: [0x90,0x01,0x43,0x7c]
472 # CHECK-BE: subfze. 2, 3 # encoding: [0x7c,0x43,0x01,0x91]
473 # CHECK-LE: subfze. 2, 3 # encoding: [0x91,0x01,0x43,0x7c]
475 # CHECK-BE: subfzeo 2, 3 # encoding: [0x7c,0x43,0x05,0x90]
476 # CHECK-LE: subfzeo 2, 3 # encoding: [0x90,0x05,0x43,0x7c]
478 # CHECK-BE: subfzeo. 2, 3 # encoding: [0x7c,0x43,0x05,0x91]
479 # CHECK-LE: subfzeo. 2, 3 # encoding: [0x91,0x05,0x43,0x7c]
482 # CHECK-BE: neg 2, 3 # encoding: [0x7c,0x43,0x00,0xd0]
483 # CHECK-LE: neg 2, 3 # encoding: [0xd0,0x00,0x43,0x7c]
485 # CHECK-BE: neg. 2, 3 # encoding: [0x7c,0x43,0x00,0xd1]
486 # CHECK-LE: neg. 2, 3 # encoding: [0xd1,0x00,0x43,0x7c]
488 # CHECK-BE: nego 2, 3 # encoding: [0x7c,0x43,0x04,0xd0]
489 # CHECK-LE: nego 2, 3 # encoding: [0xd0,0x04,0x43,0x7c]
491 # CHECK-BE: nego. 2, 3 # encoding: [0x7c,0x43,0x04,0xd1]
492 # CHECK-LE: nego. 2, 3 # encoding: [0xd1,0x04,0x43,0x7c]
495 # CHECK-BE: mulli 2, 3, 128 # encoding: [0x1c,0x43,0x00,0x80]
496 # CHECK-LE: mulli 2, 3, 128 # encoding: [0x80,0x00,0x43,0x1c]
498 # CHECK-BE: mulhw 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x96]
499 # CHECK-LE: mulhw 2, 3, 4 # encoding: [0x96,0x20,0x43,0x7c]
501 # CHECK-BE: mulhw. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x97]
502 # CHECK-LE: mulhw. 2, 3, 4 # encoding: [0x97,0x20,0x43,0x7c]
504 # CHECK-BE: mullw 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd6]
505 # CHECK-LE: mullw 2, 3, 4 # encoding: [0xd6,0x21,0x43,0x7c]
507 # CHECK-BE: mullw. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd7]
508 # CHECK-LE: mullw. 2, 3, 4 # encoding: [0xd7,0x21,0x43,0x7c]
510 # CHECK-BE: mullwo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd6]
511 # CHECK-LE: mullwo 2, 3, 4 # encoding: [0xd6,0x25,0x43,0x7c]
513 # CHECK-BE: mullwo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd7]
514 # CHECK-LE: mullwo. 2, 3, 4 # encoding: [0xd7,0x25,0x43,0x7c]
516 # CHECK-BE: mulhwu 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x16]
517 # CHECK-LE: mulhwu 2, 3, 4 # encoding: [0x16,0x20,0x43,0x7c]
519 # CHECK-BE: mulhwu. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x17]
520 # CHECK-LE: mulhwu. 2, 3, 4 # encoding: [0x17,0x20,0x43,0x7c]
523 # CHECK-BE: maddhd 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x70]
524 # CHECK-LE: maddhd 2, 3, 4, 5 # encoding: [0x70,0x21,0x43,0x10]
527 # CHECK-BE: maddhdu 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x71]
528 # CHECK-LE: maddhdu 2, 3, 4, 5 # encoding: [0x71,0x21,0x43,0x10]
531 # CHECK-BE: maddld 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x73]
532 # CHECK-LE: maddld 2, 3, 4, 5 # encoding: [0x73,0x21,0x43,0x10]
535 # CHECK-BE: setb 2, 3 # encoding: [0x7c,0x4c,0x01,0x00]
536 # CHECK-LE: setb 2, 3 # encoding: [0x00,0x01,0x4c,0x7c]
539 # CHECK-BE: darn 2, 3 # encoding: [0x7c,0x43,0x05,0xe6]
540 # CHECK-LE: darn 2, 3 # encoding: [0xe6,0x05,0x43,0x7c]
543 # CHECK-BE: addpcis 3, 22627 # encoding: [0x4c,0x71,0x58,0x45]
544 # CHECK-LE: addpcis 3, 22627 # encoding: [0x45,0x58,0x71,0x4c]
547 # CHECK-BE: addpcis 3, 22627 # encoding: [0x4c,0x71,0x58,0x45]
548 # CHECK-LE: addpcis 3, 22627 # encoding: [0x45,0x58,0x71,0x4c]
551 # CHECK-BE: lnia 3 # encoding: [0x4c,0x60,0x00,0x04]
552 # CHECK-LE: lnia 3 # encoding: [0x04,0x00,0x60,0x4c]
555 # CHECK-BE: divw 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd6]
556 # CHECK-LE: divw 2, 3, 4 # encoding: [0xd6,0x23,0x43,0x7c]
558 # CHECK-BE: divw. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd7]
559 # CHECK-LE: divw. 2, 3, 4 # encoding: [0xd7,0x23,0x43,0x7c]
561 # CHECK-BE: divwo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd6]
562 # CHECK-LE: divwo 2, 3, 4 # encoding: [0xd6,0x27,0x43,0x7c]
564 # CHECK-BE: divwo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd7]
565 # CHECK-LE: divwo. 2, 3, 4 # encoding: [0xd7,0x27,0x43,0x7c]
567 # CHECK-BE: divwu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x96]
568 # CHECK-LE: divwu 2, 3, 4 # encoding: [0x96,0x23,0x43,0x7c]
570 # CHECK-BE: divwu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x97]
571 # CHECK-LE: divwu. 2, 3, 4 # encoding: [0x97,0x23,0x43,0x7c]
573 # CHECK-BE: divwuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x96]
574 # CHECK-LE: divwuo 2, 3, 4 # encoding: [0x96,0x27,0x43,0x7c]
576 # CHECK-BE: divwuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x97]
577 # CHECK-LE: divwuo. 2, 3, 4 # encoding: [0x97,0x27,0x43,0x7c]
579 # CHECK-BE: divwe 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x56]
580 # CHECK-LE: divwe 2, 3, 4 # encoding: [0x56,0x23,0x43,0x7c]
582 # CHECK-BE: divwe. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x57]
583 # CHECK-LE: divwe. 2, 3, 4 # encoding: [0x57,0x23,0x43,0x7c]
585 # CHECK-BE: divweo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x56]
586 # CHECK-LE: divweo 2, 3, 4 # encoding: [0x56,0x27,0x43,0x7c]
588 # CHECK-BE: divweo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x57]
589 # CHECK-LE: divweo. 2, 3, 4 # encoding: [0x57,0x27,0x43,0x7c]
591 # CHECK-BE: divweu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x16]
592 # CHECK-LE: divweu 2, 3, 4 # encoding: [0x16,0x23,0x43,0x7c]
594 # CHECK-BE: divweu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x17]
595 # CHECK-LE: divweu. 2, 3, 4 # encoding: [0x17,0x23,0x43,0x7c]
597 # CHECK-BE: divweuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x16]
598 # CHECK-LE: divweuo 2, 3, 4 # encoding: [0x16,0x27,0x43,0x7c]
600 # CHECK-BE: divweuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x17]
601 # CHECK-LE: divweuo. 2, 3, 4 # encoding: [0x17,0x27,0x43,0x7c]
604 # CHECK-BE: modsw 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x16]
605 # CHECK-LE: modsw 2, 3, 4 # encoding: [0x16,0x26,0x43,0x7c]
607 # CHECK-BE: moduw 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x16]
608 # CHECK-LE: moduw 2, 3, 4 # encoding: [0x16,0x22,0x43,0x7c]
610 # CHECK-BE: modsd 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x12]
611 # CHECK-LE: modsd 2, 3, 4 # encoding: [0x12,0x26,0x43,0x7c]
613 # CHECK-BE: modud 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x12]
614 # CHECK-LE: modud 2, 3, 4 # encoding: [0x12,0x22,0x43,0x7c]
617 # CHECK-BE: mulld 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd2]
618 # CHECK-LE: mulld 2, 3, 4 # encoding: [0xd2,0x21,0x43,0x7c]
620 # CHECK-BE: mulld. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd3]
621 # CHECK-LE: mulld. 2, 3, 4 # encoding: [0xd3,0x21,0x43,0x7c]
623 # CHECK-BE: mulldo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd2]
624 # CHECK-LE: mulldo 2, 3, 4 # encoding: [0xd2,0x25,0x43,0x7c]
626 # CHECK-BE: mulldo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd3]
627 # CHECK-LE: mulldo. 2, 3, 4 # encoding: [0xd3,0x25,0x43,0x7c]
629 # CHECK-BE: mulhd 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x92]
630 # CHECK-LE: mulhd 2, 3, 4 # encoding: [0x92,0x20,0x43,0x7c]
632 # CHECK-BE: mulhd. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x93]
633 # CHECK-LE: mulhd. 2, 3, 4 # encoding: [0x93,0x20,0x43,0x7c]
635 # CHECK-BE: mulhdu 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x12]
636 # CHECK-LE: mulhdu 2, 3, 4 # encoding: [0x12,0x20,0x43,0x7c]
638 # CHECK-BE: mulhdu. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x13]
639 # CHECK-LE: mulhdu. 2, 3, 4 # encoding: [0x13,0x20,0x43,0x7c]
642 # CHECK-BE: divd 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd2]
643 # CHECK-LE: divd 2, 3, 4 # encoding: [0xd2,0x23,0x43,0x7c]
645 # CHECK-BE: divd. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd3]
646 # CHECK-LE: divd. 2, 3, 4 # encoding: [0xd3,0x23,0x43,0x7c]
648 # CHECK-BE: divdo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd2]
649 # CHECK-LE: divdo 2, 3, 4 # encoding: [0xd2,0x27,0x43,0x7c]
651 # CHECK-BE: divdo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd3]
652 # CHECK-LE: divdo. 2, 3, 4 # encoding: [0xd3,0x27,0x43,0x7c]
654 # CHECK-BE: divdu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x92]
655 # CHECK-LE: divdu 2, 3, 4 # encoding: [0x92,0x23,0x43,0x7c]
657 # CHECK-BE: divdu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x93]
658 # CHECK-LE: divdu. 2, 3, 4 # encoding: [0x93,0x23,0x43,0x7c]
660 # CHECK-BE: divduo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x92]
661 # CHECK-LE: divduo 2, 3, 4 # encoding: [0x92,0x27,0x43,0x7c]
663 # CHECK-BE: divduo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x93]
664 # CHECK-LE: divduo. 2, 3, 4 # encoding: [0x93,0x27,0x43,0x7c]
666 # CHECK-BE: divde 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x52]
667 # CHECK-LE: divde 2, 3, 4 # encoding: [0x52,0x23,0x43,0x7c]
669 # CHECK-BE: divde. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x53]
670 # CHECK-LE: divde. 2, 3, 4 # encoding: [0x53,0x23,0x43,0x7c]
672 # CHECK-BE: divdeo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x52]
673 # CHECK-LE: divdeo 2, 3, 4 # encoding: [0x52,0x27,0x43,0x7c]
675 # CHECK-BE: divdeo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x53]
676 # CHECK-LE: divdeo. 2, 3, 4 # encoding: [0x53,0x27,0x43,0x7c]
678 # CHECK-BE: divdeu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x12]
679 # CHECK-LE: divdeu 2, 3, 4 # encoding: [0x12,0x23,0x43,0x7c]
681 # CHECK-BE: divdeu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x13]
682 # CHECK-LE: divdeu. 2, 3, 4 # encoding: [0x13,0x23,0x43,0x7c]
684 # CHECK-BE: divdeuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x12]
685 # CHECK-LE: divdeuo 2, 3, 4 # encoding: [0x12,0x27,0x43,0x7c]
687 # CHECK-BE: divdeuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x13]
688 # CHECK-LE: divdeuo. 2, 3, 4 # encoding: [0x13,0x27,0x43,0x7c]
691 # Fixed-point compare instructions
693 # CHECK-BE: cmpdi 2, 3, 128 # encoding: [0x2d,0x23,0x00,0x80]
694 # CHECK-LE: cmpdi 2, 3, 128 # encoding: [0x80,0x00,0x23,0x2d]
696 # CHECK-BE: cmpd 2, 3, 4 # encoding: [0x7d,0x23,0x20,0x00]
697 # CHECK-LE: cmpd 2, 3, 4 # encoding: [0x00,0x20,0x23,0x7d]
699 # CHECK-BE: cmpldi 2, 3, 128 # encoding: [0x29,0x23,0x00,0x80]
700 # CHECK-LE: cmpldi 2, 3, 128 # encoding: [0x80,0x00,0x23,0x29]
702 # CHECK-BE: cmpld 2, 3, 4 # encoding: [0x7d,0x23,0x20,0x40]
703 # CHECK-LE: cmpld 2, 3, 4 # encoding: [0x40,0x20,0x23,0x7d]
706 # CHECK-BE: cmpwi 2, 3, 128 # encoding: [0x2d,0x03,0x00,0x80]
707 # CHECK-LE: cmpwi 2, 3, 128 # encoding: [0x80,0x00,0x03,0x2d]
709 # CHECK-BE: cmpw 2, 3, 4 # encoding: [0x7d,0x03,0x20,0x00]
710 # CHECK-LE: cmpw 2, 3, 4 # encoding: [0x00,0x20,0x03,0x7d]
712 # CHECK-BE: cmplwi 2, 3, 128 # encoding: [0x29,0x03,0x00,0x80]
713 # CHECK-LE: cmplwi 2, 3, 128 # encoding: [0x80,0x00,0x03,0x29]
715 # CHECK-BE: cmplw 2, 3, 4 # encoding: [0x7d,0x03,0x20,0x40]
716 # CHECK-LE: cmplw 2, 3, 4 # encoding: [0x40,0x20,0x03,0x7d]
718 # CHECK-BE: cmprb 3, 1, 7, 17 # encoding: [0x7d,0xa7,0x89,0x80]
719 # CHECK-LE: cmprb 3, 1, 7, 17 # encoding: [0x80,0x89,0xa7,0x7d]
721 # CHECK-BE: cmpeqb 3, 7, 17 # encoding: [0x7d,0x87,0x89,0xc0]
722 # CHECK-LE: cmpeqb 3, 7, 17 # encoding: [0xc0,0x89,0x87,0x7d]
724 # CHECK-BE: cnttzw 7, 17 # encoding: [0x7e,0x27,0x04,0x34]
725 # CHECK-LE: cnttzw 7, 17 # encoding: [0x34,0x04,0x27,0x7e]
727 # CHECK-BE: cnttzw. 7, 17 # encoding: [0x7e,0x27,0x04,0x35]
728 # CHECK-LE: cnttzw. 7, 17 # encoding: [0x35,0x04,0x27,0x7e]
730 # CHECK-BE: cnttzd 7, 17 # encoding: [0x7e,0x27,0x04,0x74]
731 # CHECK-LE: cnttzd 7, 17 # encoding: [0x74,0x04,0x27,0x7e]
733 # CHECK-BE: cnttzd. 7, 17 # encoding: [0x7e,0x27,0x04,0x75]
734 # CHECK-LE: cnttzd. 7, 17 # encoding: [0x75,0x04,0x27,0x7e]
737 # Fixed-point trap instructions
739 # CHECK-BE: twllti 3, 4 # encoding: [0x0c,0x43,0x00,0x04]
740 # CHECK-LE: twllti 3, 4 # encoding: [0x04,0x00,0x43,0x0c]
742 # CHECK-BE: twllt 3, 4 # encoding: [0x7c,0x43,0x20,0x08]
743 # CHECK-LE: twllt 3, 4 # encoding: [0x08,0x20,0x43,0x7c]
745 # CHECK-BE: tdllti 3, 4 # encoding: [0x08,0x43,0x00,0x04]
746 # CHECK-LE: tdllti 3, 4 # encoding: [0x04,0x00,0x43,0x08]
748 # CHECK-BE: tdllt 3, 4 # encoding: [0x7c,0x43,0x20,0x88]
749 # CHECK-LE: tdllt 3, 4 # encoding: [0x88,0x20,0x43,0x7c]
754 # CHECK-BE: isel 2, 3, 4, 5 # encoding: [0x7c,0x43,0x21,0x5e]
755 # CHECK-LE: isel 2, 3, 4, 5 # encoding: [0x5e,0x21,0x43,0x7c]
758 # Fixed-point logical instructions
760 # CHECK-BE: andi. 2, 3, 128 # encoding: [0x70,0x62,0x00,0x80]
761 # CHECK-LE: andi. 2, 3, 128 # encoding: [0x80,0x00,0x62,0x70]
763 # CHECK-BE: andis. 2, 3, 128 # encoding: [0x74,0x62,0x00,0x80]
764 # CHECK-LE: andis. 2, 3, 128 # encoding: [0x80,0x00,0x62,0x74]
766 # CHECK-BE: ori 2, 3, 128 # encoding: [0x60,0x62,0x00,0x80]
767 # CHECK-LE: ori 2, 3, 128 # encoding: [0x80,0x00,0x62,0x60]
769 # CHECK-BE: oris 2, 3, 128 # encoding: [0x64,0x62,0x00,0x80]
770 # CHECK-LE: oris 2, 3, 128 # encoding: [0x80,0x00,0x62,0x64]
772 # CHECK-BE: xori 2, 3, 128 # encoding: [0x68,0x62,0x00,0x80]
773 # CHECK-LE: xori 2, 3, 128 # encoding: [0x80,0x00,0x62,0x68]
775 # CHECK-BE: xoris 2, 3, 128 # encoding: [0x6c,0x62,0x00,0x80]
776 # CHECK-LE: xoris 2, 3, 128 # encoding: [0x80,0x00,0x62,0x6c]
778 # CHECK-BE: and 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x38]
779 # CHECK-LE: and 2, 3, 4 # encoding: [0x38,0x20,0x62,0x7c]
781 # CHECK-BE: and. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x39]
782 # CHECK-LE: and. 2, 3, 4 # encoding: [0x39,0x20,0x62,0x7c]
784 # CHECK-BE: xor 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x78]
785 # CHECK-LE: xor 2, 3, 4 # encoding: [0x78,0x22,0x62,0x7c]
787 # CHECK-BE: xor. 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x79]
788 # CHECK-LE: xor. 2, 3, 4 # encoding: [0x79,0x22,0x62,0x7c]
790 # CHECK-BE: nand 2, 3, 4 # encoding: [0x7c,0x62,0x23,0xb8]
791 # CHECK-LE: nand 2, 3, 4 # encoding: [0xb8,0x23,0x62,0x7c]
793 # CHECK-BE: nand. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0xb9]
794 # CHECK-LE: nand. 2, 3, 4 # encoding: [0xb9,0x23,0x62,0x7c]
796 # CHECK-BE: or 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x78]
797 # CHECK-LE: or 2, 3, 4 # encoding: [0x78,0x23,0x62,0x7c]
799 # CHECK-BE: or. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x79]
800 # CHECK-LE: or. 2, 3, 4 # encoding: [0x79,0x23,0x62,0x7c]
802 # CHECK-BE: nor 2, 3, 4 # encoding: [0x7c,0x62,0x20,0xf8]
803 # CHECK-LE: nor 2, 3, 4 # encoding: [0xf8,0x20,0x62,0x7c]
805 # CHECK-BE: nor. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0xf9]
806 # CHECK-LE: nor. 2, 3, 4 # encoding: [0xf9,0x20,0x62,0x7c]
808 # CHECK-BE: eqv 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x38]
809 # CHECK-LE: eqv 2, 3, 4 # encoding: [0x38,0x22,0x62,0x7c]
811 # CHECK-BE: eqv. 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x39]
812 # CHECK-LE: eqv. 2, 3, 4 # encoding: [0x39,0x22,0x62,0x7c]
814 # CHECK-BE: andc 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x78]
815 # CHECK-LE: andc 2, 3, 4 # encoding: [0x78,0x20,0x62,0x7c]
817 # CHECK-BE: andc. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x79]
818 # CHECK-LE: andc. 2, 3, 4 # encoding: [0x79,0x20,0x62,0x7c]
820 # CHECK-BE: orc 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x38]
821 # CHECK-LE: orc 2, 3, 4 # encoding: [0x38,0x23,0x62,0x7c]
823 # CHECK-BE: orc. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x39]
824 # CHECK-LE: orc. 2, 3, 4 # encoding: [0x39,0x23,0x62,0x7c]
827 # CHECK-BE: extsb 2, 3 # encoding: [0x7c,0x62,0x07,0x74]
828 # CHECK-LE: extsb 2, 3 # encoding: [0x74,0x07,0x62,0x7c]
830 # CHECK-BE: extsb. 2, 3 # encoding: [0x7c,0x62,0x07,0x75]
831 # CHECK-LE: extsb. 2, 3 # encoding: [0x75,0x07,0x62,0x7c]
833 # CHECK-BE: extsh 2, 3 # encoding: [0x7c,0x62,0x07,0x34]
834 # CHECK-LE: extsh 2, 3 # encoding: [0x34,0x07,0x62,0x7c]
836 # CHECK-BE: extsh. 2, 3 # encoding: [0x7c,0x62,0x07,0x35]
837 # CHECK-LE: extsh. 2, 3 # encoding: [0x35,0x07,0x62,0x7c]
840 # CHECK-BE: cntlzw 2, 3 # encoding: [0x7c,0x62,0x00,0x34]
841 # CHECK-LE: cntlzw 2, 3 # encoding: [0x34,0x00,0x62,0x7c]
843 # CHECK-BE: cntlzw. 2, 3 # encoding: [0x7c,0x62,0x00,0x35]
844 # CHECK-LE: cntlzw. 2, 3 # encoding: [0x35,0x00,0x62,0x7c]
847 # The POWER variant of cntlzw
848 # CHECK-BE: cntlzw 2, 3 # encoding: [0x7c,0x62,0x00,0x34]
849 # CHECK-LE: cntlzw 2, 3 # encoding: [0x34,0x00,0x62,0x7c]
851 # CHECK-BE: cntlzw. 2, 3 # encoding: [0x7c,0x62,0x00,0x35]
852 # CHECK-LE: cntlzw. 2, 3 # encoding: [0x35,0x00,0x62,0x7c]
855 # CHECK-BE: cmpb 7, 21, 4 # encoding: [0x7e,0xa7,0x23,0xf8]
856 # CHECK-LE: cmpb 7, 21, 4 # encoding: [0xf8,0x23,0xa7,0x7e]
857 # CHECK-BE: popcntb 2, 3 # encoding: [0x7c,0x62,0x00,0xf4]
858 # CHECK-LE: popcntb 2, 3 # encoding: [0xf4,0x00,0x62,0x7c]
860 # CHECK-BE: popcntw 2, 3 # encoding: [0x7c,0x62,0x02,0xf4]
861 # CHECK-LE: popcntw 2, 3 # encoding: [0xf4,0x02,0x62,0x7c]
866 # CHECK-BE: extsw 2, 3 # encoding: [0x7c,0x62,0x07,0xb4]
867 # CHECK-LE: extsw 2, 3 # encoding: [0xb4,0x07,0x62,0x7c]
869 # CHECK-BE: extsw. 2, 3 # encoding: [0x7c,0x62,0x07,0xb5]
870 # CHECK-LE: extsw. 2, 3 # encoding: [0xb5,0x07,0x62,0x7c]
873 # CHECK-BE: cntlzd 2, 3 # encoding: [0x7c,0x62,0x00,0x74]
874 # CHECK-LE: cntlzd 2, 3 # encoding: [0x74,0x00,0x62,0x7c]
876 # CHECK-BE: cntlzd. 2, 3 # encoding: [0x7c,0x62,0x00,0x75]
877 # CHECK-LE: cntlzd. 2, 3 # encoding: [0x75,0x00,0x62,0x7c]
879 # CHECK-BE: popcntd 2, 3 # encoding: [0x7c,0x62,0x03,0xf4]
880 # CHECK-LE: popcntd 2, 3 # encoding: [0xf4,0x03,0x62,0x7c]
882 # CHECK-BE: bpermd 2, 3, 4 # encoding: [0x7c,0x62,0x21,0xf8]
883 # CHECK-LE: bpermd 2, 3, 4 # encoding: [0xf8,0x21,0x62,0x7c]
886 # Fixed-point rotate and shift instructions
888 # CHECK-BE: rlwinm 2, 3, 4, 5, 6 # encoding: [0x54,0x62,0x21,0x4c]
889 # CHECK-LE: rlwinm 2, 3, 4, 5, 6 # encoding: [0x4c,0x21,0x62,0x54]
891 # CHECK-BE: rlwinm. 2, 3, 4, 5, 6 # encoding: [0x54,0x62,0x21,0x4d]
892 # CHECK-LE: rlwinm. 2, 3, 4, 5, 6 # encoding: [0x4d,0x21,0x62,0x54]
893 rlwinm. 2, 3, 4, 5, 6
894 # CHECK-BE: rlwnm 2, 3, 4, 5, 6 # encoding: [0x5c,0x62,0x21,0x4c]
895 # CHECK-LE: rlwnm 2, 3, 4, 5, 6 # encoding: [0x4c,0x21,0x62,0x5c]
897 # CHECK-BE: rlwnm. 2, 3, 4, 5, 6 # encoding: [0x5c,0x62,0x21,0x4d]
898 # CHECK-LE: rlwnm. 2, 3, 4, 5, 6 # encoding: [0x4d,0x21,0x62,0x5c]
900 # CHECK-BE: rlwimi 2, 3, 4, 5, 6 # encoding: [0x50,0x62,0x21,0x4c]
901 # CHECK-LE: rlwimi 2, 3, 4, 5, 6 # encoding: [0x4c,0x21,0x62,0x50]
903 # CHECK-BE: rlwimi. 2, 3, 4, 5, 6 # encoding: [0x50,0x62,0x21,0x4d]
904 # CHECK-LE: rlwimi. 2, 3, 4, 5, 6 # encoding: [0x4d,0x21,0x62,0x50]
905 rlwimi. 2, 3, 4, 5, 6
906 # CHECK-BE: rldicl 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x40]
907 # CHECK-LE: rldicl 2, 3, 4, 5 # encoding: [0x40,0x21,0x62,0x78]
909 # CHECK-BE: rldicl. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x41]
910 # CHECK-LE: rldicl. 2, 3, 4, 5 # encoding: [0x41,0x21,0x62,0x78]
912 # CHECK-BE: rldicr 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x44]
913 # CHECK-LE: rldicr 2, 3, 4, 5 # encoding: [0x44,0x21,0x62,0x78]
915 # CHECK-BE: rldicr. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x45]
916 # CHECK-LE: rldicr. 2, 3, 4, 5 # encoding: [0x45,0x21,0x62,0x78]
918 # CHECK-BE: rldic 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x48]
919 # CHECK-LE: rldic 2, 3, 4, 5 # encoding: [0x48,0x21,0x62,0x78]
921 # CHECK-BE: rldic. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x49]
922 # CHECK-LE: rldic. 2, 3, 4, 5 # encoding: [0x49,0x21,0x62,0x78]
924 # CHECK-BE: rldcl 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x50]
925 # CHECK-LE: rldcl 2, 3, 4, 5 # encoding: [0x50,0x21,0x62,0x78]
927 # CHECK-BE: rldcl. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x51]
928 # CHECK-LE: rldcl. 2, 3, 4, 5 # encoding: [0x51,0x21,0x62,0x78]
930 # CHECK-BE: rldcr 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x52]
931 # CHECK-LE: rldcr 2, 3, 4, 5 # encoding: [0x52,0x21,0x62,0x78]
933 # CHECK-BE: rldcr. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x53]
934 # CHECK-LE: rldcr. 2, 3, 4, 5 # encoding: [0x53,0x21,0x62,0x78]
936 # CHECK-BE: rldimi 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x4c]
937 # CHECK-LE: rldimi 2, 3, 4, 5 # encoding: [0x4c,0x21,0x62,0x78]
939 # CHECK-BE: rldimi. 2, 3, 4, 5 # encoding: [0x78,0x62,0x21,0x4d]
940 # CHECK-LE: rldimi. 2, 3, 4, 5 # encoding: [0x4d,0x21,0x62,0x78]
943 # Aliases that take bit masks...
945 # CHECK-BE: rlwinm 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xfe]
947 # CHECK-BE: rlwinm. 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xff]
949 # CHECK-BE: rlwinm 0, 0, 30, 31, 0 # encoding: [0x54,0x00,0xf7,0xc0]
950 rlwinm 0, 0, 30, 2147483649
951 # CHECK-BE: rlwinm. 0, 0, 30, 31, 0 # encoding: [0x54,0x00,0xf7,0xc1]
952 rlwinm. 0, 0, 30, 2147483649
953 # CHECK-BE: rlwimi 0, 0, 30, 31, 31 # encoding: [0x50,0x00,0xf7,0xfe]
955 # CHECK-BE: rlwimi. 0, 0, 30, 31, 31 # encoding: [0x50,0x00,0xf7,0xff]
957 # CHECK-BE: rlwimi 0, 0, 30, 31, 0 # encoding: [0x50,0x00,0xf7,0xc0]
958 rlwimi 0, 0, 30, 2147483649
959 # CHECK-BE: rlwimi. 0, 0, 30, 31, 0 # encoding: [0x50,0x00,0xf7,0xc1]
960 rlwimi. 0, 0, 30, 2147483649
961 # CHECK-BE: rlwnm 0, 0, 30, 31, 31 # encoding: [0x5c,0x00,0xf7,0xfe]
963 # CHECK-BE: rlwnm. 0, 0, 30, 31, 31 # encoding: [0x5c,0x00,0xf7,0xff]
965 # CHECK-BE: rlwnm 0, 0, 30, 31, 0 # encoding: [0x5c,0x00,0xf7,0xc0]
966 rlwnm 0, 0, 30, 2147483649
967 # CHECK-BE: rlwnm. 0, 0, 30, 31, 0 # encoding: [0x5c,0x00,0xf7,0xc1]
968 rlwnm. 0, 0, 30, 2147483649
970 # CHECK-BE: slw 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x30]
971 # CHECK-LE: slw 2, 3, 4 # encoding: [0x30,0x20,0x62,0x7c]
973 # CHECK-BE: slw. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x31]
974 # CHECK-LE: slw. 2, 3, 4 # encoding: [0x31,0x20,0x62,0x7c]
976 # CHECK-BE: srw 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x30]
977 # CHECK-LE: srw 2, 3, 4 # encoding: [0x30,0x24,0x62,0x7c]
979 # CHECK-BE: srw. 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x31]
980 # CHECK-LE: srw. 2, 3, 4 # encoding: [0x31,0x24,0x62,0x7c]
982 # CHECK-BE: srawi 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x70]
983 # CHECK-LE: srawi 2, 3, 4 # encoding: [0x70,0x26,0x62,0x7c]
985 # CHECK-BE: srawi. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x71]
986 # CHECK-LE: srawi. 2, 3, 4 # encoding: [0x71,0x26,0x62,0x7c]
988 # CHECK-BE: sraw 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x30]
989 # CHECK-LE: sraw 2, 3, 4 # encoding: [0x30,0x26,0x62,0x7c]
991 # CHECK-BE: sraw. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x31]
992 # CHECK-LE: sraw. 2, 3, 4 # encoding: [0x31,0x26,0x62,0x7c]
994 # CHECK-BE: sld 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x36]
995 # CHECK-LE: sld 2, 3, 4 # encoding: [0x36,0x20,0x62,0x7c]
997 # CHECK-BE: sld. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x37]
998 # CHECK-LE: sld. 2, 3, 4 # encoding: [0x37,0x20,0x62,0x7c]
1000 # CHECK-BE: srd 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x36]
1001 # CHECK-LE: srd 2, 3, 4 # encoding: [0x36,0x24,0x62,0x7c]
1003 # CHECK-BE: srd. 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x37]
1004 # CHECK-LE: srd. 2, 3, 4 # encoding: [0x37,0x24,0x62,0x7c]
1006 # CHECK-BE: sradi 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x74]
1007 # CHECK-LE: sradi 2, 3, 4 # encoding: [0x74,0x26,0x62,0x7c]
1009 # CHECK-BE: sradi. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x75]
1010 # CHECK-LE: sradi. 2, 3, 4 # encoding: [0x75,0x26,0x62,0x7c]
1012 # CHECK-BE: srad 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x34]
1013 # CHECK-LE: srad 2, 3, 4 # encoding: [0x34,0x26,0x62,0x7c]
1015 # CHECK-BE: srad. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x35]
1016 # CHECK-LE: srad. 2, 3, 4 # encoding: [0x35,0x26,0x62,0x7c]
1018 # CHECK-BE: extswsli 2, 3, 4 # encoding: [0x7c,0x62,0x26,0xf4]
1019 # CHECK-LE: extswsli 2, 3, 4 # encoding: [0xf4,0x26,0x62,0x7c]
1021 # CHECK-BE: extswsli. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0xf5]
1022 # CHECK-LE: extswsli. 2, 3, 4 # encoding: [0xf5,0x26,0x62,0x7c]
1026 # BCD assist instructions
1028 # CHECK-BE: cdtbcd 2, 7 # encoding: [0x7c,0xe2,0x02,0x34]
1029 # CHECK-LE: cdtbcd 2, 7 # encoding: [0x34,0x02,0xe2,0x7c]
1031 # CHECK-BE: cbcdtd 2, 7 # encoding: [0x7c,0xe2,0x02,0x74]
1032 # CHECK-LE: cbcdtd 2, 7 # encoding: [0x74,0x02,0xe2,0x7c]
1034 # CHECK-BE: addg6s 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x94]
1035 # CHECK-LE: addg6s 2, 3, 4 # encoding: [0x94,0x20,0x43,0x7c]
1038 # Move to/from system register instructions
1040 # CHECK-BE: mtspr 600, 2 # encoding: [0x7c,0x58,0x93,0xa6]
1041 # CHECK-LE: mtspr 600, 2 # encoding: [0xa6,0x93,0x58,0x7c]
1043 # CHECK-BE: mfspr 2, 600 # encoding: [0x7c,0x58,0x92,0xa6]
1044 # CHECK-LE: mfspr 2, 600 # encoding: [0xa6,0x92,0x58,0x7c]
1046 # CHECK-BE: mtcrf 123, 2 # encoding: [0x7c,0x47,0xb1,0x20]
1047 # CHECK-LE: mtcrf 123, 2 # encoding: [0x20,0xb1,0x47,0x7c]
1049 # CHECK-BE: mfcr 2 # encoding: [0x7c,0x40,0x00,0x26]
1050 # CHECK-LE: mfcr 2 # encoding: [0x26,0x00,0x40,0x7c]
1052 # CHECK-BE: mtocrf 16, 2 # encoding: [0x7c,0x51,0x01,0x20]
1053 # CHECK-LE: mtocrf 16, 2 # encoding: [0x20,0x01,0x51,0x7c]
1055 # CHECK-BE: mfocrf 16, 8 # encoding: [0x7e,0x10,0x80,0x26]
1056 # CHECK-LE: mfocrf 16, 8 # encoding: [0x26,0x80,0x10,0x7e]
1058 # CHECK-BE: mcrxrx 7 # encoding: [0x7f,0x80,0x04,0x80]
1059 # CHECK-LE: mcrxrx 7 # encoding: [0x80,0x04,0x80,0x7f]
1062 # Move to/from segment register
1063 # CHECK-BE: mtsr 12, 10 # encoding: [0x7d,0x4c,0x01,0xa4]
1064 # CHECK-LE: mtsr 12, 10 # encoding: [0xa4,0x01,0x4c,0x7d]
1066 # CHECK-BE: mfsr 10, 12 # encoding: [0x7d,0x4c,0x04,0xa6]
1067 # CHECK-LE: mfsr 10, 12 # encoding: [0xa6,0x04,0x4c,0x7d]
1070 # CHECK-BE: mtsrin 10, 12 # encoding: [0x7d,0x40,0x61,0xe4]
1071 # CHECK-LE: mtsrin 10, 12 # encoding: [0xe4,0x61,0x40,0x7d]
1073 # CHECK-BE: mfsrin 10, 12 # encoding: [0x7d,0x40,0x65,0x26]
1074 # CHECK-LE: mfsrin 10, 12 # encoding: [0x26,0x65,0x40,0x7d]
1077 # Copy-Paste Facility
1078 # CHECK-BE: copy 2, 19 # encoding: [0x7c,0x22,0x9e,0x0c]
1079 # CHECK-LE: copy 2, 19 # encoding: [0x0c,0x9e,0x22,0x7c]
1081 # CHECK-BE: paste. 17, 1 # encoding: [0x7c,0x31,0x0f,0x0d]
1082 # CHECK-LE: paste. 17, 1 # encoding: [0x0d,0x0f,0x31,0x7c]
1084 # CHECK-BE: cpabort # encoding: [0x7c,0x00,0x06,0x8c]
1085 # CHECK-LE: cpabort # encoding: [0x8c,0x06,0x00,0x7c]
1089 # Message Synchronize
1090 # CHECK-BE: msgsync # encoding: [0x7c,0x00,0x06,0xec]
1091 # CHECK-LE: msgsync # encoding: [0xec,0x06,0x00,0x7c]
1094 # SLB Invalidate Entry Global
1095 # CHECK-BE: slbieg 6, 21 # encoding: [0x7c,0xc0,0xab,0xa4]
1096 # CHECK-LE: slbieg 6, 21 # encoding: [0xa4,0xab,0xc0,0x7c]
1100 # CHECK-BE: slbsync # encoding: [0x7c,0x00,0x02,0xa4]
1101 # CHECK-LE: slbsync # encoding: [0xa4,0x02,0x00,0x7c]
1104 # Power-Saving Mode Instruction
1105 # CHECK-BE: stop # encoding: [0x4c,0x00,0x02,0xe4]
1106 # CHECK-LE: stop # encoding: [0xe4,0x02,0x00,0x4c]