2005-05-24 Paolo Bonzini <bonzini@gnu.org>
[binutils.git] / opcodes / ppc-opc.c
blob51fcfe25a6d2cdd9ddefd4ac26281c87b52eef81
1 /* ppc-opc.c -- PowerPC opcode list
2 Copyright 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004
3 Free Software Foundation, Inc.
4 Written by Ian Lance Taylor, Cygnus Support
6 This file is part of GDB, GAS, and the GNU binutils.
8 GDB, GAS, and the GNU binutils are free software; you can redistribute
9 them and/or modify them under the terms of the GNU General Public
10 License as published by the Free Software Foundation; either version
11 2, or (at your option) any later version.
13 GDB, GAS, and the GNU binutils are distributed in the hope that they
14 will be useful, but WITHOUT ANY WARRANTY; without even the implied
15 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
16 the GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this file; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA. */
23 #include <stdio.h>
24 #include "sysdep.h"
25 #include "opcode/ppc.h"
26 #include "opintl.h"
28 /* This file holds the PowerPC opcode table. The opcode table
29 includes almost all of the extended instruction mnemonics. This
30 permits the disassembler to use them, and simplifies the assembler
31 logic, at the cost of increasing the table size. The table is
32 strictly constant data, so the compiler should be able to put it in
33 the .text section.
35 This file also holds the operand table. All knowledge about
36 inserting operands into instructions and vice-versa is kept in this
37 file. */
39 /* Local insertion and extraction functions. */
41 static unsigned long insert_bat (unsigned long, long, int, const char **);
42 static long extract_bat (unsigned long, int, int *);
43 static unsigned long insert_bba (unsigned long, long, int, const char **);
44 static long extract_bba (unsigned long, int, int *);
45 static unsigned long insert_bd (unsigned long, long, int, const char **);
46 static long extract_bd (unsigned long, int, int *);
47 static unsigned long insert_bdm (unsigned long, long, int, const char **);
48 static long extract_bdm (unsigned long, int, int *);
49 static unsigned long insert_bdp (unsigned long, long, int, const char **);
50 static long extract_bdp (unsigned long, int, int *);
51 static unsigned long insert_bo (unsigned long, long, int, const char **);
52 static long extract_bo (unsigned long, int, int *);
53 static unsigned long insert_boe (unsigned long, long, int, const char **);
54 static long extract_boe (unsigned long, int, int *);
55 static unsigned long insert_dq (unsigned long, long, int, const char **);
56 static long extract_dq (unsigned long, int, int *);
57 static unsigned long insert_ds (unsigned long, long, int, const char **);
58 static long extract_ds (unsigned long, int, int *);
59 static unsigned long insert_de (unsigned long, long, int, const char **);
60 static long extract_de (unsigned long, int, int *);
61 static unsigned long insert_des (unsigned long, long, int, const char **);
62 static long extract_des (unsigned long, int, int *);
63 static unsigned long insert_fxm (unsigned long, long, int, const char **);
64 static long extract_fxm (unsigned long, int, int *);
65 static unsigned long insert_li (unsigned long, long, int, const char **);
66 static long extract_li (unsigned long, int, int *);
67 static unsigned long insert_mbe (unsigned long, long, int, const char **);
68 static long extract_mbe (unsigned long, int, int *);
69 static unsigned long insert_mb6 (unsigned long, long, int, const char **);
70 static long extract_mb6 (unsigned long, int, int *);
71 static unsigned long insert_nb (unsigned long, long, int, const char **);
72 static long extract_nb (unsigned long, int, int *);
73 static unsigned long insert_nsi (unsigned long, long, int, const char **);
74 static long extract_nsi (unsigned long, int, int *);
75 static unsigned long insert_ral (unsigned long, long, int, const char **);
76 static unsigned long insert_ram (unsigned long, long, int, const char **);
77 static unsigned long insert_raq (unsigned long, long, int, const char **);
78 static unsigned long insert_ras (unsigned long, long, int, const char **);
79 static unsigned long insert_rbs (unsigned long, long, int, const char **);
80 static long extract_rbs (unsigned long, int, int *);
81 static unsigned long insert_rsq (unsigned long, long, int, const char **);
82 static unsigned long insert_rtq (unsigned long, long, int, const char **);
83 static unsigned long insert_sh6 (unsigned long, long, int, const char **);
84 static long extract_sh6 (unsigned long, int, int *);
85 static unsigned long insert_spr (unsigned long, long, int, const char **);
86 static long extract_spr (unsigned long, int, int *);
87 static unsigned long insert_tbr (unsigned long, long, int, const char **);
88 static long extract_tbr (unsigned long, int, int *);
89 static unsigned long insert_ev2 (unsigned long, long, int, const char **);
90 static long extract_ev2 (unsigned long, int, int *);
91 static unsigned long insert_ev4 (unsigned long, long, int, const char **);
92 static long extract_ev4 (unsigned long, int, int *);
93 static unsigned long insert_ev8 (unsigned long, long, int, const char **);
94 static long extract_ev8 (unsigned long, int, int *);
96 /* The operands table.
98 The fields are bits, shift, insert, extract, flags.
100 We used to put parens around the various additions, like the one
101 for BA just below. However, that caused trouble with feeble
102 compilers with a limit on depth of a parenthesized expression, like
103 (reportedly) the compiler in Microsoft Developer Studio 5. So we
104 omit the parens, since the macros are never used in a context where
105 the addition will be ambiguous. */
107 const struct powerpc_operand powerpc_operands[] =
109 /* The zero index is used to indicate the end of the list of
110 operands. */
111 #define UNUSED 0
112 { 0, 0, 0, 0, 0 },
114 /* The BA field in an XL form instruction. */
115 #define BA UNUSED + 1
116 #define BA_MASK (0x1f << 16)
117 { 5, 16, 0, 0, PPC_OPERAND_CR },
119 /* The BA field in an XL form instruction when it must be the same
120 as the BT field in the same instruction. */
121 #define BAT BA + 1
122 { 5, 16, insert_bat, extract_bat, PPC_OPERAND_FAKE },
124 /* The BB field in an XL form instruction. */
125 #define BB BAT + 1
126 #define BB_MASK (0x1f << 11)
127 { 5, 11, 0, 0, PPC_OPERAND_CR },
129 /* The BB field in an XL form instruction when it must be the same
130 as the BA field in the same instruction. */
131 #define BBA BB + 1
132 { 5, 11, insert_bba, extract_bba, PPC_OPERAND_FAKE },
134 /* The BD field in a B form instruction. The lower two bits are
135 forced to zero. */
136 #define BD BBA + 1
137 { 16, 0, insert_bd, extract_bd, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED },
139 /* The BD field in a B form instruction when absolute addressing is
140 used. */
141 #define BDA BD + 1
142 { 16, 0, insert_bd, extract_bd, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED },
144 /* The BD field in a B form instruction when the - modifier is used.
145 This sets the y bit of the BO field appropriately. */
146 #define BDM BDA + 1
147 { 16, 0, insert_bdm, extract_bdm,
148 PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED },
150 /* The BD field in a B form instruction when the - modifier is used
151 and absolute address is used. */
152 #define BDMA BDM + 1
153 { 16, 0, insert_bdm, extract_bdm,
154 PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED },
156 /* The BD field in a B form instruction when the + modifier is used.
157 This sets the y bit of the BO field appropriately. */
158 #define BDP BDMA + 1
159 { 16, 0, insert_bdp, extract_bdp,
160 PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED },
162 /* The BD field in a B form instruction when the + modifier is used
163 and absolute addressing is used. */
164 #define BDPA BDP + 1
165 { 16, 0, insert_bdp, extract_bdp,
166 PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED },
168 /* The BF field in an X or XL form instruction. */
169 #define BF BDPA + 1
170 { 3, 23, 0, 0, PPC_OPERAND_CR },
172 /* An optional BF field. This is used for comparison instructions,
173 in which an omitted BF field is taken as zero. */
174 #define OBF BF + 1
175 { 3, 23, 0, 0, PPC_OPERAND_CR | PPC_OPERAND_OPTIONAL },
177 /* The BFA field in an X or XL form instruction. */
178 #define BFA OBF + 1
179 { 3, 18, 0, 0, PPC_OPERAND_CR },
181 /* The BI field in a B form or XL form instruction. */
182 #define BI BFA + 1
183 #define BI_MASK (0x1f << 16)
184 { 5, 16, 0, 0, PPC_OPERAND_CR },
186 /* The BO field in a B form instruction. Certain values are
187 illegal. */
188 #define BO BI + 1
189 #define BO_MASK (0x1f << 21)
190 { 5, 21, insert_bo, extract_bo, 0 },
192 /* The BO field in a B form instruction when the + or - modifier is
193 used. This is like the BO field, but it must be even. */
194 #define BOE BO + 1
195 { 5, 21, insert_boe, extract_boe, 0 },
197 /* The BT field in an X or XL form instruction. */
198 #define BT BOE + 1
199 { 5, 21, 0, 0, PPC_OPERAND_CR },
201 /* The condition register number portion of the BI field in a B form
202 or XL form instruction. This is used for the extended
203 conditional branch mnemonics, which set the lower two bits of the
204 BI field. This field is optional. */
205 #define CR BT + 1
206 { 3, 18, 0, 0, PPC_OPERAND_CR | PPC_OPERAND_OPTIONAL },
208 /* The CRB field in an X form instruction. */
209 #define CRB CR + 1
210 { 5, 6, 0, 0, 0 },
212 /* The CRFD field in an X form instruction. */
213 #define CRFD CRB + 1
214 { 3, 23, 0, 0, PPC_OPERAND_CR },
216 /* The CRFS field in an X form instruction. */
217 #define CRFS CRFD + 1
218 { 3, 0, 0, 0, PPC_OPERAND_CR },
220 /* The CT field in an X form instruction. */
221 #define CT CRFS + 1
222 { 5, 21, 0, 0, PPC_OPERAND_OPTIONAL },
224 /* The D field in a D form instruction. This is a displacement off
225 a register, and implies that the next operand is a register in
226 parentheses. */
227 #define D CT + 1
228 { 16, 0, 0, 0, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED },
230 /* The DE field in a DE form instruction. This is like D, but is 12
231 bits only. */
232 #define DE D + 1
233 { 14, 0, insert_de, extract_de, PPC_OPERAND_PARENS },
235 /* The DES field in a DES form instruction. This is like DS, but is 14
236 bits only (12 stored.) */
237 #define DES DE + 1
238 { 14, 0, insert_des, extract_des, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED },
240 /* The DQ field in a DQ form instruction. This is like D, but the
241 lower four bits are forced to zero. */
242 #define DQ DES + 1
243 { 16, 0, insert_dq, extract_dq,
244 PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED | PPC_OPERAND_DQ },
246 /* The DS field in a DS form instruction. This is like D, but the
247 lower two bits are forced to zero. */
248 #define DS DQ + 1
249 { 16, 0, insert_ds, extract_ds,
250 PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED | PPC_OPERAND_DS },
252 /* The E field in a wrteei instruction. */
253 #define E DS + 1
254 { 1, 15, 0, 0, 0 },
256 /* The FL1 field in a POWER SC form instruction. */
257 #define FL1 E + 1
258 { 4, 12, 0, 0, 0 },
260 /* The FL2 field in a POWER SC form instruction. */
261 #define FL2 FL1 + 1
262 { 3, 2, 0, 0, 0 },
264 /* The FLM field in an XFL form instruction. */
265 #define FLM FL2 + 1
266 { 8, 17, 0, 0, 0 },
268 /* The FRA field in an X or A form instruction. */
269 #define FRA FLM + 1
270 #define FRA_MASK (0x1f << 16)
271 { 5, 16, 0, 0, PPC_OPERAND_FPR },
273 /* The FRB field in an X or A form instruction. */
274 #define FRB FRA + 1
275 #define FRB_MASK (0x1f << 11)
276 { 5, 11, 0, 0, PPC_OPERAND_FPR },
278 /* The FRC field in an A form instruction. */
279 #define FRC FRB + 1
280 #define FRC_MASK (0x1f << 6)
281 { 5, 6, 0, 0, PPC_OPERAND_FPR },
283 /* The FRS field in an X form instruction or the FRT field in a D, X
284 or A form instruction. */
285 #define FRS FRC + 1
286 #define FRT FRS
287 { 5, 21, 0, 0, PPC_OPERAND_FPR },
289 /* The FXM field in an XFX instruction. */
290 #define FXM FRS + 1
291 #define FXM_MASK (0xff << 12)
292 { 8, 12, insert_fxm, extract_fxm, 0 },
294 /* Power4 version for mfcr. */
295 #define FXM4 FXM + 1
296 { 8, 12, insert_fxm, extract_fxm, PPC_OPERAND_OPTIONAL },
298 /* The L field in a D or X form instruction. */
299 #define L FXM4 + 1
300 { 1, 21, 0, 0, PPC_OPERAND_OPTIONAL },
302 /* The LEV field in a POWER SC form instruction. */
303 #define LEV L + 1
304 { 7, 5, 0, 0, 0 },
306 /* The LI field in an I form instruction. The lower two bits are
307 forced to zero. */
308 #define LI LEV + 1
309 { 26, 0, insert_li, extract_li, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED },
311 /* The LI field in an I form instruction when used as an absolute
312 address. */
313 #define LIA LI + 1
314 { 26, 0, insert_li, extract_li, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED },
316 /* The LS field in an X (sync) form instruction. */
317 #define LS LIA + 1
318 { 2, 21, 0, 0, PPC_OPERAND_OPTIONAL },
320 /* The MB field in an M form instruction. */
321 #define MB LS + 1
322 #define MB_MASK (0x1f << 6)
323 { 5, 6, 0, 0, 0 },
325 /* The ME field in an M form instruction. */
326 #define ME MB + 1
327 #define ME_MASK (0x1f << 1)
328 { 5, 1, 0, 0, 0 },
330 /* The MB and ME fields in an M form instruction expressed a single
331 operand which is a bitmask indicating which bits to select. This
332 is a two operand form using PPC_OPERAND_NEXT. See the
333 description in opcode/ppc.h for what this means. */
334 #define MBE ME + 1
335 { 5, 6, 0, 0, PPC_OPERAND_OPTIONAL | PPC_OPERAND_NEXT },
336 { 32, 0, insert_mbe, extract_mbe, 0 },
338 /* The MB or ME field in an MD or MDS form instruction. The high
339 bit is wrapped to the low end. */
340 #define MB6 MBE + 2
341 #define ME6 MB6
342 #define MB6_MASK (0x3f << 5)
343 { 6, 5, insert_mb6, extract_mb6, 0 },
345 /* The MO field in an mbar instruction. */
346 #define MO MB6 + 1
347 { 5, 21, 0, 0, PPC_OPERAND_OPTIONAL },
349 /* The NB field in an X form instruction. The value 32 is stored as
350 0. */
351 #define NB MO + 1
352 { 6, 11, insert_nb, extract_nb, 0 },
354 /* The NSI field in a D form instruction. This is the same as the
355 SI field, only negated. */
356 #define NSI NB + 1
357 { 16, 0, insert_nsi, extract_nsi,
358 PPC_OPERAND_NEGATIVE | PPC_OPERAND_SIGNED },
360 /* The RA field in an D, DS, DQ, X, XO, M, or MDS form instruction. */
361 #define RA NSI + 1
362 #define RA_MASK (0x1f << 16)
363 { 5, 16, 0, 0, PPC_OPERAND_GPR },
365 /* As above, but 0 in the RA field means zero, not r0. */
366 #define RA0 RA + 1
367 { 5, 16, 0, 0, PPC_OPERAND_GPR_0 },
369 /* The RA field in the DQ form lq instruction, which has special
370 value restrictions. */
371 #define RAQ RA0 + 1
372 { 5, 16, insert_raq, 0, PPC_OPERAND_GPR_0 },
374 /* The RA field in a D or X form instruction which is an updating
375 load, which means that the RA field may not be zero and may not
376 equal the RT field. */
377 #define RAL RAQ + 1
378 { 5, 16, insert_ral, 0, PPC_OPERAND_GPR_0 },
380 /* The RA field in an lmw instruction, which has special value
381 restrictions. */
382 #define RAM RAL + 1
383 { 5, 16, insert_ram, 0, PPC_OPERAND_GPR_0 },
385 /* The RA field in a D or X form instruction which is an updating
386 store or an updating floating point load, which means that the RA
387 field may not be zero. */
388 #define RAS RAM + 1
389 { 5, 16, insert_ras, 0, PPC_OPERAND_GPR_0 },
391 /* The RA field of the tlbwe instruction, which is optional. */
392 #define RAOPT RAS + 1
393 { 5, 16, 0, 0, PPC_OPERAND_GPR | PPC_OPERAND_OPTIONAL },
395 /* The RB field in an X, XO, M, or MDS form instruction. */
396 #define RB RAOPT + 1
397 #define RB_MASK (0x1f << 11)
398 { 5, 11, 0, 0, PPC_OPERAND_GPR },
400 /* The RB field in an X form instruction when it must be the same as
401 the RS field in the instruction. This is used for extended
402 mnemonics like mr. */
403 #define RBS RB + 1
404 { 5, 1, insert_rbs, extract_rbs, PPC_OPERAND_FAKE },
406 /* The RS field in a D, DS, X, XFX, XS, M, MD or MDS form
407 instruction or the RT field in a D, DS, X, XFX or XO form
408 instruction. */
409 #define RS RBS + 1
410 #define RT RS
411 #define RT_MASK (0x1f << 21)
412 { 5, 21, 0, 0, PPC_OPERAND_GPR },
414 /* The RS field of the DS form stq instruction, which has special
415 value restrictions. */
416 #define RSQ RS + 1
417 { 5, 21, insert_rsq, 0, PPC_OPERAND_GPR_0 },
419 /* The RT field of the DQ form lq instruction, which has special
420 value restrictions. */
421 #define RTQ RSQ + 1
422 { 5, 21, insert_rtq, 0, PPC_OPERAND_GPR_0 },
424 /* The RS field of the tlbwe instruction, which is optional. */
425 #define RSO RTQ + 1
426 { 5, 21, 0, 0, PPC_OPERAND_GPR | PPC_OPERAND_OPTIONAL },
428 /* The SH field in an X or M form instruction. */
429 #define SH RSO + 1
430 #define SH_MASK (0x1f << 11)
431 { 5, 11, 0, 0, 0 },
433 /* The SH field in an MD form instruction. This is split. */
434 #define SH6 SH + 1
435 #define SH6_MASK ((0x1f << 11) | (1 << 1))
436 { 6, 1, insert_sh6, extract_sh6, 0 },
438 /* The SH field of the tlbwe instruction, which is optional. */
439 #define SHO SH6 + 1
440 { 5, 11,0, 0, PPC_OPERAND_OPTIONAL },
442 /* The SI field in a D form instruction. */
443 #define SI SHO + 1
444 { 16, 0, 0, 0, PPC_OPERAND_SIGNED },
446 /* The SI field in a D form instruction when we accept a wide range
447 of positive values. */
448 #define SISIGNOPT SI + 1
449 { 16, 0, 0, 0, PPC_OPERAND_SIGNED | PPC_OPERAND_SIGNOPT },
451 /* The SPR field in an XFX form instruction. This is flipped--the
452 lower 5 bits are stored in the upper 5 and vice- versa. */
453 #define SPR SISIGNOPT + 1
454 #define PMR SPR
455 #define SPR_MASK (0x3ff << 11)
456 { 10, 11, insert_spr, extract_spr, 0 },
458 /* The BAT index number in an XFX form m[ft]ibat[lu] instruction. */
459 #define SPRBAT SPR + 1
460 #define SPRBAT_MASK (0x3 << 17)
461 { 2, 17, 0, 0, 0 },
463 /* The SPRG register number in an XFX form m[ft]sprg instruction. */
464 #define SPRG SPRBAT + 1
465 #define SPRG_MASK (0x3 << 16)
466 { 2, 16, 0, 0, 0 },
468 /* The SR field in an X form instruction. */
469 #define SR SPRG + 1
470 { 4, 16, 0, 0, 0 },
472 /* The STRM field in an X AltiVec form instruction. */
473 #define STRM SR + 1
474 #define STRM_MASK (0x3 << 21)
475 { 2, 21, 0, 0, 0 },
477 /* The SV field in a POWER SC form instruction. */
478 #define SV STRM + 1
479 { 14, 2, 0, 0, 0 },
481 /* The TBR field in an XFX form instruction. This is like the SPR
482 field, but it is optional. */
483 #define TBR SV + 1
484 { 10, 11, insert_tbr, extract_tbr, PPC_OPERAND_OPTIONAL },
486 /* The TO field in a D or X form instruction. */
487 #define TO TBR + 1
488 #define TO_MASK (0x1f << 21)
489 { 5, 21, 0, 0, 0 },
491 /* The U field in an X form instruction. */
492 #define U TO + 1
493 { 4, 12, 0, 0, 0 },
495 /* The UI field in a D form instruction. */
496 #define UI U + 1
497 { 16, 0, 0, 0, 0 },
499 /* The VA field in a VA, VX or VXR form instruction. */
500 #define VA UI + 1
501 #define VA_MASK (0x1f << 16)
502 { 5, 16, 0, 0, PPC_OPERAND_VR },
504 /* The VB field in a VA, VX or VXR form instruction. */
505 #define VB VA + 1
506 #define VB_MASK (0x1f << 11)
507 { 5, 11, 0, 0, PPC_OPERAND_VR },
509 /* The VC field in a VA form instruction. */
510 #define VC VB + 1
511 #define VC_MASK (0x1f << 6)
512 { 5, 6, 0, 0, PPC_OPERAND_VR },
514 /* The VD or VS field in a VA, VX, VXR or X form instruction. */
515 #define VD VC + 1
516 #define VS VD
517 #define VD_MASK (0x1f << 21)
518 { 5, 21, 0, 0, PPC_OPERAND_VR },
520 /* The SIMM field in a VX form instruction. */
521 #define SIMM VD + 1
522 { 5, 16, 0, 0, PPC_OPERAND_SIGNED},
524 /* The UIMM field in a VX form instruction. */
525 #define UIMM SIMM + 1
526 { 5, 16, 0, 0, 0 },
528 /* The SHB field in a VA form instruction. */
529 #define SHB UIMM + 1
530 { 4, 6, 0, 0, 0 },
532 /* The other UIMM field in a EVX form instruction. */
533 #define EVUIMM SHB + 1
534 { 5, 11, 0, 0, 0 },
536 /* The other UIMM field in a half word EVX form instruction. */
537 #define EVUIMM_2 EVUIMM + 1
538 { 32, 11, insert_ev2, extract_ev2, PPC_OPERAND_PARENS },
540 /* The other UIMM field in a word EVX form instruction. */
541 #define EVUIMM_4 EVUIMM_2 + 1
542 { 32, 11, insert_ev4, extract_ev4, PPC_OPERAND_PARENS },
544 /* The other UIMM field in a double EVX form instruction. */
545 #define EVUIMM_8 EVUIMM_4 + 1
546 { 32, 11, insert_ev8, extract_ev8, PPC_OPERAND_PARENS },
548 /* The WS field. */
549 #define WS EVUIMM_8 + 1
550 #define WS_MASK (0x7 << 11)
551 { 3, 11, 0, 0, 0 },
553 /* The L field in an mtmsrd instruction */
554 #define MTMSRD_L WS + 1
555 { 1, 16, 0, 0, PPC_OPERAND_OPTIONAL },
559 /* The functions used to insert and extract complicated operands. */
561 /* The BA field in an XL form instruction when it must be the same as
562 the BT field in the same instruction. This operand is marked FAKE.
563 The insertion function just copies the BT field into the BA field,
564 and the extraction function just checks that the fields are the
565 same. */
567 static unsigned long
568 insert_bat (unsigned long insn,
569 long value ATTRIBUTE_UNUSED,
570 int dialect ATTRIBUTE_UNUSED,
571 const char **errmsg ATTRIBUTE_UNUSED)
573 return insn | (((insn >> 21) & 0x1f) << 16);
576 static long
577 extract_bat (unsigned long insn,
578 int dialect ATTRIBUTE_UNUSED,
579 int *invalid)
581 if (((insn >> 21) & 0x1f) != ((insn >> 16) & 0x1f))
582 *invalid = 1;
583 return 0;
586 /* The BB field in an XL form instruction when it must be the same as
587 the BA field in the same instruction. This operand is marked FAKE.
588 The insertion function just copies the BA field into the BB field,
589 and the extraction function just checks that the fields are the
590 same. */
592 static unsigned long
593 insert_bba (unsigned long insn,
594 long value ATTRIBUTE_UNUSED,
595 int dialect ATTRIBUTE_UNUSED,
596 const char **errmsg ATTRIBUTE_UNUSED)
598 return insn | (((insn >> 16) & 0x1f) << 11);
601 static long
602 extract_bba (unsigned long insn,
603 int dialect ATTRIBUTE_UNUSED,
604 int *invalid)
606 if (((insn >> 16) & 0x1f) != ((insn >> 11) & 0x1f))
607 *invalid = 1;
608 return 0;
611 /* The BD field in a B form instruction. The lower two bits are
612 forced to zero. */
614 static unsigned long
615 insert_bd (unsigned long insn,
616 long value,
617 int dialect ATTRIBUTE_UNUSED,
618 const char **errmsg ATTRIBUTE_UNUSED)
620 return insn | (value & 0xfffc);
623 static long
624 extract_bd (unsigned long insn,
625 int dialect ATTRIBUTE_UNUSED,
626 int *invalid ATTRIBUTE_UNUSED)
628 return ((insn & 0xfffc) ^ 0x8000) - 0x8000;
631 /* The BD field in a B form instruction when the - modifier is used.
632 This modifier means that the branch is not expected to be taken.
633 For chips built to versions of the architecture prior to version 2
634 (ie. not Power4 compatible), we set the y bit of the BO field to 1
635 if the offset is negative. When extracting, we require that the y
636 bit be 1 and that the offset be positive, since if the y bit is 0
637 we just want to print the normal form of the instruction.
638 Power4 compatible targets use two bits, "a", and "t", instead of
639 the "y" bit. "at" == 00 => no hint, "at" == 01 => unpredictable,
640 "at" == 10 => not taken, "at" == 11 => taken. The "t" bit is 00001
641 in BO field, the "a" bit is 00010 for branch on CR(BI) and 01000
642 for branch on CTR. We only handle the taken/not-taken hint here. */
644 static unsigned long
645 insert_bdm (unsigned long insn,
646 long value,
647 int dialect,
648 const char **errmsg ATTRIBUTE_UNUSED)
650 if ((dialect & PPC_OPCODE_POWER4) == 0)
652 if ((value & 0x8000) != 0)
653 insn |= 1 << 21;
655 else
657 if ((insn & (0x14 << 21)) == (0x04 << 21))
658 insn |= 0x02 << 21;
659 else if ((insn & (0x14 << 21)) == (0x10 << 21))
660 insn |= 0x08 << 21;
662 return insn | (value & 0xfffc);
665 static long
666 extract_bdm (unsigned long insn,
667 int dialect,
668 int *invalid)
670 if ((dialect & PPC_OPCODE_POWER4) == 0)
672 if (((insn & (1 << 21)) == 0) != ((insn & (1 << 15)) == 0))
673 *invalid = 1;
675 else
677 if ((insn & (0x17 << 21)) != (0x06 << 21)
678 && (insn & (0x1d << 21)) != (0x18 << 21))
679 *invalid = 1;
682 return ((insn & 0xfffc) ^ 0x8000) - 0x8000;
685 /* The BD field in a B form instruction when the + modifier is used.
686 This is like BDM, above, except that the branch is expected to be
687 taken. */
689 static unsigned long
690 insert_bdp (unsigned long insn,
691 long value,
692 int dialect,
693 const char **errmsg ATTRIBUTE_UNUSED)
695 if ((dialect & PPC_OPCODE_POWER4) == 0)
697 if ((value & 0x8000) == 0)
698 insn |= 1 << 21;
700 else
702 if ((insn & (0x14 << 21)) == (0x04 << 21))
703 insn |= 0x03 << 21;
704 else if ((insn & (0x14 << 21)) == (0x10 << 21))
705 insn |= 0x09 << 21;
707 return insn | (value & 0xfffc);
710 static long
711 extract_bdp (unsigned long insn,
712 int dialect,
713 int *invalid)
715 if ((dialect & PPC_OPCODE_POWER4) == 0)
717 if (((insn & (1 << 21)) == 0) == ((insn & (1 << 15)) == 0))
718 *invalid = 1;
720 else
722 if ((insn & (0x17 << 21)) != (0x07 << 21)
723 && (insn & (0x1d << 21)) != (0x19 << 21))
724 *invalid = 1;
727 return ((insn & 0xfffc) ^ 0x8000) - 0x8000;
730 /* Check for legal values of a BO field. */
732 static int
733 valid_bo (long value, int dialect)
735 if ((dialect & PPC_OPCODE_POWER4) == 0)
737 /* Certain encodings have bits that are required to be zero.
738 These are (z must be zero, y may be anything):
739 001zy
740 011zy
741 1z00y
742 1z01y
743 1z1zz
745 switch (value & 0x14)
747 default:
748 case 0:
749 return 1;
750 case 0x4:
751 return (value & 0x2) == 0;
752 case 0x10:
753 return (value & 0x8) == 0;
754 case 0x14:
755 return value == 0x14;
758 else
760 /* Certain encodings have bits that are required to be zero.
761 These are (z must be zero, a & t may be anything):
762 0000z
763 0001z
764 0100z
765 0101z
766 001at
767 011at
768 1a00t
769 1a01t
770 1z1zz
772 if ((value & 0x14) == 0)
773 return (value & 0x1) == 0;
774 else if ((value & 0x14) == 0x14)
775 return value == 0x14;
776 else
777 return 1;
781 /* The BO field in a B form instruction. Warn about attempts to set
782 the field to an illegal value. */
784 static unsigned long
785 insert_bo (unsigned long insn,
786 long value,
787 int dialect,
788 const char **errmsg)
790 if (!valid_bo (value, dialect))
791 *errmsg = _("invalid conditional option");
792 return insn | ((value & 0x1f) << 21);
795 static long
796 extract_bo (unsigned long insn,
797 int dialect,
798 int *invalid)
800 long value;
802 value = (insn >> 21) & 0x1f;
803 if (!valid_bo (value, dialect))
804 *invalid = 1;
805 return value;
808 /* The BO field in a B form instruction when the + or - modifier is
809 used. This is like the BO field, but it must be even. When
810 extracting it, we force it to be even. */
812 static unsigned long
813 insert_boe (unsigned long insn,
814 long value,
815 int dialect,
816 const char **errmsg)
818 if (!valid_bo (value, dialect))
819 *errmsg = _("invalid conditional option");
820 else if ((value & 1) != 0)
821 *errmsg = _("attempt to set y bit when using + or - modifier");
823 return insn | ((value & 0x1f) << 21);
826 static long
827 extract_boe (unsigned long insn,
828 int dialect,
829 int *invalid)
831 long value;
833 value = (insn >> 21) & 0x1f;
834 if (!valid_bo (value, dialect))
835 *invalid = 1;
836 return value & 0x1e;
839 /* The DQ field in a DQ form instruction. This is like D, but the
840 lower four bits are forced to zero. */
842 static unsigned long
843 insert_dq (unsigned long insn,
844 long value,
845 int dialect ATTRIBUTE_UNUSED,
846 const char **errmsg)
848 if ((value & 0xf) != 0)
849 *errmsg = _("offset not a multiple of 16");
850 return insn | (value & 0xfff0);
853 static long
854 extract_dq (unsigned long insn,
855 int dialect ATTRIBUTE_UNUSED,
856 int *invalid ATTRIBUTE_UNUSED)
858 return ((insn & 0xfff0) ^ 0x8000) - 0x8000;
861 static unsigned long
862 insert_ev2 (unsigned long insn,
863 long value,
864 int dialect ATTRIBUTE_UNUSED,
865 const char **errmsg)
867 if ((value & 1) != 0)
868 *errmsg = _("offset not a multiple of 2");
869 if ((value > 62) != 0)
870 *errmsg = _("offset greater than 62");
871 return insn | ((value & 0x3e) << 10);
874 static long
875 extract_ev2 (unsigned long insn,
876 int dialect ATTRIBUTE_UNUSED,
877 int *invalid ATTRIBUTE_UNUSED)
879 return (insn >> 10) & 0x3e;
882 static unsigned long
883 insert_ev4 (unsigned long insn,
884 long value,
885 int dialect ATTRIBUTE_UNUSED,
886 const char **errmsg)
888 if ((value & 3) != 0)
889 *errmsg = _("offset not a multiple of 4");
890 if ((value > 124) != 0)
891 *errmsg = _("offset greater than 124");
892 return insn | ((value & 0x7c) << 9);
895 static long
896 extract_ev4 (unsigned long insn,
897 int dialect ATTRIBUTE_UNUSED,
898 int *invalid ATTRIBUTE_UNUSED)
900 return (insn >> 9) & 0x7c;
903 static unsigned long
904 insert_ev8 (unsigned long insn,
905 long value,
906 int dialect ATTRIBUTE_UNUSED,
907 const char **errmsg)
909 if ((value & 7) != 0)
910 *errmsg = _("offset not a multiple of 8");
911 if ((value > 248) != 0)
912 *errmsg = _("offset greater than 248");
913 return insn | ((value & 0xf8) << 8);
916 static long
917 extract_ev8 (unsigned long insn,
918 int dialect ATTRIBUTE_UNUSED,
919 int *invalid ATTRIBUTE_UNUSED)
921 return (insn >> 8) & 0xf8;
924 /* The DS field in a DS form instruction. This is like D, but the
925 lower two bits are forced to zero. */
927 static unsigned long
928 insert_ds (unsigned long insn,
929 long value,
930 int dialect ATTRIBUTE_UNUSED,
931 const char **errmsg)
933 if ((value & 3) != 0)
934 *errmsg = _("offset not a multiple of 4");
935 return insn | (value & 0xfffc);
938 static long
939 extract_ds (unsigned long insn,
940 int dialect ATTRIBUTE_UNUSED,
941 int *invalid ATTRIBUTE_UNUSED)
943 return ((insn & 0xfffc) ^ 0x8000) - 0x8000;
946 /* The DE field in a DE form instruction. */
948 static unsigned long
949 insert_de (unsigned long insn,
950 long value,
951 int dialect ATTRIBUTE_UNUSED,
952 const char **errmsg)
954 if (value > 2047 || value < -2048)
955 *errmsg = _("offset not between -2048 and 2047");
956 return insn | ((value << 4) & 0xfff0);
959 static long
960 extract_de (unsigned long insn,
961 int dialect ATTRIBUTE_UNUSED,
962 int *invalid ATTRIBUTE_UNUSED)
964 return (insn & 0xfff0) >> 4;
967 /* The DES field in a DES form instruction. */
969 static unsigned long
970 insert_des (unsigned long insn,
971 long value,
972 int dialect ATTRIBUTE_UNUSED,
973 const char **errmsg)
975 if (value > 8191 || value < -8192)
976 *errmsg = _("offset not between -8192 and 8191");
977 else if ((value & 3) != 0)
978 *errmsg = _("offset not a multiple of 4");
979 return insn | ((value << 2) & 0xfff0);
982 static long
983 extract_des (unsigned long insn,
984 int dialect ATTRIBUTE_UNUSED,
985 int *invalid ATTRIBUTE_UNUSED)
987 return (((insn >> 2) & 0x3ffc) ^ 0x2000) - 0x2000;
990 /* FXM mask in mfcr and mtcrf instructions. */
992 static unsigned long
993 insert_fxm (unsigned long insn,
994 long value,
995 int dialect,
996 const char **errmsg)
998 /* If the optional field on mfcr is missing that means we want to use
999 the old form of the instruction that moves the whole cr. In that
1000 case we'll have VALUE zero. There doesn't seem to be a way to
1001 distinguish this from the case where someone writes mfcr %r3,0. */
1002 if (value == 0)
1005 /* If only one bit of the FXM field is set, we can use the new form
1006 of the instruction, which is faster. Unlike the Power4 branch hint
1007 encoding, this is not backward compatible. Do not generate the
1008 new form unless -mpower4 has been given, or -many and the two
1009 operand form of mfcr was used. */
1010 else if ((value & -value) == value
1011 && ((dialect & PPC_OPCODE_POWER4) != 0
1012 || ((dialect & PPC_OPCODE_ANY) != 0
1013 && (insn & (0x3ff << 1)) == 19 << 1)))
1014 insn |= 1 << 20;
1016 /* Any other value on mfcr is an error. */
1017 else if ((insn & (0x3ff << 1)) == 19 << 1)
1019 *errmsg = _("ignoring invalid mfcr mask");
1020 value = 0;
1023 return insn | ((value & 0xff) << 12);
1026 static long
1027 extract_fxm (unsigned long insn,
1028 int dialect,
1029 int *invalid)
1031 long mask = (insn >> 12) & 0xff;
1033 /* Is this a Power4 insn? */
1034 if ((insn & (1 << 20)) != 0)
1036 if ((dialect & PPC_OPCODE_POWER4) == 0)
1037 *invalid = 1;
1038 else
1040 /* Exactly one bit of MASK should be set. */
1041 if (mask == 0 || (mask & -mask) != mask)
1042 *invalid = 1;
1046 /* Check that non-power4 form of mfcr has a zero MASK. */
1047 else if ((insn & (0x3ff << 1)) == 19 << 1)
1049 if (mask != 0)
1050 *invalid = 1;
1053 return mask;
1056 /* The LI field in an I form instruction. The lower two bits are
1057 forced to zero. */
1059 static unsigned long
1060 insert_li (unsigned long insn,
1061 long value,
1062 int dialect ATTRIBUTE_UNUSED,
1063 const char **errmsg)
1065 if ((value & 3) != 0)
1066 *errmsg = _("ignoring least significant bits in branch offset");
1067 return insn | (value & 0x3fffffc);
1070 static long
1071 extract_li (unsigned long insn,
1072 int dialect ATTRIBUTE_UNUSED,
1073 int *invalid ATTRIBUTE_UNUSED)
1075 return ((insn & 0x3fffffc) ^ 0x2000000) - 0x2000000;
1078 /* The MB and ME fields in an M form instruction expressed as a single
1079 operand which is itself a bitmask. The extraction function always
1080 marks it as invalid, since we never want to recognize an
1081 instruction which uses a field of this type. */
1083 static unsigned long
1084 insert_mbe (unsigned long insn,
1085 long value,
1086 int dialect ATTRIBUTE_UNUSED,
1087 const char **errmsg)
1089 unsigned long uval, mask;
1090 int mb, me, mx, count, last;
1092 uval = value;
1094 if (uval == 0)
1096 *errmsg = _("illegal bitmask");
1097 return insn;
1100 mb = 0;
1101 me = 32;
1102 if ((uval & 1) != 0)
1103 last = 1;
1104 else
1105 last = 0;
1106 count = 0;
1108 /* mb: location of last 0->1 transition */
1109 /* me: location of last 1->0 transition */
1110 /* count: # transitions */
1112 for (mx = 0, mask = 1L << 31; mx < 32; ++mx, mask >>= 1)
1114 if ((uval & mask) && !last)
1116 ++count;
1117 mb = mx;
1118 last = 1;
1120 else if (!(uval & mask) && last)
1122 ++count;
1123 me = mx;
1124 last = 0;
1127 if (me == 0)
1128 me = 32;
1130 if (count != 2 && (count != 0 || ! last))
1131 *errmsg = _("illegal bitmask");
1133 return insn | (mb << 6) | ((me - 1) << 1);
1136 static long
1137 extract_mbe (unsigned long insn,
1138 int dialect ATTRIBUTE_UNUSED,
1139 int *invalid)
1141 long ret;
1142 int mb, me;
1143 int i;
1145 *invalid = 1;
1147 mb = (insn >> 6) & 0x1f;
1148 me = (insn >> 1) & 0x1f;
1149 if (mb < me + 1)
1151 ret = 0;
1152 for (i = mb; i <= me; i++)
1153 ret |= 1L << (31 - i);
1155 else if (mb == me + 1)
1156 ret = ~0;
1157 else /* (mb > me + 1) */
1159 ret = ~0;
1160 for (i = me + 1; i < mb; i++)
1161 ret &= ~(1L << (31 - i));
1163 return ret;
1166 /* The MB or ME field in an MD or MDS form instruction. The high bit
1167 is wrapped to the low end. */
1169 static unsigned long
1170 insert_mb6 (unsigned long insn,
1171 long value,
1172 int dialect ATTRIBUTE_UNUSED,
1173 const char **errmsg ATTRIBUTE_UNUSED)
1175 return insn | ((value & 0x1f) << 6) | (value & 0x20);
1178 static long
1179 extract_mb6 (unsigned long insn,
1180 int dialect ATTRIBUTE_UNUSED,
1181 int *invalid ATTRIBUTE_UNUSED)
1183 return ((insn >> 6) & 0x1f) | (insn & 0x20);
1186 /* The NB field in an X form instruction. The value 32 is stored as
1187 0. */
1189 static unsigned long
1190 insert_nb (unsigned long insn,
1191 long value,
1192 int dialect ATTRIBUTE_UNUSED,
1193 const char **errmsg)
1195 if (value < 0 || value > 32)
1196 *errmsg = _("value out of range");
1197 if (value == 32)
1198 value = 0;
1199 return insn | ((value & 0x1f) << 11);
1202 static long
1203 extract_nb (unsigned long insn,
1204 int dialect ATTRIBUTE_UNUSED,
1205 int *invalid ATTRIBUTE_UNUSED)
1207 long ret;
1209 ret = (insn >> 11) & 0x1f;
1210 if (ret == 0)
1211 ret = 32;
1212 return ret;
1215 /* The NSI field in a D form instruction. This is the same as the SI
1216 field, only negated. The extraction function always marks it as
1217 invalid, since we never want to recognize an instruction which uses
1218 a field of this type. */
1220 static unsigned long
1221 insert_nsi (unsigned long insn,
1222 long value,
1223 int dialect ATTRIBUTE_UNUSED,
1224 const char **errmsg ATTRIBUTE_UNUSED)
1226 return insn | (-value & 0xffff);
1229 static long
1230 extract_nsi (unsigned long insn,
1231 int dialect ATTRIBUTE_UNUSED,
1232 int *invalid)
1234 *invalid = 1;
1235 return -(((insn & 0xffff) ^ 0x8000) - 0x8000);
1238 /* The RA field in a D or X form instruction which is an updating
1239 load, which means that the RA field may not be zero and may not
1240 equal the RT field. */
1242 static unsigned long
1243 insert_ral (unsigned long insn,
1244 long value,
1245 int dialect ATTRIBUTE_UNUSED,
1246 const char **errmsg)
1248 if (value == 0
1249 || (unsigned long) value == ((insn >> 21) & 0x1f))
1250 *errmsg = "invalid register operand when updating";
1251 return insn | ((value & 0x1f) << 16);
1254 /* The RA field in an lmw instruction, which has special value
1255 restrictions. */
1257 static unsigned long
1258 insert_ram (unsigned long insn,
1259 long value,
1260 int dialect ATTRIBUTE_UNUSED,
1261 const char **errmsg)
1263 if ((unsigned long) value >= ((insn >> 21) & 0x1f))
1264 *errmsg = _("index register in load range");
1265 return insn | ((value & 0x1f) << 16);
1268 /* The RA field in the DQ form lq instruction, which has special
1269 value restrictions. */
1271 static unsigned long
1272 insert_raq (unsigned long insn,
1273 long value,
1274 int dialect ATTRIBUTE_UNUSED,
1275 const char **errmsg)
1277 long rtvalue = (insn & RT_MASK) >> 21;
1279 if (value == rtvalue)
1280 *errmsg = _("source and target register operands must be different");
1281 return insn | ((value & 0x1f) << 16);
1284 /* The RA field in a D or X form instruction which is an updating
1285 store or an updating floating point load, which means that the RA
1286 field may not be zero. */
1288 static unsigned long
1289 insert_ras (unsigned long insn,
1290 long value,
1291 int dialect ATTRIBUTE_UNUSED,
1292 const char **errmsg)
1294 if (value == 0)
1295 *errmsg = _("invalid register operand when updating");
1296 return insn | ((value & 0x1f) << 16);
1299 /* The RB field in an X form instruction when it must be the same as
1300 the RS field in the instruction. This is used for extended
1301 mnemonics like mr. This operand is marked FAKE. The insertion
1302 function just copies the BT field into the BA field, and the
1303 extraction function just checks that the fields are the same. */
1305 static unsigned long
1306 insert_rbs (unsigned long insn,
1307 long value ATTRIBUTE_UNUSED,
1308 int dialect ATTRIBUTE_UNUSED,
1309 const char **errmsg ATTRIBUTE_UNUSED)
1311 return insn | (((insn >> 21) & 0x1f) << 11);
1314 static long
1315 extract_rbs (unsigned long insn,
1316 int dialect ATTRIBUTE_UNUSED,
1317 int *invalid)
1319 if (((insn >> 21) & 0x1f) != ((insn >> 11) & 0x1f))
1320 *invalid = 1;
1321 return 0;
1324 /* The RT field of the DQ form lq instruction, which has special
1325 value restrictions. */
1327 static unsigned long
1328 insert_rtq (unsigned long insn,
1329 long value,
1330 int dialect ATTRIBUTE_UNUSED,
1331 const char **errmsg)
1333 if ((value & 1) != 0)
1334 *errmsg = _("target register operand must be even");
1335 return insn | ((value & 0x1f) << 21);
1338 /* The RS field of the DS form stq instruction, which has special
1339 value restrictions. */
1341 static unsigned long
1342 insert_rsq (unsigned long insn,
1343 long value ATTRIBUTE_UNUSED,
1344 int dialect ATTRIBUTE_UNUSED,
1345 const char **errmsg)
1347 if ((value & 1) != 0)
1348 *errmsg = _("source register operand must be even");
1349 return insn | ((value & 0x1f) << 21);
1352 /* The SH field in an MD form instruction. This is split. */
1354 static unsigned long
1355 insert_sh6 (unsigned long insn,
1356 long value,
1357 int dialect ATTRIBUTE_UNUSED,
1358 const char **errmsg ATTRIBUTE_UNUSED)
1360 return insn | ((value & 0x1f) << 11) | ((value & 0x20) >> 4);
1363 static long
1364 extract_sh6 (unsigned long insn,
1365 int dialect ATTRIBUTE_UNUSED,
1366 int *invalid ATTRIBUTE_UNUSED)
1368 return ((insn >> 11) & 0x1f) | ((insn << 4) & 0x20);
1371 /* The SPR field in an XFX form instruction. This is flipped--the
1372 lower 5 bits are stored in the upper 5 and vice- versa. */
1374 static unsigned long
1375 insert_spr (unsigned long insn,
1376 long value,
1377 int dialect ATTRIBUTE_UNUSED,
1378 const char **errmsg ATTRIBUTE_UNUSED)
1380 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6);
1383 static long
1384 extract_spr (unsigned long insn,
1385 int dialect ATTRIBUTE_UNUSED,
1386 int *invalid ATTRIBUTE_UNUSED)
1388 return ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0);
1391 /* The TBR field in an XFX instruction. This is just like SPR, but it
1392 is optional. When TBR is omitted, it must be inserted as 268 (the
1393 magic number of the TB register). These functions treat 0
1394 (indicating an omitted optional operand) as 268. This means that
1395 ``mftb 4,0'' is not handled correctly. This does not matter very
1396 much, since the architecture manual does not define mftb as
1397 accepting any values other than 268 or 269. */
1399 #define TB (268)
1401 static unsigned long
1402 insert_tbr (unsigned long insn,
1403 long value,
1404 int dialect ATTRIBUTE_UNUSED,
1405 const char **errmsg ATTRIBUTE_UNUSED)
1407 if (value == 0)
1408 value = TB;
1409 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6);
1412 static long
1413 extract_tbr (unsigned long insn,
1414 int dialect ATTRIBUTE_UNUSED,
1415 int *invalid ATTRIBUTE_UNUSED)
1417 long ret;
1419 ret = ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0);
1420 if (ret == TB)
1421 ret = 0;
1422 return ret;
1425 /* Macros used to form opcodes. */
1427 /* The main opcode. */
1428 #define OP(x) ((((unsigned long)(x)) & 0x3f) << 26)
1429 #define OP_MASK OP (0x3f)
1431 /* The main opcode combined with a trap code in the TO field of a D
1432 form instruction. Used for extended mnemonics for the trap
1433 instructions. */
1434 #define OPTO(x,to) (OP (x) | ((((unsigned long)(to)) & 0x1f) << 21))
1435 #define OPTO_MASK (OP_MASK | TO_MASK)
1437 /* The main opcode combined with a comparison size bit in the L field
1438 of a D form or X form instruction. Used for extended mnemonics for
1439 the comparison instructions. */
1440 #define OPL(x,l) (OP (x) | ((((unsigned long)(l)) & 1) << 21))
1441 #define OPL_MASK OPL (0x3f,1)
1443 /* An A form instruction. */
1444 #define A(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1) | (((unsigned long)(rc)) & 1))
1445 #define A_MASK A (0x3f, 0x1f, 1)
1447 /* An A_MASK with the FRB field fixed. */
1448 #define AFRB_MASK (A_MASK | FRB_MASK)
1450 /* An A_MASK with the FRC field fixed. */
1451 #define AFRC_MASK (A_MASK | FRC_MASK)
1453 /* An A_MASK with the FRA and FRC fields fixed. */
1454 #define AFRAFRC_MASK (A_MASK | FRA_MASK | FRC_MASK)
1456 /* A B form instruction. */
1457 #define B(op, aa, lk) (OP (op) | ((((unsigned long)(aa)) & 1) << 1) | ((lk) & 1))
1458 #define B_MASK B (0x3f, 1, 1)
1460 /* A B form instruction setting the BO field. */
1461 #define BBO(op, bo, aa, lk) (B ((op), (aa), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
1462 #define BBO_MASK BBO (0x3f, 0x1f, 1, 1)
1464 /* A BBO_MASK with the y bit of the BO field removed. This permits
1465 matching a conditional branch regardless of the setting of the y
1466 bit. Similarly for the 'at' bits used for power4 branch hints. */
1467 #define Y_MASK (((unsigned long) 1) << 21)
1468 #define AT1_MASK (((unsigned long) 3) << 21)
1469 #define AT2_MASK (((unsigned long) 9) << 21)
1470 #define BBOY_MASK (BBO_MASK &~ Y_MASK)
1471 #define BBOAT_MASK (BBO_MASK &~ AT1_MASK)
1473 /* A B form instruction setting the BO field and the condition bits of
1474 the BI field. */
1475 #define BBOCB(op, bo, cb, aa, lk) \
1476 (BBO ((op), (bo), (aa), (lk)) | ((((unsigned long)(cb)) & 0x3) << 16))
1477 #define BBOCB_MASK BBOCB (0x3f, 0x1f, 0x3, 1, 1)
1479 /* A BBOCB_MASK with the y bit of the BO field removed. */
1480 #define BBOYCB_MASK (BBOCB_MASK &~ Y_MASK)
1481 #define BBOATCB_MASK (BBOCB_MASK &~ AT1_MASK)
1482 #define BBOAT2CB_MASK (BBOCB_MASK &~ AT2_MASK)
1484 /* A BBOYCB_MASK in which the BI field is fixed. */
1485 #define BBOYBI_MASK (BBOYCB_MASK | BI_MASK)
1486 #define BBOATBI_MASK (BBOAT2CB_MASK | BI_MASK)
1488 /* An Context form instruction. */
1489 #define CTX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7))
1490 #define CTX_MASK CTX(0x3f, 0x7)
1492 /* An User Context form instruction. */
1493 #define UCTX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f))
1494 #define UCTX_MASK UCTX(0x3f, 0x1f)
1496 /* The main opcode mask with the RA field clear. */
1497 #define DRA_MASK (OP_MASK | RA_MASK)
1499 /* A DS form instruction. */
1500 #define DSO(op, xop) (OP (op) | ((xop) & 0x3))
1501 #define DS_MASK DSO (0x3f, 3)
1503 /* A DE form instruction. */
1504 #define DEO(op, xop) (OP (op) | ((xop) & 0xf))
1505 #define DE_MASK DEO (0x3e, 0xf)
1507 /* An EVSEL form instruction. */
1508 #define EVSEL(op, xop) (OP (op) | (((unsigned long)(xop)) & 0xff) << 3)
1509 #define EVSEL_MASK EVSEL(0x3f, 0xff)
1511 /* An M form instruction. */
1512 #define M(op, rc) (OP (op) | ((rc) & 1))
1513 #define M_MASK M (0x3f, 1)
1515 /* An M form instruction with the ME field specified. */
1516 #define MME(op, me, rc) (M ((op), (rc)) | ((((unsigned long)(me)) & 0x1f) << 1))
1518 /* An M_MASK with the MB and ME fields fixed. */
1519 #define MMBME_MASK (M_MASK | MB_MASK | ME_MASK)
1521 /* An M_MASK with the SH and ME fields fixed. */
1522 #define MSHME_MASK (M_MASK | SH_MASK | ME_MASK)
1524 /* An MD form instruction. */
1525 #define MD(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x7) << 2) | ((rc) & 1))
1526 #define MD_MASK MD (0x3f, 0x7, 1)
1528 /* An MD_MASK with the MB field fixed. */
1529 #define MDMB_MASK (MD_MASK | MB6_MASK)
1531 /* An MD_MASK with the SH field fixed. */
1532 #define MDSH_MASK (MD_MASK | SH6_MASK)
1534 /* An MDS form instruction. */
1535 #define MDS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0xf) << 1) | ((rc) & 1))
1536 #define MDS_MASK MDS (0x3f, 0xf, 1)
1538 /* An MDS_MASK with the MB field fixed. */
1539 #define MDSMB_MASK (MDS_MASK | MB6_MASK)
1541 /* An SC form instruction. */
1542 #define SC(op, sa, lk) (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))
1543 #define SC_MASK (OP_MASK | (((unsigned long)0x3ff) << 16) | (((unsigned long)1) << 1) | 1)
1545 /* An VX form instruction. */
1546 #define VX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7ff))
1548 /* The mask for an VX form instruction. */
1549 #define VX_MASK VX(0x3f, 0x7ff)
1551 /* An VA form instruction. */
1552 #define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x03f))
1554 /* The mask for an VA form instruction. */
1555 #define VXA_MASK VXA(0x3f, 0x3f)
1557 /* An VXR form instruction. */
1558 #define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))
1560 /* The mask for a VXR form instruction. */
1561 #define VXR_MASK VXR(0x3f, 0x3ff, 1)
1563 /* An X form instruction. */
1564 #define X(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
1566 /* An X form instruction with the RC bit specified. */
1567 #define XRC(op, xop, rc) (X ((op), (xop)) | ((rc) & 1))
1569 /* The mask for an X form instruction. */
1570 #define X_MASK XRC (0x3f, 0x3ff, 1)
1572 /* An X_MASK with the RA field fixed. */
1573 #define XRA_MASK (X_MASK | RA_MASK)
1575 /* An X_MASK with the RB field fixed. */
1576 #define XRB_MASK (X_MASK | RB_MASK)
1578 /* An X_MASK with the RT field fixed. */
1579 #define XRT_MASK (X_MASK | RT_MASK)
1581 /* An X_MASK with the RA and RB fields fixed. */
1582 #define XRARB_MASK (X_MASK | RA_MASK | RB_MASK)
1584 /* An XRARB_MASK, but with the L bit clear. */
1585 #define XRLARB_MASK (XRARB_MASK & ~((unsigned long) 1 << 16))
1587 /* An X_MASK with the RT and RA fields fixed. */
1588 #define XRTRA_MASK (X_MASK | RT_MASK | RA_MASK)
1590 /* An XRTRA_MASK, but with L bit clear. */
1591 #define XRTLRA_MASK (XRTRA_MASK & ~((unsigned long) 1 << 21))
1593 /* An X form instruction with the L bit specified. */
1594 #define XOPL(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))
1596 /* The mask for an X form comparison instruction. */
1597 #define XCMP_MASK (X_MASK | (((unsigned long)1) << 22))
1599 /* The mask for an X form comparison instruction with the L field
1600 fixed. */
1601 #define XCMPL_MASK (XCMP_MASK | (((unsigned long)1) << 21))
1603 /* An X form trap instruction with the TO field specified. */
1604 #define XTO(op, xop, to) (X ((op), (xop)) | ((((unsigned long)(to)) & 0x1f) << 21))
1605 #define XTO_MASK (X_MASK | TO_MASK)
1607 /* An X form tlb instruction with the SH field specified. */
1608 #define XTLB(op, xop, sh) (X ((op), (xop)) | ((((unsigned long)(sh)) & 0x1f) << 11))
1609 #define XTLB_MASK (X_MASK | SH_MASK)
1611 /* An X form sync instruction. */
1612 #define XSYNC(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 3) << 21))
1614 /* An X form sync instruction with everything filled in except the LS field. */
1615 #define XSYNC_MASK (0xff9fffff)
1617 /* An X form AltiVec dss instruction. */
1618 #define XDSS(op, xop, a) (X ((op), (xop)) | ((((unsigned long)(a)) & 1) << 25))
1619 #define XDSS_MASK XDSS(0x3f, 0x3ff, 1)
1621 /* An XFL form instruction. */
1622 #define XFL(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1))
1623 #define XFL_MASK (XFL (0x3f, 0x3ff, 1) | (((unsigned long)1) << 25) | (((unsigned long)1) << 16))
1625 /* An X form isel instruction. */
1626 #define XISEL(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1))
1627 #define XISEL_MASK XISEL(0x3f, 0x1f)
1629 /* An XL form instruction with the LK field set to 0. */
1630 #define XL(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
1632 /* An XL form instruction which uses the LK field. */
1633 #define XLLK(op, xop, lk) (XL ((op), (xop)) | ((lk) & 1))
1635 /* The mask for an XL form instruction. */
1636 #define XL_MASK XLLK (0x3f, 0x3ff, 1)
1638 /* An XL form instruction which explicitly sets the BO field. */
1639 #define XLO(op, bo, xop, lk) \
1640 (XLLK ((op), (xop), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
1641 #define XLO_MASK (XL_MASK | BO_MASK)
1643 /* An XL form instruction which explicitly sets the y bit of the BO
1644 field. */
1645 #define XLYLK(op, xop, y, lk) (XLLK ((op), (xop), (lk)) | ((((unsigned long)(y)) & 1) << 21))
1646 #define XLYLK_MASK (XL_MASK | Y_MASK)
1648 /* An XL form instruction which sets the BO field and the condition
1649 bits of the BI field. */
1650 #define XLOCB(op, bo, cb, xop, lk) \
1651 (XLO ((op), (bo), (xop), (lk)) | ((((unsigned long)(cb)) & 3) << 16))
1652 #define XLOCB_MASK XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)
1654 /* An XL_MASK or XLYLK_MASK or XLOCB_MASK with the BB field fixed. */
1655 #define XLBB_MASK (XL_MASK | BB_MASK)
1656 #define XLYBB_MASK (XLYLK_MASK | BB_MASK)
1657 #define XLBOCBBB_MASK (XLOCB_MASK | BB_MASK)
1659 /* An XL_MASK with the BO and BB fields fixed. */
1660 #define XLBOBB_MASK (XL_MASK | BO_MASK | BB_MASK)
1662 /* An XL_MASK with the BO, BI and BB fields fixed. */
1663 #define XLBOBIBB_MASK (XL_MASK | BO_MASK | BI_MASK | BB_MASK)
1665 /* An XO form instruction. */
1666 #define XO(op, xop, oe, rc) \
1667 (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1) | ((((unsigned long)(oe)) & 1) << 10) | (((unsigned long)(rc)) & 1))
1668 #define XO_MASK XO (0x3f, 0x1ff, 1, 1)
1670 /* An XO_MASK with the RB field fixed. */
1671 #define XORB_MASK (XO_MASK | RB_MASK)
1673 /* An XS form instruction. */
1674 #define XS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2) | (((unsigned long)(rc)) & 1))
1675 #define XS_MASK XS (0x3f, 0x1ff, 1)
1677 /* A mask for the FXM version of an XFX form instruction. */
1678 #define XFXFXM_MASK (X_MASK | (1 << 11))
1680 /* An XFX form instruction with the FXM field filled in. */
1681 #define XFXM(op, xop, fxm) \
1682 (X ((op), (xop)) | ((((unsigned long)(fxm)) & 0xff) << 12))
1684 /* An XFX form instruction with the SPR field filled in. */
1685 #define XSPR(op, xop, spr) \
1686 (X ((op), (xop)) | ((((unsigned long)(spr)) & 0x1f) << 16) | ((((unsigned long)(spr)) & 0x3e0) << 6))
1687 #define XSPR_MASK (X_MASK | SPR_MASK)
1689 /* An XFX form instruction with the SPR field filled in except for the
1690 SPRBAT field. */
1691 #define XSPRBAT_MASK (XSPR_MASK &~ SPRBAT_MASK)
1693 /* An XFX form instruction with the SPR field filled in except for the
1694 SPRG field. */
1695 #define XSPRG_MASK (XSPR_MASK &~ SPRG_MASK)
1697 /* An X form instruction with everything filled in except the E field. */
1698 #define XE_MASK (0xffff7fff)
1700 /* An X form user context instruction. */
1701 #define XUC(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f))
1702 #define XUC_MASK XUC(0x3f, 0x1f)
1704 /* The BO encodings used in extended conditional branch mnemonics. */
1705 #define BODNZF (0x0)
1706 #define BODNZFP (0x1)
1707 #define BODZF (0x2)
1708 #define BODZFP (0x3)
1709 #define BODNZT (0x8)
1710 #define BODNZTP (0x9)
1711 #define BODZT (0xa)
1712 #define BODZTP (0xb)
1714 #define BOF (0x4)
1715 #define BOFP (0x5)
1716 #define BOFM4 (0x6)
1717 #define BOFP4 (0x7)
1718 #define BOT (0xc)
1719 #define BOTP (0xd)
1720 #define BOTM4 (0xe)
1721 #define BOTP4 (0xf)
1723 #define BODNZ (0x10)
1724 #define BODNZP (0x11)
1725 #define BODZ (0x12)
1726 #define BODZP (0x13)
1727 #define BODNZM4 (0x18)
1728 #define BODNZP4 (0x19)
1729 #define BODZM4 (0x1a)
1730 #define BODZP4 (0x1b)
1732 #define BOU (0x14)
1734 /* The BI condition bit encodings used in extended conditional branch
1735 mnemonics. */
1736 #define CBLT (0)
1737 #define CBGT (1)
1738 #define CBEQ (2)
1739 #define CBSO (3)
1741 /* The TO encodings used in extended trap mnemonics. */
1742 #define TOLGT (0x1)
1743 #define TOLLT (0x2)
1744 #define TOEQ (0x4)
1745 #define TOLGE (0x5)
1746 #define TOLNL (0x5)
1747 #define TOLLE (0x6)
1748 #define TOLNG (0x6)
1749 #define TOGT (0x8)
1750 #define TOGE (0xc)
1751 #define TONL (0xc)
1752 #define TOLT (0x10)
1753 #define TOLE (0x14)
1754 #define TONG (0x14)
1755 #define TONE (0x18)
1756 #define TOU (0x1f)
1758 /* Smaller names for the flags so each entry in the opcodes table will
1759 fit on a single line. */
1760 #undef PPC
1761 #define PPC PPC_OPCODE_PPC
1762 #define PPCCOM PPC_OPCODE_PPC | PPC_OPCODE_COMMON
1763 #define NOPOWER4 PPC_OPCODE_NOPOWER4 | PPCCOM
1764 #define POWER4 PPC_OPCODE_POWER4
1765 #define PPC32 PPC_OPCODE_32 | PPC_OPCODE_PPC
1766 #define PPC64 PPC_OPCODE_64 | PPC_OPCODE_PPC
1767 #define PPC403 PPC_OPCODE_403
1768 #define PPC405 PPC403
1769 #define PPC440 PPC_OPCODE_440
1770 #define PPC750 PPC
1771 #define PPC860 PPC
1772 #define PPCVEC PPC_OPCODE_ALTIVEC
1773 #define POWER PPC_OPCODE_POWER
1774 #define POWER2 PPC_OPCODE_POWER | PPC_OPCODE_POWER2
1775 #define PPCPWR2 PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2
1776 #define POWER32 PPC_OPCODE_POWER | PPC_OPCODE_32
1777 #define COM PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON
1778 #define COM32 PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_32
1779 #define M601 PPC_OPCODE_POWER | PPC_OPCODE_601
1780 #define PWRCOM PPC_OPCODE_POWER | PPC_OPCODE_601 | PPC_OPCODE_COMMON
1781 #define MFDEC1 PPC_OPCODE_POWER
1782 #define MFDEC2 PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE
1783 #define BOOKE PPC_OPCODE_BOOKE
1784 #define BOOKE64 PPC_OPCODE_BOOKE64
1785 #define CLASSIC PPC_OPCODE_CLASSIC
1786 #define PPCSPE PPC_OPCODE_SPE
1787 #define PPCISEL PPC_OPCODE_ISEL
1788 #define PPCEFS PPC_OPCODE_EFS
1789 #define PPCBRLK PPC_OPCODE_BRLOCK
1790 #define PPCPMR PPC_OPCODE_PMR
1791 #define PPCCHLK PPC_OPCODE_CACHELCK
1792 #define PPCCHLK64 PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64
1793 #define PPCRFMCI PPC_OPCODE_RFMCI
1795 /* The opcode table.
1797 The format of the opcode table is:
1799 NAME OPCODE MASK FLAGS { OPERANDS }
1801 NAME is the name of the instruction.
1802 OPCODE is the instruction opcode.
1803 MASK is the opcode mask; this is used to tell the disassembler
1804 which bits in the actual opcode must match OPCODE.
1805 FLAGS are flags indicated what processors support the instruction.
1806 OPERANDS is the list of operands.
1808 The disassembler reads the table in order and prints the first
1809 instruction which matches, so this table is sorted to put more
1810 specific instructions before more general instructions. It is also
1811 sorted by major opcode. */
1813 const struct powerpc_opcode powerpc_opcodes[] = {
1814 { "attn", X(0,256), X_MASK, POWER4, { 0 } },
1815 { "tdlgti", OPTO(2,TOLGT), OPTO_MASK, PPC64, { RA, SI } },
1816 { "tdllti", OPTO(2,TOLLT), OPTO_MASK, PPC64, { RA, SI } },
1817 { "tdeqi", OPTO(2,TOEQ), OPTO_MASK, PPC64, { RA, SI } },
1818 { "tdlgei", OPTO(2,TOLGE), OPTO_MASK, PPC64, { RA, SI } },
1819 { "tdlnli", OPTO(2,TOLNL), OPTO_MASK, PPC64, { RA, SI } },
1820 { "tdllei", OPTO(2,TOLLE), OPTO_MASK, PPC64, { RA, SI } },
1821 { "tdlngi", OPTO(2,TOLNG), OPTO_MASK, PPC64, { RA, SI } },
1822 { "tdgti", OPTO(2,TOGT), OPTO_MASK, PPC64, { RA, SI } },
1823 { "tdgei", OPTO(2,TOGE), OPTO_MASK, PPC64, { RA, SI } },
1824 { "tdnli", OPTO(2,TONL), OPTO_MASK, PPC64, { RA, SI } },
1825 { "tdlti", OPTO(2,TOLT), OPTO_MASK, PPC64, { RA, SI } },
1826 { "tdlei", OPTO(2,TOLE), OPTO_MASK, PPC64, { RA, SI } },
1827 { "tdngi", OPTO(2,TONG), OPTO_MASK, PPC64, { RA, SI } },
1828 { "tdnei", OPTO(2,TONE), OPTO_MASK, PPC64, { RA, SI } },
1829 { "tdi", OP(2), OP_MASK, PPC64, { TO, RA, SI } },
1831 { "twlgti", OPTO(3,TOLGT), OPTO_MASK, PPCCOM, { RA, SI } },
1832 { "tlgti", OPTO(3,TOLGT), OPTO_MASK, PWRCOM, { RA, SI } },
1833 { "twllti", OPTO(3,TOLLT), OPTO_MASK, PPCCOM, { RA, SI } },
1834 { "tllti", OPTO(3,TOLLT), OPTO_MASK, PWRCOM, { RA, SI } },
1835 { "tweqi", OPTO(3,TOEQ), OPTO_MASK, PPCCOM, { RA, SI } },
1836 { "teqi", OPTO(3,TOEQ), OPTO_MASK, PWRCOM, { RA, SI } },
1837 { "twlgei", OPTO(3,TOLGE), OPTO_MASK, PPCCOM, { RA, SI } },
1838 { "tlgei", OPTO(3,TOLGE), OPTO_MASK, PWRCOM, { RA, SI } },
1839 { "twlnli", OPTO(3,TOLNL), OPTO_MASK, PPCCOM, { RA, SI } },
1840 { "tlnli", OPTO(3,TOLNL), OPTO_MASK, PWRCOM, { RA, SI } },
1841 { "twllei", OPTO(3,TOLLE), OPTO_MASK, PPCCOM, { RA, SI } },
1842 { "tllei", OPTO(3,TOLLE), OPTO_MASK, PWRCOM, { RA, SI } },
1843 { "twlngi", OPTO(3,TOLNG), OPTO_MASK, PPCCOM, { RA, SI } },
1844 { "tlngi", OPTO(3,TOLNG), OPTO_MASK, PWRCOM, { RA, SI } },
1845 { "twgti", OPTO(3,TOGT), OPTO_MASK, PPCCOM, { RA, SI } },
1846 { "tgti", OPTO(3,TOGT), OPTO_MASK, PWRCOM, { RA, SI } },
1847 { "twgei", OPTO(3,TOGE), OPTO_MASK, PPCCOM, { RA, SI } },
1848 { "tgei", OPTO(3,TOGE), OPTO_MASK, PWRCOM, { RA, SI } },
1849 { "twnli", OPTO(3,TONL), OPTO_MASK, PPCCOM, { RA, SI } },
1850 { "tnli", OPTO(3,TONL), OPTO_MASK, PWRCOM, { RA, SI } },
1851 { "twlti", OPTO(3,TOLT), OPTO_MASK, PPCCOM, { RA, SI } },
1852 { "tlti", OPTO(3,TOLT), OPTO_MASK, PWRCOM, { RA, SI } },
1853 { "twlei", OPTO(3,TOLE), OPTO_MASK, PPCCOM, { RA, SI } },
1854 { "tlei", OPTO(3,TOLE), OPTO_MASK, PWRCOM, { RA, SI } },
1855 { "twngi", OPTO(3,TONG), OPTO_MASK, PPCCOM, { RA, SI } },
1856 { "tngi", OPTO(3,TONG), OPTO_MASK, PWRCOM, { RA, SI } },
1857 { "twnei", OPTO(3,TONE), OPTO_MASK, PPCCOM, { RA, SI } },
1858 { "tnei", OPTO(3,TONE), OPTO_MASK, PWRCOM, { RA, SI } },
1859 { "twi", OP(3), OP_MASK, PPCCOM, { TO, RA, SI } },
1860 { "ti", OP(3), OP_MASK, PWRCOM, { TO, RA, SI } },
1862 { "macchw", XO(4,172,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1863 { "macchw.", XO(4,172,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1864 { "macchwo", XO(4,172,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1865 { "macchwo.", XO(4,172,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1866 { "macchws", XO(4,236,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1867 { "macchws.", XO(4,236,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1868 { "macchwso", XO(4,236,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1869 { "macchwso.", XO(4,236,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1870 { "macchwsu", XO(4,204,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1871 { "macchwsu.", XO(4,204,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1872 { "macchwsuo", XO(4,204,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1873 { "macchwsuo.", XO(4,204,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1874 { "macchwu", XO(4,140,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1875 { "macchwu.", XO(4,140,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1876 { "macchwuo", XO(4,140,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1877 { "macchwuo.", XO(4,140,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1878 { "machhw", XO(4,44,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1879 { "machhw.", XO(4,44,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1880 { "machhwo", XO(4,44,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1881 { "machhwo.", XO(4,44,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1882 { "machhws", XO(4,108,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1883 { "machhws.", XO(4,108,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1884 { "machhwso", XO(4,108,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1885 { "machhwso.", XO(4,108,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1886 { "machhwsu", XO(4,76,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1887 { "machhwsu.", XO(4,76,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1888 { "machhwsuo", XO(4,76,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1889 { "machhwsuo.", XO(4,76,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1890 { "machhwu", XO(4,12,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1891 { "machhwu.", XO(4,12,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1892 { "machhwuo", XO(4,12,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1893 { "machhwuo.", XO(4,12,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1894 { "maclhw", XO(4,428,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1895 { "maclhw.", XO(4,428,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1896 { "maclhwo", XO(4,428,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1897 { "maclhwo.", XO(4,428,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1898 { "maclhws", XO(4,492,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1899 { "maclhws.", XO(4,492,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1900 { "maclhwso", XO(4,492,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1901 { "maclhwso.", XO(4,492,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1902 { "maclhwsu", XO(4,460,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1903 { "maclhwsu.", XO(4,460,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1904 { "maclhwsuo", XO(4,460,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1905 { "maclhwsuo.", XO(4,460,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1906 { "maclhwu", XO(4,396,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1907 { "maclhwu.", XO(4,396,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1908 { "maclhwuo", XO(4,396,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1909 { "maclhwuo.", XO(4,396,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1910 { "mulchw", XRC(4,168,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1911 { "mulchw.", XRC(4,168,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1912 { "mulchwu", XRC(4,136,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1913 { "mulchwu.", XRC(4,136,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1914 { "mulhhw", XRC(4,40,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1915 { "mulhhw.", XRC(4,40,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1916 { "mulhhwu", XRC(4,8,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1917 { "mulhhwu.", XRC(4,8,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1918 { "mullhw", XRC(4,424,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1919 { "mullhw.", XRC(4,424,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1920 { "mullhwu", XRC(4,392,0), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1921 { "mullhwu.", XRC(4,392,1), X_MASK, PPC405|PPC440, { RT, RA, RB } },
1922 { "nmacchw", XO(4,174,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1923 { "nmacchw.", XO(4,174,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1924 { "nmacchwo", XO(4,174,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1925 { "nmacchwo.", XO(4,174,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1926 { "nmacchws", XO(4,238,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1927 { "nmacchws.", XO(4,238,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1928 { "nmacchwso", XO(4,238,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1929 { "nmacchwso.", XO(4,238,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1930 { "nmachhw", XO(4,46,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1931 { "nmachhw.", XO(4,46,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1932 { "nmachhwo", XO(4,46,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1933 { "nmachhwo.", XO(4,46,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1934 { "nmachhws", XO(4,110,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1935 { "nmachhws.", XO(4,110,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1936 { "nmachhwso", XO(4,110,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1937 { "nmachhwso.", XO(4,110,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1938 { "nmaclhw", XO(4,430,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1939 { "nmaclhw.", XO(4,430,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1940 { "nmaclhwo", XO(4,430,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1941 { "nmaclhwo.", XO(4,430,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1942 { "nmaclhws", XO(4,494,0,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1943 { "nmaclhws.", XO(4,494,0,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1944 { "nmaclhwso", XO(4,494,1,0), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1945 { "nmaclhwso.", XO(4,494,1,1), XO_MASK, PPC405|PPC440, { RT, RA, RB } },
1946 { "mfvscr", VX(4, 1540), VX_MASK, PPCVEC, { VD } },
1947 { "mtvscr", VX(4, 1604), VX_MASK, PPCVEC, { VB } },
1948 { "vaddcuw", VX(4, 384), VX_MASK, PPCVEC, { VD, VA, VB } },
1949 { "vaddfp", VX(4, 10), VX_MASK, PPCVEC, { VD, VA, VB } },
1950 { "vaddsbs", VX(4, 768), VX_MASK, PPCVEC, { VD, VA, VB } },
1951 { "vaddshs", VX(4, 832), VX_MASK, PPCVEC, { VD, VA, VB } },
1952 { "vaddsws", VX(4, 896), VX_MASK, PPCVEC, { VD, VA, VB } },
1953 { "vaddubm", VX(4, 0), VX_MASK, PPCVEC, { VD, VA, VB } },
1954 { "vaddubs", VX(4, 512), VX_MASK, PPCVEC, { VD, VA, VB } },
1955 { "vadduhm", VX(4, 64), VX_MASK, PPCVEC, { VD, VA, VB } },
1956 { "vadduhs", VX(4, 576), VX_MASK, PPCVEC, { VD, VA, VB } },
1957 { "vadduwm", VX(4, 128), VX_MASK, PPCVEC, { VD, VA, VB } },
1958 { "vadduws", VX(4, 640), VX_MASK, PPCVEC, { VD, VA, VB } },
1959 { "vand", VX(4, 1028), VX_MASK, PPCVEC, { VD, VA, VB } },
1960 { "vandc", VX(4, 1092), VX_MASK, PPCVEC, { VD, VA, VB } },
1961 { "vavgsb", VX(4, 1282), VX_MASK, PPCVEC, { VD, VA, VB } },
1962 { "vavgsh", VX(4, 1346), VX_MASK, PPCVEC, { VD, VA, VB } },
1963 { "vavgsw", VX(4, 1410), VX_MASK, PPCVEC, { VD, VA, VB } },
1964 { "vavgub", VX(4, 1026), VX_MASK, PPCVEC, { VD, VA, VB } },
1965 { "vavguh", VX(4, 1090), VX_MASK, PPCVEC, { VD, VA, VB } },
1966 { "vavguw", VX(4, 1154), VX_MASK, PPCVEC, { VD, VA, VB } },
1967 { "vcfsx", VX(4, 842), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1968 { "vcfux", VX(4, 778), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1969 { "vcmpbfp", VXR(4, 966, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1970 { "vcmpbfp.", VXR(4, 966, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1971 { "vcmpeqfp", VXR(4, 198, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1972 { "vcmpeqfp.", VXR(4, 198, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1973 { "vcmpequb", VXR(4, 6, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1974 { "vcmpequb.", VXR(4, 6, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1975 { "vcmpequh", VXR(4, 70, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1976 { "vcmpequh.", VXR(4, 70, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1977 { "vcmpequw", VXR(4, 134, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1978 { "vcmpequw.", VXR(4, 134, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1979 { "vcmpgefp", VXR(4, 454, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1980 { "vcmpgefp.", VXR(4, 454, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1981 { "vcmpgtfp", VXR(4, 710, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1982 { "vcmpgtfp.", VXR(4, 710, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1983 { "vcmpgtsb", VXR(4, 774, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1984 { "vcmpgtsb.", VXR(4, 774, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1985 { "vcmpgtsh", VXR(4, 838, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1986 { "vcmpgtsh.", VXR(4, 838, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1987 { "vcmpgtsw", VXR(4, 902, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1988 { "vcmpgtsw.", VXR(4, 902, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1989 { "vcmpgtub", VXR(4, 518, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1990 { "vcmpgtub.", VXR(4, 518, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1991 { "vcmpgtuh", VXR(4, 582, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1992 { "vcmpgtuh.", VXR(4, 582, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1993 { "vcmpgtuw", VXR(4, 646, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1994 { "vcmpgtuw.", VXR(4, 646, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1995 { "vctsxs", VX(4, 970), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1996 { "vctuxs", VX(4, 906), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1997 { "vexptefp", VX(4, 394), VX_MASK, PPCVEC, { VD, VB } },
1998 { "vlogefp", VX(4, 458), VX_MASK, PPCVEC, { VD, VB } },
1999 { "vmaddfp", VXA(4, 46), VXA_MASK, PPCVEC, { VD, VA, VC, VB } },
2000 { "vmaxfp", VX(4, 1034), VX_MASK, PPCVEC, { VD, VA, VB } },
2001 { "vmaxsb", VX(4, 258), VX_MASK, PPCVEC, { VD, VA, VB } },
2002 { "vmaxsh", VX(4, 322), VX_MASK, PPCVEC, { VD, VA, VB } },
2003 { "vmaxsw", VX(4, 386), VX_MASK, PPCVEC, { VD, VA, VB } },
2004 { "vmaxub", VX(4, 2), VX_MASK, PPCVEC, { VD, VA, VB } },
2005 { "vmaxuh", VX(4, 66), VX_MASK, PPCVEC, { VD, VA, VB } },
2006 { "vmaxuw", VX(4, 130), VX_MASK, PPCVEC, { VD, VA, VB } },
2007 { "vmhaddshs", VXA(4, 32), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2008 { "vmhraddshs", VXA(4, 33), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2009 { "vminfp", VX(4, 1098), VX_MASK, PPCVEC, { VD, VA, VB } },
2010 { "vminsb", VX(4, 770), VX_MASK, PPCVEC, { VD, VA, VB } },
2011 { "vminsh", VX(4, 834), VX_MASK, PPCVEC, { VD, VA, VB } },
2012 { "vminsw", VX(4, 898), VX_MASK, PPCVEC, { VD, VA, VB } },
2013 { "vminub", VX(4, 514), VX_MASK, PPCVEC, { VD, VA, VB } },
2014 { "vminuh", VX(4, 578), VX_MASK, PPCVEC, { VD, VA, VB } },
2015 { "vminuw", VX(4, 642), VX_MASK, PPCVEC, { VD, VA, VB } },
2016 { "vmladduhm", VXA(4, 34), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2017 { "vmrghb", VX(4, 12), VX_MASK, PPCVEC, { VD, VA, VB } },
2018 { "vmrghh", VX(4, 76), VX_MASK, PPCVEC, { VD, VA, VB } },
2019 { "vmrghw", VX(4, 140), VX_MASK, PPCVEC, { VD, VA, VB } },
2020 { "vmrglb", VX(4, 268), VX_MASK, PPCVEC, { VD, VA, VB } },
2021 { "vmrglh", VX(4, 332), VX_MASK, PPCVEC, { VD, VA, VB } },
2022 { "vmrglw", VX(4, 396), VX_MASK, PPCVEC, { VD, VA, VB } },
2023 { "vmsummbm", VXA(4, 37), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2024 { "vmsumshm", VXA(4, 40), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2025 { "vmsumshs", VXA(4, 41), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2026 { "vmsumubm", VXA(4, 36), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2027 { "vmsumuhm", VXA(4, 38), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2028 { "vmsumuhs", VXA(4, 39), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2029 { "vmulesb", VX(4, 776), VX_MASK, PPCVEC, { VD, VA, VB } },
2030 { "vmulesh", VX(4, 840), VX_MASK, PPCVEC, { VD, VA, VB } },
2031 { "vmuleub", VX(4, 520), VX_MASK, PPCVEC, { VD, VA, VB } },
2032 { "vmuleuh", VX(4, 584), VX_MASK, PPCVEC, { VD, VA, VB } },
2033 { "vmulosb", VX(4, 264), VX_MASK, PPCVEC, { VD, VA, VB } },
2034 { "vmulosh", VX(4, 328), VX_MASK, PPCVEC, { VD, VA, VB } },
2035 { "vmuloub", VX(4, 8), VX_MASK, PPCVEC, { VD, VA, VB } },
2036 { "vmulouh", VX(4, 72), VX_MASK, PPCVEC, { VD, VA, VB } },
2037 { "vnmsubfp", VXA(4, 47), VXA_MASK, PPCVEC, { VD, VA, VC, VB } },
2038 { "vnor", VX(4, 1284), VX_MASK, PPCVEC, { VD, VA, VB } },
2039 { "vor", VX(4, 1156), VX_MASK, PPCVEC, { VD, VA, VB } },
2040 { "vperm", VXA(4, 43), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2041 { "vpkpx", VX(4, 782), VX_MASK, PPCVEC, { VD, VA, VB } },
2042 { "vpkshss", VX(4, 398), VX_MASK, PPCVEC, { VD, VA, VB } },
2043 { "vpkshus", VX(4, 270), VX_MASK, PPCVEC, { VD, VA, VB } },
2044 { "vpkswss", VX(4, 462), VX_MASK, PPCVEC, { VD, VA, VB } },
2045 { "vpkswus", VX(4, 334), VX_MASK, PPCVEC, { VD, VA, VB } },
2046 { "vpkuhum", VX(4, 14), VX_MASK, PPCVEC, { VD, VA, VB } },
2047 { "vpkuhus", VX(4, 142), VX_MASK, PPCVEC, { VD, VA, VB } },
2048 { "vpkuwum", VX(4, 78), VX_MASK, PPCVEC, { VD, VA, VB } },
2049 { "vpkuwus", VX(4, 206), VX_MASK, PPCVEC, { VD, VA, VB } },
2050 { "vrefp", VX(4, 266), VX_MASK, PPCVEC, { VD, VB } },
2051 { "vrfim", VX(4, 714), VX_MASK, PPCVEC, { VD, VB } },
2052 { "vrfin", VX(4, 522), VX_MASK, PPCVEC, { VD, VB } },
2053 { "vrfip", VX(4, 650), VX_MASK, PPCVEC, { VD, VB } },
2054 { "vrfiz", VX(4, 586), VX_MASK, PPCVEC, { VD, VB } },
2055 { "vrlb", VX(4, 4), VX_MASK, PPCVEC, { VD, VA, VB } },
2056 { "vrlh", VX(4, 68), VX_MASK, PPCVEC, { VD, VA, VB } },
2057 { "vrlw", VX(4, 132), VX_MASK, PPCVEC, { VD, VA, VB } },
2058 { "vrsqrtefp", VX(4, 330), VX_MASK, PPCVEC, { VD, VB } },
2059 { "vsel", VXA(4, 42), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
2060 { "vsl", VX(4, 452), VX_MASK, PPCVEC, { VD, VA, VB } },
2061 { "vslb", VX(4, 260), VX_MASK, PPCVEC, { VD, VA, VB } },
2062 { "vsldoi", VXA(4, 44), VXA_MASK, PPCVEC, { VD, VA, VB, SHB } },
2063 { "vslh", VX(4, 324), VX_MASK, PPCVEC, { VD, VA, VB } },
2064 { "vslo", VX(4, 1036), VX_MASK, PPCVEC, { VD, VA, VB } },
2065 { "vslw", VX(4, 388), VX_MASK, PPCVEC, { VD, VA, VB } },
2066 { "vspltb", VX(4, 524), VX_MASK, PPCVEC, { VD, VB, UIMM } },
2067 { "vsplth", VX(4, 588), VX_MASK, PPCVEC, { VD, VB, UIMM } },
2068 { "vspltisb", VX(4, 780), VX_MASK, PPCVEC, { VD, SIMM } },
2069 { "vspltish", VX(4, 844), VX_MASK, PPCVEC, { VD, SIMM } },
2070 { "vspltisw", VX(4, 908), VX_MASK, PPCVEC, { VD, SIMM } },
2071 { "vspltw", VX(4, 652), VX_MASK, PPCVEC, { VD, VB, UIMM } },
2072 { "vsr", VX(4, 708), VX_MASK, PPCVEC, { VD, VA, VB } },
2073 { "vsrab", VX(4, 772), VX_MASK, PPCVEC, { VD, VA, VB } },
2074 { "vsrah", VX(4, 836), VX_MASK, PPCVEC, { VD, VA, VB } },
2075 { "vsraw", VX(4, 900), VX_MASK, PPCVEC, { VD, VA, VB } },
2076 { "vsrb", VX(4, 516), VX_MASK, PPCVEC, { VD, VA, VB } },
2077 { "vsrh", VX(4, 580), VX_MASK, PPCVEC, { VD, VA, VB } },
2078 { "vsro", VX(4, 1100), VX_MASK, PPCVEC, { VD, VA, VB } },
2079 { "vsrw", VX(4, 644), VX_MASK, PPCVEC, { VD, VA, VB } },
2080 { "vsubcuw", VX(4, 1408), VX_MASK, PPCVEC, { VD, VA, VB } },
2081 { "vsubfp", VX(4, 74), VX_MASK, PPCVEC, { VD, VA, VB } },
2082 { "vsubsbs", VX(4, 1792), VX_MASK, PPCVEC, { VD, VA, VB } },
2083 { "vsubshs", VX(4, 1856), VX_MASK, PPCVEC, { VD, VA, VB } },
2084 { "vsubsws", VX(4, 1920), VX_MASK, PPCVEC, { VD, VA, VB } },
2085 { "vsububm", VX(4, 1024), VX_MASK, PPCVEC, { VD, VA, VB } },
2086 { "vsububs", VX(4, 1536), VX_MASK, PPCVEC, { VD, VA, VB } },
2087 { "vsubuhm", VX(4, 1088), VX_MASK, PPCVEC, { VD, VA, VB } },
2088 { "vsubuhs", VX(4, 1600), VX_MASK, PPCVEC, { VD, VA, VB } },
2089 { "vsubuwm", VX(4, 1152), VX_MASK, PPCVEC, { VD, VA, VB } },
2090 { "vsubuws", VX(4, 1664), VX_MASK, PPCVEC, { VD, VA, VB } },
2091 { "vsumsws", VX(4, 1928), VX_MASK, PPCVEC, { VD, VA, VB } },
2092 { "vsum2sws", VX(4, 1672), VX_MASK, PPCVEC, { VD, VA, VB } },
2093 { "vsum4sbs", VX(4, 1800), VX_MASK, PPCVEC, { VD, VA, VB } },
2094 { "vsum4shs", VX(4, 1608), VX_MASK, PPCVEC, { VD, VA, VB } },
2095 { "vsum4ubs", VX(4, 1544), VX_MASK, PPCVEC, { VD, VA, VB } },
2096 { "vupkhpx", VX(4, 846), VX_MASK, PPCVEC, { VD, VB } },
2097 { "vupkhsb", VX(4, 526), VX_MASK, PPCVEC, { VD, VB } },
2098 { "vupkhsh", VX(4, 590), VX_MASK, PPCVEC, { VD, VB } },
2099 { "vupklpx", VX(4, 974), VX_MASK, PPCVEC, { VD, VB } },
2100 { "vupklsb", VX(4, 654), VX_MASK, PPCVEC, { VD, VB } },
2101 { "vupklsh", VX(4, 718), VX_MASK, PPCVEC, { VD, VB } },
2102 { "vxor", VX(4, 1220), VX_MASK, PPCVEC, { VD, VA, VB } },
2104 { "evaddw", VX(4, 512), VX_MASK, PPCSPE, { RS, RA, RB } },
2105 { "evaddiw", VX(4, 514), VX_MASK, PPCSPE, { RS, RB, UIMM } },
2106 { "evsubfw", VX(4, 516), VX_MASK, PPCSPE, { RS, RA, RB } },
2107 { "evsubw", VX(4, 516), VX_MASK, PPCSPE, { RS, RB, RA } },
2108 { "evsubifw", VX(4, 518), VX_MASK, PPCSPE, { RS, UIMM, RB } },
2109 { "evsubiw", VX(4, 518), VX_MASK, PPCSPE, { RS, RB, UIMM } },
2110 { "evabs", VX(4, 520), VX_MASK, PPCSPE, { RS, RA } },
2111 { "evneg", VX(4, 521), VX_MASK, PPCSPE, { RS, RA } },
2112 { "evextsb", VX(4, 522), VX_MASK, PPCSPE, { RS, RA } },
2113 { "evextsh", VX(4, 523), VX_MASK, PPCSPE, { RS, RA } },
2114 { "evrndw", VX(4, 524), VX_MASK, PPCSPE, { RS, RA } },
2115 { "evcntlzw", VX(4, 525), VX_MASK, PPCSPE, { RS, RA } },
2116 { "evcntlsw", VX(4, 526), VX_MASK, PPCSPE, { RS, RA } },
2118 { "brinc", VX(4, 527), VX_MASK, PPCSPE, { RS, RA, RB } },
2120 { "evand", VX(4, 529), VX_MASK, PPCSPE, { RS, RA, RB } },
2121 { "evandc", VX(4, 530), VX_MASK, PPCSPE, { RS, RA, RB } },
2122 { "evmr", VX(4, 535), VX_MASK, PPCSPE, { RS, RA, BBA } },
2123 { "evor", VX(4, 535), VX_MASK, PPCSPE, { RS, RA, RB } },
2124 { "evorc", VX(4, 539), VX_MASK, PPCSPE, { RS, RA, RB } },
2125 { "evxor", VX(4, 534), VX_MASK, PPCSPE, { RS, RA, RB } },
2126 { "eveqv", VX(4, 537), VX_MASK, PPCSPE, { RS, RA, RB } },
2127 { "evnand", VX(4, 542), VX_MASK, PPCSPE, { RS, RA, RB } },
2128 { "evnot", VX(4, 536), VX_MASK, PPCSPE, { RS, RA, BBA } },
2129 { "evnor", VX(4, 536), VX_MASK, PPCSPE, { RS, RA, RB } },
2131 { "evrlw", VX(4, 552), VX_MASK, PPCSPE, { RS, RA, RB } },
2132 { "evrlwi", VX(4, 554), VX_MASK, PPCSPE, { RS, RA, EVUIMM } },
2133 { "evslw", VX(4, 548), VX_MASK, PPCSPE, { RS, RA, RB } },
2134 { "evslwi", VX(4, 550), VX_MASK, PPCSPE, { RS, RA, EVUIMM } },
2135 { "evsrws", VX(4, 545), VX_MASK, PPCSPE, { RS, RA, RB } },
2136 { "evsrwu", VX(4, 544), VX_MASK, PPCSPE, { RS, RA, RB } },
2137 { "evsrwis", VX(4, 547), VX_MASK, PPCSPE, { RS, RA, EVUIMM } },
2138 { "evsrwiu", VX(4, 546), VX_MASK, PPCSPE, { RS, RA, EVUIMM } },
2139 { "evsplati", VX(4, 553), VX_MASK, PPCSPE, { RS, SIMM } },
2140 { "evsplatfi", VX(4, 555), VX_MASK, PPCSPE, { RS, SIMM } },
2141 { "evmergehi", VX(4, 556), VX_MASK, PPCSPE, { RS, RA, RB } },
2142 { "evmergelo", VX(4, 557), VX_MASK, PPCSPE, { RS, RA, RB } },
2143 { "evmergehilo",VX(4,558), VX_MASK, PPCSPE, { RS, RA, RB } },
2144 { "evmergelohi",VX(4,559), VX_MASK, PPCSPE, { RS, RA, RB } },
2146 { "evcmpgts", VX(4, 561), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2147 { "evcmpgtu", VX(4, 560), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2148 { "evcmplts", VX(4, 563), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2149 { "evcmpltu", VX(4, 562), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2150 { "evcmpeq", VX(4, 564), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2151 { "evsel", EVSEL(4,79),EVSEL_MASK, PPCSPE, { RS, RA, RB, CRFS } },
2153 { "evldd", VX(4, 769), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2154 { "evlddx", VX(4, 768), VX_MASK, PPCSPE, { RS, RA, RB } },
2155 { "evldw", VX(4, 771), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2156 { "evldwx", VX(4, 770), VX_MASK, PPCSPE, { RS, RA, RB } },
2157 { "evldh", VX(4, 773), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2158 { "evldhx", VX(4, 772), VX_MASK, PPCSPE, { RS, RA, RB } },
2159 { "evlwhe", VX(4, 785), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2160 { "evlwhex", VX(4, 784), VX_MASK, PPCSPE, { RS, RA, RB } },
2161 { "evlwhou", VX(4, 789), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2162 { "evlwhoux", VX(4, 788), VX_MASK, PPCSPE, { RS, RA, RB } },
2163 { "evlwhos", VX(4, 791), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2164 { "evlwhosx", VX(4, 790), VX_MASK, PPCSPE, { RS, RA, RB } },
2165 { "evlwwsplat",VX(4, 793), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2166 { "evlwwsplatx",VX(4, 792), VX_MASK, PPCSPE, { RS, RA, RB } },
2167 { "evlwhsplat",VX(4, 797), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2168 { "evlwhsplatx",VX(4, 796), VX_MASK, PPCSPE, { RS, RA, RB } },
2169 { "evlhhesplat",VX(4, 777), VX_MASK, PPCSPE, { RS, EVUIMM_2, RA } },
2170 { "evlhhesplatx",VX(4, 776), VX_MASK, PPCSPE, { RS, RA, RB } },
2171 { "evlhhousplat",VX(4, 781), VX_MASK, PPCSPE, { RS, EVUIMM_2, RA } },
2172 { "evlhhousplatx",VX(4, 780), VX_MASK, PPCSPE, { RS, RA, RB } },
2173 { "evlhhossplat",VX(4, 783), VX_MASK, PPCSPE, { RS, EVUIMM_2, RA } },
2174 { "evlhhossplatx",VX(4, 782), VX_MASK, PPCSPE, { RS, RA, RB } },
2176 { "evstdd", VX(4, 801), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2177 { "evstddx", VX(4, 800), VX_MASK, PPCSPE, { RS, RA, RB } },
2178 { "evstdw", VX(4, 803), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2179 { "evstdwx", VX(4, 802), VX_MASK, PPCSPE, { RS, RA, RB } },
2180 { "evstdh", VX(4, 805), VX_MASK, PPCSPE, { RS, EVUIMM_8, RA } },
2181 { "evstdhx", VX(4, 804), VX_MASK, PPCSPE, { RS, RA, RB } },
2182 { "evstwwe", VX(4, 825), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2183 { "evstwwex", VX(4, 824), VX_MASK, PPCSPE, { RS, RA, RB } },
2184 { "evstwwo", VX(4, 829), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2185 { "evstwwox", VX(4, 828), VX_MASK, PPCSPE, { RS, RA, RB } },
2186 { "evstwhe", VX(4, 817), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2187 { "evstwhex", VX(4, 816), VX_MASK, PPCSPE, { RS, RA, RB } },
2188 { "evstwho", VX(4, 821), VX_MASK, PPCSPE, { RS, EVUIMM_4, RA } },
2189 { "evstwhox", VX(4, 820), VX_MASK, PPCSPE, { RS, RA, RB } },
2191 { "evfsabs", VX(4, 644), VX_MASK, PPCSPE, { RS, RA } },
2192 { "evfsnabs", VX(4, 645), VX_MASK, PPCSPE, { RS, RA } },
2193 { "evfsneg", VX(4, 646), VX_MASK, PPCSPE, { RS, RA } },
2194 { "evfsadd", VX(4, 640), VX_MASK, PPCSPE, { RS, RA, RB } },
2195 { "evfssub", VX(4, 641), VX_MASK, PPCSPE, { RS, RA, RB } },
2196 { "evfsmul", VX(4, 648), VX_MASK, PPCSPE, { RS, RA, RB } },
2197 { "evfsdiv", VX(4, 649), VX_MASK, PPCSPE, { RS, RA, RB } },
2198 { "evfscmpgt", VX(4, 652), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2199 { "evfscmplt", VX(4, 653), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2200 { "evfscmpeq", VX(4, 654), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2201 { "evfststgt", VX(4, 668), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2202 { "evfststlt", VX(4, 669), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2203 { "evfststeq", VX(4, 670), VX_MASK, PPCSPE, { CRFD, RA, RB } },
2204 { "evfscfui", VX(4, 656), VX_MASK, PPCSPE, { RS, RB } },
2205 { "evfsctuiz", VX(4, 664), VX_MASK, PPCSPE, { RS, RB } },
2206 { "evfscfsi", VX(4, 657), VX_MASK, PPCSPE, { RS, RB } },
2207 { "evfscfuf", VX(4, 658), VX_MASK, PPCSPE, { RS, RB } },
2208 { "evfscfsf", VX(4, 659), VX_MASK, PPCSPE, { RS, RB } },
2209 { "evfsctui", VX(4, 660), VX_MASK, PPCSPE, { RS, RB } },
2210 { "evfsctsi", VX(4, 661), VX_MASK, PPCSPE, { RS, RB } },
2211 { "evfsctsiz", VX(4, 666), VX_MASK, PPCSPE, { RS, RB } },
2212 { "evfsctuf", VX(4, 662), VX_MASK, PPCSPE, { RS, RB } },
2213 { "evfsctsf", VX(4, 663), VX_MASK, PPCSPE, { RS, RB } },
2215 { "efsabs", VX(4, 708), VX_MASK, PPCEFS, { RS, RA } },
2216 { "efsnabs", VX(4, 709), VX_MASK, PPCEFS, { RS, RA } },
2217 { "efsneg", VX(4, 710), VX_MASK, PPCEFS, { RS, RA } },
2218 { "efsadd", VX(4, 704), VX_MASK, PPCEFS, { RS, RA, RB } },
2219 { "efssub", VX(4, 705), VX_MASK, PPCEFS, { RS, RA, RB } },
2220 { "efsmul", VX(4, 712), VX_MASK, PPCEFS, { RS, RA, RB } },
2221 { "efsdiv", VX(4, 713), VX_MASK, PPCEFS, { RS, RA, RB } },
2222 { "efscmpgt", VX(4, 716), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2223 { "efscmplt", VX(4, 717), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2224 { "efscmpeq", VX(4, 718), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2225 { "efststgt", VX(4, 732), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2226 { "efststlt", VX(4, 733), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2227 { "efststeq", VX(4, 734), VX_MASK, PPCEFS, { CRFD, RA, RB } },
2228 { "efscfui", VX(4, 720), VX_MASK, PPCEFS, { RS, RB } },
2229 { "efsctuiz", VX(4, 728), VX_MASK, PPCEFS, { RS, RB } },
2230 { "efscfsi", VX(4, 721), VX_MASK, PPCEFS, { RS, RB } },
2231 { "efscfuf", VX(4, 722), VX_MASK, PPCEFS, { RS, RB } },
2232 { "efscfsf", VX(4, 723), VX_MASK, PPCEFS, { RS, RB } },
2233 { "efsctui", VX(4, 724), VX_MASK, PPCEFS, { RS, RB } },
2234 { "efsctsi", VX(4, 725), VX_MASK, PPCEFS, { RS, RB } },
2235 { "efsctsiz", VX(4, 730), VX_MASK, PPCEFS, { RS, RB } },
2236 { "efsctuf", VX(4, 726), VX_MASK, PPCEFS, { RS, RB } },
2237 { "efsctsf", VX(4, 727), VX_MASK, PPCEFS, { RS, RB } },
2239 { "evmhossf", VX(4, 1031), VX_MASK, PPCSPE, { RS, RA, RB } },
2240 { "evmhossfa", VX(4, 1063), VX_MASK, PPCSPE, { RS, RA, RB } },
2241 { "evmhosmf", VX(4, 1039), VX_MASK, PPCSPE, { RS, RA, RB } },
2242 { "evmhosmfa", VX(4, 1071), VX_MASK, PPCSPE, { RS, RA, RB } },
2243 { "evmhosmi", VX(4, 1037), VX_MASK, PPCSPE, { RS, RA, RB } },
2244 { "evmhosmia", VX(4, 1069), VX_MASK, PPCSPE, { RS, RA, RB } },
2245 { "evmhoumi", VX(4, 1036), VX_MASK, PPCSPE, { RS, RA, RB } },
2246 { "evmhoumia", VX(4, 1068), VX_MASK, PPCSPE, { RS, RA, RB } },
2247 { "evmhessf", VX(4, 1027), VX_MASK, PPCSPE, { RS, RA, RB } },
2248 { "evmhessfa", VX(4, 1059), VX_MASK, PPCSPE, { RS, RA, RB } },
2249 { "evmhesmf", VX(4, 1035), VX_MASK, PPCSPE, { RS, RA, RB } },
2250 { "evmhesmfa", VX(4, 1067), VX_MASK, PPCSPE, { RS, RA, RB } },
2251 { "evmhesmi", VX(4, 1033), VX_MASK, PPCSPE, { RS, RA, RB } },
2252 { "evmhesmia", VX(4, 1065), VX_MASK, PPCSPE, { RS, RA, RB } },
2253 { "evmheumi", VX(4, 1032), VX_MASK, PPCSPE, { RS, RA, RB } },
2254 { "evmheumia", VX(4, 1064), VX_MASK, PPCSPE, { RS, RA, RB } },
2256 { "evmhossfaaw",VX(4, 1287), VX_MASK, PPCSPE, { RS, RA, RB } },
2257 { "evmhossiaaw",VX(4, 1285), VX_MASK, PPCSPE, { RS, RA, RB } },
2258 { "evmhosmfaaw",VX(4, 1295), VX_MASK, PPCSPE, { RS, RA, RB } },
2259 { "evmhosmiaaw",VX(4, 1293), VX_MASK, PPCSPE, { RS, RA, RB } },
2260 { "evmhousiaaw",VX(4, 1284), VX_MASK, PPCSPE, { RS, RA, RB } },
2261 { "evmhoumiaaw",VX(4, 1292), VX_MASK, PPCSPE, { RS, RA, RB } },
2262 { "evmhessfaaw",VX(4, 1283), VX_MASK, PPCSPE, { RS, RA, RB } },
2263 { "evmhessiaaw",VX(4, 1281), VX_MASK, PPCSPE, { RS, RA, RB } },
2264 { "evmhesmfaaw",VX(4, 1291), VX_MASK, PPCSPE, { RS, RA, RB } },
2265 { "evmhesmiaaw",VX(4, 1289), VX_MASK, PPCSPE, { RS, RA, RB } },
2266 { "evmheusiaaw",VX(4, 1280), VX_MASK, PPCSPE, { RS, RA, RB } },
2267 { "evmheumiaaw",VX(4, 1288), VX_MASK, PPCSPE, { RS, RA, RB } },
2269 { "evmhossfanw",VX(4, 1415), VX_MASK, PPCSPE, { RS, RA, RB } },
2270 { "evmhossianw",VX(4, 1413), VX_MASK, PPCSPE, { RS, RA, RB } },
2271 { "evmhosmfanw",VX(4, 1423), VX_MASK, PPCSPE, { RS, RA, RB } },
2272 { "evmhosmianw",VX(4, 1421), VX_MASK, PPCSPE, { RS, RA, RB } },
2273 { "evmhousianw",VX(4, 1412), VX_MASK, PPCSPE, { RS, RA, RB } },
2274 { "evmhoumianw",VX(4, 1420), VX_MASK, PPCSPE, { RS, RA, RB } },
2275 { "evmhessfanw",VX(4, 1411), VX_MASK, PPCSPE, { RS, RA, RB } },
2276 { "evmhessianw",VX(4, 1409), VX_MASK, PPCSPE, { RS, RA, RB } },
2277 { "evmhesmfanw",VX(4, 1419), VX_MASK, PPCSPE, { RS, RA, RB } },
2278 { "evmhesmianw",VX(4, 1417), VX_MASK, PPCSPE, { RS, RA, RB } },
2279 { "evmheusianw",VX(4, 1408), VX_MASK, PPCSPE, { RS, RA, RB } },
2280 { "evmheumianw",VX(4, 1416), VX_MASK, PPCSPE, { RS, RA, RB } },
2282 { "evmhogsmfaa",VX(4, 1327), VX_MASK, PPCSPE, { RS, RA, RB } },
2283 { "evmhogsmiaa",VX(4, 1325), VX_MASK, PPCSPE, { RS, RA, RB } },
2284 { "evmhogumiaa",VX(4, 1324), VX_MASK, PPCSPE, { RS, RA, RB } },
2285 { "evmhegsmfaa",VX(4, 1323), VX_MASK, PPCSPE, { RS, RA, RB } },
2286 { "evmhegsmiaa",VX(4, 1321), VX_MASK, PPCSPE, { RS, RA, RB } },
2287 { "evmhegumiaa",VX(4, 1320), VX_MASK, PPCSPE, { RS, RA, RB } },
2289 { "evmhogsmfan",VX(4, 1455), VX_MASK, PPCSPE, { RS, RA, RB } },
2290 { "evmhogsmian",VX(4, 1453), VX_MASK, PPCSPE, { RS, RA, RB } },
2291 { "evmhogumian",VX(4, 1452), VX_MASK, PPCSPE, { RS, RA, RB } },
2292 { "evmhegsmfan",VX(4, 1451), VX_MASK, PPCSPE, { RS, RA, RB } },
2293 { "evmhegsmian",VX(4, 1449), VX_MASK, PPCSPE, { RS, RA, RB } },
2294 { "evmhegumian",VX(4, 1448), VX_MASK, PPCSPE, { RS, RA, RB } },
2296 { "evmwhssf", VX(4, 1095), VX_MASK, PPCSPE, { RS, RA, RB } },
2297 { "evmwhssfa", VX(4, 1127), VX_MASK, PPCSPE, { RS, RA, RB } },
2298 { "evmwhsmf", VX(4, 1103), VX_MASK, PPCSPE, { RS, RA, RB } },
2299 { "evmwhsmfa", VX(4, 1135), VX_MASK, PPCSPE, { RS, RA, RB } },
2300 { "evmwhsmi", VX(4, 1101), VX_MASK, PPCSPE, { RS, RA, RB } },
2301 { "evmwhsmia", VX(4, 1133), VX_MASK, PPCSPE, { RS, RA, RB } },
2302 { "evmwhumi", VX(4, 1100), VX_MASK, PPCSPE, { RS, RA, RB } },
2303 { "evmwhumia", VX(4, 1132), VX_MASK, PPCSPE, { RS, RA, RB } },
2305 { "evmwlumi", VX(4, 1096), VX_MASK, PPCSPE, { RS, RA, RB } },
2306 { "evmwlumia", VX(4, 1128), VX_MASK, PPCSPE, { RS, RA, RB } },
2308 { "evmwlssiaaw",VX(4, 1345), VX_MASK, PPCSPE, { RS, RA, RB } },
2309 { "evmwlsmiaaw",VX(4, 1353), VX_MASK, PPCSPE, { RS, RA, RB } },
2310 { "evmwlusiaaw",VX(4, 1344), VX_MASK, PPCSPE, { RS, RA, RB } },
2311 { "evmwlumiaaw",VX(4, 1352), VX_MASK, PPCSPE, { RS, RA, RB } },
2313 { "evmwlssianw",VX(4, 1473), VX_MASK, PPCSPE, { RS, RA, RB } },
2314 { "evmwlsmianw",VX(4, 1481), VX_MASK, PPCSPE, { RS, RA, RB } },
2315 { "evmwlusianw",VX(4, 1472), VX_MASK, PPCSPE, { RS, RA, RB } },
2316 { "evmwlumianw",VX(4, 1480), VX_MASK, PPCSPE, { RS, RA, RB } },
2318 { "evmwssf", VX(4, 1107), VX_MASK, PPCSPE, { RS, RA, RB } },
2319 { "evmwssfa", VX(4, 1139), VX_MASK, PPCSPE, { RS, RA, RB } },
2320 { "evmwsmf", VX(4, 1115), VX_MASK, PPCSPE, { RS, RA, RB } },
2321 { "evmwsmfa", VX(4, 1147), VX_MASK, PPCSPE, { RS, RA, RB } },
2322 { "evmwsmi", VX(4, 1113), VX_MASK, PPCSPE, { RS, RA, RB } },
2323 { "evmwsmia", VX(4, 1145), VX_MASK, PPCSPE, { RS, RA, RB } },
2324 { "evmwumi", VX(4, 1112), VX_MASK, PPCSPE, { RS, RA, RB } },
2325 { "evmwumia", VX(4, 1144), VX_MASK, PPCSPE, { RS, RA, RB } },
2327 { "evmwssfaa", VX(4, 1363), VX_MASK, PPCSPE, { RS, RA, RB } },
2328 { "evmwsmfaa", VX(4, 1371), VX_MASK, PPCSPE, { RS, RA, RB } },
2329 { "evmwsmiaa", VX(4, 1369), VX_MASK, PPCSPE, { RS, RA, RB } },
2330 { "evmwumiaa", VX(4, 1368), VX_MASK, PPCSPE, { RS, RA, RB } },
2332 { "evmwssfan", VX(4, 1491), VX_MASK, PPCSPE, { RS, RA, RB } },
2333 { "evmwsmfan", VX(4, 1499), VX_MASK, PPCSPE, { RS, RA, RB } },
2334 { "evmwsmian", VX(4, 1497), VX_MASK, PPCSPE, { RS, RA, RB } },
2335 { "evmwumian", VX(4, 1496), VX_MASK, PPCSPE, { RS, RA, RB } },
2337 { "evaddssiaaw",VX(4, 1217), VX_MASK, PPCSPE, { RS, RA } },
2338 { "evaddsmiaaw",VX(4, 1225), VX_MASK, PPCSPE, { RS, RA } },
2339 { "evaddusiaaw",VX(4, 1216), VX_MASK, PPCSPE, { RS, RA } },
2340 { "evaddumiaaw",VX(4, 1224), VX_MASK, PPCSPE, { RS, RA } },
2342 { "evsubfssiaaw",VX(4, 1219), VX_MASK, PPCSPE, { RS, RA } },
2343 { "evsubfsmiaaw",VX(4, 1227), VX_MASK, PPCSPE, { RS, RA } },
2344 { "evsubfusiaaw",VX(4, 1218), VX_MASK, PPCSPE, { RS, RA } },
2345 { "evsubfumiaaw",VX(4, 1226), VX_MASK, PPCSPE, { RS, RA } },
2347 { "evmra", VX(4, 1220), VX_MASK, PPCSPE, { RS, RA } },
2349 { "evdivws", VX(4, 1222), VX_MASK, PPCSPE, { RS, RA, RB } },
2350 { "evdivwu", VX(4, 1223), VX_MASK, PPCSPE, { RS, RA, RB } },
2352 { "mulli", OP(7), OP_MASK, PPCCOM, { RT, RA, SI } },
2353 { "muli", OP(7), OP_MASK, PWRCOM, { RT, RA, SI } },
2355 { "subfic", OP(8), OP_MASK, PPCCOM, { RT, RA, SI } },
2356 { "sfi", OP(8), OP_MASK, PWRCOM, { RT, RA, SI } },
2358 { "dozi", OP(9), OP_MASK, M601, { RT, RA, SI } },
2360 { "bce", B(9,0,0), B_MASK, BOOKE64, { BO, BI, BD } },
2361 { "bcel", B(9,0,1), B_MASK, BOOKE64, { BO, BI, BD } },
2362 { "bcea", B(9,1,0), B_MASK, BOOKE64, { BO, BI, BDA } },
2363 { "bcela", B(9,1,1), B_MASK, BOOKE64, { BO, BI, BDA } },
2365 { "cmplwi", OPL(10,0), OPL_MASK, PPCCOM, { OBF, RA, UI } },
2366 { "cmpldi", OPL(10,1), OPL_MASK, PPC64, { OBF, RA, UI } },
2367 { "cmpli", OP(10), OP_MASK, PPC, { BF, L, RA, UI } },
2368 { "cmpli", OP(10), OP_MASK, PWRCOM, { BF, RA, UI } },
2370 { "cmpwi", OPL(11,0), OPL_MASK, PPCCOM, { OBF, RA, SI } },
2371 { "cmpdi", OPL(11,1), OPL_MASK, PPC64, { OBF, RA, SI } },
2372 { "cmpi", OP(11), OP_MASK, PPC, { BF, L, RA, SI } },
2373 { "cmpi", OP(11), OP_MASK, PWRCOM, { BF, RA, SI } },
2375 { "addic", OP(12), OP_MASK, PPCCOM, { RT, RA, SI } },
2376 { "ai", OP(12), OP_MASK, PWRCOM, { RT, RA, SI } },
2377 { "subic", OP(12), OP_MASK, PPCCOM, { RT, RA, NSI } },
2379 { "addic.", OP(13), OP_MASK, PPCCOM, { RT, RA, SI } },
2380 { "ai.", OP(13), OP_MASK, PWRCOM, { RT, RA, SI } },
2381 { "subic.", OP(13), OP_MASK, PPCCOM, { RT, RA, NSI } },
2383 { "li", OP(14), DRA_MASK, PPCCOM, { RT, SI } },
2384 { "lil", OP(14), DRA_MASK, PWRCOM, { RT, SI } },
2385 { "addi", OP(14), OP_MASK, PPCCOM, { RT, RA0, SI } },
2386 { "cal", OP(14), OP_MASK, PWRCOM, { RT, D, RA0 } },
2387 { "subi", OP(14), OP_MASK, PPCCOM, { RT, RA0, NSI } },
2388 { "la", OP(14), OP_MASK, PPCCOM, { RT, D, RA0 } },
2390 { "lis", OP(15), DRA_MASK, PPCCOM, { RT, SISIGNOPT } },
2391 { "liu", OP(15), DRA_MASK, PWRCOM, { RT, SISIGNOPT } },
2392 { "addis", OP(15), OP_MASK, PPCCOM, { RT,RA0,SISIGNOPT } },
2393 { "cau", OP(15), OP_MASK, PWRCOM, { RT,RA0,SISIGNOPT } },
2394 { "subis", OP(15), OP_MASK, PPCCOM, { RT, RA0, NSI } },
2396 { "bdnz-", BBO(16,BODNZ,0,0), BBOATBI_MASK, PPCCOM, { BDM } },
2397 { "bdnz+", BBO(16,BODNZ,0,0), BBOATBI_MASK, PPCCOM, { BDP } },
2398 { "bdnz", BBO(16,BODNZ,0,0), BBOATBI_MASK, PPCCOM, { BD } },
2399 { "bdn", BBO(16,BODNZ,0,0), BBOATBI_MASK, PWRCOM, { BD } },
2400 { "bdnzl-", BBO(16,BODNZ,0,1), BBOATBI_MASK, PPCCOM, { BDM } },
2401 { "bdnzl+", BBO(16,BODNZ,0,1), BBOATBI_MASK, PPCCOM, { BDP } },
2402 { "bdnzl", BBO(16,BODNZ,0,1), BBOATBI_MASK, PPCCOM, { BD } },
2403 { "bdnl", BBO(16,BODNZ,0,1), BBOATBI_MASK, PWRCOM, { BD } },
2404 { "bdnza-", BBO(16,BODNZ,1,0), BBOATBI_MASK, PPCCOM, { BDMA } },
2405 { "bdnza+", BBO(16,BODNZ,1,0), BBOATBI_MASK, PPCCOM, { BDPA } },
2406 { "bdnza", BBO(16,BODNZ,1,0), BBOATBI_MASK, PPCCOM, { BDA } },
2407 { "bdna", BBO(16,BODNZ,1,0), BBOATBI_MASK, PWRCOM, { BDA } },
2408 { "bdnzla-", BBO(16,BODNZ,1,1), BBOATBI_MASK, PPCCOM, { BDMA } },
2409 { "bdnzla+", BBO(16,BODNZ,1,1), BBOATBI_MASK, PPCCOM, { BDPA } },
2410 { "bdnzla", BBO(16,BODNZ,1,1), BBOATBI_MASK, PPCCOM, { BDA } },
2411 { "bdnla", BBO(16,BODNZ,1,1), BBOATBI_MASK, PWRCOM, { BDA } },
2412 { "bdz-", BBO(16,BODZ,0,0), BBOATBI_MASK, PPCCOM, { BDM } },
2413 { "bdz+", BBO(16,BODZ,0,0), BBOATBI_MASK, PPCCOM, { BDP } },
2414 { "bdz", BBO(16,BODZ,0,0), BBOATBI_MASK, COM, { BD } },
2415 { "bdzl-", BBO(16,BODZ,0,1), BBOATBI_MASK, PPCCOM, { BDM } },
2416 { "bdzl+", BBO(16,BODZ,0,1), BBOATBI_MASK, PPCCOM, { BDP } },
2417 { "bdzl", BBO(16,BODZ,0,1), BBOATBI_MASK, COM, { BD } },
2418 { "bdza-", BBO(16,BODZ,1,0), BBOATBI_MASK, PPCCOM, { BDMA } },
2419 { "bdza+", BBO(16,BODZ,1,0), BBOATBI_MASK, PPCCOM, { BDPA } },
2420 { "bdza", BBO(16,BODZ,1,0), BBOATBI_MASK, COM, { BDA } },
2421 { "bdzla-", BBO(16,BODZ,1,1), BBOATBI_MASK, PPCCOM, { BDMA } },
2422 { "bdzla+", BBO(16,BODZ,1,1), BBOATBI_MASK, PPCCOM, { BDPA } },
2423 { "bdzla", BBO(16,BODZ,1,1), BBOATBI_MASK, COM, { BDA } },
2424 { "blt-", BBOCB(16,BOT,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2425 { "blt+", BBOCB(16,BOT,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2426 { "blt", BBOCB(16,BOT,CBLT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2427 { "bltl-", BBOCB(16,BOT,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2428 { "bltl+", BBOCB(16,BOT,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2429 { "bltl", BBOCB(16,BOT,CBLT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2430 { "blta-", BBOCB(16,BOT,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2431 { "blta+", BBOCB(16,BOT,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2432 { "blta", BBOCB(16,BOT,CBLT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2433 { "bltla-", BBOCB(16,BOT,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2434 { "bltla+", BBOCB(16,BOT,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2435 { "bltla", BBOCB(16,BOT,CBLT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2436 { "bgt-", BBOCB(16,BOT,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2437 { "bgt+", BBOCB(16,BOT,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2438 { "bgt", BBOCB(16,BOT,CBGT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2439 { "bgtl-", BBOCB(16,BOT,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2440 { "bgtl+", BBOCB(16,BOT,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2441 { "bgtl", BBOCB(16,BOT,CBGT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2442 { "bgta-", BBOCB(16,BOT,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2443 { "bgta+", BBOCB(16,BOT,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2444 { "bgta", BBOCB(16,BOT,CBGT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2445 { "bgtla-", BBOCB(16,BOT,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2446 { "bgtla+", BBOCB(16,BOT,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2447 { "bgtla", BBOCB(16,BOT,CBGT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2448 { "beq-", BBOCB(16,BOT,CBEQ,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2449 { "beq+", BBOCB(16,BOT,CBEQ,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2450 { "beq", BBOCB(16,BOT,CBEQ,0,0), BBOATCB_MASK, COM, { CR, BD } },
2451 { "beql-", BBOCB(16,BOT,CBEQ,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2452 { "beql+", BBOCB(16,BOT,CBEQ,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2453 { "beql", BBOCB(16,BOT,CBEQ,0,1), BBOATCB_MASK, COM, { CR, BD } },
2454 { "beqa-", BBOCB(16,BOT,CBEQ,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2455 { "beqa+", BBOCB(16,BOT,CBEQ,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2456 { "beqa", BBOCB(16,BOT,CBEQ,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2457 { "beqla-", BBOCB(16,BOT,CBEQ,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2458 { "beqla+", BBOCB(16,BOT,CBEQ,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2459 { "beqla", BBOCB(16,BOT,CBEQ,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2460 { "bso-", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2461 { "bso+", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2462 { "bso", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, COM, { CR, BD } },
2463 { "bsol-", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2464 { "bsol+", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2465 { "bsol", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, COM, { CR, BD } },
2466 { "bsoa-", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2467 { "bsoa+", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2468 { "bsoa", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2469 { "bsola-", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2470 { "bsola+", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2471 { "bsola", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2472 { "bun-", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2473 { "bun+", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2474 { "bun", BBOCB(16,BOT,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BD } },
2475 { "bunl-", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2476 { "bunl+", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2477 { "bunl", BBOCB(16,BOT,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BD } },
2478 { "buna-", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2479 { "buna+", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2480 { "buna", BBOCB(16,BOT,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDA } },
2481 { "bunla-", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2482 { "bunla+", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2483 { "bunla", BBOCB(16,BOT,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDA } },
2484 { "bge-", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2485 { "bge+", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2486 { "bge", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2487 { "bgel-", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2488 { "bgel+", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2489 { "bgel", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2490 { "bgea-", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2491 { "bgea+", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2492 { "bgea", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2493 { "bgela-", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2494 { "bgela+", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2495 { "bgela", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2496 { "bnl-", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2497 { "bnl+", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2498 { "bnl", BBOCB(16,BOF,CBLT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2499 { "bnll-", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2500 { "bnll+", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2501 { "bnll", BBOCB(16,BOF,CBLT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2502 { "bnla-", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2503 { "bnla+", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2504 { "bnla", BBOCB(16,BOF,CBLT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2505 { "bnlla-", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2506 { "bnlla+", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2507 { "bnlla", BBOCB(16,BOF,CBLT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2508 { "ble-", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2509 { "ble+", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2510 { "ble", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2511 { "blel-", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2512 { "blel+", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2513 { "blel", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2514 { "blea-", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2515 { "blea+", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2516 { "blea", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2517 { "blela-", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2518 { "blela+", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2519 { "blela", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2520 { "bng-", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2521 { "bng+", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2522 { "bng", BBOCB(16,BOF,CBGT,0,0), BBOATCB_MASK, COM, { CR, BD } },
2523 { "bngl-", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2524 { "bngl+", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2525 { "bngl", BBOCB(16,BOF,CBGT,0,1), BBOATCB_MASK, COM, { CR, BD } },
2526 { "bnga-", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2527 { "bnga+", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2528 { "bnga", BBOCB(16,BOF,CBGT,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2529 { "bngla-", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2530 { "bngla+", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2531 { "bngla", BBOCB(16,BOF,CBGT,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2532 { "bne-", BBOCB(16,BOF,CBEQ,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2533 { "bne+", BBOCB(16,BOF,CBEQ,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2534 { "bne", BBOCB(16,BOF,CBEQ,0,0), BBOATCB_MASK, COM, { CR, BD } },
2535 { "bnel-", BBOCB(16,BOF,CBEQ,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2536 { "bnel+", BBOCB(16,BOF,CBEQ,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2537 { "bnel", BBOCB(16,BOF,CBEQ,0,1), BBOATCB_MASK, COM, { CR, BD } },
2538 { "bnea-", BBOCB(16,BOF,CBEQ,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2539 { "bnea+", BBOCB(16,BOF,CBEQ,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2540 { "bnea", BBOCB(16,BOF,CBEQ,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2541 { "bnela-", BBOCB(16,BOF,CBEQ,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2542 { "bnela+", BBOCB(16,BOF,CBEQ,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2543 { "bnela", BBOCB(16,BOF,CBEQ,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2544 { "bns-", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2545 { "bns+", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2546 { "bns", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, COM, { CR, BD } },
2547 { "bnsl-", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2548 { "bnsl+", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2549 { "bnsl", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, COM, { CR, BD } },
2550 { "bnsa-", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2551 { "bnsa+", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2552 { "bnsa", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, COM, { CR, BDA } },
2553 { "bnsla-", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2554 { "bnsla+", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2555 { "bnsla", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, COM, { CR, BDA } },
2556 { "bnu-", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2557 { "bnu+", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2558 { "bnu", BBOCB(16,BOF,CBSO,0,0), BBOATCB_MASK, PPCCOM, { CR, BD } },
2559 { "bnul-", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDM } },
2560 { "bnul+", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BDP } },
2561 { "bnul", BBOCB(16,BOF,CBSO,0,1), BBOATCB_MASK, PPCCOM, { CR, BD } },
2562 { "bnua-", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2563 { "bnua+", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2564 { "bnua", BBOCB(16,BOF,CBSO,1,0), BBOATCB_MASK, PPCCOM, { CR, BDA } },
2565 { "bnula-", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDMA } },
2566 { "bnula+", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDPA } },
2567 { "bnula", BBOCB(16,BOF,CBSO,1,1), BBOATCB_MASK, PPCCOM, { CR, BDA } },
2568 { "bdnzt-", BBO(16,BODNZT,0,0), BBOY_MASK, NOPOWER4, { BI, BDM } },
2569 { "bdnzt+", BBO(16,BODNZT,0,0), BBOY_MASK, NOPOWER4, { BI, BDP } },
2570 { "bdnzt", BBO(16,BODNZT,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
2571 { "bdnztl-", BBO(16,BODNZT,0,1), BBOY_MASK, NOPOWER4, { BI, BDM } },
2572 { "bdnztl+", BBO(16,BODNZT,0,1), BBOY_MASK, NOPOWER4, { BI, BDP } },
2573 { "bdnztl", BBO(16,BODNZT,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
2574 { "bdnzta-", BBO(16,BODNZT,1,0), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2575 { "bdnzta+", BBO(16,BODNZT,1,0), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2576 { "bdnzta", BBO(16,BODNZT,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
2577 { "bdnztla-",BBO(16,BODNZT,1,1), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2578 { "bdnztla+",BBO(16,BODNZT,1,1), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2579 { "bdnztla", BBO(16,BODNZT,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
2580 { "bdnzf-", BBO(16,BODNZF,0,0), BBOY_MASK, NOPOWER4, { BI, BDM } },
2581 { "bdnzf+", BBO(16,BODNZF,0,0), BBOY_MASK, NOPOWER4, { BI, BDP } },
2582 { "bdnzf", BBO(16,BODNZF,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
2583 { "bdnzfl-", BBO(16,BODNZF,0,1), BBOY_MASK, NOPOWER4, { BI, BDM } },
2584 { "bdnzfl+", BBO(16,BODNZF,0,1), BBOY_MASK, NOPOWER4, { BI, BDP } },
2585 { "bdnzfl", BBO(16,BODNZF,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
2586 { "bdnzfa-", BBO(16,BODNZF,1,0), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2587 { "bdnzfa+", BBO(16,BODNZF,1,0), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2588 { "bdnzfa", BBO(16,BODNZF,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
2589 { "bdnzfla-",BBO(16,BODNZF,1,1), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2590 { "bdnzfla+",BBO(16,BODNZF,1,1), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2591 { "bdnzfla", BBO(16,BODNZF,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
2592 { "bt-", BBO(16,BOT,0,0), BBOAT_MASK, PPCCOM, { BI, BDM } },
2593 { "bt+", BBO(16,BOT,0,0), BBOAT_MASK, PPCCOM, { BI, BDP } },
2594 { "bt", BBO(16,BOT,0,0), BBOAT_MASK, PPCCOM, { BI, BD } },
2595 { "bbt", BBO(16,BOT,0,0), BBOAT_MASK, PWRCOM, { BI, BD } },
2596 { "btl-", BBO(16,BOT,0,1), BBOAT_MASK, PPCCOM, { BI, BDM } },
2597 { "btl+", BBO(16,BOT,0,1), BBOAT_MASK, PPCCOM, { BI, BDP } },
2598 { "btl", BBO(16,BOT,0,1), BBOAT_MASK, PPCCOM, { BI, BD } },
2599 { "bbtl", BBO(16,BOT,0,1), BBOAT_MASK, PWRCOM, { BI, BD } },
2600 { "bta-", BBO(16,BOT,1,0), BBOAT_MASK, PPCCOM, { BI, BDMA } },
2601 { "bta+", BBO(16,BOT,1,0), BBOAT_MASK, PPCCOM, { BI, BDPA } },
2602 { "bta", BBO(16,BOT,1,0), BBOAT_MASK, PPCCOM, { BI, BDA } },
2603 { "bbta", BBO(16,BOT,1,0), BBOAT_MASK, PWRCOM, { BI, BDA } },
2604 { "btla-", BBO(16,BOT,1,1), BBOAT_MASK, PPCCOM, { BI, BDMA } },
2605 { "btla+", BBO(16,BOT,1,1), BBOAT_MASK, PPCCOM, { BI, BDPA } },
2606 { "btla", BBO(16,BOT,1,1), BBOAT_MASK, PPCCOM, { BI, BDA } },
2607 { "bbtla", BBO(16,BOT,1,1), BBOAT_MASK, PWRCOM, { BI, BDA } },
2608 { "bf-", BBO(16,BOF,0,0), BBOAT_MASK, PPCCOM, { BI, BDM } },
2609 { "bf+", BBO(16,BOF,0,0), BBOAT_MASK, PPCCOM, { BI, BDP } },
2610 { "bf", BBO(16,BOF,0,0), BBOAT_MASK, PPCCOM, { BI, BD } },
2611 { "bbf", BBO(16,BOF,0,0), BBOAT_MASK, PWRCOM, { BI, BD } },
2612 { "bfl-", BBO(16,BOF,0,1), BBOAT_MASK, PPCCOM, { BI, BDM } },
2613 { "bfl+", BBO(16,BOF,0,1), BBOAT_MASK, PPCCOM, { BI, BDP } },
2614 { "bfl", BBO(16,BOF,0,1), BBOAT_MASK, PPCCOM, { BI, BD } },
2615 { "bbfl", BBO(16,BOF,0,1), BBOAT_MASK, PWRCOM, { BI, BD } },
2616 { "bfa-", BBO(16,BOF,1,0), BBOAT_MASK, PPCCOM, { BI, BDMA } },
2617 { "bfa+", BBO(16,BOF,1,0), BBOAT_MASK, PPCCOM, { BI, BDPA } },
2618 { "bfa", BBO(16,BOF,1,0), BBOAT_MASK, PPCCOM, { BI, BDA } },
2619 { "bbfa", BBO(16,BOF,1,0), BBOAT_MASK, PWRCOM, { BI, BDA } },
2620 { "bfla-", BBO(16,BOF,1,1), BBOAT_MASK, PPCCOM, { BI, BDMA } },
2621 { "bfla+", BBO(16,BOF,1,1), BBOAT_MASK, PPCCOM, { BI, BDPA } },
2622 { "bfla", BBO(16,BOF,1,1), BBOAT_MASK, PPCCOM, { BI, BDA } },
2623 { "bbfla", BBO(16,BOF,1,1), BBOAT_MASK, PWRCOM, { BI, BDA } },
2624 { "bdzt-", BBO(16,BODZT,0,0), BBOY_MASK, NOPOWER4, { BI, BDM } },
2625 { "bdzt+", BBO(16,BODZT,0,0), BBOY_MASK, NOPOWER4, { BI, BDP } },
2626 { "bdzt", BBO(16,BODZT,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
2627 { "bdztl-", BBO(16,BODZT,0,1), BBOY_MASK, NOPOWER4, { BI, BDM } },
2628 { "bdztl+", BBO(16,BODZT,0,1), BBOY_MASK, NOPOWER4, { BI, BDP } },
2629 { "bdztl", BBO(16,BODZT,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
2630 { "bdzta-", BBO(16,BODZT,1,0), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2631 { "bdzta+", BBO(16,BODZT,1,0), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2632 { "bdzta", BBO(16,BODZT,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
2633 { "bdztla-", BBO(16,BODZT,1,1), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2634 { "bdztla+", BBO(16,BODZT,1,1), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2635 { "bdztla", BBO(16,BODZT,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
2636 { "bdzf-", BBO(16,BODZF,0,0), BBOY_MASK, NOPOWER4, { BI, BDM } },
2637 { "bdzf+", BBO(16,BODZF,0,0), BBOY_MASK, NOPOWER4, { BI, BDP } },
2638 { "bdzf", BBO(16,BODZF,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
2639 { "bdzfl-", BBO(16,BODZF,0,1), BBOY_MASK, NOPOWER4, { BI, BDM } },
2640 { "bdzfl+", BBO(16,BODZF,0,1), BBOY_MASK, NOPOWER4, { BI, BDP } },
2641 { "bdzfl", BBO(16,BODZF,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
2642 { "bdzfa-", BBO(16,BODZF,1,0), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2643 { "bdzfa+", BBO(16,BODZF,1,0), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2644 { "bdzfa", BBO(16,BODZF,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
2645 { "bdzfla-", BBO(16,BODZF,1,1), BBOY_MASK, NOPOWER4, { BI, BDMA } },
2646 { "bdzfla+", BBO(16,BODZF,1,1), BBOY_MASK, NOPOWER4, { BI, BDPA } },
2647 { "bdzfla", BBO(16,BODZF,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
2648 { "bc-", B(16,0,0), B_MASK, PPCCOM, { BOE, BI, BDM } },
2649 { "bc+", B(16,0,0), B_MASK, PPCCOM, { BOE, BI, BDP } },
2650 { "bc", B(16,0,0), B_MASK, COM, { BO, BI, BD } },
2651 { "bcl-", B(16,0,1), B_MASK, PPCCOM, { BOE, BI, BDM } },
2652 { "bcl+", B(16,0,1), B_MASK, PPCCOM, { BOE, BI, BDP } },
2653 { "bcl", B(16,0,1), B_MASK, COM, { BO, BI, BD } },
2654 { "bca-", B(16,1,0), B_MASK, PPCCOM, { BOE, BI, BDMA } },
2655 { "bca+", B(16,1,0), B_MASK, PPCCOM, { BOE, BI, BDPA } },
2656 { "bca", B(16,1,0), B_MASK, COM, { BO, BI, BDA } },
2657 { "bcla-", B(16,1,1), B_MASK, PPCCOM, { BOE, BI, BDMA } },
2658 { "bcla+", B(16,1,1), B_MASK, PPCCOM, { BOE, BI, BDPA } },
2659 { "bcla", B(16,1,1), B_MASK, COM, { BO, BI, BDA } },
2661 { "sc", SC(17,1,0), 0xffffffff, PPC, { 0 } },
2662 { "svc", SC(17,0,0), SC_MASK, POWER, { LEV, FL1, FL2 } },
2663 { "svcl", SC(17,0,1), SC_MASK, POWER, { LEV, FL1, FL2 } },
2664 { "svca", SC(17,1,0), SC_MASK, PWRCOM, { SV } },
2665 { "svcla", SC(17,1,1), SC_MASK, POWER, { SV } },
2667 { "b", B(18,0,0), B_MASK, COM, { LI } },
2668 { "bl", B(18,0,1), B_MASK, COM, { LI } },
2669 { "ba", B(18,1,0), B_MASK, COM, { LIA } },
2670 { "bla", B(18,1,1), B_MASK, COM, { LIA } },
2672 { "mcrf", XL(19,0), XLBB_MASK|(3 << 21)|(3 << 16), COM, { BF, BFA } },
2674 { "blr", XLO(19,BOU,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
2675 { "br", XLO(19,BOU,16,0), XLBOBIBB_MASK, PWRCOM, { 0 } },
2676 { "blrl", XLO(19,BOU,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
2677 { "brl", XLO(19,BOU,16,1), XLBOBIBB_MASK, PWRCOM, { 0 } },
2678 { "bdnzlr", XLO(19,BODNZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
2679 { "bdnzlr-", XLO(19,BODNZ,16,0), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2680 { "bdnzlr-", XLO(19,BODNZM4,16,0), XLBOBIBB_MASK, POWER4, { 0 } },
2681 { "bdnzlr+", XLO(19,BODNZP,16,0), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2682 { "bdnzlr+", XLO(19,BODNZP4,16,0), XLBOBIBB_MASK, POWER4, { 0 } },
2683 { "bdnzlrl", XLO(19,BODNZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
2684 { "bdnzlrl-",XLO(19,BODNZ,16,1), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2685 { "bdnzlrl-",XLO(19,BODNZM4,16,1), XLBOBIBB_MASK, POWER4, { 0 } },
2686 { "bdnzlrl+",XLO(19,BODNZP,16,1), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2687 { "bdnzlrl+",XLO(19,BODNZP4,16,1), XLBOBIBB_MASK, POWER4, { 0 } },
2688 { "bdzlr", XLO(19,BODZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
2689 { "bdzlr-", XLO(19,BODZ,16,0), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2690 { "bdzlr-", XLO(19,BODZM4,16,0), XLBOBIBB_MASK, POWER4, { 0 } },
2691 { "bdzlr+", XLO(19,BODZP,16,0), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2692 { "bdzlr+", XLO(19,BODZP4,16,0), XLBOBIBB_MASK, POWER4, { 0 } },
2693 { "bdzlrl", XLO(19,BODZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
2694 { "bdzlrl-", XLO(19,BODZ,16,1), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2695 { "bdzlrl-", XLO(19,BODZM4,16,1), XLBOBIBB_MASK, POWER4, { 0 } },
2696 { "bdzlrl+", XLO(19,BODZP,16,1), XLBOBIBB_MASK, NOPOWER4, { 0 } },
2697 { "bdzlrl+", XLO(19,BODZP4,16,1), XLBOBIBB_MASK, POWER4, { 0 } },
2698 { "bltlr", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2699 { "bltlr-", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2700 { "bltlr-", XLOCB(19,BOTM4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2701 { "bltlr+", XLOCB(19,BOTP,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2702 { "bltlr+", XLOCB(19,BOTP4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2703 { "bltr", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2704 { "bltlrl", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2705 { "bltlrl-", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2706 { "bltlrl-", XLOCB(19,BOTM4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2707 { "bltlrl+", XLOCB(19,BOTP,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2708 { "bltlrl+", XLOCB(19,BOTP4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2709 { "bltrl", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2710 { "bgtlr", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2711 { "bgtlr-", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2712 { "bgtlr-", XLOCB(19,BOTM4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2713 { "bgtlr+", XLOCB(19,BOTP,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2714 { "bgtlr+", XLOCB(19,BOTP4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2715 { "bgtr", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2716 { "bgtlrl", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2717 { "bgtlrl-", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2718 { "bgtlrl-", XLOCB(19,BOTM4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2719 { "bgtlrl+", XLOCB(19,BOTP,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2720 { "bgtlrl+", XLOCB(19,BOTP4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2721 { "bgtrl", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2722 { "beqlr", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2723 { "beqlr-", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2724 { "beqlr-", XLOCB(19,BOTM4,CBEQ,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2725 { "beqlr+", XLOCB(19,BOTP,CBEQ,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2726 { "beqlr+", XLOCB(19,BOTP4,CBEQ,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2727 { "beqr", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2728 { "beqlrl", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2729 { "beqlrl-", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2730 { "beqlrl-", XLOCB(19,BOTM4,CBEQ,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2731 { "beqlrl+", XLOCB(19,BOTP,CBEQ,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2732 { "beqlrl+", XLOCB(19,BOTP4,CBEQ,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2733 { "beqrl", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2734 { "bsolr", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2735 { "bsolr-", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2736 { "bsolr-", XLOCB(19,BOTM4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2737 { "bsolr+", XLOCB(19,BOTP,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2738 { "bsolr+", XLOCB(19,BOTP4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2739 { "bsor", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2740 { "bsolrl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2741 { "bsolrl-", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2742 { "bsolrl-", XLOCB(19,BOTM4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2743 { "bsolrl+", XLOCB(19,BOTP,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2744 { "bsolrl+", XLOCB(19,BOTP4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2745 { "bsorl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2746 { "bunlr", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2747 { "bunlr-", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2748 { "bunlr-", XLOCB(19,BOTM4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2749 { "bunlr+", XLOCB(19,BOTP,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2750 { "bunlr+", XLOCB(19,BOTP4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2751 { "bunlrl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2752 { "bunlrl-", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2753 { "bunlrl-", XLOCB(19,BOTM4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2754 { "bunlrl+", XLOCB(19,BOTP,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2755 { "bunlrl+", XLOCB(19,BOTP4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2756 { "bgelr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2757 { "bgelr-", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2758 { "bgelr-", XLOCB(19,BOFM4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2759 { "bgelr+", XLOCB(19,BOFP,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2760 { "bgelr+", XLOCB(19,BOFP4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2761 { "bger", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2762 { "bgelrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2763 { "bgelrl-", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2764 { "bgelrl-", XLOCB(19,BOFM4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2765 { "bgelrl+", XLOCB(19,BOFP,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2766 { "bgelrl+", XLOCB(19,BOFP4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2767 { "bgerl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2768 { "bnllr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2769 { "bnllr-", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2770 { "bnllr-", XLOCB(19,BOFM4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2771 { "bnllr+", XLOCB(19,BOFP,CBLT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2772 { "bnllr+", XLOCB(19,BOFP4,CBLT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2773 { "bnlr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2774 { "bnllrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2775 { "bnllrl-", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2776 { "bnllrl-", XLOCB(19,BOFM4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2777 { "bnllrl+", XLOCB(19,BOFP,CBLT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2778 { "bnllrl+", XLOCB(19,BOFP4,CBLT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2779 { "bnlrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2780 { "blelr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2781 { "blelr-", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2782 { "blelr-", XLOCB(19,BOFM4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2783 { "blelr+", XLOCB(19,BOFP,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2784 { "blelr+", XLOCB(19,BOFP4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2785 { "bler", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2786 { "blelrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2787 { "blelrl-", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2788 { "blelrl-", XLOCB(19,BOFM4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2789 { "blelrl+", XLOCB(19,BOFP,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2790 { "blelrl+", XLOCB(19,BOFP4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2791 { "blerl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2792 { "bnglr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2793 { "bnglr-", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2794 { "bnglr-", XLOCB(19,BOFM4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2795 { "bnglr+", XLOCB(19,BOFP,CBGT,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2796 { "bnglr+", XLOCB(19,BOFP4,CBGT,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2797 { "bngr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2798 { "bnglrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2799 { "bnglrl-", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2800 { "bnglrl-", XLOCB(19,BOFM4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2801 { "bnglrl+", XLOCB(19,BOFP,CBGT,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2802 { "bnglrl+", XLOCB(19,BOFP4,CBGT,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2803 { "bngrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2804 { "bnelr", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2805 { "bnelr-", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2806 { "bnelr-", XLOCB(19,BOFM4,CBEQ,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2807 { "bnelr+", XLOCB(19,BOFP,CBEQ,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2808 { "bnelr+", XLOCB(19,BOFP4,CBEQ,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2809 { "bner", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2810 { "bnelrl", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2811 { "bnelrl-", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2812 { "bnelrl-", XLOCB(19,BOFM4,CBEQ,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2813 { "bnelrl+", XLOCB(19,BOFP,CBEQ,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2814 { "bnelrl+", XLOCB(19,BOFP4,CBEQ,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2815 { "bnerl", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2816 { "bnslr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2817 { "bnslr-", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2818 { "bnslr-", XLOCB(19,BOFM4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2819 { "bnslr+", XLOCB(19,BOFP,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2820 { "bnslr+", XLOCB(19,BOFP4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2821 { "bnsr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2822 { "bnslrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2823 { "bnslrl-", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2824 { "bnslrl-", XLOCB(19,BOFM4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2825 { "bnslrl+", XLOCB(19,BOFP,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2826 { "bnslrl+", XLOCB(19,BOFP4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2827 { "bnsrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2828 { "bnulr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2829 { "bnulr-", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2830 { "bnulr-", XLOCB(19,BOFM4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2831 { "bnulr+", XLOCB(19,BOFP,CBSO,16,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2832 { "bnulr+", XLOCB(19,BOFP4,CBSO,16,0), XLBOCBBB_MASK, POWER4, { CR } },
2833 { "bnulrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2834 { "bnulrl-", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2835 { "bnulrl-", XLOCB(19,BOFM4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2836 { "bnulrl+", XLOCB(19,BOFP,CBSO,16,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2837 { "bnulrl+", XLOCB(19,BOFP4,CBSO,16,1), XLBOCBBB_MASK, POWER4, { CR } },
2838 { "btlr", XLO(19,BOT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2839 { "btlr-", XLO(19,BOT,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2840 { "btlr-", XLO(19,BOTM4,16,0), XLBOBB_MASK, POWER4, { BI } },
2841 { "btlr+", XLO(19,BOTP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2842 { "btlr+", XLO(19,BOTP4,16,0), XLBOBB_MASK, POWER4, { BI } },
2843 { "bbtr", XLO(19,BOT,16,0), XLBOBB_MASK, PWRCOM, { BI } },
2844 { "btlrl", XLO(19,BOT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2845 { "btlrl-", XLO(19,BOT,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2846 { "btlrl-", XLO(19,BOTM4,16,1), XLBOBB_MASK, POWER4, { BI } },
2847 { "btlrl+", XLO(19,BOTP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2848 { "btlrl+", XLO(19,BOTP4,16,1), XLBOBB_MASK, POWER4, { BI } },
2849 { "bbtrl", XLO(19,BOT,16,1), XLBOBB_MASK, PWRCOM, { BI } },
2850 { "bflr", XLO(19,BOF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2851 { "bflr-", XLO(19,BOF,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2852 { "bflr-", XLO(19,BOFM4,16,0), XLBOBB_MASK, POWER4, { BI } },
2853 { "bflr+", XLO(19,BOFP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2854 { "bflr+", XLO(19,BOFP4,16,0), XLBOBB_MASK, POWER4, { BI } },
2855 { "bbfr", XLO(19,BOF,16,0), XLBOBB_MASK, PWRCOM, { BI } },
2856 { "bflrl", XLO(19,BOF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2857 { "bflrl-", XLO(19,BOF,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2858 { "bflrl-", XLO(19,BOFM4,16,1), XLBOBB_MASK, POWER4, { BI } },
2859 { "bflrl+", XLO(19,BOFP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2860 { "bflrl+", XLO(19,BOFP4,16,1), XLBOBB_MASK, POWER4, { BI } },
2861 { "bbfrl", XLO(19,BOF,16,1), XLBOBB_MASK, PWRCOM, { BI } },
2862 { "bdnztlr", XLO(19,BODNZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2863 { "bdnztlr-",XLO(19,BODNZT,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2864 { "bdnztlr+",XLO(19,BODNZTP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2865 { "bdnztlrl",XLO(19,BODNZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2866 { "bdnztlrl-",XLO(19,BODNZT,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2867 { "bdnztlrl+",XLO(19,BODNZTP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2868 { "bdnzflr", XLO(19,BODNZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2869 { "bdnzflr-",XLO(19,BODNZF,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2870 { "bdnzflr+",XLO(19,BODNZFP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2871 { "bdnzflrl",XLO(19,BODNZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2872 { "bdnzflrl-",XLO(19,BODNZF,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2873 { "bdnzflrl+",XLO(19,BODNZFP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2874 { "bdztlr", XLO(19,BODZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2875 { "bdztlr-", XLO(19,BODZT,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2876 { "bdztlr+", XLO(19,BODZTP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2877 { "bdztlrl", XLO(19,BODZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2878 { "bdztlrl-",XLO(19,BODZT,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2879 { "bdztlrl+",XLO(19,BODZTP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2880 { "bdzflr", XLO(19,BODZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2881 { "bdzflr-", XLO(19,BODZF,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2882 { "bdzflr+", XLO(19,BODZFP,16,0), XLBOBB_MASK, NOPOWER4, { BI } },
2883 { "bdzflrl", XLO(19,BODZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2884 { "bdzflrl-",XLO(19,BODZF,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2885 { "bdzflrl+",XLO(19,BODZFP,16,1), XLBOBB_MASK, NOPOWER4, { BI } },
2886 { "bclr", XLLK(19,16,0), XLYBB_MASK, PPCCOM, { BO, BI } },
2887 { "bclrl", XLLK(19,16,1), XLYBB_MASK, PPCCOM, { BO, BI } },
2888 { "bclr+", XLYLK(19,16,1,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
2889 { "bclrl+", XLYLK(19,16,1,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
2890 { "bclr-", XLYLK(19,16,0,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
2891 { "bclrl-", XLYLK(19,16,0,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
2892 { "bcr", XLLK(19,16,0), XLBB_MASK, PWRCOM, { BO, BI } },
2893 { "bcrl", XLLK(19,16,1), XLBB_MASK, PWRCOM, { BO, BI } },
2894 { "bclre", XLLK(19,17,0), XLBB_MASK, BOOKE64, { BO, BI } },
2895 { "bclrel", XLLK(19,17,1), XLBB_MASK, BOOKE64, { BO, BI } },
2897 { "rfid", XL(19,18), 0xffffffff, PPC64, { 0 } },
2899 { "crnot", XL(19,33), XL_MASK, PPCCOM, { BT, BA, BBA } },
2900 { "crnor", XL(19,33), XL_MASK, COM, { BT, BA, BB } },
2901 { "rfmci", X(19,38), 0xffffffff, PPCRFMCI, { 0 } },
2903 { "rfi", XL(19,50), 0xffffffff, COM, { 0 } },
2904 { "rfci", XL(19,51), 0xffffffff, PPC403 | BOOKE, { 0 } },
2906 { "rfsvc", XL(19,82), 0xffffffff, POWER, { 0 } },
2908 { "crandc", XL(19,129), XL_MASK, COM, { BT, BA, BB } },
2910 { "isync", XL(19,150), 0xffffffff, PPCCOM, { 0 } },
2911 { "ics", XL(19,150), 0xffffffff, PWRCOM, { 0 } },
2913 { "crclr", XL(19,193), XL_MASK, PPCCOM, { BT, BAT, BBA } },
2914 { "crxor", XL(19,193), XL_MASK, COM, { BT, BA, BB } },
2916 { "crnand", XL(19,225), XL_MASK, COM, { BT, BA, BB } },
2918 { "crand", XL(19,257), XL_MASK, COM, { BT, BA, BB } },
2920 { "crset", XL(19,289), XL_MASK, PPCCOM, { BT, BAT, BBA } },
2921 { "creqv", XL(19,289), XL_MASK, COM, { BT, BA, BB } },
2923 { "crorc", XL(19,417), XL_MASK, COM, { BT, BA, BB } },
2925 { "crmove", XL(19,449), XL_MASK, PPCCOM, { BT, BA, BBA } },
2926 { "cror", XL(19,449), XL_MASK, COM, { BT, BA, BB } },
2928 { "bctr", XLO(19,BOU,528,0), XLBOBIBB_MASK, COM, { 0 } },
2929 { "bctrl", XLO(19,BOU,528,1), XLBOBIBB_MASK, COM, { 0 } },
2930 { "bltctr", XLOCB(19,BOT,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2931 { "bltctr-", XLOCB(19,BOT,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2932 { "bltctr-", XLOCB(19,BOTM4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2933 { "bltctr+", XLOCB(19,BOTP,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2934 { "bltctr+", XLOCB(19,BOTP4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2935 { "bltctrl", XLOCB(19,BOT,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2936 { "bltctrl-",XLOCB(19,BOT,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2937 { "bltctrl-",XLOCB(19,BOTM4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2938 { "bltctrl+",XLOCB(19,BOTP,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2939 { "bltctrl+",XLOCB(19,BOTP4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2940 { "bgtctr", XLOCB(19,BOT,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2941 { "bgtctr-", XLOCB(19,BOT,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2942 { "bgtctr-", XLOCB(19,BOTM4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2943 { "bgtctr+", XLOCB(19,BOTP,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2944 { "bgtctr+", XLOCB(19,BOTP4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2945 { "bgtctrl", XLOCB(19,BOT,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2946 { "bgtctrl-",XLOCB(19,BOT,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2947 { "bgtctrl-",XLOCB(19,BOTM4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2948 { "bgtctrl+",XLOCB(19,BOTP,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2949 { "bgtctrl+",XLOCB(19,BOTP4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2950 { "beqctr", XLOCB(19,BOT,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2951 { "beqctr-", XLOCB(19,BOT,CBEQ,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2952 { "beqctr-", XLOCB(19,BOTM4,CBEQ,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2953 { "beqctr+", XLOCB(19,BOTP,CBEQ,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2954 { "beqctr+", XLOCB(19,BOTP4,CBEQ,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2955 { "beqctrl", XLOCB(19,BOT,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2956 { "beqctrl-",XLOCB(19,BOT,CBEQ,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2957 { "beqctrl-",XLOCB(19,BOTM4,CBEQ,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2958 { "beqctrl+",XLOCB(19,BOTP,CBEQ,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2959 { "beqctrl+",XLOCB(19,BOTP4,CBEQ,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2960 { "bsoctr", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2961 { "bsoctr-", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2962 { "bsoctr-", XLOCB(19,BOTM4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2963 { "bsoctr+", XLOCB(19,BOTP,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2964 { "bsoctr+", XLOCB(19,BOTP4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2965 { "bsoctrl", XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2966 { "bsoctrl-",XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2967 { "bsoctrl-",XLOCB(19,BOTM4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2968 { "bsoctrl+",XLOCB(19,BOTP,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2969 { "bsoctrl+",XLOCB(19,BOTP4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2970 { "bunctr", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2971 { "bunctr-", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2972 { "bunctr-", XLOCB(19,BOTM4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2973 { "bunctr+", XLOCB(19,BOTP,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2974 { "bunctr+", XLOCB(19,BOTP4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2975 { "bunctrl", XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2976 { "bunctrl-",XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2977 { "bunctrl-",XLOCB(19,BOTM4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2978 { "bunctrl+",XLOCB(19,BOTP,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2979 { "bunctrl+",XLOCB(19,BOTP4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2980 { "bgectr", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2981 { "bgectr-", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2982 { "bgectr-", XLOCB(19,BOFM4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2983 { "bgectr+", XLOCB(19,BOFP,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2984 { "bgectr+", XLOCB(19,BOFP4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2985 { "bgectrl", XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2986 { "bgectrl-",XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2987 { "bgectrl-",XLOCB(19,BOFM4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2988 { "bgectrl+",XLOCB(19,BOFP,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2989 { "bgectrl+",XLOCB(19,BOFP4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2990 { "bnlctr", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2991 { "bnlctr-", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2992 { "bnlctr-", XLOCB(19,BOFM4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2993 { "bnlctr+", XLOCB(19,BOFP,CBLT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
2994 { "bnlctr+", XLOCB(19,BOFP4,CBLT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
2995 { "bnlctrl", XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2996 { "bnlctrl-",XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2997 { "bnlctrl-",XLOCB(19,BOFM4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
2998 { "bnlctrl+",XLOCB(19,BOFP,CBLT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
2999 { "bnlctrl+",XLOCB(19,BOFP4,CBLT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3000 { "blectr", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
3001 { "blectr-", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3002 { "blectr-", XLOCB(19,BOFM4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3003 { "blectr+", XLOCB(19,BOFP,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3004 { "blectr+", XLOCB(19,BOFP4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3005 { "blectrl", XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
3006 { "blectrl-",XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3007 { "blectrl-",XLOCB(19,BOFM4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3008 { "blectrl+",XLOCB(19,BOFP,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3009 { "blectrl+",XLOCB(19,BOFP4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3010 { "bngctr", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
3011 { "bngctr-", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3012 { "bngctr-", XLOCB(19,BOFM4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3013 { "bngctr+", XLOCB(19,BOFP,CBGT,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3014 { "bngctr+", XLOCB(19,BOFP4,CBGT,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3015 { "bngctrl", XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
3016 { "bngctrl-",XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3017 { "bngctrl-",XLOCB(19,BOFM4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3018 { "bngctrl+",XLOCB(19,BOFP,CBGT,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3019 { "bngctrl+",XLOCB(19,BOFP4,CBGT,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3020 { "bnectr", XLOCB(19,BOF,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
3021 { "bnectr-", XLOCB(19,BOF,CBEQ,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3022 { "bnectr-", XLOCB(19,BOFM4,CBEQ,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3023 { "bnectr+", XLOCB(19,BOFP,CBEQ,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3024 { "bnectr+", XLOCB(19,BOFP4,CBEQ,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3025 { "bnectrl", XLOCB(19,BOF,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
3026 { "bnectrl-",XLOCB(19,BOF,CBEQ,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3027 { "bnectrl-",XLOCB(19,BOFM4,CBEQ,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3028 { "bnectrl+",XLOCB(19,BOFP,CBEQ,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3029 { "bnectrl+",XLOCB(19,BOFP4,CBEQ,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3030 { "bnsctr", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
3031 { "bnsctr-", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3032 { "bnsctr-", XLOCB(19,BOFM4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3033 { "bnsctr+", XLOCB(19,BOFP,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3034 { "bnsctr+", XLOCB(19,BOFP4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3035 { "bnsctrl", XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
3036 { "bnsctrl-",XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3037 { "bnsctrl-",XLOCB(19,BOFM4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3038 { "bnsctrl+",XLOCB(19,BOFP,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3039 { "bnsctrl+",XLOCB(19,BOFP4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3040 { "bnuctr", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
3041 { "bnuctr-", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3042 { "bnuctr-", XLOCB(19,BOFM4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3043 { "bnuctr+", XLOCB(19,BOFP,CBSO,528,0), XLBOCBBB_MASK, NOPOWER4, { CR } },
3044 { "bnuctr+", XLOCB(19,BOFP4,CBSO,528,0), XLBOCBBB_MASK, POWER4, { CR } },
3045 { "bnuctrl", XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
3046 { "bnuctrl-",XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3047 { "bnuctrl-",XLOCB(19,BOFM4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3048 { "bnuctrl+",XLOCB(19,BOFP,CBSO,528,1), XLBOCBBB_MASK, NOPOWER4, { CR } },
3049 { "bnuctrl+",XLOCB(19,BOFP4,CBSO,528,1), XLBOCBBB_MASK, POWER4, { CR } },
3050 { "btctr", XLO(19,BOT,528,0), XLBOBB_MASK, PPCCOM, { BI } },
3051 { "btctr-", XLO(19,BOT,528,0), XLBOBB_MASK, NOPOWER4, { BI } },
3052 { "btctr-", XLO(19,BOTM4,528,0), XLBOBB_MASK, POWER4, { BI } },
3053 { "btctr+", XLO(19,BOTP,528,0), XLBOBB_MASK, NOPOWER4, { BI } },
3054 { "btctr+", XLO(19,BOTP4,528,0), XLBOBB_MASK, POWER4, { BI } },
3055 { "btctrl", XLO(19,BOT,528,1), XLBOBB_MASK, PPCCOM, { BI } },
3056 { "btctrl-", XLO(19,BOT,528,1), XLBOBB_MASK, NOPOWER4, { BI } },
3057 { "btctrl-", XLO(19,BOTM4,528,1), XLBOBB_MASK, POWER4, { BI } },
3058 { "btctrl+", XLO(19,BOTP,528,1), XLBOBB_MASK, NOPOWER4, { BI } },
3059 { "btctrl+", XLO(19,BOTP4,528,1), XLBOBB_MASK, POWER4, { BI } },
3060 { "bfctr", XLO(19,BOF,528,0), XLBOBB_MASK, PPCCOM, { BI } },
3061 { "bfctr-", XLO(19,BOF,528,0), XLBOBB_MASK, NOPOWER4, { BI } },
3062 { "bfctr-", XLO(19,BOFM4,528,0), XLBOBB_MASK, POWER4, { BI } },
3063 { "bfctr+", XLO(19,BOFP,528,0), XLBOBB_MASK, NOPOWER4, { BI } },
3064 { "bfctr+", XLO(19,BOFP4,528,0), XLBOBB_MASK, POWER4, { BI } },
3065 { "bfctrl", XLO(19,BOF,528,1), XLBOBB_MASK, PPCCOM, { BI } },
3066 { "bfctrl-", XLO(19,BOF,528,1), XLBOBB_MASK, NOPOWER4, { BI } },
3067 { "bfctrl-", XLO(19,BOFM4,528,1), XLBOBB_MASK, POWER4, { BI } },
3068 { "bfctrl+", XLO(19,BOFP,528,1), XLBOBB_MASK, NOPOWER4, { BI } },
3069 { "bfctrl+", XLO(19,BOFP4,528,1), XLBOBB_MASK, POWER4, { BI } },
3070 { "bcctr", XLLK(19,528,0), XLYBB_MASK, PPCCOM, { BO, BI } },
3071 { "bcctr-", XLYLK(19,528,0,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
3072 { "bcctr+", XLYLK(19,528,1,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
3073 { "bcctrl", XLLK(19,528,1), XLYBB_MASK, PPCCOM, { BO, BI } },
3074 { "bcctrl-", XLYLK(19,528,0,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
3075 { "bcctrl+", XLYLK(19,528,1,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
3076 { "bcc", XLLK(19,528,0), XLBB_MASK, PWRCOM, { BO, BI } },
3077 { "bccl", XLLK(19,528,1), XLBB_MASK, PWRCOM, { BO, BI } },
3078 { "bcctre", XLLK(19,529,0), XLYBB_MASK, BOOKE64, { BO, BI } },
3079 { "bcctrel", XLLK(19,529,1), XLYBB_MASK, BOOKE64, { BO, BI } },
3081 { "rlwimi", M(20,0), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
3082 { "rlimi", M(20,0), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
3084 { "rlwimi.", M(20,1), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
3085 { "rlimi.", M(20,1), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
3087 { "rotlwi", MME(21,31,0), MMBME_MASK, PPCCOM, { RA, RS, SH } },
3088 { "clrlwi", MME(21,31,0), MSHME_MASK, PPCCOM, { RA, RS, MB } },
3089 { "rlwinm", M(21,0), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
3090 { "rlinm", M(21,0), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
3091 { "rotlwi.", MME(21,31,1), MMBME_MASK, PPCCOM, { RA,RS,SH } },
3092 { "clrlwi.", MME(21,31,1), MSHME_MASK, PPCCOM, { RA, RS, MB } },
3093 { "rlwinm.", M(21,1), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
3094 { "rlinm.", M(21,1), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
3096 { "rlmi", M(22,0), M_MASK, M601, { RA,RS,RB,MBE,ME } },
3097 { "rlmi.", M(22,1), M_MASK, M601, { RA,RS,RB,MBE,ME } },
3099 { "be", B(22,0,0), B_MASK, BOOKE64, { LI } },
3100 { "bel", B(22,0,1), B_MASK, BOOKE64, { LI } },
3101 { "bea", B(22,1,0), B_MASK, BOOKE64, { LIA } },
3102 { "bela", B(22,1,1), B_MASK, BOOKE64, { LIA } },
3104 { "rotlw", MME(23,31,0), MMBME_MASK, PPCCOM, { RA, RS, RB } },
3105 { "rlwnm", M(23,0), M_MASK, PPCCOM, { RA,RS,RB,MBE,ME } },
3106 { "rlnm", M(23,0), M_MASK, PWRCOM, { RA,RS,RB,MBE,ME } },
3107 { "rotlw.", MME(23,31,1), MMBME_MASK, PPCCOM, { RA, RS, RB } },
3108 { "rlwnm.", M(23,1), M_MASK, PPCCOM, { RA,RS,RB,MBE,ME } },
3109 { "rlnm.", M(23,1), M_MASK, PWRCOM, { RA,RS,RB,MBE,ME } },
3111 { "nop", OP(24), 0xffffffff, PPCCOM, { 0 } },
3112 { "ori", OP(24), OP_MASK, PPCCOM, { RA, RS, UI } },
3113 { "oril", OP(24), OP_MASK, PWRCOM, { RA, RS, UI } },
3115 { "oris", OP(25), OP_MASK, PPCCOM, { RA, RS, UI } },
3116 { "oriu", OP(25), OP_MASK, PWRCOM, { RA, RS, UI } },
3118 { "xori", OP(26), OP_MASK, PPCCOM, { RA, RS, UI } },
3119 { "xoril", OP(26), OP_MASK, PWRCOM, { RA, RS, UI } },
3121 { "xoris", OP(27), OP_MASK, PPCCOM, { RA, RS, UI } },
3122 { "xoriu", OP(27), OP_MASK, PWRCOM, { RA, RS, UI } },
3124 { "andi.", OP(28), OP_MASK, PPCCOM, { RA, RS, UI } },
3125 { "andil.", OP(28), OP_MASK, PWRCOM, { RA, RS, UI } },
3127 { "andis.", OP(29), OP_MASK, PPCCOM, { RA, RS, UI } },
3128 { "andiu.", OP(29), OP_MASK, PWRCOM, { RA, RS, UI } },
3130 { "rotldi", MD(30,0,0), MDMB_MASK, PPC64, { RA, RS, SH6 } },
3131 { "clrldi", MD(30,0,0), MDSH_MASK, PPC64, { RA, RS, MB6 } },
3132 { "rldicl", MD(30,0,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3133 { "rotldi.", MD(30,0,1), MDMB_MASK, PPC64, { RA, RS, SH6 } },
3134 { "clrldi.", MD(30,0,1), MDSH_MASK, PPC64, { RA, RS, MB6 } },
3135 { "rldicl.", MD(30,0,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3137 { "rldicr", MD(30,1,0), MD_MASK, PPC64, { RA, RS, SH6, ME6 } },
3138 { "rldicr.", MD(30,1,1), MD_MASK, PPC64, { RA, RS, SH6, ME6 } },
3140 { "rldic", MD(30,2,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3141 { "rldic.", MD(30,2,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3143 { "rldimi", MD(30,3,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3144 { "rldimi.", MD(30,3,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
3146 { "rotld", MDS(30,8,0), MDSMB_MASK, PPC64, { RA, RS, RB } },
3147 { "rldcl", MDS(30,8,0), MDS_MASK, PPC64, { RA, RS, RB, MB6 } },
3148 { "rotld.", MDS(30,8,1), MDSMB_MASK, PPC64, { RA, RS, RB } },
3149 { "rldcl.", MDS(30,8,1), MDS_MASK, PPC64, { RA, RS, RB, MB6 } },
3151 { "rldcr", MDS(30,9,0), MDS_MASK, PPC64, { RA, RS, RB, ME6 } },
3152 { "rldcr.", MDS(30,9,1), MDS_MASK, PPC64, { RA, RS, RB, ME6 } },
3154 { "cmpw", XOPL(31,0,0), XCMPL_MASK, PPCCOM, { OBF, RA, RB } },
3155 { "cmpd", XOPL(31,0,1), XCMPL_MASK, PPC64, { OBF, RA, RB } },
3156 { "cmp", X(31,0), XCMP_MASK, PPC, { BF, L, RA, RB } },
3157 { "cmp", X(31,0), XCMPL_MASK, PWRCOM, { BF, RA, RB } },
3159 { "twlgt", XTO(31,4,TOLGT), XTO_MASK, PPCCOM, { RA, RB } },
3160 { "tlgt", XTO(31,4,TOLGT), XTO_MASK, PWRCOM, { RA, RB } },
3161 { "twllt", XTO(31,4,TOLLT), XTO_MASK, PPCCOM, { RA, RB } },
3162 { "tllt", XTO(31,4,TOLLT), XTO_MASK, PWRCOM, { RA, RB } },
3163 { "tweq", XTO(31,4,TOEQ), XTO_MASK, PPCCOM, { RA, RB } },
3164 { "teq", XTO(31,4,TOEQ), XTO_MASK, PWRCOM, { RA, RB } },
3165 { "twlge", XTO(31,4,TOLGE), XTO_MASK, PPCCOM, { RA, RB } },
3166 { "tlge", XTO(31,4,TOLGE), XTO_MASK, PWRCOM, { RA, RB } },
3167 { "twlnl", XTO(31,4,TOLNL), XTO_MASK, PPCCOM, { RA, RB } },
3168 { "tlnl", XTO(31,4,TOLNL), XTO_MASK, PWRCOM, { RA, RB } },
3169 { "twlle", XTO(31,4,TOLLE), XTO_MASK, PPCCOM, { RA, RB } },
3170 { "tlle", XTO(31,4,TOLLE), XTO_MASK, PWRCOM, { RA, RB } },
3171 { "twlng", XTO(31,4,TOLNG), XTO_MASK, PPCCOM, { RA, RB } },
3172 { "tlng", XTO(31,4,TOLNG), XTO_MASK, PWRCOM, { RA, RB } },
3173 { "twgt", XTO(31,4,TOGT), XTO_MASK, PPCCOM, { RA, RB } },
3174 { "tgt", XTO(31,4,TOGT), XTO_MASK, PWRCOM, { RA, RB } },
3175 { "twge", XTO(31,4,TOGE), XTO_MASK, PPCCOM, { RA, RB } },
3176 { "tge", XTO(31,4,TOGE), XTO_MASK, PWRCOM, { RA, RB } },
3177 { "twnl", XTO(31,4,TONL), XTO_MASK, PPCCOM, { RA, RB } },
3178 { "tnl", XTO(31,4,TONL), XTO_MASK, PWRCOM, { RA, RB } },
3179 { "twlt", XTO(31,4,TOLT), XTO_MASK, PPCCOM, { RA, RB } },
3180 { "tlt", XTO(31,4,TOLT), XTO_MASK, PWRCOM, { RA, RB } },
3181 { "twle", XTO(31,4,TOLE), XTO_MASK, PPCCOM, { RA, RB } },
3182 { "tle", XTO(31,4,TOLE), XTO_MASK, PWRCOM, { RA, RB } },
3183 { "twng", XTO(31,4,TONG), XTO_MASK, PPCCOM, { RA, RB } },
3184 { "tng", XTO(31,4,TONG), XTO_MASK, PWRCOM, { RA, RB } },
3185 { "twne", XTO(31,4,TONE), XTO_MASK, PPCCOM, { RA, RB } },
3186 { "tne", XTO(31,4,TONE), XTO_MASK, PWRCOM, { RA, RB } },
3187 { "trap", XTO(31,4,TOU), 0xffffffff, PPCCOM, { 0 } },
3188 { "tw", X(31,4), X_MASK, PPCCOM, { TO, RA, RB } },
3189 { "t", X(31,4), X_MASK, PWRCOM, { TO, RA, RB } },
3191 { "subfc", XO(31,8,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3192 { "sf", XO(31,8,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3193 { "subc", XO(31,8,0,0), XO_MASK, PPC, { RT, RB, RA } },
3194 { "subfc.", XO(31,8,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3195 { "sf.", XO(31,8,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3196 { "subc.", XO(31,8,0,1), XO_MASK, PPCCOM, { RT, RB, RA } },
3197 { "subfco", XO(31,8,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3198 { "sfo", XO(31,8,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3199 { "subco", XO(31,8,1,0), XO_MASK, PPC, { RT, RB, RA } },
3200 { "subfco.", XO(31,8,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3201 { "sfo.", XO(31,8,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3202 { "subco.", XO(31,8,1,1), XO_MASK, PPC, { RT, RB, RA } },
3204 { "mulhdu", XO(31,9,0,0), XO_MASK, PPC64, { RT, RA, RB } },
3205 { "mulhdu.", XO(31,9,0,1), XO_MASK, PPC64, { RT, RA, RB } },
3207 { "addc", XO(31,10,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3208 { "a", XO(31,10,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3209 { "addc.", XO(31,10,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3210 { "a.", XO(31,10,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3211 { "addco", XO(31,10,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3212 { "ao", XO(31,10,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3213 { "addco.", XO(31,10,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3214 { "ao.", XO(31,10,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3216 { "mulhwu", XO(31,11,0,0), XO_MASK, PPC, { RT, RA, RB } },
3217 { "mulhwu.", XO(31,11,0,1), XO_MASK, PPC, { RT, RA, RB } },
3219 { "isellt", X(31,15), X_MASK, PPCISEL, { RT, RA, RB } },
3220 { "iselgt", X(31,47), X_MASK, PPCISEL, { RT, RA, RB } },
3221 { "iseleq", X(31,79), X_MASK, PPCISEL, { RT, RA, RB } },
3222 { "isel", XISEL(31,15), XISEL_MASK, PPCISEL, { RT, RA, RB, CRB } },
3224 { "mfcr", X(31,19), XRARB_MASK, NOPOWER4, { RT } },
3225 { "mfcr", X(31,19), XFXFXM_MASK, POWER4, { RT, FXM4 } },
3227 { "lwarx", X(31,20), X_MASK, PPC, { RT, RA0, RB } },
3229 { "ldx", X(31,21), X_MASK, PPC64, { RT, RA0, RB } },
3231 { "icbt", X(31,22), X_MASK, BOOKE, { CT, RA, RB } },
3232 { "icbt", X(31,262), XRT_MASK, PPC403, { RA, RB } },
3234 { "lwzx", X(31,23), X_MASK, PPCCOM, { RT, RA0, RB } },
3235 { "lx", X(31,23), X_MASK, PWRCOM, { RT, RA, RB } },
3237 { "slw", XRC(31,24,0), X_MASK, PPCCOM, { RA, RS, RB } },
3238 { "sl", XRC(31,24,0), X_MASK, PWRCOM, { RA, RS, RB } },
3239 { "slw.", XRC(31,24,1), X_MASK, PPCCOM, { RA, RS, RB } },
3240 { "sl.", XRC(31,24,1), X_MASK, PWRCOM, { RA, RS, RB } },
3242 { "cntlzw", XRC(31,26,0), XRB_MASK, PPCCOM, { RA, RS } },
3243 { "cntlz", XRC(31,26,0), XRB_MASK, PWRCOM, { RA, RS } },
3244 { "cntlzw.", XRC(31,26,1), XRB_MASK, PPCCOM, { RA, RS } },
3245 { "cntlz.", XRC(31,26,1), XRB_MASK, PWRCOM, { RA, RS } },
3247 { "sld", XRC(31,27,0), X_MASK, PPC64, { RA, RS, RB } },
3248 { "sld.", XRC(31,27,1), X_MASK, PPC64, { RA, RS, RB } },
3250 { "and", XRC(31,28,0), X_MASK, COM, { RA, RS, RB } },
3251 { "and.", XRC(31,28,1), X_MASK, COM, { RA, RS, RB } },
3253 { "maskg", XRC(31,29,0), X_MASK, M601, { RA, RS, RB } },
3254 { "maskg.", XRC(31,29,1), X_MASK, M601, { RA, RS, RB } },
3256 { "icbte", X(31,30), X_MASK, BOOKE64, { CT, RA, RB } },
3258 { "lwzxe", X(31,31), X_MASK, BOOKE64, { RT, RA0, RB } },
3260 { "cmplw", XOPL(31,32,0), XCMPL_MASK, PPCCOM, { OBF, RA, RB } },
3261 { "cmpld", XOPL(31,32,1), XCMPL_MASK, PPC64, { OBF, RA, RB } },
3262 { "cmpl", X(31,32), XCMP_MASK, PPC, { BF, L, RA, RB } },
3263 { "cmpl", X(31,32), XCMPL_MASK, PWRCOM, { BF, RA, RB } },
3265 { "subf", XO(31,40,0,0), XO_MASK, PPC, { RT, RA, RB } },
3266 { "sub", XO(31,40,0,0), XO_MASK, PPC, { RT, RB, RA } },
3267 { "subf.", XO(31,40,0,1), XO_MASK, PPC, { RT, RA, RB } },
3268 { "sub.", XO(31,40,0,1), XO_MASK, PPC, { RT, RB, RA } },
3269 { "subfo", XO(31,40,1,0), XO_MASK, PPC, { RT, RA, RB } },
3270 { "subo", XO(31,40,1,0), XO_MASK, PPC, { RT, RB, RA } },
3271 { "subfo.", XO(31,40,1,1), XO_MASK, PPC, { RT, RA, RB } },
3272 { "subo.", XO(31,40,1,1), XO_MASK, PPC, { RT, RB, RA } },
3274 { "ldux", X(31,53), X_MASK, PPC64, { RT, RAL, RB } },
3276 { "dcbst", X(31,54), XRT_MASK, PPC, { RA, RB } },
3278 { "lwzux", X(31,55), X_MASK, PPCCOM, { RT, RAL, RB } },
3279 { "lux", X(31,55), X_MASK, PWRCOM, { RT, RA, RB } },
3281 { "dcbste", X(31,62), XRT_MASK, BOOKE64, { RA, RB } },
3283 { "lwzuxe", X(31,63), X_MASK, BOOKE64, { RT, RAL, RB } },
3285 { "cntlzd", XRC(31,58,0), XRB_MASK, PPC64, { RA, RS } },
3286 { "cntlzd.", XRC(31,58,1), XRB_MASK, PPC64, { RA, RS } },
3288 { "andc", XRC(31,60,0), X_MASK, COM, { RA, RS, RB } },
3289 { "andc.", XRC(31,60,1), X_MASK, COM, { RA, RS, RB } },
3291 { "tdlgt", XTO(31,68,TOLGT), XTO_MASK, PPC64, { RA, RB } },
3292 { "tdllt", XTO(31,68,TOLLT), XTO_MASK, PPC64, { RA, RB } },
3293 { "tdeq", XTO(31,68,TOEQ), XTO_MASK, PPC64, { RA, RB } },
3294 { "tdlge", XTO(31,68,TOLGE), XTO_MASK, PPC64, { RA, RB } },
3295 { "tdlnl", XTO(31,68,TOLNL), XTO_MASK, PPC64, { RA, RB } },
3296 { "tdlle", XTO(31,68,TOLLE), XTO_MASK, PPC64, { RA, RB } },
3297 { "tdlng", XTO(31,68,TOLNG), XTO_MASK, PPC64, { RA, RB } },
3298 { "tdgt", XTO(31,68,TOGT), XTO_MASK, PPC64, { RA, RB } },
3299 { "tdge", XTO(31,68,TOGE), XTO_MASK, PPC64, { RA, RB } },
3300 { "tdnl", XTO(31,68,TONL), XTO_MASK, PPC64, { RA, RB } },
3301 { "tdlt", XTO(31,68,TOLT), XTO_MASK, PPC64, { RA, RB } },
3302 { "tdle", XTO(31,68,TOLE), XTO_MASK, PPC64, { RA, RB } },
3303 { "tdng", XTO(31,68,TONG), XTO_MASK, PPC64, { RA, RB } },
3304 { "tdne", XTO(31,68,TONE), XTO_MASK, PPC64, { RA, RB } },
3305 { "td", X(31,68), X_MASK, PPC64, { TO, RA, RB } },
3307 { "mulhd", XO(31,73,0,0), XO_MASK, PPC64, { RT, RA, RB } },
3308 { "mulhd.", XO(31,73,0,1), XO_MASK, PPC64, { RT, RA, RB } },
3310 { "mulhw", XO(31,75,0,0), XO_MASK, PPC, { RT, RA, RB } },
3311 { "mulhw.", XO(31,75,0,1), XO_MASK, PPC, { RT, RA, RB } },
3313 { "dlmzb", XRC(31,78,0), X_MASK, PPC403|PPC440, { RA, RS, RB } },
3314 { "dlmzb.", XRC(31,78,1), X_MASK, PPC403|PPC440, { RA, RS, RB } },
3316 { "mtsrd", X(31,82), XRB_MASK|(1<<20), PPC64, { SR, RS } },
3318 { "mfmsr", X(31,83), XRARB_MASK, COM, { RT } },
3320 { "ldarx", X(31,84), X_MASK, PPC64, { RT, RA0, RB } },
3322 { "dcbf", X(31,86), XRT_MASK, PPC, { RA, RB } },
3324 { "lbzx", X(31,87), X_MASK, COM, { RT, RA0, RB } },
3326 { "dcbfe", X(31,94), XRT_MASK, BOOKE64, { RA, RB } },
3328 { "lbzxe", X(31,95), X_MASK, BOOKE64, { RT, RA0, RB } },
3330 { "neg", XO(31,104,0,0), XORB_MASK, COM, { RT, RA } },
3331 { "neg.", XO(31,104,0,1), XORB_MASK, COM, { RT, RA } },
3332 { "nego", XO(31,104,1,0), XORB_MASK, COM, { RT, RA } },
3333 { "nego.", XO(31,104,1,1), XORB_MASK, COM, { RT, RA } },
3335 { "mul", XO(31,107,0,0), XO_MASK, M601, { RT, RA, RB } },
3336 { "mul.", XO(31,107,0,1), XO_MASK, M601, { RT, RA, RB } },
3337 { "mulo", XO(31,107,1,0), XO_MASK, M601, { RT, RA, RB } },
3338 { "mulo.", XO(31,107,1,1), XO_MASK, M601, { RT, RA, RB } },
3340 { "mtsrdin", X(31,114), XRA_MASK, PPC64, { RS, RB } },
3342 { "clf", X(31,118), XTO_MASK, POWER, { RA, RB } },
3344 { "lbzux", X(31,119), X_MASK, COM, { RT, RAL, RB } },
3346 { "not", XRC(31,124,0), X_MASK, COM, { RA, RS, RBS } },
3347 { "nor", XRC(31,124,0), X_MASK, COM, { RA, RS, RB } },
3348 { "not.", XRC(31,124,1), X_MASK, COM, { RA, RS, RBS } },
3349 { "nor.", XRC(31,124,1), X_MASK, COM, { RA, RS, RB } },
3351 { "lwarxe", X(31,126), X_MASK, BOOKE64, { RT, RA0, RB } },
3353 { "lbzuxe", X(31,127), X_MASK, BOOKE64, { RT, RAL, RB } },
3355 { "wrtee", X(31,131), XRARB_MASK, PPC403 | BOOKE, { RS } },
3357 { "dcbtstls",X(31,134), X_MASK, PPCCHLK, { CT, RA, RB }},
3359 { "subfe", XO(31,136,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3360 { "sfe", XO(31,136,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3361 { "subfe.", XO(31,136,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3362 { "sfe.", XO(31,136,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3363 { "subfeo", XO(31,136,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3364 { "sfeo", XO(31,136,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3365 { "subfeo.", XO(31,136,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3366 { "sfeo.", XO(31,136,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3368 { "adde", XO(31,138,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3369 { "ae", XO(31,138,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3370 { "adde.", XO(31,138,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3371 { "ae.", XO(31,138,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3372 { "addeo", XO(31,138,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3373 { "aeo", XO(31,138,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3374 { "addeo.", XO(31,138,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3375 { "aeo.", XO(31,138,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3377 { "dcbtstlse",X(31,142),X_MASK, PPCCHLK64, { CT, RA, RB }},
3379 { "mtcr", XFXM(31,144,0xff), XRARB_MASK, COM, { RS }},
3380 { "mtcrf", X(31,144), XFXFXM_MASK, COM, { FXM, RS } },
3382 { "mtmsr", X(31,146), XRARB_MASK, COM, { RS } },
3384 { "stdx", X(31,149), X_MASK, PPC64, { RS, RA0, RB } },
3386 { "stwcx.", XRC(31,150,1), X_MASK, PPC, { RS, RA0, RB } },
3388 { "stwx", X(31,151), X_MASK, PPCCOM, { RS, RA0, RB } },
3389 { "stx", X(31,151), X_MASK, PWRCOM, { RS, RA, RB } },
3391 { "stwcxe.", XRC(31,158,1), X_MASK, BOOKE64, { RS, RA0, RB } },
3393 { "stwxe", X(31,159), X_MASK, BOOKE64, { RS, RA0, RB } },
3395 { "slq", XRC(31,152,0), X_MASK, M601, { RA, RS, RB } },
3396 { "slq.", XRC(31,152,1), X_MASK, M601, { RA, RS, RB } },
3398 { "sle", XRC(31,153,0), X_MASK, M601, { RA, RS, RB } },
3399 { "sle.", XRC(31,153,1), X_MASK, M601, { RA, RS, RB } },
3401 { "wrteei", X(31,163), XE_MASK, PPC403 | BOOKE, { E } },
3403 { "dcbtls", X(31,166), X_MASK, PPCCHLK, { CT, RA, RB }},
3404 { "dcbtlse", X(31,174), X_MASK, PPCCHLK64, { CT, RA, RB }},
3406 { "mtmsrd", X(31,178), XRLARB_MASK, PPC64, { RS, MTMSRD_L } },
3408 { "stdux", X(31,181), X_MASK, PPC64, { RS, RAS, RB } },
3410 { "stwux", X(31,183), X_MASK, PPCCOM, { RS, RAS, RB } },
3411 { "stux", X(31,183), X_MASK, PWRCOM, { RS, RA0, RB } },
3413 { "sliq", XRC(31,184,0), X_MASK, M601, { RA, RS, SH } },
3414 { "sliq.", XRC(31,184,1), X_MASK, M601, { RA, RS, SH } },
3416 { "stwuxe", X(31,191), X_MASK, BOOKE64, { RS, RAS, RB } },
3418 { "subfze", XO(31,200,0,0), XORB_MASK, PPCCOM, { RT, RA } },
3419 { "sfze", XO(31,200,0,0), XORB_MASK, PWRCOM, { RT, RA } },
3420 { "subfze.", XO(31,200,0,1), XORB_MASK, PPCCOM, { RT, RA } },
3421 { "sfze.", XO(31,200,0,1), XORB_MASK, PWRCOM, { RT, RA } },
3422 { "subfzeo", XO(31,200,1,0), XORB_MASK, PPCCOM, { RT, RA } },
3423 { "sfzeo", XO(31,200,1,0), XORB_MASK, PWRCOM, { RT, RA } },
3424 { "subfzeo.",XO(31,200,1,1), XORB_MASK, PPCCOM, { RT, RA } },
3425 { "sfzeo.", XO(31,200,1,1), XORB_MASK, PWRCOM, { RT, RA } },
3427 { "addze", XO(31,202,0,0), XORB_MASK, PPCCOM, { RT, RA } },
3428 { "aze", XO(31,202,0,0), XORB_MASK, PWRCOM, { RT, RA } },
3429 { "addze.", XO(31,202,0,1), XORB_MASK, PPCCOM, { RT, RA } },
3430 { "aze.", XO(31,202,0,1), XORB_MASK, PWRCOM, { RT, RA } },
3431 { "addzeo", XO(31,202,1,0), XORB_MASK, PPCCOM, { RT, RA } },
3432 { "azeo", XO(31,202,1,0), XORB_MASK, PWRCOM, { RT, RA } },
3433 { "addzeo.", XO(31,202,1,1), XORB_MASK, PPCCOM, { RT, RA } },
3434 { "azeo.", XO(31,202,1,1), XORB_MASK, PWRCOM, { RT, RA } },
3436 { "mtsr", X(31,210), XRB_MASK|(1<<20), COM32, { SR, RS } },
3438 { "stdcx.", XRC(31,214,1), X_MASK, PPC64, { RS, RA0, RB } },
3440 { "stbx", X(31,215), X_MASK, COM, { RS, RA0, RB } },
3442 { "sllq", XRC(31,216,0), X_MASK, M601, { RA, RS, RB } },
3443 { "sllq.", XRC(31,216,1), X_MASK, M601, { RA, RS, RB } },
3445 { "sleq", XRC(31,217,0), X_MASK, M601, { RA, RS, RB } },
3446 { "sleq.", XRC(31,217,1), X_MASK, M601, { RA, RS, RB } },
3448 { "stbxe", X(31,223), X_MASK, BOOKE64, { RS, RA0, RB } },
3450 { "icblc", X(31,230), X_MASK, PPCCHLK, { CT, RA, RB }},
3452 { "subfme", XO(31,232,0,0), XORB_MASK, PPCCOM, { RT, RA } },
3453 { "sfme", XO(31,232,0,0), XORB_MASK, PWRCOM, { RT, RA } },
3454 { "subfme.", XO(31,232,0,1), XORB_MASK, PPCCOM, { RT, RA } },
3455 { "sfme.", XO(31,232,0,1), XORB_MASK, PWRCOM, { RT, RA } },
3456 { "subfmeo", XO(31,232,1,0), XORB_MASK, PPCCOM, { RT, RA } },
3457 { "sfmeo", XO(31,232,1,0), XORB_MASK, PWRCOM, { RT, RA } },
3458 { "subfmeo.",XO(31,232,1,1), XORB_MASK, PPCCOM, { RT, RA } },
3459 { "sfmeo.", XO(31,232,1,1), XORB_MASK, PWRCOM, { RT, RA } },
3461 { "mulld", XO(31,233,0,0), XO_MASK, PPC64, { RT, RA, RB } },
3462 { "mulld.", XO(31,233,0,1), XO_MASK, PPC64, { RT, RA, RB } },
3463 { "mulldo", XO(31,233,1,0), XO_MASK, PPC64, { RT, RA, RB } },
3464 { "mulldo.", XO(31,233,1,1), XO_MASK, PPC64, { RT, RA, RB } },
3466 { "addme", XO(31,234,0,0), XORB_MASK, PPCCOM, { RT, RA } },
3467 { "ame", XO(31,234,0,0), XORB_MASK, PWRCOM, { RT, RA } },
3468 { "addme.", XO(31,234,0,1), XORB_MASK, PPCCOM, { RT, RA } },
3469 { "ame.", XO(31,234,0,1), XORB_MASK, PWRCOM, { RT, RA } },
3470 { "addmeo", XO(31,234,1,0), XORB_MASK, PPCCOM, { RT, RA } },
3471 { "ameo", XO(31,234,1,0), XORB_MASK, PWRCOM, { RT, RA } },
3472 { "addmeo.", XO(31,234,1,1), XORB_MASK, PPCCOM, { RT, RA } },
3473 { "ameo.", XO(31,234,1,1), XORB_MASK, PWRCOM, { RT, RA } },
3475 { "mullw", XO(31,235,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3476 { "muls", XO(31,235,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3477 { "mullw.", XO(31,235,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3478 { "muls.", XO(31,235,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3479 { "mullwo", XO(31,235,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3480 { "mulso", XO(31,235,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3481 { "mullwo.", XO(31,235,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3482 { "mulso.", XO(31,235,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3484 { "icblce", X(31,238), X_MASK, PPCCHLK64, { CT, RA, RB }},
3485 { "mtsrin", X(31,242), XRA_MASK, PPC32, { RS, RB } },
3486 { "mtsri", X(31,242), XRA_MASK, POWER32, { RS, RB } },
3488 { "dcbtst", X(31,246), X_MASK, PPC, { CT, RA, RB } },
3490 { "stbux", X(31,247), X_MASK, COM, { RS, RAS, RB } },
3492 { "slliq", XRC(31,248,0), X_MASK, M601, { RA, RS, SH } },
3493 { "slliq.", XRC(31,248,1), X_MASK, M601, { RA, RS, SH } },
3495 { "dcbtste", X(31,253), X_MASK, BOOKE64, { CT, RA, RB } },
3497 { "stbuxe", X(31,255), X_MASK, BOOKE64, { RS, RAS, RB } },
3499 { "mfdcrx", X(31,259), X_MASK, BOOKE, { RS, RA } },
3501 { "doz", XO(31,264,0,0), XO_MASK, M601, { RT, RA, RB } },
3502 { "doz.", XO(31,264,0,1), XO_MASK, M601, { RT, RA, RB } },
3503 { "dozo", XO(31,264,1,0), XO_MASK, M601, { RT, RA, RB } },
3504 { "dozo.", XO(31,264,1,1), XO_MASK, M601, { RT, RA, RB } },
3506 { "add", XO(31,266,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3507 { "cax", XO(31,266,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3508 { "add.", XO(31,266,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3509 { "cax.", XO(31,266,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3510 { "addo", XO(31,266,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
3511 { "caxo", XO(31,266,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
3512 { "addo.", XO(31,266,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
3513 { "caxo.", XO(31,266,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
3515 { "tlbiel", X(31,274), XRTRA_MASK, POWER4, { RB } },
3517 { "mfapidi", X(31,275), X_MASK, BOOKE, { RT, RA } },
3519 { "lscbx", XRC(31,277,0), X_MASK, M601, { RT, RA, RB } },
3520 { "lscbx.", XRC(31,277,1), X_MASK, M601, { RT, RA, RB } },
3522 { "dcbt", X(31,278), X_MASK, PPC, { CT, RA, RB } },
3524 { "lhzx", X(31,279), X_MASK, COM, { RT, RA0, RB } },
3526 { "eqv", XRC(31,284,0), X_MASK, COM, { RA, RS, RB } },
3527 { "eqv.", XRC(31,284,1), X_MASK, COM, { RA, RS, RB } },
3529 { "dcbte", X(31,286), X_MASK, BOOKE64, { CT, RA, RB } },
3531 { "lhzxe", X(31,287), X_MASK, BOOKE64, { RT, RA0, RB } },
3533 { "tlbie", X(31,306), XRTLRA_MASK, PPC, { RB, L } },
3534 { "tlbi", X(31,306), XRT_MASK, POWER, { RA0, RB } },
3536 { "eciwx", X(31,310), X_MASK, PPC, { RT, RA, RB } },
3538 { "lhzux", X(31,311), X_MASK, COM, { RT, RAL, RB } },
3540 { "xor", XRC(31,316,0), X_MASK, COM, { RA, RS, RB } },
3541 { "xor.", XRC(31,316,1), X_MASK, COM, { RA, RS, RB } },
3543 { "lhzuxe", X(31,319), X_MASK, BOOKE64, { RT, RAL, RB } },
3545 { "mfexisr", XSPR(31,323,64), XSPR_MASK, PPC403, { RT } },
3546 { "mfexier", XSPR(31,323,66), XSPR_MASK, PPC403, { RT } },
3547 { "mfbr0", XSPR(31,323,128), XSPR_MASK, PPC403, { RT } },
3548 { "mfbr1", XSPR(31,323,129), XSPR_MASK, PPC403, { RT } },
3549 { "mfbr2", XSPR(31,323,130), XSPR_MASK, PPC403, { RT } },
3550 { "mfbr3", XSPR(31,323,131), XSPR_MASK, PPC403, { RT } },
3551 { "mfbr4", XSPR(31,323,132), XSPR_MASK, PPC403, { RT } },
3552 { "mfbr5", XSPR(31,323,133), XSPR_MASK, PPC403, { RT } },
3553 { "mfbr6", XSPR(31,323,134), XSPR_MASK, PPC403, { RT } },
3554 { "mfbr7", XSPR(31,323,135), XSPR_MASK, PPC403, { RT } },
3555 { "mfbear", XSPR(31,323,144), XSPR_MASK, PPC403, { RT } },
3556 { "mfbesr", XSPR(31,323,145), XSPR_MASK, PPC403, { RT } },
3557 { "mfiocr", XSPR(31,323,160), XSPR_MASK, PPC403, { RT } },
3558 { "mfdmacr0", XSPR(31,323,192), XSPR_MASK, PPC403, { RT } },
3559 { "mfdmact0", XSPR(31,323,193), XSPR_MASK, PPC403, { RT } },
3560 { "mfdmada0", XSPR(31,323,194), XSPR_MASK, PPC403, { RT } },
3561 { "mfdmasa0", XSPR(31,323,195), XSPR_MASK, PPC403, { RT } },
3562 { "mfdmacc0", XSPR(31,323,196), XSPR_MASK, PPC403, { RT } },
3563 { "mfdmacr1", XSPR(31,323,200), XSPR_MASK, PPC403, { RT } },
3564 { "mfdmact1", XSPR(31,323,201), XSPR_MASK, PPC403, { RT } },
3565 { "mfdmada1", XSPR(31,323,202), XSPR_MASK, PPC403, { RT } },
3566 { "mfdmasa1", XSPR(31,323,203), XSPR_MASK, PPC403, { RT } },
3567 { "mfdmacc1", XSPR(31,323,204), XSPR_MASK, PPC403, { RT } },
3568 { "mfdmacr2", XSPR(31,323,208), XSPR_MASK, PPC403, { RT } },
3569 { "mfdmact2", XSPR(31,323,209), XSPR_MASK, PPC403, { RT } },
3570 { "mfdmada2", XSPR(31,323,210), XSPR_MASK, PPC403, { RT } },
3571 { "mfdmasa2", XSPR(31,323,211), XSPR_MASK, PPC403, { RT } },
3572 { "mfdmacc2", XSPR(31,323,212), XSPR_MASK, PPC403, { RT } },
3573 { "mfdmacr3", XSPR(31,323,216), XSPR_MASK, PPC403, { RT } },
3574 { "mfdmact3", XSPR(31,323,217), XSPR_MASK, PPC403, { RT } },
3575 { "mfdmada3", XSPR(31,323,218), XSPR_MASK, PPC403, { RT } },
3576 { "mfdmasa3", XSPR(31,323,219), XSPR_MASK, PPC403, { RT } },
3577 { "mfdmacc3", XSPR(31,323,220), XSPR_MASK, PPC403, { RT } },
3578 { "mfdmasr", XSPR(31,323,224), XSPR_MASK, PPC403, { RT } },
3579 { "mfdcr", X(31,323), X_MASK, PPC403 | BOOKE, { RT, SPR } },
3581 { "div", XO(31,331,0,0), XO_MASK, M601, { RT, RA, RB } },
3582 { "div.", XO(31,331,0,1), XO_MASK, M601, { RT, RA, RB } },
3583 { "divo", XO(31,331,1,0), XO_MASK, M601, { RT, RA, RB } },
3584 { "divo.", XO(31,331,1,1), XO_MASK, M601, { RT, RA, RB } },
3586 { "mfpmr", X(31,334), X_MASK, PPCPMR, { RT, PMR }},
3588 { "mfmq", XSPR(31,339,0), XSPR_MASK, M601, { RT } },
3589 { "mfxer", XSPR(31,339,1), XSPR_MASK, COM, { RT } },
3590 { "mfrtcu", XSPR(31,339,4), XSPR_MASK, COM, { RT } },
3591 { "mfrtcl", XSPR(31,339,5), XSPR_MASK, COM, { RT } },
3592 { "mfdec", XSPR(31,339,6), XSPR_MASK, MFDEC1, { RT } },
3593 { "mfdec", XSPR(31,339,22), XSPR_MASK, MFDEC2, { RT } },
3594 { "mflr", XSPR(31,339,8), XSPR_MASK, COM, { RT } },
3595 { "mfctr", XSPR(31,339,9), XSPR_MASK, COM, { RT } },
3596 { "mftid", XSPR(31,339,17), XSPR_MASK, POWER, { RT } },
3597 { "mfdsisr", XSPR(31,339,18), XSPR_MASK, COM, { RT } },
3598 { "mfdar", XSPR(31,339,19), XSPR_MASK, COM, { RT } },
3599 { "mfsdr0", XSPR(31,339,24), XSPR_MASK, POWER, { RT } },
3600 { "mfsdr1", XSPR(31,339,25), XSPR_MASK, COM, { RT } },
3601 { "mfsrr0", XSPR(31,339,26), XSPR_MASK, COM, { RT } },
3602 { "mfsrr1", XSPR(31,339,27), XSPR_MASK, COM, { RT } },
3603 { "mfpid", XSPR(31,339,48), XSPR_MASK, BOOKE, { RT } },
3604 { "mfpid", XSPR(31,339,945), XSPR_MASK, PPC403, { RT } },
3605 { "mfcsrr0", XSPR(31,339,58), XSPR_MASK, BOOKE, { RT } },
3606 { "mfcsrr1", XSPR(31,339,59), XSPR_MASK, BOOKE, { RT } },
3607 { "mfdear", XSPR(31,339,61), XSPR_MASK, BOOKE, { RT } },
3608 { "mfdear", XSPR(31,339,981), XSPR_MASK, PPC403, { RT } },
3609 { "mfesr", XSPR(31,339,62), XSPR_MASK, BOOKE, { RT } },
3610 { "mfesr", XSPR(31,339,980), XSPR_MASK, PPC403, { RT } },
3611 { "mfivpr", XSPR(31,339,63), XSPR_MASK, BOOKE, { RT } },
3612 { "mfcmpa", XSPR(31,339,144), XSPR_MASK, PPC860, { RT } },
3613 { "mfcmpb", XSPR(31,339,145), XSPR_MASK, PPC860, { RT } },
3614 { "mfcmpc", XSPR(31,339,146), XSPR_MASK, PPC860, { RT } },
3615 { "mfcmpd", XSPR(31,339,147), XSPR_MASK, PPC860, { RT } },
3616 { "mficr", XSPR(31,339,148), XSPR_MASK, PPC860, { RT } },
3617 { "mfder", XSPR(31,339,149), XSPR_MASK, PPC860, { RT } },
3618 { "mfcounta", XSPR(31,339,150), XSPR_MASK, PPC860, { RT } },
3619 { "mfcountb", XSPR(31,339,151), XSPR_MASK, PPC860, { RT } },
3620 { "mfcmpe", XSPR(31,339,152), XSPR_MASK, PPC860, { RT } },
3621 { "mfcmpf", XSPR(31,339,153), XSPR_MASK, PPC860, { RT } },
3622 { "mfcmpg", XSPR(31,339,154), XSPR_MASK, PPC860, { RT } },
3623 { "mfcmph", XSPR(31,339,155), XSPR_MASK, PPC860, { RT } },
3624 { "mflctrl1", XSPR(31,339,156), XSPR_MASK, PPC860, { RT } },
3625 { "mflctrl2", XSPR(31,339,157), XSPR_MASK, PPC860, { RT } },
3626 { "mfictrl", XSPR(31,339,158), XSPR_MASK, PPC860, { RT } },
3627 { "mfbar", XSPR(31,339,159), XSPR_MASK, PPC860, { RT } },
3628 { "mfvrsave", XSPR(31,339,256), XSPR_MASK, PPCVEC, { RT } },
3629 { "mfusprg0", XSPR(31,339,256), XSPR_MASK, BOOKE, { RT } },
3630 { "mfsprg4", XSPR(31,339,260), XSPR_MASK, PPC405, { RT } },
3631 { "mfsprg4", XSPR(31,339,260), XSPR_MASK, BOOKE, { RT } },
3632 { "mfsprg5", XSPR(31,339,261), XSPR_MASK, PPC405, { RT } },
3633 { "mfsprg5", XSPR(31,339,261), XSPR_MASK, BOOKE, { RT } },
3634 { "mfsprg6", XSPR(31,339,262), XSPR_MASK, PPC405, { RT } },
3635 { "mfsprg6", XSPR(31,339,262), XSPR_MASK, BOOKE, { RT } },
3636 { "mfsprg7", XSPR(31,339,263), XSPR_MASK, PPC405, { RT } },
3637 { "mfsprg7", XSPR(31,339,263), XSPR_MASK, BOOKE, { RT } },
3638 { "mftb", X(31,371), X_MASK, CLASSIC, { RT, TBR } },
3639 { "mftb", XSPR(31,339,268), XSPR_MASK, BOOKE, { RT } },
3640 { "mftbl", XSPR(31,371,268), XSPR_MASK, CLASSIC, { RT } },
3641 { "mftbl", XSPR(31,339,268), XSPR_MASK, BOOKE, { RT } },
3642 { "mftbu", XSPR(31,371,269), XSPR_MASK, CLASSIC, { RT } },
3643 { "mftbu", XSPR(31,339,269), XSPR_MASK, BOOKE, { RT } },
3644 { "mfsprg", XSPR(31,339,272), XSPRG_MASK, PPC, { RT, SPRG } },
3645 { "mfsprg0", XSPR(31,339,272), XSPR_MASK, PPC, { RT } },
3646 { "mfsprg1", XSPR(31,339,273), XSPR_MASK, PPC, { RT } },
3647 { "mfsprg2", XSPR(31,339,274), XSPR_MASK, PPC, { RT } },
3648 { "mfsprg3", XSPR(31,339,275), XSPR_MASK, PPC, { RT } },
3649 { "mfasr", XSPR(31,339,280), XSPR_MASK, PPC64, { RT } },
3650 { "mfear", XSPR(31,339,282), XSPR_MASK, PPC, { RT } },
3651 { "mfpir", XSPR(31,339,286), XSPR_MASK, BOOKE, { RT } },
3652 { "mfpvr", XSPR(31,339,287), XSPR_MASK, PPC, { RT } },
3653 { "mfdbsr", XSPR(31,339,304), XSPR_MASK, BOOKE, { RT } },
3654 { "mfdbsr", XSPR(31,339,1008), XSPR_MASK, PPC403, { RT } },
3655 { "mfdbcr0", XSPR(31,339,308), XSPR_MASK, BOOKE, { RT } },
3656 { "mfdbcr0", XSPR(31,339,1010), XSPR_MASK, PPC405, { RT } },
3657 { "mfdbcr1", XSPR(31,339,309), XSPR_MASK, BOOKE, { RT } },
3658 { "mfdbcr1", XSPR(31,339,957), XSPR_MASK, PPC405, { RT } },
3659 { "mfdbcr2", XSPR(31,339,310), XSPR_MASK, BOOKE, { RT } },
3660 { "mfiac1", XSPR(31,339,312), XSPR_MASK, BOOKE, { RT } },
3661 { "mfiac1", XSPR(31,339,1012), XSPR_MASK, PPC403, { RT } },
3662 { "mfiac2", XSPR(31,339,313), XSPR_MASK, BOOKE, { RT } },
3663 { "mfiac2", XSPR(31,339,1013), XSPR_MASK, PPC403, { RT } },
3664 { "mfiac3", XSPR(31,339,314), XSPR_MASK, BOOKE, { RT } },
3665 { "mfiac3", XSPR(31,339,948), XSPR_MASK, PPC405, { RT } },
3666 { "mfiac4", XSPR(31,339,315), XSPR_MASK, BOOKE, { RT } },
3667 { "mfiac4", XSPR(31,339,949), XSPR_MASK, PPC405, { RT } },
3668 { "mfdac1", XSPR(31,339,316), XSPR_MASK, BOOKE, { RT } },
3669 { "mfdac1", XSPR(31,339,1014), XSPR_MASK, PPC403, { RT } },
3670 { "mfdac2", XSPR(31,339,317), XSPR_MASK, BOOKE, { RT } },
3671 { "mfdac2", XSPR(31,339,1015), XSPR_MASK, PPC403, { RT } },
3672 { "mfdvc1", XSPR(31,339,318), XSPR_MASK, BOOKE, { RT } },
3673 { "mfdvc1", XSPR(31,339,950), XSPR_MASK, PPC405, { RT } },
3674 { "mfdvc2", XSPR(31,339,319), XSPR_MASK, BOOKE, { RT } },
3675 { "mfdvc2", XSPR(31,339,951), XSPR_MASK, PPC405, { RT } },
3676 { "mftsr", XSPR(31,339,336), XSPR_MASK, BOOKE, { RT } },
3677 { "mftsr", XSPR(31,339,984), XSPR_MASK, PPC403, { RT } },
3678 { "mftcr", XSPR(31,339,340), XSPR_MASK, BOOKE, { RT } },
3679 { "mftcr", XSPR(31,339,986), XSPR_MASK, PPC403, { RT } },
3680 { "mfivor0", XSPR(31,339,400), XSPR_MASK, BOOKE, { RT } },
3681 { "mfivor1", XSPR(31,339,401), XSPR_MASK, BOOKE, { RT } },
3682 { "mfivor2", XSPR(31,339,402), XSPR_MASK, BOOKE, { RT } },
3683 { "mfivor3", XSPR(31,339,403), XSPR_MASK, BOOKE, { RT } },
3684 { "mfivor4", XSPR(31,339,404), XSPR_MASK, BOOKE, { RT } },
3685 { "mfivor5", XSPR(31,339,405), XSPR_MASK, BOOKE, { RT } },
3686 { "mfivor6", XSPR(31,339,406), XSPR_MASK, BOOKE, { RT } },
3687 { "mfivor7", XSPR(31,339,407), XSPR_MASK, BOOKE, { RT } },
3688 { "mfivor8", XSPR(31,339,408), XSPR_MASK, BOOKE, { RT } },
3689 { "mfivor9", XSPR(31,339,409), XSPR_MASK, BOOKE, { RT } },
3690 { "mfivor10", XSPR(31,339,410), XSPR_MASK, BOOKE, { RT } },
3691 { "mfivor11", XSPR(31,339,411), XSPR_MASK, BOOKE, { RT } },
3692 { "mfivor12", XSPR(31,339,412), XSPR_MASK, BOOKE, { RT } },
3693 { "mfivor13", XSPR(31,339,413), XSPR_MASK, BOOKE, { RT } },
3694 { "mfivor14", XSPR(31,339,414), XSPR_MASK, BOOKE, { RT } },
3695 { "mfivor15", XSPR(31,339,415), XSPR_MASK, BOOKE, { RT } },
3696 { "mfspefscr", XSPR(31,339,512), XSPR_MASK, PPCSPE, { RT } },
3697 { "mfbbear", XSPR(31,339,513), XSPR_MASK, PPCBRLK, { RT } },
3698 { "mfbbtar", XSPR(31,339,514), XSPR_MASK, PPCBRLK, { RT } },
3699 { "mfivor32", XSPR(31,339,528), XSPR_MASK, PPCSPE, { RT } },
3700 { "mfivor33", XSPR(31,339,529), XSPR_MASK, PPCSPE, { RT } },
3701 { "mfivor34", XSPR(31,339,530), XSPR_MASK, PPCSPE, { RT } },
3702 { "mfivor35", XSPR(31,339,531), XSPR_MASK, PPCPMR, { RT } },
3703 { "mfibatu", XSPR(31,339,528), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
3704 { "mfibatl", XSPR(31,339,529), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
3705 { "mfdbatu", XSPR(31,339,536), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
3706 { "mfdbatl", XSPR(31,339,537), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
3707 { "mfic_cst", XSPR(31,339,560), XSPR_MASK, PPC860, { RT } },
3708 { "mfic_adr", XSPR(31,339,561), XSPR_MASK, PPC860, { RT } },
3709 { "mfic_dat", XSPR(31,339,562), XSPR_MASK, PPC860, { RT } },
3710 { "mfdc_cst", XSPR(31,339,568), XSPR_MASK, PPC860, { RT } },
3711 { "mfdc_adr", XSPR(31,339,569), XSPR_MASK, PPC860, { RT } },
3712 { "mfmcsrr0", XSPR(31,339,570), XSPR_MASK, PPCRFMCI, { RT } },
3713 { "mfdc_dat", XSPR(31,339,570), XSPR_MASK, PPC860, { RT } },
3714 { "mfmcsrr1", XSPR(31,339,571), XSPR_MASK, PPCRFMCI, { RT } },
3715 { "mfmcsr", XSPR(31,339,572), XSPR_MASK, PPCRFMCI, { RT } },
3716 { "mfmcar", XSPR(31,339,573), XSPR_MASK, PPCRFMCI, { RT } },
3717 { "mfdpdr", XSPR(31,339,630), XSPR_MASK, PPC860, { RT } },
3718 { "mfdpir", XSPR(31,339,631), XSPR_MASK, PPC860, { RT } },
3719 { "mfimmr", XSPR(31,339,638), XSPR_MASK, PPC860, { RT } },
3720 { "mfmi_ctr", XSPR(31,339,784), XSPR_MASK, PPC860, { RT } },
3721 { "mfmi_ap", XSPR(31,339,786), XSPR_MASK, PPC860, { RT } },
3722 { "mfmi_epn", XSPR(31,339,787), XSPR_MASK, PPC860, { RT } },
3723 { "mfmi_twc", XSPR(31,339,789), XSPR_MASK, PPC860, { RT } },
3724 { "mfmi_rpn", XSPR(31,339,790), XSPR_MASK, PPC860, { RT } },
3725 { "mfmd_ctr", XSPR(31,339,792), XSPR_MASK, PPC860, { RT } },
3726 { "mfm_casid", XSPR(31,339,793), XSPR_MASK, PPC860, { RT } },
3727 { "mfmd_ap", XSPR(31,339,794), XSPR_MASK, PPC860, { RT } },
3728 { "mfmd_epn", XSPR(31,339,795), XSPR_MASK, PPC860, { RT } },
3729 { "mfmd_twb", XSPR(31,339,796), XSPR_MASK, PPC860, { RT } },
3730 { "mfmd_twc", XSPR(31,339,797), XSPR_MASK, PPC860, { RT } },
3731 { "mfmd_rpn", XSPR(31,339,798), XSPR_MASK, PPC860, { RT } },
3732 { "mfm_tw", XSPR(31,339,799), XSPR_MASK, PPC860, { RT } },
3733 { "mfmi_dbcam", XSPR(31,339,816), XSPR_MASK, PPC860, { RT } },
3734 { "mfmi_dbram0",XSPR(31,339,817), XSPR_MASK, PPC860, { RT } },
3735 { "mfmi_dbram1",XSPR(31,339,818), XSPR_MASK, PPC860, { RT } },
3736 { "mfmd_dbcam", XSPR(31,339,824), XSPR_MASK, PPC860, { RT } },
3737 { "mfmd_dbram0",XSPR(31,339,825), XSPR_MASK, PPC860, { RT } },
3738 { "mfmd_dbram1",XSPR(31,339,826), XSPR_MASK, PPC860, { RT } },
3739 { "mfummcr0", XSPR(31,339,936), XSPR_MASK, PPC750, { RT } },
3740 { "mfupmc1", XSPR(31,339,937), XSPR_MASK, PPC750, { RT } },
3741 { "mfupmc2", XSPR(31,339,938), XSPR_MASK, PPC750, { RT } },
3742 { "mfusia", XSPR(31,339,939), XSPR_MASK, PPC750, { RT } },
3743 { "mfummcr1", XSPR(31,339,940), XSPR_MASK, PPC750, { RT } },
3744 { "mfupmc3", XSPR(31,339,941), XSPR_MASK, PPC750, { RT } },
3745 { "mfupmc4", XSPR(31,339,942), XSPR_MASK, PPC750, { RT } },
3746 { "mfzpr", XSPR(31,339,944), XSPR_MASK, PPC403, { RT } },
3747 { "mfccr0", XSPR(31,339,947), XSPR_MASK, PPC405, { RT } },
3748 { "mfmmcr0", XSPR(31,339,952), XSPR_MASK, PPC750, { RT } },
3749 { "mfpmc1", XSPR(31,339,953), XSPR_MASK, PPC750, { RT } },
3750 { "mfsgr", XSPR(31,339,953), XSPR_MASK, PPC403, { RT } },
3751 { "mfpmc2", XSPR(31,339,954), XSPR_MASK, PPC750, { RT } },
3752 { "mfdcwr", XSPR(31,339,954), XSPR_MASK, PPC403, { RT } },
3753 { "mfsia", XSPR(31,339,955), XSPR_MASK, PPC750, { RT } },
3754 { "mfsler", XSPR(31,339,955), XSPR_MASK, PPC405, { RT } },
3755 { "mfmmcr1", XSPR(31,339,956), XSPR_MASK, PPC750, { RT } },
3756 { "mfsu0r", XSPR(31,339,956), XSPR_MASK, PPC405, { RT } },
3757 { "mfpmc3", XSPR(31,339,957), XSPR_MASK, PPC750, { RT } },
3758 { "mfpmc4", XSPR(31,339,958), XSPR_MASK, PPC750, { RT } },
3759 { "mficdbdr", XSPR(31,339,979), XSPR_MASK, PPC403, { RT } },
3760 { "mfevpr", XSPR(31,339,982), XSPR_MASK, PPC403, { RT } },
3761 { "mfcdbcr", XSPR(31,339,983), XSPR_MASK, PPC403, { RT } },
3762 { "mfpit", XSPR(31,339,987), XSPR_MASK, PPC403, { RT } },
3763 { "mftbhi", XSPR(31,339,988), XSPR_MASK, PPC403, { RT } },
3764 { "mftblo", XSPR(31,339,989), XSPR_MASK, PPC403, { RT } },
3765 { "mfsrr2", XSPR(31,339,990), XSPR_MASK, PPC403, { RT } },
3766 { "mfsrr3", XSPR(31,339,991), XSPR_MASK, PPC403, { RT } },
3767 { "mfl2cr", XSPR(31,339,1017), XSPR_MASK, PPC750, { RT } },
3768 { "mfdccr", XSPR(31,339,1018), XSPR_MASK, PPC403, { RT } },
3769 { "mficcr", XSPR(31,339,1019), XSPR_MASK, PPC403, { RT } },
3770 { "mfictc", XSPR(31,339,1019), XSPR_MASK, PPC750, { RT } },
3771 { "mfpbl1", XSPR(31,339,1020), XSPR_MASK, PPC403, { RT } },
3772 { "mfthrm1", XSPR(31,339,1020), XSPR_MASK, PPC750, { RT } },
3773 { "mfpbu1", XSPR(31,339,1021), XSPR_MASK, PPC403, { RT } },
3774 { "mfthrm2", XSPR(31,339,1021), XSPR_MASK, PPC750, { RT } },
3775 { "mfpbl2", XSPR(31,339,1022), XSPR_MASK, PPC403, { RT } },
3776 { "mfthrm3", XSPR(31,339,1022), XSPR_MASK, PPC750, { RT } },
3777 { "mfpbu2", XSPR(31,339,1023), XSPR_MASK, PPC403, { RT } },
3778 { "mfspr", X(31,339), X_MASK, COM, { RT, SPR } },
3780 { "lwax", X(31,341), X_MASK, PPC64, { RT, RA0, RB } },
3782 { "dst", XDSS(31,342,0), XDSS_MASK, PPCVEC, { RA, RB, STRM } },
3783 { "dstt", XDSS(31,342,1), XDSS_MASK, PPCVEC, { RA, RB, STRM } },
3785 { "lhax", X(31,343), X_MASK, COM, { RT, RA0, RB } },
3787 { "lhaxe", X(31,351), X_MASK, BOOKE64, { RT, RA0, RB } },
3789 { "dstst", XDSS(31,374,0), XDSS_MASK, PPCVEC, { RA, RB, STRM } },
3790 { "dststt", XDSS(31,374,1), XDSS_MASK, PPCVEC, { RA, RB, STRM } },
3792 { "dccci", X(31,454), XRT_MASK, PPC403|PPC440, { RA, RB } },
3794 { "abs", XO(31,360,0,0), XORB_MASK, M601, { RT, RA } },
3795 { "abs.", XO(31,360,0,1), XORB_MASK, M601, { RT, RA } },
3796 { "abso", XO(31,360,1,0), XORB_MASK, M601, { RT, RA } },
3797 { "abso.", XO(31,360,1,1), XORB_MASK, M601, { RT, RA } },
3799 { "divs", XO(31,363,0,0), XO_MASK, M601, { RT, RA, RB } },
3800 { "divs.", XO(31,363,0,1), XO_MASK, M601, { RT, RA, RB } },
3801 { "divso", XO(31,363,1,0), XO_MASK, M601, { RT, RA, RB } },
3802 { "divso.", XO(31,363,1,1), XO_MASK, M601, { RT, RA, RB } },
3804 { "tlbia", X(31,370), 0xffffffff, PPC, { 0 } },
3806 { "lwaux", X(31,373), X_MASK, PPC64, { RT, RAL, RB } },
3808 { "lhaux", X(31,375), X_MASK, COM, { RT, RAL, RB } },
3810 { "lhauxe", X(31,383), X_MASK, BOOKE64, { RT, RAL, RB } },
3812 { "mtdcrx", X(31,387), X_MASK, BOOKE, { RA, RS } },
3814 { "dcblc", X(31,390), X_MASK, PPCCHLK, { CT, RA, RB }},
3816 { "subfe64", XO(31,392,0,0), XO_MASK, BOOKE64, { RT, RA, RB } },
3817 { "subfe64o",XO(31,392,1,0), XO_MASK, BOOKE64, { RT, RA, RB } },
3819 { "adde64", XO(31,394,0,0), XO_MASK, BOOKE64, { RT, RA, RB } },
3820 { "adde64o", XO(31,394,1,0), XO_MASK, BOOKE64, { RT, RA, RB } },
3822 { "dcblce", X(31,398), X_MASK, PPCCHLK64, { CT, RA, RB }},
3824 { "slbmte", X(31,402), XRA_MASK, PPC64, { RS, RB } },
3826 { "sthx", X(31,407), X_MASK, COM, { RS, RA0, RB } },
3828 { "lfqx", X(31,791), X_MASK, POWER2, { FRT, RA, RB } },
3830 { "lfqux", X(31,823), X_MASK, POWER2, { FRT, RA, RB } },
3832 { "stfqx", X(31,919), X_MASK, POWER2, { FRS, RA, RB } },
3834 { "stfqux", X(31,951), X_MASK, POWER2, { FRS, RA, RB } },
3836 { "orc", XRC(31,412,0), X_MASK, COM, { RA, RS, RB } },
3837 { "orc.", XRC(31,412,1), X_MASK, COM, { RA, RS, RB } },
3839 { "sradi", XS(31,413,0), XS_MASK, PPC64, { RA, RS, SH6 } },
3840 { "sradi.", XS(31,413,1), XS_MASK, PPC64, { RA, RS, SH6 } },
3842 { "sthxe", X(31,415), X_MASK, BOOKE64, { RS, RA0, RB } },
3844 { "slbie", X(31,434), XRTRA_MASK, PPC64, { RB } },
3846 { "ecowx", X(31,438), X_MASK, PPC, { RT, RA, RB } },
3848 { "sthux", X(31,439), X_MASK, COM, { RS, RAS, RB } },
3850 { "sthuxe", X(31,447), X_MASK, BOOKE64, { RS, RAS, RB } },
3852 { "mr", XRC(31,444,0), X_MASK, COM, { RA, RS, RBS } },
3853 { "or", XRC(31,444,0), X_MASK, COM, { RA, RS, RB } },
3854 { "mr.", XRC(31,444,1), X_MASK, COM, { RA, RS, RBS } },
3855 { "or.", XRC(31,444,1), X_MASK, COM, { RA, RS, RB } },
3857 { "mtexisr", XSPR(31,451,64), XSPR_MASK, PPC403, { RS } },
3858 { "mtexier", XSPR(31,451,66), XSPR_MASK, PPC403, { RS } },
3859 { "mtbr0", XSPR(31,451,128), XSPR_MASK, PPC403, { RS } },
3860 { "mtbr1", XSPR(31,451,129), XSPR_MASK, PPC403, { RS } },
3861 { "mtbr2", XSPR(31,451,130), XSPR_MASK, PPC403, { RS } },
3862 { "mtbr3", XSPR(31,451,131), XSPR_MASK, PPC403, { RS } },
3863 { "mtbr4", XSPR(31,451,132), XSPR_MASK, PPC403, { RS } },
3864 { "mtbr5", XSPR(31,451,133), XSPR_MASK, PPC403, { RS } },
3865 { "mtbr6", XSPR(31,451,134), XSPR_MASK, PPC403, { RS } },
3866 { "mtbr7", XSPR(31,451,135), XSPR_MASK, PPC403, { RS } },
3867 { "mtbear", XSPR(31,451,144), XSPR_MASK, PPC403, { RS } },
3868 { "mtbesr", XSPR(31,451,145), XSPR_MASK, PPC403, { RS } },
3869 { "mtiocr", XSPR(31,451,160), XSPR_MASK, PPC403, { RS } },
3870 { "mtdmacr0", XSPR(31,451,192), XSPR_MASK, PPC403, { RS } },
3871 { "mtdmact0", XSPR(31,451,193), XSPR_MASK, PPC403, { RS } },
3872 { "mtdmada0", XSPR(31,451,194), XSPR_MASK, PPC403, { RS } },
3873 { "mtdmasa0", XSPR(31,451,195), XSPR_MASK, PPC403, { RS } },
3874 { "mtdmacc0", XSPR(31,451,196), XSPR_MASK, PPC403, { RS } },
3875 { "mtdmacr1", XSPR(31,451,200), XSPR_MASK, PPC403, { RS } },
3876 { "mtdmact1", XSPR(31,451,201), XSPR_MASK, PPC403, { RS } },
3877 { "mtdmada1", XSPR(31,451,202), XSPR_MASK, PPC403, { RS } },
3878 { "mtdmasa1", XSPR(31,451,203), XSPR_MASK, PPC403, { RS } },
3879 { "mtdmacc1", XSPR(31,451,204), XSPR_MASK, PPC403, { RS } },
3880 { "mtdmacr2", XSPR(31,451,208), XSPR_MASK, PPC403, { RS } },
3881 { "mtdmact2", XSPR(31,451,209), XSPR_MASK, PPC403, { RS } },
3882 { "mtdmada2", XSPR(31,451,210), XSPR_MASK, PPC403, { RS } },
3883 { "mtdmasa2", XSPR(31,451,211), XSPR_MASK, PPC403, { RS } },
3884 { "mtdmacc2", XSPR(31,451,212), XSPR_MASK, PPC403, { RS } },
3885 { "mtdmacr3", XSPR(31,451,216), XSPR_MASK, PPC403, { RS } },
3886 { "mtdmact3", XSPR(31,451,217), XSPR_MASK, PPC403, { RS } },
3887 { "mtdmada3", XSPR(31,451,218), XSPR_MASK, PPC403, { RS } },
3888 { "mtdmasa3", XSPR(31,451,219), XSPR_MASK, PPC403, { RS } },
3889 { "mtdmacc3", XSPR(31,451,220), XSPR_MASK, PPC403, { RS } },
3890 { "mtdmasr", XSPR(31,451,224), XSPR_MASK, PPC403, { RS } },
3891 { "mtdcr", X(31,451), X_MASK, PPC403 | BOOKE, { SPR, RS } },
3893 { "subfze64",XO(31,456,0,0), XORB_MASK, BOOKE64, { RT, RA } },
3894 { "subfze64o",XO(31,456,1,0), XORB_MASK, BOOKE64, { RT, RA } },
3896 { "divdu", XO(31,457,0,0), XO_MASK, PPC64, { RT, RA, RB } },
3897 { "divdu.", XO(31,457,0,1), XO_MASK, PPC64, { RT, RA, RB } },
3898 { "divduo", XO(31,457,1,0), XO_MASK, PPC64, { RT, RA, RB } },
3899 { "divduo.", XO(31,457,1,1), XO_MASK, PPC64, { RT, RA, RB } },
3901 { "addze64", XO(31,458,0,0), XORB_MASK, BOOKE64, { RT, RA } },
3902 { "addze64o",XO(31,458,1,0), XORB_MASK, BOOKE64, { RT, RA } },
3904 { "divwu", XO(31,459,0,0), XO_MASK, PPC, { RT, RA, RB } },
3905 { "divwu.", XO(31,459,0,1), XO_MASK, PPC, { RT, RA, RB } },
3906 { "divwuo", XO(31,459,1,0), XO_MASK, PPC, { RT, RA, RB } },
3907 { "divwuo.", XO(31,459,1,1), XO_MASK, PPC, { RT, RA, RB } },
3909 { "mtmq", XSPR(31,467,0), XSPR_MASK, M601, { RS } },
3910 { "mtxer", XSPR(31,467,1), XSPR_MASK, COM, { RS } },
3911 { "mtlr", XSPR(31,467,8), XSPR_MASK, COM, { RS } },
3912 { "mtctr", XSPR(31,467,9), XSPR_MASK, COM, { RS } },
3913 { "mttid", XSPR(31,467,17), XSPR_MASK, POWER, { RS } },
3914 { "mtdsisr", XSPR(31,467,18), XSPR_MASK, COM, { RS } },
3915 { "mtdar", XSPR(31,467,19), XSPR_MASK, COM, { RS } },
3916 { "mtrtcu", XSPR(31,467,20), XSPR_MASK, COM, { RS } },
3917 { "mtrtcl", XSPR(31,467,21), XSPR_MASK, COM, { RS } },
3918 { "mtdec", XSPR(31,467,22), XSPR_MASK, COM, { RS } },
3919 { "mtsdr0", XSPR(31,467,24), XSPR_MASK, POWER, { RS } },
3920 { "mtsdr1", XSPR(31,467,25), XSPR_MASK, COM, { RS } },
3921 { "mtsrr0", XSPR(31,467,26), XSPR_MASK, COM, { RS } },
3922 { "mtsrr1", XSPR(31,467,27), XSPR_MASK, COM, { RS } },
3923 { "mtpid", XSPR(31,467,48), XSPR_MASK, BOOKE, { RS } },
3924 { "mtpid", XSPR(31,467,945), XSPR_MASK, PPC403, { RS } },
3925 { "mtdecar", XSPR(31,467,54), XSPR_MASK, BOOKE, { RS } },
3926 { "mtcsrr0", XSPR(31,467,58), XSPR_MASK, BOOKE, { RS } },
3927 { "mtcsrr1", XSPR(31,467,59), XSPR_MASK, BOOKE, { RS } },
3928 { "mtdear", XSPR(31,467,61), XSPR_MASK, BOOKE, { RS } },
3929 { "mtdear", XSPR(31,467,981), XSPR_MASK, PPC403, { RS } },
3930 { "mtesr", XSPR(31,467,62), XSPR_MASK, BOOKE, { RS } },
3931 { "mtesr", XSPR(31,467,980), XSPR_MASK, PPC403, { RS } },
3932 { "mtivpr", XSPR(31,467,63), XSPR_MASK, BOOKE, { RS } },
3933 { "mtcmpa", XSPR(31,467,144), XSPR_MASK, PPC860, { RS } },
3934 { "mtcmpb", XSPR(31,467,145), XSPR_MASK, PPC860, { RS } },
3935 { "mtcmpc", XSPR(31,467,146), XSPR_MASK, PPC860, { RS } },
3936 { "mtcmpd", XSPR(31,467,147), XSPR_MASK, PPC860, { RS } },
3937 { "mticr", XSPR(31,467,148), XSPR_MASK, PPC860, { RS } },
3938 { "mtder", XSPR(31,467,149), XSPR_MASK, PPC860, { RS } },
3939 { "mtcounta", XSPR(31,467,150), XSPR_MASK, PPC860, { RS } },
3940 { "mtcountb", XSPR(31,467,151), XSPR_MASK, PPC860, { RS } },
3941 { "mtcmpe", XSPR(31,467,152), XSPR_MASK, PPC860, { RS } },
3942 { "mtcmpf", XSPR(31,467,153), XSPR_MASK, PPC860, { RS } },
3943 { "mtcmpg", XSPR(31,467,154), XSPR_MASK, PPC860, { RS } },
3944 { "mtcmph", XSPR(31,467,155), XSPR_MASK, PPC860, { RS } },
3945 { "mtlctrl1", XSPR(31,467,156), XSPR_MASK, PPC860, { RS } },
3946 { "mtlctrl2", XSPR(31,467,157), XSPR_MASK, PPC860, { RS } },
3947 { "mtictrl", XSPR(31,467,158), XSPR_MASK, PPC860, { RS } },
3948 { "mtbar", XSPR(31,467,159), XSPR_MASK, PPC860, { RS } },
3949 { "mtvrsave", XSPR(31,467,256), XSPR_MASK, PPCVEC, { RS } },
3950 { "mtusprg0", XSPR(31,467,256), XSPR_MASK, BOOKE, { RS } },
3951 { "mtsprg", XSPR(31,467,272), XSPRG_MASK,PPC, { SPRG, RS } },
3952 { "mtsprg0", XSPR(31,467,272), XSPR_MASK, PPC, { RS } },
3953 { "mtsprg1", XSPR(31,467,273), XSPR_MASK, PPC, { RS } },
3954 { "mtsprg2", XSPR(31,467,274), XSPR_MASK, PPC, { RS } },
3955 { "mtsprg3", XSPR(31,467,275), XSPR_MASK, PPC, { RS } },
3956 { "mtsprg4", XSPR(31,467,276), XSPR_MASK, PPC405 | BOOKE, { RS } },
3957 { "mtsprg5", XSPR(31,467,277), XSPR_MASK, PPC405 | BOOKE, { RS } },
3958 { "mtsprg6", XSPR(31,467,278), XSPR_MASK, PPC405 | BOOKE, { RS } },
3959 { "mtsprg7", XSPR(31,467,279), XSPR_MASK, PPC405 | BOOKE, { RS } },
3960 { "mtasr", XSPR(31,467,280), XSPR_MASK, PPC64, { RS } },
3961 { "mtear", XSPR(31,467,282), XSPR_MASK, PPC, { RS } },
3962 { "mttbl", XSPR(31,467,284), XSPR_MASK, PPC, { RS } },
3963 { "mttbu", XSPR(31,467,285), XSPR_MASK, PPC, { RS } },
3964 { "mtdbsr", XSPR(31,467,304), XSPR_MASK, BOOKE, { RS } },
3965 { "mtdbsr", XSPR(31,467,1008), XSPR_MASK, PPC403, { RS } },
3966 { "mtdbcr0", XSPR(31,467,308), XSPR_MASK, BOOKE, { RS } },
3967 { "mtdbcr0", XSPR(31,467,1010), XSPR_MASK, PPC405, { RS } },
3968 { "mtdbcr1", XSPR(31,467,309), XSPR_MASK, BOOKE, { RS } },
3969 { "mtdbcr1", XSPR(31,467,957), XSPR_MASK, PPC405, { RS } },
3970 { "mtdbcr2", XSPR(31,467,310), XSPR_MASK, BOOKE, { RS } },
3971 { "mtiac1", XSPR(31,467,312), XSPR_MASK, BOOKE, { RS } },
3972 { "mtiac1", XSPR(31,467,1012), XSPR_MASK, PPC403, { RS } },
3973 { "mtiac2", XSPR(31,467,313), XSPR_MASK, BOOKE, { RS } },
3974 { "mtiac2", XSPR(31,467,1013), XSPR_MASK, PPC403, { RS } },
3975 { "mtiac3", XSPR(31,467,314), XSPR_MASK, BOOKE, { RS } },
3976 { "mtiac3", XSPR(31,467,948), XSPR_MASK, PPC405, { RS } },
3977 { "mtiac4", XSPR(31,467,315), XSPR_MASK, BOOKE, { RS } },
3978 { "mtiac4", XSPR(31,467,949), XSPR_MASK, PPC405, { RS } },
3979 { "mtdac1", XSPR(31,467,316), XSPR_MASK, BOOKE, { RS } },
3980 { "mtdac1", XSPR(31,467,1014), XSPR_MASK, PPC403, { RS } },
3981 { "mtdac2", XSPR(31,467,317), XSPR_MASK, BOOKE, { RS } },
3982 { "mtdac2", XSPR(31,467,1015), XSPR_MASK, PPC403, { RS } },
3983 { "mtdvc1", XSPR(31,467,318), XSPR_MASK, BOOKE, { RS } },
3984 { "mtdvc1", XSPR(31,467,950), XSPR_MASK, PPC405, { RS } },
3985 { "mtdvc2", XSPR(31,467,319), XSPR_MASK, BOOKE, { RS } },
3986 { "mtdvc2", XSPR(31,467,951), XSPR_MASK, PPC405, { RS } },
3987 { "mttsr", XSPR(31,467,336), XSPR_MASK, BOOKE, { RS } },
3988 { "mttsr", XSPR(31,467,984), XSPR_MASK, PPC403, { RS } },
3989 { "mttcr", XSPR(31,467,340), XSPR_MASK, BOOKE, { RS } },
3990 { "mttcr", XSPR(31,467,986), XSPR_MASK, PPC403, { RS } },
3991 { "mtivor0", XSPR(31,467,400), XSPR_MASK, BOOKE, { RS } },
3992 { "mtivor1", XSPR(31,467,401), XSPR_MASK, BOOKE, { RS } },
3993 { "mtivor2", XSPR(31,467,402), XSPR_MASK, BOOKE, { RS } },
3994 { "mtivor3", XSPR(31,467,403), XSPR_MASK, BOOKE, { RS } },
3995 { "mtivor4", XSPR(31,467,404), XSPR_MASK, BOOKE, { RS } },
3996 { "mtivor5", XSPR(31,467,405), XSPR_MASK, BOOKE, { RS } },
3997 { "mtivor6", XSPR(31,467,406), XSPR_MASK, BOOKE, { RS } },
3998 { "mtivor7", XSPR(31,467,407), XSPR_MASK, BOOKE, { RS } },
3999 { "mtivor8", XSPR(31,467,408), XSPR_MASK, BOOKE, { RS } },
4000 { "mtivor9", XSPR(31,467,409), XSPR_MASK, BOOKE, { RS } },
4001 { "mtivor10", XSPR(31,467,410), XSPR_MASK, BOOKE, { RS } },
4002 { "mtivor11", XSPR(31,467,411), XSPR_MASK, BOOKE, { RS } },
4003 { "mtivor12", XSPR(31,467,412), XSPR_MASK, BOOKE, { RS } },
4004 { "mtivor13", XSPR(31,467,413), XSPR_MASK, BOOKE, { RS } },
4005 { "mtivor14", XSPR(31,467,414), XSPR_MASK, BOOKE, { RS } },
4006 { "mtivor15", XSPR(31,467,415), XSPR_MASK, BOOKE, { RS } },
4007 { "mtspefscr", XSPR(31,467,512), XSPR_MASK, PPCSPE, { RS } },
4008 { "mtbbear", XSPR(31,467,513), XSPR_MASK, PPCBRLK, { RS } },
4009 { "mtbbtar", XSPR(31,467,514), XSPR_MASK, PPCBRLK, { RS } },
4010 { "mtivor32", XSPR(31,467,528), XSPR_MASK, PPCSPE, { RS } },
4011 { "mtivor33", XSPR(31,467,529), XSPR_MASK, PPCSPE, { RS } },
4012 { "mtivor34", XSPR(31,467,530), XSPR_MASK, PPCSPE, { RS } },
4013 { "mtivor35", XSPR(31,467,531), XSPR_MASK, PPCPMR, { RS } },
4014 { "mtibatu", XSPR(31,467,528), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
4015 { "mtibatl", XSPR(31,467,529), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
4016 { "mtdbatu", XSPR(31,467,536), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
4017 { "mtdbatl", XSPR(31,467,537), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
4018 { "mtmcsrr0", XSPR(31,467,570), XSPR_MASK, PPCRFMCI, { RS } },
4019 { "mtmcsrr1", XSPR(31,467,571), XSPR_MASK, PPCRFMCI, { RS } },
4020 { "mtmcsr", XSPR(31,467,572), XSPR_MASK, PPCRFMCI, { RS } },
4021 { "mtummcr0", XSPR(31,467,936), XSPR_MASK, PPC750, { RS } },
4022 { "mtupmc1", XSPR(31,467,937), XSPR_MASK, PPC750, { RS } },
4023 { "mtupmc2", XSPR(31,467,938), XSPR_MASK, PPC750, { RS } },
4024 { "mtusia", XSPR(31,467,939), XSPR_MASK, PPC750, { RS } },
4025 { "mtummcr1", XSPR(31,467,940), XSPR_MASK, PPC750, { RS } },
4026 { "mtupmc3", XSPR(31,467,941), XSPR_MASK, PPC750, { RS } },
4027 { "mtupmc4", XSPR(31,467,942), XSPR_MASK, PPC750, { RS } },
4028 { "mtzpr", XSPR(31,467,944), XSPR_MASK, PPC403, { RS } },
4029 { "mtccr0", XSPR(31,467,947), XSPR_MASK, PPC405, { RS } },
4030 { "mtmmcr0", XSPR(31,467,952), XSPR_MASK, PPC750, { RS } },
4031 { "mtsgr", XSPR(31,467,953), XSPR_MASK, PPC403, { RS } },
4032 { "mtpmc1", XSPR(31,467,953), XSPR_MASK, PPC750, { RS } },
4033 { "mtdcwr", XSPR(31,467,954), XSPR_MASK, PPC403, { RS } },
4034 { "mtpmc2", XSPR(31,467,954), XSPR_MASK, PPC750, { RS } },
4035 { "mtsler", XSPR(31,467,955), XSPR_MASK, PPC405, { RS } },
4036 { "mtsia", XSPR(31,467,955), XSPR_MASK, PPC750, { RS } },
4037 { "mtsu0r", XSPR(31,467,956), XSPR_MASK, PPC405, { RS } },
4038 { "mtmmcr1", XSPR(31,467,956), XSPR_MASK, PPC750, { RS } },
4039 { "mtpmc3", XSPR(31,467,957), XSPR_MASK, PPC750, { RS } },
4040 { "mtpmc4", XSPR(31,467,958), XSPR_MASK, PPC750, { RS } },
4041 { "mticdbdr", XSPR(31,467,979), XSPR_MASK, PPC403, { RS } },
4042 { "mtevpr", XSPR(31,467,982), XSPR_MASK, PPC403, { RS } },
4043 { "mtcdbcr", XSPR(31,467,983), XSPR_MASK, PPC403, { RS } },
4044 { "mtpit", XSPR(31,467,987), XSPR_MASK, PPC403, { RS } },
4045 { "mttbhi", XSPR(31,467,988), XSPR_MASK, PPC403, { RS } },
4046 { "mttblo", XSPR(31,467,989), XSPR_MASK, PPC403, { RS } },
4047 { "mtsrr2", XSPR(31,467,990), XSPR_MASK, PPC403, { RS } },
4048 { "mtsrr3", XSPR(31,467,991), XSPR_MASK, PPC403, { RS } },
4049 { "mtl2cr", XSPR(31,467,1017), XSPR_MASK, PPC750, { RS } },
4050 { "mtdccr", XSPR(31,467,1018), XSPR_MASK, PPC403, { RS } },
4051 { "mticcr", XSPR(31,467,1019), XSPR_MASK, PPC403, { RS } },
4052 { "mtictc", XSPR(31,467,1019), XSPR_MASK, PPC750, { RS } },
4053 { "mtpbl1", XSPR(31,467,1020), XSPR_MASK, PPC403, { RS } },
4054 { "mtthrm1", XSPR(31,467,1020), XSPR_MASK, PPC750, { RS } },
4055 { "mtpbu1", XSPR(31,467,1021), XSPR_MASK, PPC403, { RS } },
4056 { "mtthrm2", XSPR(31,467,1021), XSPR_MASK, PPC750, { RS } },
4057 { "mtpbl2", XSPR(31,467,1022), XSPR_MASK, PPC403, { RS } },
4058 { "mtthrm3", XSPR(31,467,1022), XSPR_MASK, PPC750, { RS } },
4059 { "mtpbu2", XSPR(31,467,1023), XSPR_MASK, PPC403, { RS } },
4060 { "mtspr", X(31,467), X_MASK, COM, { SPR, RS } },
4062 { "dcbi", X(31,470), XRT_MASK, PPC, { RA, RB } },
4064 { "nand", XRC(31,476,0), X_MASK, COM, { RA, RS, RB } },
4065 { "nand.", XRC(31,476,1), X_MASK, COM, { RA, RS, RB } },
4067 { "dcbie", X(31,478), XRT_MASK, BOOKE64, { RA, RB } },
4069 { "dcread", X(31,486), X_MASK, PPC403|PPC440, { RT, RA, RB }},
4071 { "mtpmr", X(31,462), X_MASK, PPCPMR, { PMR, RS }},
4073 { "icbtls", X(31,486), X_MASK, PPCCHLK, { CT, RA, RB }},
4075 { "nabs", XO(31,488,0,0), XORB_MASK, M601, { RT, RA } },
4076 { "subfme64",XO(31,488,0,0), XORB_MASK, BOOKE64, { RT, RA } },
4077 { "nabs.", XO(31,488,0,1), XORB_MASK, M601, { RT, RA } },
4078 { "nabso", XO(31,488,1,0), XORB_MASK, M601, { RT, RA } },
4079 { "subfme64o",XO(31,488,1,0), XORB_MASK, BOOKE64, { RT, RA } },
4080 { "nabso.", XO(31,488,1,1), XORB_MASK, M601, { RT, RA } },
4082 { "divd", XO(31,489,0,0), XO_MASK, PPC64, { RT, RA, RB } },
4083 { "divd.", XO(31,489,0,1), XO_MASK, PPC64, { RT, RA, RB } },
4084 { "divdo", XO(31,489,1,0), XO_MASK, PPC64, { RT, RA, RB } },
4085 { "divdo.", XO(31,489,1,1), XO_MASK, PPC64, { RT, RA, RB } },
4087 { "addme64", XO(31,490,0,0), XORB_MASK, BOOKE64, { RT, RA } },
4088 { "addme64o",XO(31,490,1,0), XORB_MASK, BOOKE64, { RT, RA } },
4090 { "divw", XO(31,491,0,0), XO_MASK, PPC, { RT, RA, RB } },
4091 { "divw.", XO(31,491,0,1), XO_MASK, PPC, { RT, RA, RB } },
4092 { "divwo", XO(31,491,1,0), XO_MASK, PPC, { RT, RA, RB } },
4093 { "divwo.", XO(31,491,1,1), XO_MASK, PPC, { RT, RA, RB } },
4095 { "icbtlse", X(31,494), X_MASK, PPCCHLK64, { CT, RA, RB }},
4097 { "slbia", X(31,498), 0xffffffff, PPC64, { 0 } },
4099 { "cli", X(31,502), XRB_MASK, POWER, { RT, RA } },
4101 { "stdcxe.", XRC(31,511,1), X_MASK, BOOKE64, { RS, RA, RB } },
4103 { "mcrxr", X(31,512), XRARB_MASK|(3<<21), COM, { BF } },
4105 { "bblels", X(31,518), X_MASK, PPCBRLK, { 0 }},
4106 { "mcrxr64", X(31,544), XRARB_MASK|(3<<21), BOOKE64, { BF } },
4108 { "clcs", X(31,531), XRB_MASK, M601, { RT, RA } },
4110 { "lswx", X(31,533), X_MASK, PPCCOM, { RT, RA0, RB } },
4111 { "lsx", X(31,533), X_MASK, PWRCOM, { RT, RA, RB } },
4113 { "lwbrx", X(31,534), X_MASK, PPCCOM, { RT, RA0, RB } },
4114 { "lbrx", X(31,534), X_MASK, PWRCOM, { RT, RA, RB } },
4116 { "lfsx", X(31,535), X_MASK, COM, { FRT, RA0, RB } },
4118 { "srw", XRC(31,536,0), X_MASK, PPCCOM, { RA, RS, RB } },
4119 { "sr", XRC(31,536,0), X_MASK, PWRCOM, { RA, RS, RB } },
4120 { "srw.", XRC(31,536,1), X_MASK, PPCCOM, { RA, RS, RB } },
4121 { "sr.", XRC(31,536,1), X_MASK, PWRCOM, { RA, RS, RB } },
4123 { "rrib", XRC(31,537,0), X_MASK, M601, { RA, RS, RB } },
4124 { "rrib.", XRC(31,537,1), X_MASK, M601, { RA, RS, RB } },
4126 { "srd", XRC(31,539,0), X_MASK, PPC64, { RA, RS, RB } },
4127 { "srd.", XRC(31,539,1), X_MASK, PPC64, { RA, RS, RB } },
4129 { "maskir", XRC(31,541,0), X_MASK, M601, { RA, RS, RB } },
4130 { "maskir.", XRC(31,541,1), X_MASK, M601, { RA, RS, RB } },
4132 { "lwbrxe", X(31,542), X_MASK, BOOKE64, { RT, RA0, RB } },
4134 { "lfsxe", X(31,543), X_MASK, BOOKE64, { FRT, RA0, RB } },
4136 { "bbelr", X(31,550), X_MASK, PPCBRLK, { 0 }},
4138 { "tlbsync", X(31,566), 0xffffffff, PPC, { 0 } },
4140 { "lfsux", X(31,567), X_MASK, COM, { FRT, RAS, RB } },
4142 { "lfsuxe", X(31,575), X_MASK, BOOKE64, { FRT, RAS, RB } },
4144 { "mfsr", X(31,595), XRB_MASK|(1<<20), COM32, { RT, SR } },
4146 { "lswi", X(31,597), X_MASK, PPCCOM, { RT, RA0, NB } },
4147 { "lsi", X(31,597), X_MASK, PWRCOM, { RT, RA0, NB } },
4149 { "lwsync", XSYNC(31,598,1), 0xffffffff, PPC, { 0 } },
4150 { "ptesync", XSYNC(31,598,2), 0xffffffff, PPC64, { 0 } },
4151 { "msync", X(31,598), 0xffffffff, BOOKE, { 0 } },
4152 { "sync", X(31,598), XSYNC_MASK, PPCCOM, { LS } },
4153 { "dcs", X(31,598), 0xffffffff, PWRCOM, { 0 } },
4155 { "lfdx", X(31,599), X_MASK, COM, { FRT, RA0, RB } },
4157 { "lfdxe", X(31,607), X_MASK, BOOKE64, { FRT, RA0, RB } },
4159 { "mfsri", X(31,627), X_MASK, PWRCOM, { RT, RA, RB } },
4161 { "dclst", X(31,630), XRB_MASK, PWRCOM, { RS, RA } },
4163 { "lfdux", X(31,631), X_MASK, COM, { FRT, RAS, RB } },
4165 { "lfduxe", X(31,639), X_MASK, BOOKE64, { FRT, RAS, RB } },
4167 { "mfsrin", X(31,659), XRA_MASK, PPC32, { RT, RB } },
4169 { "stswx", X(31,661), X_MASK, PPCCOM, { RS, RA0, RB } },
4170 { "stsx", X(31,661), X_MASK, PWRCOM, { RS, RA0, RB } },
4172 { "stwbrx", X(31,662), X_MASK, PPCCOM, { RS, RA0, RB } },
4173 { "stbrx", X(31,662), X_MASK, PWRCOM, { RS, RA0, RB } },
4175 { "stfsx", X(31,663), X_MASK, COM, { FRS, RA0, RB } },
4177 { "srq", XRC(31,664,0), X_MASK, M601, { RA, RS, RB } },
4178 { "srq.", XRC(31,664,1), X_MASK, M601, { RA, RS, RB } },
4180 { "sre", XRC(31,665,0), X_MASK, M601, { RA, RS, RB } },
4181 { "sre.", XRC(31,665,1), X_MASK, M601, { RA, RS, RB } },
4183 { "stwbrxe", X(31,670), X_MASK, BOOKE64, { RS, RA0, RB } },
4185 { "stfsxe", X(31,671), X_MASK, BOOKE64, { FRS, RA0, RB } },
4187 { "stfsux", X(31,695), X_MASK, COM, { FRS, RAS, RB } },
4189 { "sriq", XRC(31,696,0), X_MASK, M601, { RA, RS, SH } },
4190 { "sriq.", XRC(31,696,1), X_MASK, M601, { RA, RS, SH } },
4192 { "stfsuxe", X(31,703), X_MASK, BOOKE64, { FRS, RAS, RB } },
4194 { "stswi", X(31,725), X_MASK, PPCCOM, { RS, RA0, NB } },
4195 { "stsi", X(31,725), X_MASK, PWRCOM, { RS, RA0, NB } },
4197 { "stfdx", X(31,727), X_MASK, COM, { FRS, RA0, RB } },
4199 { "srlq", XRC(31,728,0), X_MASK, M601, { RA, RS, RB } },
4200 { "srlq.", XRC(31,728,1), X_MASK, M601, { RA, RS, RB } },
4202 { "sreq", XRC(31,729,0), X_MASK, M601, { RA, RS, RB } },
4203 { "sreq.", XRC(31,729,1), X_MASK, M601, { RA, RS, RB } },
4205 { "stfdxe", X(31,735), X_MASK, BOOKE64, { FRS, RA0, RB } },
4207 { "dcba", X(31,758), XRT_MASK, PPC405 | BOOKE, { RA, RB } },
4209 { "stfdux", X(31,759), X_MASK, COM, { FRS, RAS, RB } },
4211 { "srliq", XRC(31,760,0), X_MASK, M601, { RA, RS, SH } },
4212 { "srliq.", XRC(31,760,1), X_MASK, M601, { RA, RS, SH } },
4214 { "dcbae", X(31,766), XRT_MASK, BOOKE64, { RA, RB } },
4216 { "stfduxe", X(31,767), X_MASK, BOOKE64, { FRS, RAS, RB } },
4218 { "tlbivax", X(31,786), XRT_MASK, BOOKE, { RA, RB } },
4219 { "tlbivaxe",X(31,787), XRT_MASK, BOOKE64, { RA, RB } },
4221 { "lhbrx", X(31,790), X_MASK, COM, { RT, RA0, RB } },
4223 { "sraw", XRC(31,792,0), X_MASK, PPCCOM, { RA, RS, RB } },
4224 { "sra", XRC(31,792,0), X_MASK, PWRCOM, { RA, RS, RB } },
4225 { "sraw.", XRC(31,792,1), X_MASK, PPCCOM, { RA, RS, RB } },
4226 { "sra.", XRC(31,792,1), X_MASK, PWRCOM, { RA, RS, RB } },
4228 { "srad", XRC(31,794,0), X_MASK, PPC64, { RA, RS, RB } },
4229 { "srad.", XRC(31,794,1), X_MASK, PPC64, { RA, RS, RB } },
4231 { "lhbrxe", X(31,798), X_MASK, BOOKE64, { RT, RA0, RB } },
4233 { "ldxe", X(31,799), X_MASK, BOOKE64, { RT, RA0, RB } },
4234 { "lduxe", X(31,831), X_MASK, BOOKE64, { RT, RA0, RB } },
4236 { "rac", X(31,818), X_MASK, PWRCOM, { RT, RA, RB } },
4238 { "dss", XDSS(31,822,0), XDSS_MASK, PPCVEC, { STRM } },
4239 { "dssall", XDSS(31,822,1), XDSS_MASK, PPCVEC, { 0 } },
4241 { "srawi", XRC(31,824,0), X_MASK, PPCCOM, { RA, RS, SH } },
4242 { "srai", XRC(31,824,0), X_MASK, PWRCOM, { RA, RS, SH } },
4243 { "srawi.", XRC(31,824,1), X_MASK, PPCCOM, { RA, RS, SH } },
4244 { "srai.", XRC(31,824,1), X_MASK, PWRCOM, { RA, RS, SH } },
4246 { "slbmfev", X(31,851), XRA_MASK, PPC64, { RT, RB } },
4248 { "mbar", X(31,854), X_MASK, BOOKE, { MO } },
4249 { "eieio", X(31,854), 0xffffffff, PPC, { 0 } },
4251 { "tlbsx", XRC(31,914,0), X_MASK, BOOKE, { RA, RB } },
4252 { "tlbsx", XRC(31,914,0), X_MASK, PPC403, { RT, RA, RB } },
4253 { "tlbsx.", XRC(31,914,1), X_MASK, BOOKE, { RA, RB } },
4254 { "tlbsx.", XRC(31,914,1), X_MASK, PPC403, { RT, RA, RB } },
4255 { "tlbsxe", XRC(31,915,0), X_MASK, BOOKE64, { RA, RB } },
4256 { "tlbsxe.", XRC(31,915,1), X_MASK, BOOKE64, { RA, RB } },
4258 { "slbmfee", X(31,915), XRA_MASK, PPC64, { RT, RB } },
4260 { "sthbrx", X(31,918), X_MASK, COM, { RS, RA0, RB } },
4262 { "sraq", XRC(31,920,0), X_MASK, M601, { RA, RS, RB } },
4263 { "sraq.", XRC(31,920,1), X_MASK, M601, { RA, RS, RB } },
4265 { "srea", XRC(31,921,0), X_MASK, M601, { RA, RS, RB } },
4266 { "srea.", XRC(31,921,1), X_MASK, M601, { RA, RS, RB } },
4268 { "extsh", XRC(31,922,0), XRB_MASK, PPCCOM, { RA, RS } },
4269 { "exts", XRC(31,922,0), XRB_MASK, PWRCOM, { RA, RS } },
4270 { "extsh.", XRC(31,922,1), XRB_MASK, PPCCOM, { RA, RS } },
4271 { "exts.", XRC(31,922,1), XRB_MASK, PWRCOM, { RA, RS } },
4273 { "sthbrxe", X(31,926), X_MASK, BOOKE64, { RS, RA0, RB } },
4275 { "stdxe", X(31,927), X_MASK, BOOKE64, { RS, RA0, RB } },
4277 { "tlbrehi", XTLB(31,946,0), XTLB_MASK, PPC403, { RT, RA } },
4278 { "tlbrelo", XTLB(31,946,1), XTLB_MASK, PPC403, { RT, RA } },
4279 { "tlbre", X(31,946), X_MASK, BOOKE, { 0 } },
4280 { "tlbre", X(31,946), X_MASK, PPC403, { RS, RA, SH } },
4282 { "sraiq", XRC(31,952,0), X_MASK, M601, { RA, RS, SH } },
4283 { "sraiq.", XRC(31,952,1), X_MASK, M601, { RA, RS, SH } },
4285 { "extsb", XRC(31,954,0), XRB_MASK, PPC, { RA, RS} },
4286 { "extsb.", XRC(31,954,1), XRB_MASK, PPC, { RA, RS} },
4288 { "stduxe", X(31,959), X_MASK, BOOKE64, { RS, RAS, RB } },
4290 { "iccci", X(31,966), XRT_MASK, PPC403|PPC440, { RA, RB } },
4292 { "tlbwehi", XTLB(31,978,0), XTLB_MASK, PPC403, { RT, RA } },
4293 { "tlbwelo", XTLB(31,978,1), XTLB_MASK, PPC403, { RT, RA } },
4294 { "tlbwe", X(31,978), X_MASK, PPC403|BOOKE, { RSO, RAOPT, SHO } },
4295 { "tlbld", X(31,978), XRTRA_MASK, PPC, { RB } },
4297 { "icbi", X(31,982), XRT_MASK, PPC, { RA, RB } },
4299 { "stfiwx", X(31,983), X_MASK, PPC, { FRS, RA0, RB } },
4301 { "extsw", XRC(31,986,0), XRB_MASK, PPC64 | BOOKE64,{ RA, RS } },
4302 { "extsw.", XRC(31,986,1), XRB_MASK, PPC64, { RA, RS } },
4304 { "icread", X(31,998), XRT_MASK, PPC403|PPC440, { RA, RB } },
4306 { "icbie", X(31,990), XRT_MASK, BOOKE64, { RA, RB } },
4307 { "stfiwxe", X(31,991), X_MASK, BOOKE64, { FRS, RA0, RB } },
4309 { "tlbli", X(31,1010), XRTRA_MASK, PPC, { RB } },
4311 { "dcbzl", XOPL(31,1014,1), XRT_MASK,POWER4, { RA, RB } },
4312 { "dcbz", X(31,1014), XRT_MASK, PPC, { RA, RB } },
4313 { "dclz", X(31,1014), XRT_MASK, PPC, { RA, RB } },
4315 { "dcbze", X(31,1022), XRT_MASK, BOOKE64, { RA, RB } },
4317 { "lvebx", X(31, 7), X_MASK, PPCVEC, { VD, RA, RB } },
4318 { "lvehx", X(31, 39), X_MASK, PPCVEC, { VD, RA, RB } },
4319 { "lvewx", X(31, 71), X_MASK, PPCVEC, { VD, RA, RB } },
4320 { "lvsl", X(31, 6), X_MASK, PPCVEC, { VD, RA, RB } },
4321 { "lvsr", X(31, 38), X_MASK, PPCVEC, { VD, RA, RB } },
4322 { "lvx", X(31, 103), X_MASK, PPCVEC, { VD, RA, RB } },
4323 { "lvxl", X(31, 359), X_MASK, PPCVEC, { VD, RA, RB } },
4324 { "stvebx", X(31, 135), X_MASK, PPCVEC, { VS, RA, RB } },
4325 { "stvehx", X(31, 167), X_MASK, PPCVEC, { VS, RA, RB } },
4326 { "stvewx", X(31, 199), X_MASK, PPCVEC, { VS, RA, RB } },
4327 { "stvx", X(31, 231), X_MASK, PPCVEC, { VS, RA, RB } },
4328 { "stvxl", X(31, 487), X_MASK, PPCVEC, { VS, RA, RB } },
4330 { "lwz", OP(32), OP_MASK, PPCCOM, { RT, D, RA0 } },
4331 { "l", OP(32), OP_MASK, PWRCOM, { RT, D, RA0 } },
4333 { "lwzu", OP(33), OP_MASK, PPCCOM, { RT, D, RAL } },
4334 { "lu", OP(33), OP_MASK, PWRCOM, { RT, D, RA0 } },
4336 { "lbz", OP(34), OP_MASK, COM, { RT, D, RA0 } },
4338 { "lbzu", OP(35), OP_MASK, COM, { RT, D, RAL } },
4340 { "stw", OP(36), OP_MASK, PPCCOM, { RS, D, RA0 } },
4341 { "st", OP(36), OP_MASK, PWRCOM, { RS, D, RA0 } },
4343 { "stwu", OP(37), OP_MASK, PPCCOM, { RS, D, RAS } },
4344 { "stu", OP(37), OP_MASK, PWRCOM, { RS, D, RA0 } },
4346 { "stb", OP(38), OP_MASK, COM, { RS, D, RA0 } },
4348 { "stbu", OP(39), OP_MASK, COM, { RS, D, RAS } },
4350 { "lhz", OP(40), OP_MASK, COM, { RT, D, RA0 } },
4352 { "lhzu", OP(41), OP_MASK, COM, { RT, D, RAL } },
4354 { "lha", OP(42), OP_MASK, COM, { RT, D, RA0 } },
4356 { "lhau", OP(43), OP_MASK, COM, { RT, D, RAL } },
4358 { "sth", OP(44), OP_MASK, COM, { RS, D, RA0 } },
4360 { "sthu", OP(45), OP_MASK, COM, { RS, D, RAS } },
4362 { "lmw", OP(46), OP_MASK, PPCCOM, { RT, D, RAM } },
4363 { "lm", OP(46), OP_MASK, PWRCOM, { RT, D, RA0 } },
4365 { "stmw", OP(47), OP_MASK, PPCCOM, { RS, D, RA0 } },
4366 { "stm", OP(47), OP_MASK, PWRCOM, { RS, D, RA0 } },
4368 { "lfs", OP(48), OP_MASK, COM, { FRT, D, RA0 } },
4370 { "lfsu", OP(49), OP_MASK, COM, { FRT, D, RAS } },
4372 { "lfd", OP(50), OP_MASK, COM, { FRT, D, RA0 } },
4374 { "lfdu", OP(51), OP_MASK, COM, { FRT, D, RAS } },
4376 { "stfs", OP(52), OP_MASK, COM, { FRS, D, RA0 } },
4378 { "stfsu", OP(53), OP_MASK, COM, { FRS, D, RAS } },
4380 { "stfd", OP(54), OP_MASK, COM, { FRS, D, RA0 } },
4382 { "stfdu", OP(55), OP_MASK, COM, { FRS, D, RAS } },
4384 { "lq", OP(56), OP_MASK, POWER4, { RTQ, DQ, RAQ } },
4386 { "lfq", OP(56), OP_MASK, POWER2, { FRT, D, RA0 } },
4388 { "lfqu", OP(57), OP_MASK, POWER2, { FRT, D, RA0 } },
4390 { "lbze", DEO(58,0), DE_MASK, BOOKE64, { RT, DE, RA0 } },
4391 { "lbzue", DEO(58,1), DE_MASK, BOOKE64, { RT, DE, RAL } },
4392 { "lhze", DEO(58,2), DE_MASK, BOOKE64, { RT, DE, RA0 } },
4393 { "lhzue", DEO(58,3), DE_MASK, BOOKE64, { RT, DE, RAL } },
4394 { "lhae", DEO(58,4), DE_MASK, BOOKE64, { RT, DE, RA0 } },
4395 { "lhaue", DEO(58,5), DE_MASK, BOOKE64, { RT, DE, RAL } },
4396 { "lwze", DEO(58,6), DE_MASK, BOOKE64, { RT, DE, RA0 } },
4397 { "lwzue", DEO(58,7), DE_MASK, BOOKE64, { RT, DE, RAL } },
4398 { "stbe", DEO(58,8), DE_MASK, BOOKE64, { RS, DE, RA0 } },
4399 { "stbue", DEO(58,9), DE_MASK, BOOKE64, { RS, DE, RAS } },
4400 { "sthe", DEO(58,10), DE_MASK, BOOKE64, { RS, DE, RA0 } },
4401 { "sthue", DEO(58,11), DE_MASK, BOOKE64, { RS, DE, RAS } },
4402 { "stwe", DEO(58,14), DE_MASK, BOOKE64, { RS, DE, RA0 } },
4403 { "stwue", DEO(58,15), DE_MASK, BOOKE64, { RS, DE, RAS } },
4405 { "ld", DSO(58,0), DS_MASK, PPC64, { RT, DS, RA0 } },
4407 { "ldu", DSO(58,1), DS_MASK, PPC64, { RT, DS, RAL } },
4409 { "lwa", DSO(58,2), DS_MASK, PPC64, { RT, DS, RA0 } },
4411 { "fdivs", A(59,18,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4412 { "fdivs.", A(59,18,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4414 { "fsubs", A(59,20,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4415 { "fsubs.", A(59,20,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4417 { "fadds", A(59,21,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4418 { "fadds.", A(59,21,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
4420 { "fsqrts", A(59,22,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
4421 { "fsqrts.", A(59,22,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
4423 { "fres", A(59,24,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
4424 { "fres.", A(59,24,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
4426 { "fmuls", A(59,25,0), AFRB_MASK, PPC, { FRT, FRA, FRC } },
4427 { "fmuls.", A(59,25,1), AFRB_MASK, PPC, { FRT, FRA, FRC } },
4429 { "fmsubs", A(59,28,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4430 { "fmsubs.", A(59,28,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4432 { "fmadds", A(59,29,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4433 { "fmadds.", A(59,29,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4435 { "fnmsubs", A(59,30,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4436 { "fnmsubs.",A(59,30,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4438 { "fnmadds", A(59,31,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4439 { "fnmadds.",A(59,31,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4441 { "stfq", OP(60), OP_MASK, POWER2, { FRS, D, RA } },
4443 { "stfqu", OP(61), OP_MASK, POWER2, { FRS, D, RA } },
4445 { "lde", DEO(62,0), DE_MASK, BOOKE64, { RT, DES, RA0 } },
4446 { "ldue", DEO(62,1), DE_MASK, BOOKE64, { RT, DES, RA0 } },
4447 { "lfse", DEO(62,4), DE_MASK, BOOKE64, { FRT, DES, RA0 } },
4448 { "lfsue", DEO(62,5), DE_MASK, BOOKE64, { FRT, DES, RAS } },
4449 { "lfde", DEO(62,6), DE_MASK, BOOKE64, { FRT, DES, RA0 } },
4450 { "lfdue", DEO(62,7), DE_MASK, BOOKE64, { FRT, DES, RAS } },
4451 { "stde", DEO(62,8), DE_MASK, BOOKE64, { RS, DES, RA0 } },
4452 { "stdue", DEO(62,9), DE_MASK, BOOKE64, { RS, DES, RAS } },
4453 { "stfse", DEO(62,12), DE_MASK, BOOKE64, { FRS, DES, RA0 } },
4454 { "stfsue", DEO(62,13), DE_MASK, BOOKE64, { FRS, DES, RAS } },
4455 { "stfde", DEO(62,14), DE_MASK, BOOKE64, { FRS, DES, RA0 } },
4456 { "stfdue", DEO(62,15), DE_MASK, BOOKE64, { FRS, DES, RAS } },
4458 { "std", DSO(62,0), DS_MASK, PPC64, { RS, DS, RA0 } },
4460 { "stdu", DSO(62,1), DS_MASK, PPC64, { RS, DS, RAS } },
4462 { "stq", DSO(62,2), DS_MASK, POWER4, { RSQ, DS, RA0 } },
4464 { "fcmpu", X(63,0), X_MASK|(3<<21), COM, { BF, FRA, FRB } },
4466 { "frsp", XRC(63,12,0), XRA_MASK, COM, { FRT, FRB } },
4467 { "frsp.", XRC(63,12,1), XRA_MASK, COM, { FRT, FRB } },
4469 { "fctiw", XRC(63,14,0), XRA_MASK, PPCCOM, { FRT, FRB } },
4470 { "fcir", XRC(63,14,0), XRA_MASK, POWER2, { FRT, FRB } },
4471 { "fctiw.", XRC(63,14,1), XRA_MASK, PPCCOM, { FRT, FRB } },
4472 { "fcir.", XRC(63,14,1), XRA_MASK, POWER2, { FRT, FRB } },
4474 { "fctiwz", XRC(63,15,0), XRA_MASK, PPCCOM, { FRT, FRB } },
4475 { "fcirz", XRC(63,15,0), XRA_MASK, POWER2, { FRT, FRB } },
4476 { "fctiwz.", XRC(63,15,1), XRA_MASK, PPCCOM, { FRT, FRB } },
4477 { "fcirz.", XRC(63,15,1), XRA_MASK, POWER2, { FRT, FRB } },
4479 { "fdiv", A(63,18,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4480 { "fd", A(63,18,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4481 { "fdiv.", A(63,18,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4482 { "fd.", A(63,18,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4484 { "fsub", A(63,20,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4485 { "fs", A(63,20,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4486 { "fsub.", A(63,20,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4487 { "fs.", A(63,20,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4489 { "fadd", A(63,21,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4490 { "fa", A(63,21,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4491 { "fadd.", A(63,21,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
4492 { "fa.", A(63,21,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
4494 { "fsqrt", A(63,22,0), AFRAFRC_MASK, PPCPWR2, { FRT, FRB } },
4495 { "fsqrt.", A(63,22,1), AFRAFRC_MASK, PPCPWR2, { FRT, FRB } },
4497 { "fsel", A(63,23,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4498 { "fsel.", A(63,23,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
4500 { "fmul", A(63,25,0), AFRB_MASK, PPCCOM, { FRT, FRA, FRC } },
4501 { "fm", A(63,25,0), AFRB_MASK, PWRCOM, { FRT, FRA, FRC } },
4502 { "fmul.", A(63,25,1), AFRB_MASK, PPCCOM, { FRT, FRA, FRC } },
4503 { "fm.", A(63,25,1), AFRB_MASK, PWRCOM, { FRT, FRA, FRC } },
4505 { "frsqrte", A(63,26,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
4506 { "frsqrte.",A(63,26,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
4508 { "fmsub", A(63,28,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4509 { "fms", A(63,28,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4510 { "fmsub.", A(63,28,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4511 { "fms.", A(63,28,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4513 { "fmadd", A(63,29,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4514 { "fma", A(63,29,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4515 { "fmadd.", A(63,29,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4516 { "fma.", A(63,29,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4518 { "fnmsub", A(63,30,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4519 { "fnms", A(63,30,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4520 { "fnmsub.", A(63,30,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4521 { "fnms.", A(63,30,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4523 { "fnmadd", A(63,31,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4524 { "fnma", A(63,31,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4525 { "fnmadd.", A(63,31,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
4526 { "fnma.", A(63,31,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
4528 { "fcmpo", X(63,32), X_MASK|(3<<21), COM, { BF, FRA, FRB } },
4530 { "mtfsb1", XRC(63,38,0), XRARB_MASK, COM, { BT } },
4531 { "mtfsb1.", XRC(63,38,1), XRARB_MASK, COM, { BT } },
4533 { "fneg", XRC(63,40,0), XRA_MASK, COM, { FRT, FRB } },
4534 { "fneg.", XRC(63,40,1), XRA_MASK, COM, { FRT, FRB } },
4536 { "mcrfs", X(63,64), XRB_MASK|(3<<21)|(3<<16), COM, { BF, BFA } },
4538 { "mtfsb0", XRC(63,70,0), XRARB_MASK, COM, { BT } },
4539 { "mtfsb0.", XRC(63,70,1), XRARB_MASK, COM, { BT } },
4541 { "fmr", XRC(63,72,0), XRA_MASK, COM, { FRT, FRB } },
4542 { "fmr.", XRC(63,72,1), XRA_MASK, COM, { FRT, FRB } },
4544 { "mtfsfi", XRC(63,134,0), XRA_MASK|(3<<21)|(1<<11), COM, { BF, U } },
4545 { "mtfsfi.", XRC(63,134,1), XRA_MASK|(3<<21)|(1<<11), COM, { BF, U } },
4547 { "fnabs", XRC(63,136,0), XRA_MASK, COM, { FRT, FRB } },
4548 { "fnabs.", XRC(63,136,1), XRA_MASK, COM, { FRT, FRB } },
4550 { "fabs", XRC(63,264,0), XRA_MASK, COM, { FRT, FRB } },
4551 { "fabs.", XRC(63,264,1), XRA_MASK, COM, { FRT, FRB } },
4553 { "mffs", XRC(63,583,0), XRARB_MASK, COM, { FRT } },
4554 { "mffs.", XRC(63,583,1), XRARB_MASK, COM, { FRT } },
4556 { "mtfsf", XFL(63,711,0), XFL_MASK, COM, { FLM, FRB } },
4557 { "mtfsf.", XFL(63,711,1), XFL_MASK, COM, { FLM, FRB } },
4559 { "fctid", XRC(63,814,0), XRA_MASK, PPC64, { FRT, FRB } },
4560 { "fctid.", XRC(63,814,1), XRA_MASK, PPC64, { FRT, FRB } },
4562 { "fctidz", XRC(63,815,0), XRA_MASK, PPC64, { FRT, FRB } },
4563 { "fctidz.", XRC(63,815,1), XRA_MASK, PPC64, { FRT, FRB } },
4565 { "fcfid", XRC(63,846,0), XRA_MASK, PPC64, { FRT, FRB } },
4566 { "fcfid.", XRC(63,846,1), XRA_MASK, PPC64, { FRT, FRB } },
4570 const int powerpc_num_opcodes =
4571 sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]);
4573 /* The macro table. This is only used by the assembler. */
4575 /* The expressions of the form (-x ! 31) & (x | 31) have the value 0
4576 when x=0; 32-x when x is between 1 and 31; are negative if x is
4577 negative; and are 32 or more otherwise. This is what you want
4578 when, for instance, you are emulating a right shift by a
4579 rotate-left-and-mask, because the underlying instructions support
4580 shifts of size 0 but not shifts of size 32. By comparison, when
4581 extracting x bits from some word you want to use just 32-x, because
4582 the underlying instructions don't support extracting 0 bits but do
4583 support extracting the whole word (32 bits in this case). */
4585 const struct powerpc_macro powerpc_macros[] = {
4586 { "extldi", 4, PPC64, "rldicr %0,%1,%3,(%2)-1" },
4587 { "extldi.", 4, PPC64, "rldicr. %0,%1,%3,(%2)-1" },
4588 { "extrdi", 4, PPC64, "rldicl %0,%1,(%2)+(%3),64-(%2)" },
4589 { "extrdi.", 4, PPC64, "rldicl. %0,%1,(%2)+(%3),64-(%2)" },
4590 { "insrdi", 4, PPC64, "rldimi %0,%1,64-((%2)+(%3)),%3" },
4591 { "insrdi.", 4, PPC64, "rldimi. %0,%1,64-((%2)+(%3)),%3" },
4592 { "rotrdi", 3, PPC64, "rldicl %0,%1,(-(%2)!63)&((%2)|63),0" },
4593 { "rotrdi.", 3, PPC64, "rldicl. %0,%1,(-(%2)!63)&((%2)|63),0" },
4594 { "sldi", 3, PPC64, "rldicr %0,%1,%2,63-(%2)" },
4595 { "sldi.", 3, PPC64, "rldicr. %0,%1,%2,63-(%2)" },
4596 { "srdi", 3, PPC64, "rldicl %0,%1,(-(%2)!63)&((%2)|63),%2" },
4597 { "srdi.", 3, PPC64, "rldicl. %0,%1,(-(%2)!63)&((%2)|63),%2" },
4598 { "clrrdi", 3, PPC64, "rldicr %0,%1,0,63-(%2)" },
4599 { "clrrdi.", 3, PPC64, "rldicr. %0,%1,0,63-(%2)" },
4600 { "clrlsldi",4, PPC64, "rldic %0,%1,%3,(%2)-(%3)" },
4601 { "clrlsldi.",4, PPC64, "rldic. %0,%1,%3,(%2)-(%3)" },
4603 { "extlwi", 4, PPCCOM, "rlwinm %0,%1,%3,0,(%2)-1" },
4604 { "extlwi.", 4, PPCCOM, "rlwinm. %0,%1,%3,0,(%2)-1" },
4605 { "extrwi", 4, PPCCOM, "rlwinm %0,%1,((%2)+(%3))&((%2)+(%3)<>32),32-(%2),31" },
4606 { "extrwi.", 4, PPCCOM, "rlwinm. %0,%1,((%2)+(%3))&((%2)+(%3)<>32),32-(%2),31" },
4607 { "inslwi", 4, PPCCOM, "rlwimi %0,%1,(-(%3)!31)&((%3)|31),%3,(%2)+(%3)-1" },
4608 { "inslwi.", 4, PPCCOM, "rlwimi. %0,%1,(-(%3)!31)&((%3)|31),%3,(%2)+(%3)-1"},
4609 { "insrwi", 4, PPCCOM, "rlwimi %0,%1,32-((%2)+(%3)),%3,(%2)+(%3)-1" },
4610 { "insrwi.", 4, PPCCOM, "rlwimi. %0,%1,32-((%2)+(%3)),%3,(%2)+(%3)-1"},
4611 { "rotrwi", 3, PPCCOM, "rlwinm %0,%1,(-(%2)!31)&((%2)|31),0,31" },
4612 { "rotrwi.", 3, PPCCOM, "rlwinm. %0,%1,(-(%2)!31)&((%2)|31),0,31" },
4613 { "slwi", 3, PPCCOM, "rlwinm %0,%1,%2,0,31-(%2)" },
4614 { "sli", 3, PWRCOM, "rlinm %0,%1,%2,0,31-(%2)" },
4615 { "slwi.", 3, PPCCOM, "rlwinm. %0,%1,%2,0,31-(%2)" },
4616 { "sli.", 3, PWRCOM, "rlinm. %0,%1,%2,0,31-(%2)" },
4617 { "srwi", 3, PPCCOM, "rlwinm %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
4618 { "sri", 3, PWRCOM, "rlinm %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
4619 { "srwi.", 3, PPCCOM, "rlwinm. %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
4620 { "sri.", 3, PWRCOM, "rlinm. %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
4621 { "clrrwi", 3, PPCCOM, "rlwinm %0,%1,0,0,31-(%2)" },
4622 { "clrrwi.", 3, PPCCOM, "rlwinm. %0,%1,0,0,31-(%2)" },
4623 { "clrlslwi",4, PPCCOM, "rlwinm %0,%1,%3,(%2)-(%3),31-(%3)" },
4624 { "clrlslwi.",4, PPCCOM, "rlwinm. %0,%1,%3,(%2)-(%3),31-(%3)" },
4627 const int powerpc_num_macros =
4628 sizeof (powerpc_macros) / sizeof (powerpc_macros[0]);