[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / PowerPC / ppc64-encoding.s
blob149ee005b4c301cb72610637d04a857daf6310ea
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
5 # Branch facility
7 # Branch instructions
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
13 b target
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
18 ba target
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
23 bl target
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
28 bla target
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
34 bc 4, 10, target
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
39 bca 4, 10, target
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
44 bcl 4, 10, target
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
49 bcla 4, 10, target
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
55 bc+ 12, 28, target
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
60 bc- 12, 28, target
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
65 bca+ 12, 28, target
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
70 bca- 12, 28, target
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
75 bcl+ 12, 28, target
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
80 bcl- 12, 28, target
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
85 bcla+ 12, 28, target
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
90 bcla- 12, 28, target
92 # CHECK-BE: bclr 4, 10, 3 # encoding: [0x4c,0x8a,0x18,0x20]
93 # CHECK-LE: bclr 4, 10, 3 # encoding: [0x20,0x18,0x8a,0x4c]
94 bclr 4, 10, 3
95 # CHECK-BE: bclr 4, 10 # encoding: [0x4c,0x8a,0x00,0x20]
96 # CHECK-LE: bclr 4, 10 # encoding: [0x20,0x00,0x8a,0x4c]
97 bclr 4, 10
98 # CHECK-BE: bclrl 4, 10, 3 # encoding: [0x4c,0x8a,0x18,0x21]
99 # CHECK-LE: bclrl 4, 10, 3 # encoding: [0x21,0x18,0x8a,0x4c]
100 bclrl 4, 10, 3
101 # CHECK-BE: bclrl 4, 10 # encoding: [0x4c,0x8a,0x00,0x21]
102 # CHECK-LE: bclrl 4, 10 # encoding: [0x21,0x00,0x8a,0x4c]
103 bclrl 4, 10
104 # CHECK-BE: bcctr 4, 10, 3 # encoding: [0x4c,0x8a,0x1c,0x20]
105 # CHECK-LE: bcctr 4, 10, 3 # encoding: [0x20,0x1c,0x8a,0x4c]
106 bcctr 4, 10, 3
107 # CHECK-BE: bcctr 4, 10 # encoding: [0x4c,0x8a,0x04,0x20]
108 # CHECK-LE: bcctr 4, 10 # encoding: [0x20,0x04,0x8a,0x4c]
109 bcctr 4, 10
110 # CHECK-BE: bcctrl 4, 10, 3 # encoding: [0x4c,0x8a,0x1c,0x21]
111 # CHECK-LE: bcctrl 4, 10, 3 # encoding: [0x21,0x1c,0x8a,0x4c]
112 bcctrl 4, 10, 3
113 # CHECK-BE: bcctrl 4, 10 # encoding: [0x4c,0x8a,0x04,0x21]
114 # CHECK-LE: bcctrl 4, 10 # encoding: [0x21,0x04,0x8a,0x4c]
115 bcctrl 4, 10
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]
121 crand 2, 3, 4
122 # CHECK-BE: crnand 2, 3, 4 # encoding: [0x4c,0x43,0x21,0xc2]
123 # CHECK-LE: crnand 2, 3, 4 # encoding: [0xc2,0x21,0x43,0x4c]
124 crnand 2, 3, 4
125 # CHECK-BE: cror 2, 3, 4 # encoding: [0x4c,0x43,0x23,0x82]
126 # CHECK-LE: cror 2, 3, 4 # encoding: [0x82,0x23,0x43,0x4c]
127 cror 2, 3, 4
128 # CHECK-BE: crxor 2, 3, 4 # encoding: [0x4c,0x43,0x21,0x82]
129 # CHECK-LE: crxor 2, 3, 4 # encoding: [0x82,0x21,0x43,0x4c]
130 crxor 2, 3, 4
131 # CHECK-BE: crnor 2, 3, 4 # encoding: [0x4c,0x43,0x20,0x42]
132 # CHECK-LE: crnor 2, 3, 4 # encoding: [0x42,0x20,0x43,0x4c]
133 crnor 2, 3, 4
134 # CHECK-BE: creqv 2, 3, 4 # encoding: [0x4c,0x43,0x22,0x42]
135 # CHECK-LE: creqv 2, 3, 4 # encoding: [0x42,0x22,0x43,0x4c]
136 creqv 2, 3, 4
137 # CHECK-BE: crandc 2, 3, 4 # encoding: [0x4c,0x43,0x21,0x02]
138 # CHECK-LE: crandc 2, 3, 4 # encoding: [0x02,0x21,0x43,0x4c]
139 crandc 2, 3, 4
140 # CHECK-BE: crorc 2, 3, 4 # encoding: [0x4c,0x43,0x23,0x42]
141 # CHECK-LE: crorc 2, 3, 4 # encoding: [0x42,0x23,0x43,0x4c]
142 crorc 2, 3, 4
143 # CHECK-BE: mcrf 2, 3 # encoding: [0x4d,0x0c,0x00,0x00]
144 # CHECK-LE: mcrf 2, 3 # encoding: [0x00,0x00,0x0c,0x4d]
145 mcrf 2, 3
147 # System call instruction
149 # CHECK-BE: sc 1 # encoding: [0x44,0x00,0x00,0x22]
150 # CHECK-LE: sc 1 # encoding: [0x22,0x00,0x00,0x44]
151 sc 1
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]
160 clrbhrb
161 # CHECK-BE: mfbhrbe 9, 983 # encoding: [0x7d,0x3e,0xba,0x5c]
162 # CHECK-LE: mfbhrbe 9, 983 # encoding: [0x5c,0xba,0x3e,0x7d]
163 mfbhrbe 9, 983
164 # CHECK-BE: rfebb # encoding: [0x4c,0x00,0x09,0x24]
165 # CHECK-LE: rfebb # encoding: [0x24,0x09,0x00,0x4c]
166 rfebb 1
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]
174 lbz 2, 128(4)
175 # CHECK-BE: lbzx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xae]
176 # CHECK-LE: lbzx 2, 3, 4 # encoding: [0xae,0x20,0x43,0x7c]
177 lbzx 2, 3, 4
178 # CHECK-BE: lbzu 2, 128(4) # encoding: [0x8c,0x44,0x00,0x80]
179 # CHECK-LE: lbzu 2, 128(4) # encoding: [0x80,0x00,0x44,0x8c]
180 lbzu 2, 128(4)
181 # CHECK-BE: lbzux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xee]
182 # CHECK-LE: lbzux 2, 3, 4 # encoding: [0xee,0x20,0x43,0x7c]
183 lbzux 2, 3, 4
184 # CHECK-BE: lhz 2, 128(4) # encoding: [0xa0,0x44,0x00,0x80]
185 # CHECK-LE: lhz 2, 128(4) # encoding: [0x80,0x00,0x44,0xa0]
186 lhz 2, 128(4)
187 # CHECK-BE: lhzx 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x2e]
188 # CHECK-LE: lhzx 2, 3, 4 # encoding: [0x2e,0x22,0x43,0x7c]
189 lhzx 2, 3, 4
190 # CHECK-BE: lhzu 2, 128(4) # encoding: [0xa4,0x44,0x00,0x80]
191 # CHECK-LE: lhzu 2, 128(4) # encoding: [0x80,0x00,0x44,0xa4]
192 lhzu 2, 128(4)
193 # CHECK-BE: lhzux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x6e]
194 # CHECK-LE: lhzux 2, 3, 4 # encoding: [0x6e,0x22,0x43,0x7c]
195 lhzux 2, 3, 4
196 # CHECK-BE: lha 2, 128(4) # encoding: [0xa8,0x44,0x00,0x80]
197 # CHECK-LE: lha 2, 128(4) # encoding: [0x80,0x00,0x44,0xa8]
198 lha 2, 128(4)
199 # CHECK-BE: lhax 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xae]
200 # CHECK-LE: lhax 2, 3, 4 # encoding: [0xae,0x22,0x43,0x7c]
201 lhax 2, 3, 4
202 # CHECK-BE: lhau 2, 128(4) # encoding: [0xac,0x44,0x00,0x80]
203 # CHECK-LE: lhau 2, 128(4) # encoding: [0x80,0x00,0x44,0xac]
204 lhau 2, 128(4)
205 # CHECK-BE: lhaux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xee]
206 # CHECK-LE: lhaux 2, 3, 4 # encoding: [0xee,0x22,0x43,0x7c]
207 lhaux 2, 3, 4
208 # CHECK-BE: lwz 2, 128(4) # encoding: [0x80,0x44,0x00,0x80]
209 # CHECK-LE: lwz 2, 128(4) # encoding: [0x80,0x00,0x44,0x80]
210 lwz 2, 128(4)
211 # CHECK-BE: lwzx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x2e]
212 # CHECK-LE: lwzx 2, 3, 4 # encoding: [0x2e,0x20,0x43,0x7c]
213 lwzx 2, 3, 4
214 # CHECK-BE: lwzu 2, 128(4) # encoding: [0x84,0x44,0x00,0x80]
215 # CHECK-LE: lwzu 2, 128(4) # encoding: [0x80,0x00,0x44,0x84]
216 lwzu 2, 128(4)
217 # CHECK-BE: lwzux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x6e]
218 # CHECK-LE: lwzux 2, 3, 4 # encoding: [0x6e,0x20,0x43,0x7c]
219 lwzux 2, 3, 4
220 # CHECK-BE: lwa 2, 128(4) # encoding: [0xe8,0x44,0x00,0x82]
221 # CHECK-LE: lwa 2, 128(4) # encoding: [0x82,0x00,0x44,0xe8]
222 lwa 2, 128(4)
223 # CHECK-BE: lwax 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xaa]
224 # CHECK-LE: lwax 2, 3, 4 # encoding: [0xaa,0x22,0x43,0x7c]
225 lwax 2, 3, 4
226 # CHECK-BE: lwaux 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xea]
227 # CHECK-LE: lwaux 2, 3, 4 # encoding: [0xea,0x22,0x43,0x7c]
228 lwaux 2, 3, 4
229 # CHECK-BE: ld 2, 128(4) # encoding: [0xe8,0x44,0x00,0x80]
230 # CHECK-LE: ld 2, 128(4) # encoding: [0x80,0x00,0x44,0xe8]
231 ld 2, 128(4)
232 # CHECK-BE: ldx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x2a]
233 # CHECK-LE: ldx 2, 3, 4 # encoding: [0x2a,0x20,0x43,0x7c]
234 ldx 2, 3, 4
235 # CHECK-BE: ldu 2, 128(4) # encoding: [0xe8,0x44,0x00,0x81]
236 # CHECK-LE: ldu 2, 128(4) # encoding: [0x81,0x00,0x44,0xe8]
237 ldu 2, 128(4)
238 # CHECK-BE: ldux 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x6a]
239 # CHECK-LE: ldux 2, 3, 4 # encoding: [0x6a,0x20,0x43,0x7c]
240 ldux 2, 3, 4
241 # CHECK-BE: lq 2, 128(4) # encoding: [0xe0,0x44,0x00,0x80]
242 # CHECK-LE: lq 2, 128(4) # encoding: [0x80,0x00,0x44,0xe0]
243 lq 2, 128(4)
244 # CHECK-BE: lq 28, 128(30) # encoding: [0xe3,0x9e,0x00,0x80]
245 # CHECK-LE: lq 28, 128(30) # encoding: [0x80,0x00,0x9e,0xe3]
246 lq 28, 128(30)
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]
252 stb 2, 128(4)
253 # CHECK-BE: stbx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xae]
254 # CHECK-LE: stbx 2, 3, 4 # encoding: [0xae,0x21,0x43,0x7c]
255 stbx 2, 3, 4
256 # CHECK-BE: stbu 2, 128(4) # encoding: [0x9c,0x44,0x00,0x80]
257 # CHECK-LE: stbu 2, 128(4) # encoding: [0x80,0x00,0x44,0x9c]
258 stbu 2, 128(4)
259 # CHECK-BE: stbux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xee]
260 # CHECK-LE: stbux 2, 3, 4 # encoding: [0xee,0x21,0x43,0x7c]
261 stbux 2, 3, 4
262 # CHECK-BE: sth 2, 128(4) # encoding: [0xb0,0x44,0x00,0x80]
263 # CHECK-LE: sth 2, 128(4) # encoding: [0x80,0x00,0x44,0xb0]
264 sth 2, 128(4)
265 # CHECK-BE: sthx 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x2e]
266 # CHECK-LE: sthx 2, 3, 4 # encoding: [0x2e,0x23,0x43,0x7c]
267 sthx 2, 3, 4
268 # CHECK-BE: sthu 2, 128(4) # encoding: [0xb4,0x44,0x00,0x80]
269 # CHECK-LE: sthu 2, 128(4) # encoding: [0x80,0x00,0x44,0xb4]
270 sthu 2, 128(4)
271 # CHECK-BE: sthux 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x6e]
272 # CHECK-LE: sthux 2, 3, 4 # encoding: [0x6e,0x23,0x43,0x7c]
273 sthux 2, 3, 4
274 # CHECK-BE: stw 2, 128(4) # encoding: [0x90,0x44,0x00,0x80]
275 # CHECK-LE: stw 2, 128(4) # encoding: [0x80,0x00,0x44,0x90]
276 stw 2, 128(4)
277 # CHECK-BE: stwx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x2e]
278 # CHECK-LE: stwx 2, 3, 4 # encoding: [0x2e,0x21,0x43,0x7c]
279 stwx 2, 3, 4
280 # CHECK-BE: stwu 2, 128(4) # encoding: [0x94,0x44,0x00,0x80]
281 # CHECK-LE: stwu 2, 128(4) # encoding: [0x80,0x00,0x44,0x94]
282 stwu 2, 128(4)
283 # CHECK-BE: stwux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x6e]
284 # CHECK-LE: stwux 2, 3, 4 # encoding: [0x6e,0x21,0x43,0x7c]
285 stwux 2, 3, 4
286 # CHECK-BE: std 2, 128(4) # encoding: [0xf8,0x44,0x00,0x80]
287 # CHECK-LE: std 2, 128(4) # encoding: [0x80,0x00,0x44,0xf8]
288 std 2, 128(4)
289 # CHECK-BE: stdx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x2a]
290 # CHECK-LE: stdx 2, 3, 4 # encoding: [0x2a,0x21,0x43,0x7c]
291 stdx 2, 3, 4
292 # CHECK-BE: stdu 2, 128(4) # encoding: [0xf8,0x44,0x00,0x81]
293 # CHECK-LE: stdu 2, 128(4) # encoding: [0x81,0x00,0x44,0xf8]
294 stdu 2, 128(4)
295 # CHECK-BE: stdux 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x6a]
296 # CHECK-LE: stdux 2, 3, 4 # encoding: [0x6a,0x21,0x43,0x7c]
297 stdux 2, 3, 4
298 # CHECK-BE: stq 2, 128(4) # encoding: [0xf8,0x44,0x00,0x82]
299 # CHECK-LE: stq 2, 128(4) # encoding: [0x82,0x00,0x44,0xf8]
300 stq 2, 128(4)
301 # CHECK-BE: stq 28, 128(30) # encoding: [0xfb,0x9e,0x00,0x82]
302 # CHECK-LE: stq 28, 128(30) # encoding: [0x82,0x00,0x9e,0xfb]
303 stq 28, 128(30)
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]
309 lhbrx 2, 3, 4
310 # CHECK-BE: sthbrx 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x2c]
311 # CHECK-LE: sthbrx 2, 3, 4 # encoding: [0x2c,0x27,0x43,0x7c]
312 sthbrx 2, 3, 4
313 # CHECK-BE: lwbrx 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x2c]
314 # CHECK-LE: lwbrx 2, 3, 4 # encoding: [0x2c,0x24,0x43,0x7c]
315 lwbrx 2, 3, 4
316 # CHECK-BE: stwbrx 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x2c]
317 # CHECK-LE: stwbrx 2, 3, 4 # encoding: [0x2c,0x25,0x43,0x7c]
318 stwbrx 2, 3, 4
319 # CHECK-BE: ldbrx 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x28]
320 # CHECK-LE: ldbrx 2, 3, 4 # encoding: [0x28,0x24,0x43,0x7c]
321 ldbrx 2, 3, 4
322 # CHECK-BE: stdbrx 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x28]
323 # CHECK-LE: stdbrx 2, 3, 4 # encoding: [0x28,0x25,0x43,0x7c]
324 stdbrx 2, 3, 4
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]
330 lmw 2, 128(1)
331 # CHECK-BE: stmw 2, 128(1) # encoding: [0xbc,0x41,0x00,0x80]
332 # CHECK-LE: stmw 2, 128(1) # encoding: [0x80,0x00,0x41,0xbc]
333 stmw 2, 128(1)
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]
341 addi 2, 3, 128
342 # CHECK-BE: addis 2, 3, 128 # encoding: [0x3c,0x43,0x00,0x80]
343 # CHECK-LE: addis 2, 3, 128 # encoding: [0x80,0x00,0x43,0x3c]
344 addis 2, 3, 128
345 # CHECK-BE: add 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x14]
346 # CHECK-LE: add 2, 3, 4 # encoding: [0x14,0x22,0x43,0x7c]
347 add 2, 3, 4
348 # CHECK-BE: add. 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x15]
349 # CHECK-LE: add. 2, 3, 4 # encoding: [0x15,0x22,0x43,0x7c]
350 add. 2, 3, 4
351 # CHECK-BE: addo 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x14]
352 # CHECK-LE: addo 2, 3, 4 # encoding: [0x14,0x26,0x43,0x7c]
353 addo 2, 3, 4
354 # CHECK-BE: addo. 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x15]
355 # CHECK-LE: addo. 2, 3, 4 # encoding: [0x15,0x26,0x43,0x7c]
356 addo. 2, 3, 4
357 # CHECK-BE: sub 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x50]
358 # CHECK-LE: sub 2, 4, 3 # encoding: [0x50,0x20,0x43,0x7c]
359 subf 2, 3, 4
360 # CHECK-BE: sub. 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x51]
361 # CHECK-LE: sub. 2, 4, 3 # encoding: [0x51,0x20,0x43,0x7c]
362 subf. 2, 3, 4
363 # CHECK-BE: subfo 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x50]
364 # CHECK-LE: subfo 2, 3, 4 # encoding: [0x50,0x24,0x43,0x7c]
365 subfo 2, 3, 4
366 # CHECK-BE: subfo. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x51]
367 # CHECK-LE: subfo. 2, 3, 4 # encoding: [0x51,0x24,0x43,0x7c]
368 subfo. 2, 3, 4
369 # CHECK-BE: addic 2, 3, 128 # encoding: [0x30,0x43,0x00,0x80]
370 # CHECK-LE: addic 2, 3, 128 # encoding: [0x80,0x00,0x43,0x30]
371 addic 2, 3, 128
372 # CHECK-BE: addic. 2, 3, 128 # encoding: [0x34,0x43,0x00,0x80]
373 # CHECK-LE: addic. 2, 3, 128 # encoding: [0x80,0x00,0x43,0x34]
374 addic. 2, 3, 128
375 # CHECK-BE: subfic 2, 3, 4 # encoding: [0x20,0x43,0x00,0x04]
376 # CHECK-LE: subfic 2, 3, 4 # encoding: [0x04,0x00,0x43,0x20]
377 subfic 2, 3, 4
379 # CHECK-BE: addc 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x14]
380 # CHECK-LE: addc 2, 3, 4 # encoding: [0x14,0x20,0x43,0x7c]
381 addc 2, 3, 4
382 # CHECK-BE: addc. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x15]
383 # CHECK-LE: addc. 2, 3, 4 # encoding: [0x15,0x20,0x43,0x7c]
384 addc. 2, 3, 4
385 # CHECK-BE: addco 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x14]
386 # CHECK-LE: addco 2, 3, 4 # encoding: [0x14,0x24,0x43,0x7c]
387 addco 2, 3, 4
388 # CHECK-BE: addco. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x15]
389 # CHECK-LE: addco. 2, 3, 4 # encoding: [0x15,0x24,0x43,0x7c]
390 addco. 2, 3, 4
391 # CHECK-BE: subc 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x10]
392 # CHECK-LE: subc 2, 4, 3 # encoding: [0x10,0x20,0x43,0x7c]
393 subfc 2, 3, 4
394 # CHECK-BE: subc 2, 4, 3 # encoding: [0x7c,0x43,0x20,0x10]
395 # CHECK-LE: subc 2, 4, 3 # encoding: [0x10,0x20,0x43,0x7c]
396 subfc 2, 3, 4
397 # CHECK-BE: subfco 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x10]
398 # CHECK-LE: subfco 2, 3, 4 # encoding: [0x10,0x24,0x43,0x7c]
399 subfco 2, 3, 4
400 # CHECK-BE: subfco. 2, 3, 4 # encoding: [0x7c,0x43,0x24,0x11]
401 # CHECK-LE: subfco. 2, 3, 4 # encoding: [0x11,0x24,0x43,0x7c]
402 subfco. 2, 3, 4
404 # CHECK-BE: adde 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x14]
405 # CHECK-LE: adde 2, 3, 4 # encoding: [0x14,0x21,0x43,0x7c]
406 adde 2, 3, 4
407 # CHECK-BE: adde. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x15]
408 # CHECK-LE: adde. 2, 3, 4 # encoding: [0x15,0x21,0x43,0x7c]
409 adde. 2, 3, 4
410 # CHECK-BE: addeo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x14]
411 # CHECK-LE: addeo 2, 3, 4 # encoding: [0x14,0x25,0x43,0x7c]
412 addeo 2, 3, 4
413 # CHECK-BE: addeo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x15]
414 # CHECK-LE: addeo. 2, 3, 4 # encoding: [0x15,0x25,0x43,0x7c]
415 addeo. 2, 3, 4
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]
418 addex 2, 4, 5, 0
419 # CHECK-BE: subfe 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x10]
420 # CHECK-LE: subfe 2, 3, 4 # encoding: [0x10,0x21,0x43,0x7c]
421 subfe 2, 3, 4
422 # CHECK-BE: subfe. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x11]
423 # CHECK-LE: subfe. 2, 3, 4 # encoding: [0x11,0x21,0x43,0x7c]
424 subfe. 2, 3, 4
425 # CHECK-BE: subfeo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x10]
426 # CHECK-LE: subfeo 2, 3, 4 # encoding: [0x10,0x25,0x43,0x7c]
427 subfeo 2, 3, 4
428 # CHECK-BE: subfeo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0x11]
429 # CHECK-LE: subfeo. 2, 3, 4 # encoding: [0x11,0x25,0x43,0x7c]
430 subfeo. 2, 3, 4
432 # CHECK-BE: addme 2, 3 # encoding: [0x7c,0x43,0x01,0xd4]
433 # CHECK-LE: addme 2, 3 # encoding: [0xd4,0x01,0x43,0x7c]
434 addme 2, 3
435 # CHECK-BE: addme. 2, 3 # encoding: [0x7c,0x43,0x01,0xd5]
436 # CHECK-LE: addme. 2, 3 # encoding: [0xd5,0x01,0x43,0x7c]
437 addme. 2, 3
438 # CHECK-BE: addmeo 2, 3 # encoding: [0x7c,0x43,0x05,0xd4]
439 # CHECK-LE: addmeo 2, 3 # encoding: [0xd4,0x05,0x43,0x7c]
440 addmeo 2, 3
441 # CHECK-BE: addmeo. 2, 3 # encoding: [0x7c,0x43,0x05,0xd5]
442 # CHECK-LE: addmeo. 2, 3 # encoding: [0xd5,0x05,0x43,0x7c]
443 addmeo. 2, 3
444 # CHECK-BE: subfme 2, 3 # encoding: [0x7c,0x43,0x01,0xd0]
445 # CHECK-LE: subfme 2, 3 # encoding: [0xd0,0x01,0x43,0x7c]
446 subfme 2, 3
447 # CHECK-BE: subfme. 2, 3 # encoding: [0x7c,0x43,0x01,0xd1]
448 # CHECK-LE: subfme. 2, 3 # encoding: [0xd1,0x01,0x43,0x7c]
449 subfme. 2, 3
450 # CHECK-BE: subfmeo 2, 3 # encoding: [0x7c,0x43,0x05,0xd0]
451 # CHECK-LE: subfmeo 2, 3 # encoding: [0xd0,0x05,0x43,0x7c]
452 subfmeo 2, 3
453 # CHECK-BE: subfmeo. 2, 3 # encoding: [0x7c,0x43,0x05,0xd1]
454 # CHECK-LE: subfmeo. 2, 3 # encoding: [0xd1,0x05,0x43,0x7c]
455 subfmeo. 2, 3
457 # CHECK-BE: addze 2, 3 # encoding: [0x7c,0x43,0x01,0x94]
458 # CHECK-LE: addze 2, 3 # encoding: [0x94,0x01,0x43,0x7c]
459 addze 2, 3
460 # CHECK-BE: addze. 2, 3 # encoding: [0x7c,0x43,0x01,0x95]
461 # CHECK-LE: addze. 2, 3 # encoding: [0x95,0x01,0x43,0x7c]
462 addze. 2, 3
463 # CHECK-BE: addzeo 2, 3 # encoding: [0x7c,0x43,0x05,0x94]
464 # CHECK-LE: addzeo 2, 3 # encoding: [0x94,0x05,0x43,0x7c]
465 addzeo 2, 3
466 # CHECK-BE: addzeo. 2, 3 # encoding: [0x7c,0x43,0x05,0x95]
467 # CHECK-LE: addzeo. 2, 3 # encoding: [0x95,0x05,0x43,0x7c]
468 addzeo. 2, 3
469 # CHECK-BE: subfze 2, 3 # encoding: [0x7c,0x43,0x01,0x90]
470 # CHECK-LE: subfze 2, 3 # encoding: [0x90,0x01,0x43,0x7c]
471 subfze 2, 3
472 # CHECK-BE: subfze. 2, 3 # encoding: [0x7c,0x43,0x01,0x91]
473 # CHECK-LE: subfze. 2, 3 # encoding: [0x91,0x01,0x43,0x7c]
474 subfze. 2, 3
475 # CHECK-BE: subfzeo 2, 3 # encoding: [0x7c,0x43,0x05,0x90]
476 # CHECK-LE: subfzeo 2, 3 # encoding: [0x90,0x05,0x43,0x7c]
477 subfzeo 2, 3
478 # CHECK-BE: subfzeo. 2, 3 # encoding: [0x7c,0x43,0x05,0x91]
479 # CHECK-LE: subfzeo. 2, 3 # encoding: [0x91,0x05,0x43,0x7c]
480 subfzeo. 2, 3
482 # CHECK-BE: neg 2, 3 # encoding: [0x7c,0x43,0x00,0xd0]
483 # CHECK-LE: neg 2, 3 # encoding: [0xd0,0x00,0x43,0x7c]
484 neg 2, 3
485 # CHECK-BE: neg. 2, 3 # encoding: [0x7c,0x43,0x00,0xd1]
486 # CHECK-LE: neg. 2, 3 # encoding: [0xd1,0x00,0x43,0x7c]
487 neg. 2, 3
488 # CHECK-BE: nego 2, 3 # encoding: [0x7c,0x43,0x04,0xd0]
489 # CHECK-LE: nego 2, 3 # encoding: [0xd0,0x04,0x43,0x7c]
490 nego 2, 3
491 # CHECK-BE: nego. 2, 3 # encoding: [0x7c,0x43,0x04,0xd1]
492 # CHECK-LE: nego. 2, 3 # encoding: [0xd1,0x04,0x43,0x7c]
493 nego. 2, 3
495 # CHECK-BE: mulli 2, 3, 128 # encoding: [0x1c,0x43,0x00,0x80]
496 # CHECK-LE: mulli 2, 3, 128 # encoding: [0x80,0x00,0x43,0x1c]
497 mulli 2, 3, 128
498 # CHECK-BE: mulhw 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x96]
499 # CHECK-LE: mulhw 2, 3, 4 # encoding: [0x96,0x20,0x43,0x7c]
500 mulhw 2, 3, 4
501 # CHECK-BE: mulhw. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x97]
502 # CHECK-LE: mulhw. 2, 3, 4 # encoding: [0x97,0x20,0x43,0x7c]
503 mulhw. 2, 3, 4
504 # CHECK-BE: mullw 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd6]
505 # CHECK-LE: mullw 2, 3, 4 # encoding: [0xd6,0x21,0x43,0x7c]
506 mullw 2, 3, 4
507 # CHECK-BE: mullw. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd7]
508 # CHECK-LE: mullw. 2, 3, 4 # encoding: [0xd7,0x21,0x43,0x7c]
509 mullw. 2, 3, 4
510 # CHECK-BE: mullwo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd6]
511 # CHECK-LE: mullwo 2, 3, 4 # encoding: [0xd6,0x25,0x43,0x7c]
512 mullwo 2, 3, 4
513 # CHECK-BE: mullwo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd7]
514 # CHECK-LE: mullwo. 2, 3, 4 # encoding: [0xd7,0x25,0x43,0x7c]
515 mullwo. 2, 3, 4
516 # CHECK-BE: mulhwu 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x16]
517 # CHECK-LE: mulhwu 2, 3, 4 # encoding: [0x16,0x20,0x43,0x7c]
518 mulhwu 2, 3, 4
519 # CHECK-BE: mulhwu. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x17]
520 # CHECK-LE: mulhwu. 2, 3, 4 # encoding: [0x17,0x20,0x43,0x7c]
521 mulhwu. 2, 3, 4
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]
525 maddhd 2, 3, 4, 5
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]
529 maddhdu 2, 3, 4, 5
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]
533 maddld 2, 3, 4, 5
535 # CHECK-BE: setb 2, 3 # encoding: [0x7c,0x4c,0x01,0x00]
536 # CHECK-LE: setb 2, 3 # encoding: [0x00,0x01,0x4c,0x7c]
537 setb 2, 3
539 # CHECK-BE: darn 2, 3 # encoding: [0x7c,0x43,0x05,0xe6]
540 # CHECK-LE: darn 2, 3 # encoding: [0xe6,0x05,0x43,0x7c]
541 darn 2, 3
543 # CHECK-BE: addpcis 3, 22627 # encoding: [0x4c,0x71,0x58,0x45]
544 # CHECK-LE: addpcis 3, 22627 # encoding: [0x45,0x58,0x71,0x4c]
545 addpcis 3, 22627
547 # CHECK-BE: addpcis 3, 22627 # encoding: [0x4c,0x71,0x58,0x45]
548 # CHECK-LE: addpcis 3, 22627 # encoding: [0x45,0x58,0x71,0x4c]
549 subpcis 3, -22627
551 # CHECK-BE: lnia 3 # encoding: [0x4c,0x60,0x00,0x04]
552 # CHECK-LE: lnia 3 # encoding: [0x04,0x00,0x60,0x4c]
553 lnia 3
555 # CHECK-BE: divw 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd6]
556 # CHECK-LE: divw 2, 3, 4 # encoding: [0xd6,0x23,0x43,0x7c]
557 divw 2, 3, 4
558 # CHECK-BE: divw. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd7]
559 # CHECK-LE: divw. 2, 3, 4 # encoding: [0xd7,0x23,0x43,0x7c]
560 divw. 2, 3, 4
561 # CHECK-BE: divwo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd6]
562 # CHECK-LE: divwo 2, 3, 4 # encoding: [0xd6,0x27,0x43,0x7c]
563 divwo 2, 3, 4
564 # CHECK-BE: divwo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd7]
565 # CHECK-LE: divwo. 2, 3, 4 # encoding: [0xd7,0x27,0x43,0x7c]
566 divwo. 2, 3, 4
567 # CHECK-BE: divwu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x96]
568 # CHECK-LE: divwu 2, 3, 4 # encoding: [0x96,0x23,0x43,0x7c]
569 divwu 2, 3, 4
570 # CHECK-BE: divwu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x97]
571 # CHECK-LE: divwu. 2, 3, 4 # encoding: [0x97,0x23,0x43,0x7c]
572 divwu. 2, 3, 4
573 # CHECK-BE: divwuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x96]
574 # CHECK-LE: divwuo 2, 3, 4 # encoding: [0x96,0x27,0x43,0x7c]
575 divwuo 2, 3, 4
576 # CHECK-BE: divwuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x97]
577 # CHECK-LE: divwuo. 2, 3, 4 # encoding: [0x97,0x27,0x43,0x7c]
578 divwuo. 2, 3, 4
579 # CHECK-BE: divwe 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x56]
580 # CHECK-LE: divwe 2, 3, 4 # encoding: [0x56,0x23,0x43,0x7c]
581 divwe 2, 3, 4
582 # CHECK-BE: divwe. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x57]
583 # CHECK-LE: divwe. 2, 3, 4 # encoding: [0x57,0x23,0x43,0x7c]
584 divwe. 2, 3, 4
585 # CHECK-BE: divweo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x56]
586 # CHECK-LE: divweo 2, 3, 4 # encoding: [0x56,0x27,0x43,0x7c]
587 divweo 2, 3, 4
588 # CHECK-BE: divweo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x57]
589 # CHECK-LE: divweo. 2, 3, 4 # encoding: [0x57,0x27,0x43,0x7c]
590 divweo. 2, 3, 4
591 # CHECK-BE: divweu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x16]
592 # CHECK-LE: divweu 2, 3, 4 # encoding: [0x16,0x23,0x43,0x7c]
593 divweu 2, 3, 4
594 # CHECK-BE: divweu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x17]
595 # CHECK-LE: divweu. 2, 3, 4 # encoding: [0x17,0x23,0x43,0x7c]
596 divweu. 2, 3, 4
597 # CHECK-BE: divweuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x16]
598 # CHECK-LE: divweuo 2, 3, 4 # encoding: [0x16,0x27,0x43,0x7c]
599 divweuo 2, 3, 4
600 # CHECK-BE: divweuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x17]
601 # CHECK-LE: divweuo. 2, 3, 4 # encoding: [0x17,0x27,0x43,0x7c]
602 divweuo. 2, 3, 4
604 # CHECK-BE: modsw 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x16]
605 # CHECK-LE: modsw 2, 3, 4 # encoding: [0x16,0x26,0x43,0x7c]
606 modsw 2, 3, 4
607 # CHECK-BE: moduw 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x16]
608 # CHECK-LE: moduw 2, 3, 4 # encoding: [0x16,0x22,0x43,0x7c]
609 moduw 2, 3, 4
610 # CHECK-BE: modsd 2, 3, 4 # encoding: [0x7c,0x43,0x26,0x12]
611 # CHECK-LE: modsd 2, 3, 4 # encoding: [0x12,0x26,0x43,0x7c]
612 modsd 2, 3, 4
613 # CHECK-BE: modud 2, 3, 4 # encoding: [0x7c,0x43,0x22,0x12]
614 # CHECK-LE: modud 2, 3, 4 # encoding: [0x12,0x22,0x43,0x7c]
615 modud 2, 3, 4
617 # CHECK-BE: mulld 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd2]
618 # CHECK-LE: mulld 2, 3, 4 # encoding: [0xd2,0x21,0x43,0x7c]
619 mulld 2, 3, 4
620 # CHECK-BE: mulld. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xd3]
621 # CHECK-LE: mulld. 2, 3, 4 # encoding: [0xd3,0x21,0x43,0x7c]
622 mulld. 2, 3, 4
623 # CHECK-BE: mulldo 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd2]
624 # CHECK-LE: mulldo 2, 3, 4 # encoding: [0xd2,0x25,0x43,0x7c]
625 mulldo 2, 3, 4
626 # CHECK-BE: mulldo. 2, 3, 4 # encoding: [0x7c,0x43,0x25,0xd3]
627 # CHECK-LE: mulldo. 2, 3, 4 # encoding: [0xd3,0x25,0x43,0x7c]
628 mulldo. 2, 3, 4
629 # CHECK-BE: mulhd 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x92]
630 # CHECK-LE: mulhd 2, 3, 4 # encoding: [0x92,0x20,0x43,0x7c]
631 mulhd 2, 3, 4
632 # CHECK-BE: mulhd. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x93]
633 # CHECK-LE: mulhd. 2, 3, 4 # encoding: [0x93,0x20,0x43,0x7c]
634 mulhd. 2, 3, 4
635 # CHECK-BE: mulhdu 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x12]
636 # CHECK-LE: mulhdu 2, 3, 4 # encoding: [0x12,0x20,0x43,0x7c]
637 mulhdu 2, 3, 4
638 # CHECK-BE: mulhdu. 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x13]
639 # CHECK-LE: mulhdu. 2, 3, 4 # encoding: [0x13,0x20,0x43,0x7c]
640 mulhdu. 2, 3, 4
642 # CHECK-BE: divd 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd2]
643 # CHECK-LE: divd 2, 3, 4 # encoding: [0xd2,0x23,0x43,0x7c]
644 divd 2, 3, 4
645 # CHECK-BE: divd. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xd3]
646 # CHECK-LE: divd. 2, 3, 4 # encoding: [0xd3,0x23,0x43,0x7c]
647 divd. 2, 3, 4
648 # CHECK-BE: divdo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd2]
649 # CHECK-LE: divdo 2, 3, 4 # encoding: [0xd2,0x27,0x43,0x7c]
650 divdo 2, 3, 4
651 # CHECK-BE: divdo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0xd3]
652 # CHECK-LE: divdo. 2, 3, 4 # encoding: [0xd3,0x27,0x43,0x7c]
653 divdo. 2, 3, 4
654 # CHECK-BE: divdu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x92]
655 # CHECK-LE: divdu 2, 3, 4 # encoding: [0x92,0x23,0x43,0x7c]
656 divdu 2, 3, 4
657 # CHECK-BE: divdu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x93]
658 # CHECK-LE: divdu. 2, 3, 4 # encoding: [0x93,0x23,0x43,0x7c]
659 divdu. 2, 3, 4
660 # CHECK-BE: divduo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x92]
661 # CHECK-LE: divduo 2, 3, 4 # encoding: [0x92,0x27,0x43,0x7c]
662 divduo 2, 3, 4
663 # CHECK-BE: divduo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x93]
664 # CHECK-LE: divduo. 2, 3, 4 # encoding: [0x93,0x27,0x43,0x7c]
665 divduo. 2, 3, 4
666 # CHECK-BE: divde 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x52]
667 # CHECK-LE: divde 2, 3, 4 # encoding: [0x52,0x23,0x43,0x7c]
668 divde 2, 3, 4
669 # CHECK-BE: divde. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x53]
670 # CHECK-LE: divde. 2, 3, 4 # encoding: [0x53,0x23,0x43,0x7c]
671 divde. 2, 3, 4
672 # CHECK-BE: divdeo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x52]
673 # CHECK-LE: divdeo 2, 3, 4 # encoding: [0x52,0x27,0x43,0x7c]
674 divdeo 2, 3, 4
675 # CHECK-BE: divdeo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x53]
676 # CHECK-LE: divdeo. 2, 3, 4 # encoding: [0x53,0x27,0x43,0x7c]
677 divdeo. 2, 3, 4
678 # CHECK-BE: divdeu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x12]
679 # CHECK-LE: divdeu 2, 3, 4 # encoding: [0x12,0x23,0x43,0x7c]
680 divdeu 2, 3, 4
681 # CHECK-BE: divdeu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x13]
682 # CHECK-LE: divdeu. 2, 3, 4 # encoding: [0x13,0x23,0x43,0x7c]
683 divdeu. 2, 3, 4
684 # CHECK-BE: divdeuo 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x12]
685 # CHECK-LE: divdeuo 2, 3, 4 # encoding: [0x12,0x27,0x43,0x7c]
686 divdeuo 2, 3, 4
687 # CHECK-BE: divdeuo. 2, 3, 4 # encoding: [0x7c,0x43,0x27,0x13]
688 # CHECK-LE: divdeuo. 2, 3, 4 # encoding: [0x13,0x27,0x43,0x7c]
689 divdeuo. 2, 3, 4
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]
695 cmpi 2, 1, 3, 128
696 # CHECK-BE: cmpd 2, 3, 4 # encoding: [0x7d,0x23,0x20,0x00]
697 # CHECK-LE: cmpd 2, 3, 4 # encoding: [0x00,0x20,0x23,0x7d]
698 cmp 2, 1, 3, 4
699 # CHECK-BE: cmpldi 2, 3, 128 # encoding: [0x29,0x23,0x00,0x80]
700 # CHECK-LE: cmpldi 2, 3, 128 # encoding: [0x80,0x00,0x23,0x29]
701 cmpli 2, 1, 3, 128
702 # CHECK-BE: cmpld 2, 3, 4 # encoding: [0x7d,0x23,0x20,0x40]
703 # CHECK-LE: cmpld 2, 3, 4 # encoding: [0x40,0x20,0x23,0x7d]
704 cmpl 2, 1, 3, 4
706 # CHECK-BE: cmpwi 2, 3, 128 # encoding: [0x2d,0x03,0x00,0x80]
707 # CHECK-LE: cmpwi 2, 3, 128 # encoding: [0x80,0x00,0x03,0x2d]
708 cmpi 2, 0, 3, 128
709 # CHECK-BE: cmpw 2, 3, 4 # encoding: [0x7d,0x03,0x20,0x00]
710 # CHECK-LE: cmpw 2, 3, 4 # encoding: [0x00,0x20,0x03,0x7d]
711 cmp 2, 0, 3, 4
712 # CHECK-BE: cmplwi 2, 3, 128 # encoding: [0x29,0x03,0x00,0x80]
713 # CHECK-LE: cmplwi 2, 3, 128 # encoding: [0x80,0x00,0x03,0x29]
714 cmpli 2, 0, 3, 128
715 # CHECK-BE: cmplw 2, 3, 4 # encoding: [0x7d,0x03,0x20,0x40]
716 # CHECK-LE: cmplw 2, 3, 4 # encoding: [0x40,0x20,0x03,0x7d]
717 cmpl 2, 0, 3, 4
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]
720 cmprb 3, 1, 7, 17
721 # CHECK-BE: cmpeqb 3, 7, 17 # encoding: [0x7d,0x87,0x89,0xc0]
722 # CHECK-LE: cmpeqb 3, 7, 17 # encoding: [0xc0,0x89,0x87,0x7d]
723 cmpeqb 3, 7, 17
724 # CHECK-BE: cnttzw 7, 17 # encoding: [0x7e,0x27,0x04,0x34]
725 # CHECK-LE: cnttzw 7, 17 # encoding: [0x34,0x04,0x27,0x7e]
726 cnttzw 7, 17
727 # CHECK-BE: cnttzw. 7, 17 # encoding: [0x7e,0x27,0x04,0x35]
728 # CHECK-LE: cnttzw. 7, 17 # encoding: [0x35,0x04,0x27,0x7e]
729 cnttzw. 7, 17
730 # CHECK-BE: cnttzd 7, 17 # encoding: [0x7e,0x27,0x04,0x74]
731 # CHECK-LE: cnttzd 7, 17 # encoding: [0x74,0x04,0x27,0x7e]
732 cnttzd 7, 17
733 # CHECK-BE: cnttzd. 7, 17 # encoding: [0x7e,0x27,0x04,0x75]
734 # CHECK-LE: cnttzd. 7, 17 # encoding: [0x75,0x04,0x27,0x7e]
735 cnttzd. 7, 17
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]
741 twi 2, 3, 4
742 # CHECK-BE: twllt 3, 4 # encoding: [0x7c,0x43,0x20,0x08]
743 # CHECK-LE: twllt 3, 4 # encoding: [0x08,0x20,0x43,0x7c]
744 tw 2, 3, 4
745 # CHECK-BE: tdllti 3, 4 # encoding: [0x08,0x43,0x00,0x04]
746 # CHECK-LE: tdllti 3, 4 # encoding: [0x04,0x00,0x43,0x08]
747 tdi 2, 3, 4
748 # CHECK-BE: tdllt 3, 4 # encoding: [0x7c,0x43,0x20,0x88]
749 # CHECK-LE: tdllt 3, 4 # encoding: [0x88,0x20,0x43,0x7c]
750 td 2, 3, 4
752 # Fixed-point select
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]
756 isel 2, 3, 4, 5
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]
762 andi. 2, 3, 128
763 # CHECK-BE: andis. 2, 3, 128 # encoding: [0x74,0x62,0x00,0x80]
764 # CHECK-LE: andis. 2, 3, 128 # encoding: [0x80,0x00,0x62,0x74]
765 andis. 2, 3, 128
766 # CHECK-BE: ori 2, 3, 128 # encoding: [0x60,0x62,0x00,0x80]
767 # CHECK-LE: ori 2, 3, 128 # encoding: [0x80,0x00,0x62,0x60]
768 ori 2, 3, 128
769 # CHECK-BE: oris 2, 3, 128 # encoding: [0x64,0x62,0x00,0x80]
770 # CHECK-LE: oris 2, 3, 128 # encoding: [0x80,0x00,0x62,0x64]
771 oris 2, 3, 128
772 # CHECK-BE: xori 2, 3, 128 # encoding: [0x68,0x62,0x00,0x80]
773 # CHECK-LE: xori 2, 3, 128 # encoding: [0x80,0x00,0x62,0x68]
774 xori 2, 3, 128
775 # CHECK-BE: xoris 2, 3, 128 # encoding: [0x6c,0x62,0x00,0x80]
776 # CHECK-LE: xoris 2, 3, 128 # encoding: [0x80,0x00,0x62,0x6c]
777 xoris 2, 3, 128
778 # CHECK-BE: and 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x38]
779 # CHECK-LE: and 2, 3, 4 # encoding: [0x38,0x20,0x62,0x7c]
780 and 2, 3, 4
781 # CHECK-BE: and. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x39]
782 # CHECK-LE: and. 2, 3, 4 # encoding: [0x39,0x20,0x62,0x7c]
783 and. 2, 3, 4
784 # CHECK-BE: xor 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x78]
785 # CHECK-LE: xor 2, 3, 4 # encoding: [0x78,0x22,0x62,0x7c]
786 xor 2, 3, 4
787 # CHECK-BE: xor. 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x79]
788 # CHECK-LE: xor. 2, 3, 4 # encoding: [0x79,0x22,0x62,0x7c]
789 xor. 2, 3, 4
790 # CHECK-BE: nand 2, 3, 4 # encoding: [0x7c,0x62,0x23,0xb8]
791 # CHECK-LE: nand 2, 3, 4 # encoding: [0xb8,0x23,0x62,0x7c]
792 nand 2, 3, 4
793 # CHECK-BE: nand. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0xb9]
794 # CHECK-LE: nand. 2, 3, 4 # encoding: [0xb9,0x23,0x62,0x7c]
795 nand. 2, 3, 4
796 # CHECK-BE: or 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x78]
797 # CHECK-LE: or 2, 3, 4 # encoding: [0x78,0x23,0x62,0x7c]
798 or 2, 3, 4
799 # CHECK-BE: or. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x79]
800 # CHECK-LE: or. 2, 3, 4 # encoding: [0x79,0x23,0x62,0x7c]
801 or. 2, 3, 4
802 # CHECK-BE: nor 2, 3, 4 # encoding: [0x7c,0x62,0x20,0xf8]
803 # CHECK-LE: nor 2, 3, 4 # encoding: [0xf8,0x20,0x62,0x7c]
804 nor 2, 3, 4
805 # CHECK-BE: nor. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0xf9]
806 # CHECK-LE: nor. 2, 3, 4 # encoding: [0xf9,0x20,0x62,0x7c]
807 nor. 2, 3, 4
808 # CHECK-BE: eqv 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x38]
809 # CHECK-LE: eqv 2, 3, 4 # encoding: [0x38,0x22,0x62,0x7c]
810 eqv 2, 3, 4
811 # CHECK-BE: eqv. 2, 3, 4 # encoding: [0x7c,0x62,0x22,0x39]
812 # CHECK-LE: eqv. 2, 3, 4 # encoding: [0x39,0x22,0x62,0x7c]
813 eqv. 2, 3, 4
814 # CHECK-BE: andc 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x78]
815 # CHECK-LE: andc 2, 3, 4 # encoding: [0x78,0x20,0x62,0x7c]
816 andc 2, 3, 4
817 # CHECK-BE: andc. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x79]
818 # CHECK-LE: andc. 2, 3, 4 # encoding: [0x79,0x20,0x62,0x7c]
819 andc. 2, 3, 4
820 # CHECK-BE: orc 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x38]
821 # CHECK-LE: orc 2, 3, 4 # encoding: [0x38,0x23,0x62,0x7c]
822 orc 2, 3, 4
823 # CHECK-BE: orc. 2, 3, 4 # encoding: [0x7c,0x62,0x23,0x39]
824 # CHECK-LE: orc. 2, 3, 4 # encoding: [0x39,0x23,0x62,0x7c]
825 orc. 2, 3, 4
827 # CHECK-BE: extsb 2, 3 # encoding: [0x7c,0x62,0x07,0x74]
828 # CHECK-LE: extsb 2, 3 # encoding: [0x74,0x07,0x62,0x7c]
829 extsb 2, 3
830 # CHECK-BE: extsb. 2, 3 # encoding: [0x7c,0x62,0x07,0x75]
831 # CHECK-LE: extsb. 2, 3 # encoding: [0x75,0x07,0x62,0x7c]
832 extsb. 2, 3
833 # CHECK-BE: extsh 2, 3 # encoding: [0x7c,0x62,0x07,0x34]
834 # CHECK-LE: extsh 2, 3 # encoding: [0x34,0x07,0x62,0x7c]
835 extsh 2, 3
836 # CHECK-BE: extsh. 2, 3 # encoding: [0x7c,0x62,0x07,0x35]
837 # CHECK-LE: extsh. 2, 3 # encoding: [0x35,0x07,0x62,0x7c]
838 extsh. 2, 3
840 # CHECK-BE: cntlzw 2, 3 # encoding: [0x7c,0x62,0x00,0x34]
841 # CHECK-LE: cntlzw 2, 3 # encoding: [0x34,0x00,0x62,0x7c]
842 cntlzw 2, 3
843 # CHECK-BE: cntlzw. 2, 3 # encoding: [0x7c,0x62,0x00,0x35]
844 # CHECK-LE: cntlzw. 2, 3 # encoding: [0x35,0x00,0x62,0x7c]
845 cntlzw. 2, 3
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]
850 cntlz 2, 3
851 # CHECK-BE: cntlzw. 2, 3 # encoding: [0x7c,0x62,0x00,0x35]
852 # CHECK-LE: cntlzw. 2, 3 # encoding: [0x35,0x00,0x62,0x7c]
853 cntlz. 2, 3
854 cmpb 7, 21, 4
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]
859 popcntb 2, 3
860 # CHECK-BE: popcntw 2, 3 # encoding: [0x7c,0x62,0x02,0xf4]
861 # CHECK-LE: popcntw 2, 3 # encoding: [0xf4,0x02,0x62,0x7c]
862 popcntw 2, 3
863 # FIXME: prtyd 2, 3
864 # FIXME: prtyw 2, 3
866 # CHECK-BE: extsw 2, 3 # encoding: [0x7c,0x62,0x07,0xb4]
867 # CHECK-LE: extsw 2, 3 # encoding: [0xb4,0x07,0x62,0x7c]
868 extsw 2, 3
869 # CHECK-BE: extsw. 2, 3 # encoding: [0x7c,0x62,0x07,0xb5]
870 # CHECK-LE: extsw. 2, 3 # encoding: [0xb5,0x07,0x62,0x7c]
871 extsw. 2, 3
873 # CHECK-BE: cntlzd 2, 3 # encoding: [0x7c,0x62,0x00,0x74]
874 # CHECK-LE: cntlzd 2, 3 # encoding: [0x74,0x00,0x62,0x7c]
875 cntlzd 2, 3
876 # CHECK-BE: cntlzd. 2, 3 # encoding: [0x7c,0x62,0x00,0x75]
877 # CHECK-LE: cntlzd. 2, 3 # encoding: [0x75,0x00,0x62,0x7c]
878 cntlzd. 2, 3
879 # CHECK-BE: popcntd 2, 3 # encoding: [0x7c,0x62,0x03,0xf4]
880 # CHECK-LE: popcntd 2, 3 # encoding: [0xf4,0x03,0x62,0x7c]
881 popcntd 2, 3
882 # CHECK-BE: bpermd 2, 3, 4 # encoding: [0x7c,0x62,0x21,0xf8]
883 # CHECK-LE: bpermd 2, 3, 4 # encoding: [0xf8,0x21,0x62,0x7c]
884 bpermd 2, 3, 4
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]
890 rlwinm 2, 3, 4, 5, 6
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]
896 rlwnm 2, 3, 4, 5, 6
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]
899 rlwnm. 2, 3, 4, 5, 6
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]
902 rlwimi 2, 3, 4, 5, 6
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]
908 rldicl 2, 3, 4, 5
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]
911 rldicl. 2, 3, 4, 5
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]
914 rldicr 2, 3, 4, 5
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]
917 rldicr. 2, 3, 4, 5
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]
920 rldic 2, 3, 4, 5
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]
923 rldic. 2, 3, 4, 5
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]
926 rldcl 2, 3, 4, 5
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]
929 rldcl. 2, 3, 4, 5
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]
932 rldcr 2, 3, 4, 5
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]
935 rldcr. 2, 3, 4, 5
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]
938 rldimi 2, 3, 4, 5
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]
941 rldimi. 2, 3, 4, 5
943 # Aliases that take bit masks...
945 # CHECK-BE: rlwinm 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xfe]
946 rlwinm 0, 0, 30, 1
947 # CHECK-BE: rlwinm. 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xff]
948 rlwinm. 0, 0, 30, 1
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]
954 rlwimi 0, 0, 30, 1
955 # CHECK-BE: rlwimi. 0, 0, 30, 31, 31 # encoding: [0x50,0x00,0xf7,0xff]
956 rlwimi. 0, 0, 30, 1
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]
962 rlwnm 0, 0, 30, 1
963 # CHECK-BE: rlwnm. 0, 0, 30, 31, 31 # encoding: [0x5c,0x00,0xf7,0xff]
964 rlwnm. 0, 0, 30, 1
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]
972 slw 2, 3, 4
973 # CHECK-BE: slw. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x31]
974 # CHECK-LE: slw. 2, 3, 4 # encoding: [0x31,0x20,0x62,0x7c]
975 slw. 2, 3, 4
976 # CHECK-BE: srw 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x30]
977 # CHECK-LE: srw 2, 3, 4 # encoding: [0x30,0x24,0x62,0x7c]
978 srw 2, 3, 4
979 # CHECK-BE: srw. 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x31]
980 # CHECK-LE: srw. 2, 3, 4 # encoding: [0x31,0x24,0x62,0x7c]
981 srw. 2, 3, 4
982 # CHECK-BE: srawi 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x70]
983 # CHECK-LE: srawi 2, 3, 4 # encoding: [0x70,0x26,0x62,0x7c]
984 srawi 2, 3, 4
985 # CHECK-BE: srawi. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x71]
986 # CHECK-LE: srawi. 2, 3, 4 # encoding: [0x71,0x26,0x62,0x7c]
987 srawi. 2, 3, 4
988 # CHECK-BE: sraw 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x30]
989 # CHECK-LE: sraw 2, 3, 4 # encoding: [0x30,0x26,0x62,0x7c]
990 sraw 2, 3, 4
991 # CHECK-BE: sraw. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x31]
992 # CHECK-LE: sraw. 2, 3, 4 # encoding: [0x31,0x26,0x62,0x7c]
993 sraw. 2, 3, 4
994 # CHECK-BE: sld 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x36]
995 # CHECK-LE: sld 2, 3, 4 # encoding: [0x36,0x20,0x62,0x7c]
996 sld 2, 3, 4
997 # CHECK-BE: sld. 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x37]
998 # CHECK-LE: sld. 2, 3, 4 # encoding: [0x37,0x20,0x62,0x7c]
999 sld. 2, 3, 4
1000 # CHECK-BE: srd 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x36]
1001 # CHECK-LE: srd 2, 3, 4 # encoding: [0x36,0x24,0x62,0x7c]
1002 srd 2, 3, 4
1003 # CHECK-BE: srd. 2, 3, 4 # encoding: [0x7c,0x62,0x24,0x37]
1004 # CHECK-LE: srd. 2, 3, 4 # encoding: [0x37,0x24,0x62,0x7c]
1005 srd. 2, 3, 4
1006 # CHECK-BE: sradi 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x74]
1007 # CHECK-LE: sradi 2, 3, 4 # encoding: [0x74,0x26,0x62,0x7c]
1008 sradi 2, 3, 4
1009 # CHECK-BE: sradi. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x75]
1010 # CHECK-LE: sradi. 2, 3, 4 # encoding: [0x75,0x26,0x62,0x7c]
1011 sradi. 2, 3, 4
1012 # CHECK-BE: srad 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x34]
1013 # CHECK-LE: srad 2, 3, 4 # encoding: [0x34,0x26,0x62,0x7c]
1014 srad 2, 3, 4
1015 # CHECK-BE: srad. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0x35]
1016 # CHECK-LE: srad. 2, 3, 4 # encoding: [0x35,0x26,0x62,0x7c]
1017 srad. 2, 3, 4
1018 # CHECK-BE: extswsli 2, 3, 4 # encoding: [0x7c,0x62,0x26,0xf4]
1019 # CHECK-LE: extswsli 2, 3, 4 # encoding: [0xf4,0x26,0x62,0x7c]
1020 extswsli 2, 3, 4
1021 # CHECK-BE: extswsli. 2, 3, 4 # encoding: [0x7c,0x62,0x26,0xf5]
1022 # CHECK-LE: extswsli. 2, 3, 4 # encoding: [0xf5,0x26,0x62,0x7c]
1023 extswsli. 2, 3, 4
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]
1030 cdtbcd 2, 7
1031 # CHECK-BE: cbcdtd 2, 7 # encoding: [0x7c,0xe2,0x02,0x74]
1032 # CHECK-LE: cbcdtd 2, 7 # encoding: [0x74,0x02,0xe2,0x7c]
1033 cbcdtd 2, 7
1034 # CHECK-BE: addg6s 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x94]
1035 # CHECK-LE: addg6s 2, 3, 4 # encoding: [0x94,0x20,0x43,0x7c]
1036 addg6s 2, 3, 4
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]
1042 mtspr 600, 2
1043 # CHECK-BE: mfspr 2, 600 # encoding: [0x7c,0x58,0x92,0xa6]
1044 # CHECK-LE: mfspr 2, 600 # encoding: [0xa6,0x92,0x58,0x7c]
1045 mfspr 2, 600
1046 # CHECK-BE: mtcrf 123, 2 # encoding: [0x7c,0x47,0xb1,0x20]
1047 # CHECK-LE: mtcrf 123, 2 # encoding: [0x20,0xb1,0x47,0x7c]
1048 mtcrf 123, 2
1049 # CHECK-BE: mfcr 2 # encoding: [0x7c,0x40,0x00,0x26]
1050 # CHECK-LE: mfcr 2 # encoding: [0x26,0x00,0x40,0x7c]
1051 mfcr 2
1052 # CHECK-BE: mtocrf 16, 2 # encoding: [0x7c,0x51,0x01,0x20]
1053 # CHECK-LE: mtocrf 16, 2 # encoding: [0x20,0x01,0x51,0x7c]
1054 mtocrf 16, 2
1055 # CHECK-BE: mfocrf 16, 8 # encoding: [0x7e,0x10,0x80,0x26]
1056 # CHECK-LE: mfocrf 16, 8 # encoding: [0x26,0x80,0x10,0x7e]
1057 mfocrf 16, 8
1058 # CHECK-BE: mcrxrx 7 # encoding: [0x7f,0x80,0x04,0x80]
1059 # CHECK-LE: mcrxrx 7 # encoding: [0x80,0x04,0x80,0x7f]
1060 mcrxrx 7
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]
1065 mtsr 12,%r10
1066 # CHECK-BE: mfsr 10, 12 # encoding: [0x7d,0x4c,0x04,0xa6]
1067 # CHECK-LE: mfsr 10, 12 # encoding: [0xa6,0x04,0x4c,0x7d]
1068 mfsr %r10,12
1070 # CHECK-BE: mtsrin 10, 12 # encoding: [0x7d,0x40,0x61,0xe4]
1071 # CHECK-LE: mtsrin 10, 12 # encoding: [0xe4,0x61,0x40,0x7d]
1072 mtsrin %r10,%r12
1073 # CHECK-BE: mfsrin 10, 12 # encoding: [0x7d,0x40,0x65,0x26]
1074 # CHECK-LE: mfsrin 10, 12 # encoding: [0x26,0x65,0x40,0x7d]
1075 mfsrin %r10,%r12
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]
1080 copy 2, 19
1081 # CHECK-BE: paste. 17, 1 # encoding: [0x7c,0x31,0x0f,0x0d]
1082 # CHECK-LE: paste. 17, 1 # encoding: [0x0d,0x0f,0x31,0x7c]
1083 paste. 17, 1, 1
1084 # CHECK-BE: cpabort # encoding: [0x7c,0x00,0x06,0x8c]
1085 # CHECK-LE: cpabort # encoding: [0x8c,0x06,0x00,0x7c]
1086 cpabort
1089 # Message Synchronize
1090 # CHECK-BE: msgsync # encoding: [0x7c,0x00,0x06,0xec]
1091 # CHECK-LE: msgsync # encoding: [0xec,0x06,0x00,0x7c]
1092 msgsync
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]
1097 slbieg 6, 21
1099 # SLB Synchronize
1100 # CHECK-BE: slbsync # encoding: [0x7c,0x00,0x02,0xa4]
1101 # CHECK-LE: slbsync # encoding: [0xa4,0x02,0x00,0x7c]
1102 slbsync
1104 # Power-Saving Mode Instruction
1105 # CHECK-BE: stop # encoding: [0x4c,0x00,0x02,0xe4]
1106 # CHECK-LE: stop # encoding: [0xe4,0x02,0x00,0x4c]
1107 stop