*** empty log message ***
[deliverable/binutils-gdb.git] / opcodes / ppc-opc.c
CommitLineData
252b5132 1/* ppc-opc.c -- PowerPC opcode list
060d22b0
NC
2 Copyright 1994, 1995, 1996, 1997, 1998, 2000
3 Free Software Foundation, Inc.
252b5132
RH
4 Written by Ian Lance Taylor, Cygnus Support
5
6This file is part of GDB, GAS, and the GNU binutils.
7
8GDB, GAS, and the GNU binutils are free software; you can redistribute
9them and/or modify them under the terms of the GNU General Public
10License as published by the Free Software Foundation; either version
112, or (at your option) any later version.
12
13GDB, GAS, and the GNU binutils are distributed in the hope that they
14will be useful, but WITHOUT ANY WARRANTY; without even the implied
15warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
16the GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this file; see the file COPYING. If not, write to the Free
20Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2102111-1307, USA. */
22
23#include <stdio.h>
0d8dfecf 24#include "sysdep.h"
252b5132
RH
25#include "opcode/ppc.h"
26#include "opintl.h"
0f1bac05 27#include "bfd.h"
252b5132
RH
28
29/* This file holds the PowerPC opcode table. The opcode table
30 includes almost all of the extended instruction mnemonics. This
31 permits the disassembler to use them, and simplifies the assembler
32 logic, at the cost of increasing the table size. The table is
33 strictly constant data, so the compiler should be able to put it in
34 the .text section.
35
36 This file also holds the operand table. All knowledge about
37 inserting operands into instructions and vice-versa is kept in this
38 file. */
39\f
40/* Local insertion and extraction functions. */
41
42static unsigned long insert_bat PARAMS ((unsigned long, long, const char **));
43static long extract_bat PARAMS ((unsigned long, int *));
44static unsigned long insert_bba PARAMS ((unsigned long, long, const char **));
45static long extract_bba PARAMS ((unsigned long, int *));
46static unsigned long insert_bd PARAMS ((unsigned long, long, const char **));
47static long extract_bd PARAMS ((unsigned long, int *));
48static unsigned long insert_bdm PARAMS ((unsigned long, long, const char **));
49static long extract_bdm PARAMS ((unsigned long, int *));
50static unsigned long insert_bdp PARAMS ((unsigned long, long, const char **));
51static long extract_bdp PARAMS ((unsigned long, int *));
52static int valid_bo PARAMS ((long));
53static unsigned long insert_bo PARAMS ((unsigned long, long, const char **));
54static long extract_bo PARAMS ((unsigned long, int *));
55static unsigned long insert_boe PARAMS ((unsigned long, long, const char **));
56static long extract_boe PARAMS ((unsigned long, int *));
57static unsigned long insert_ds PARAMS ((unsigned long, long, const char **));
58static long extract_ds PARAMS ((unsigned long, int *));
59static unsigned long insert_li PARAMS ((unsigned long, long, const char **));
60static long extract_li PARAMS ((unsigned long, int *));
61static unsigned long insert_mbe PARAMS ((unsigned long, long, const char **));
62static long extract_mbe PARAMS ((unsigned long, int *));
63static unsigned long insert_mb6 PARAMS ((unsigned long, long, const char **));
64static long extract_mb6 PARAMS ((unsigned long, int *));
65static unsigned long insert_nb PARAMS ((unsigned long, long, const char **));
66static long extract_nb PARAMS ((unsigned long, int *));
67static unsigned long insert_nsi PARAMS ((unsigned long, long, const char **));
68static long extract_nsi PARAMS ((unsigned long, int *));
69static unsigned long insert_ral PARAMS ((unsigned long, long, const char **));
70static unsigned long insert_ram PARAMS ((unsigned long, long, const char **));
71static unsigned long insert_ras PARAMS ((unsigned long, long, const char **));
72static unsigned long insert_rbs PARAMS ((unsigned long, long, const char **));
73static long extract_rbs PARAMS ((unsigned long, int *));
74static unsigned long insert_sh6 PARAMS ((unsigned long, long, const char **));
75static long extract_sh6 PARAMS ((unsigned long, int *));
76static unsigned long insert_spr PARAMS ((unsigned long, long, const char **));
77static long extract_spr PARAMS ((unsigned long, int *));
78static unsigned long insert_tbr PARAMS ((unsigned long, long, const char **));
79static long extract_tbr PARAMS ((unsigned long, int *));
80\f
81/* The operands table.
82
83 The fields are bits, shift, insert, extract, flags.
84
85 We used to put parens around the various additions, like the one
86 for BA just below. However, that caused trouble with feeble
87 compilers with a limit on depth of a parenthesized expression, like
88 (reportedly) the compiler in Microsoft Developer Studio 5. So we
89 omit the parens, since the macros are never used in a context where
90 the addition will be ambiguous. */
91
92const struct powerpc_operand powerpc_operands[] =
93{
94 /* The zero index is used to indicate the end of the list of
95 operands. */
96#define UNUSED 0
0f1bac05 97 { 0, 0, 0, 0, 0, 0},
252b5132
RH
98
99 /* The BA field in an XL form instruction. */
100#define BA UNUSED + 1
101#define BA_MASK (0x1f << 16)
0f1bac05 102 { 5, 16, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
103
104 /* The BA field in an XL form instruction when it must be the same
105 as the BT field in the same instruction. */
106#define BAT BA + 1
0f1bac05 107 { 5, 16, insert_bat, extract_bat, PPC_OPERAND_FAKE, 0 },
252b5132
RH
108
109 /* The BB field in an XL form instruction. */
110#define BB BAT + 1
111#define BB_MASK (0x1f << 11)
0f1bac05 112 { 5, 11, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
113
114 /* The BB field in an XL form instruction when it must be the same
115 as the BA field in the same instruction. */
116#define BBA BB + 1
0f1bac05 117 { 5, 11, insert_bba, extract_bba, PPC_OPERAND_FAKE, 0 },
252b5132
RH
118
119 /* The BD field in a B form instruction. The lower two bits are
120 forced to zero. */
121#define BD BBA + 1
0f1bac05
AM
122 { 16, 0, insert_bd, extract_bd, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED,
123 BFD_RELOC_PPC_B16 },
252b5132
RH
124
125 /* The BD field in a B form instruction when absolute addressing is
126 used. */
127#define BDA BD + 1
0f1bac05
AM
128 { 16, 0, insert_bd, extract_bd, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED,
129 BFD_RELOC_PPC_BA16 },
252b5132
RH
130
131 /* The BD field in a B form instruction when the - modifier is used.
132 This sets the y bit of the BO field appropriately. */
133#define BDM BDA + 1
0f1bac05
AM
134 { 16, 0, insert_bdm, extract_bdm, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED,
135 BFD_RELOC_PPC_B16 },
252b5132
RH
136
137 /* The BD field in a B form instruction when the - modifier is used
138 and absolute address is used. */
139#define BDMA BDM + 1
0f1bac05
AM
140 { 16, 0, insert_bdm, extract_bdm, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED,
141 BFD_RELOC_PPC_BA16 },
252b5132
RH
142
143 /* The BD field in a B form instruction when the + modifier is used.
144 This sets the y bit of the BO field appropriately. */
145#define BDP BDMA + 1
0f1bac05
AM
146 { 16, 0, insert_bdp, extract_bdp, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED,
147 BFD_RELOC_PPC_B16 },
252b5132
RH
148
149 /* The BD field in a B form instruction when the + modifier is used
150 and absolute addressing is used. */
151#define BDPA BDP + 1
0f1bac05
AM
152 { 16, 0, insert_bdp, extract_bdp, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED,
153 BFD_RELOC_PPC_BA16 },
252b5132
RH
154
155 /* The BF field in an X or XL form instruction. */
156#define BF BDPA + 1
0f1bac05 157 { 3, 23, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
158
159 /* An optional BF field. This is used for comparison instructions,
160 in which an omitted BF field is taken as zero. */
161#define OBF BF + 1
0f1bac05 162 { 3, 23, 0, 0, PPC_OPERAND_CR | PPC_OPERAND_OPTIONAL, 0 },
252b5132
RH
163
164 /* The BFA field in an X or XL form instruction. */
165#define BFA OBF + 1
0f1bac05 166 { 3, 18, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
167
168 /* The BI field in a B form or XL form instruction. */
169#define BI BFA + 1
170#define BI_MASK (0x1f << 16)
0f1bac05 171 { 5, 16, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
172
173 /* The BO field in a B form instruction. Certain values are
174 illegal. */
175#define BO BI + 1
176#define BO_MASK (0x1f << 21)
0f1bac05 177 { 5, 21, insert_bo, extract_bo, 0, 0 },
252b5132
RH
178
179 /* The BO field in a B form instruction when the + or - modifier is
180 used. This is like the BO field, but it must be even. */
181#define BOE BO + 1
0f1bac05 182 { 5, 21, insert_boe, extract_boe, 0, 0 },
252b5132
RH
183
184 /* The BT field in an X or XL form instruction. */
185#define BT BOE + 1
0f1bac05 186 { 5, 21, 0, 0, PPC_OPERAND_CR, 0 },
252b5132
RH
187
188 /* The condition register number portion of the BI field in a B form
189 or XL form instruction. This is used for the extended
190 conditional branch mnemonics, which set the lower two bits of the
191 BI field. This field is optional. */
192#define CR BT + 1
0f1bac05 193 { 3, 18, 0, 0, PPC_OPERAND_CR | PPC_OPERAND_OPTIONAL, 0 },
252b5132
RH
194
195 /* The D field in a D form instruction. This is a displacement off
196 a register, and implies that the next operand is a register in
197 parentheses. */
198#define D CR + 1
0f1bac05
AM
199 { 16, 0, 0, 0, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED,
200 BFD_RELOC_PPC_TOC16 },
252b5132
RH
201
202 /* The DS field in a DS form instruction. This is like D, but the
203 lower two bits are forced to zero. */
204#define DS D + 1
0f1bac05
AM
205 { 16, 0, insert_ds, extract_ds, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED,
206 BFD_RELOC_PPC_TOC16 },
252b5132
RH
207
208 /* The E field in a wrteei instruction. */
209#define E DS + 1
0f1bac05 210 { 1, 15, 0, 0, 0, 0 },
252b5132
RH
211
212 /* The FL1 field in a POWER SC form instruction. */
213#define FL1 E + 1
0f1bac05 214 { 4, 12, 0, 0, 0, 0 },
252b5132
RH
215
216 /* The FL2 field in a POWER SC form instruction. */
217#define FL2 FL1 + 1
0f1bac05 218 { 3, 2, 0, 0, 0, 0 },
252b5132
RH
219
220 /* The FLM field in an XFL form instruction. */
221#define FLM FL2 + 1
0f1bac05 222 { 8, 17, 0, 0, 0, 0 },
252b5132
RH
223
224 /* The FRA field in an X or A form instruction. */
225#define FRA FLM + 1
226#define FRA_MASK (0x1f << 16)
0f1bac05 227 { 5, 16, 0, 0, PPC_OPERAND_FPR, 0 },
252b5132
RH
228
229 /* The FRB field in an X or A form instruction. */
230#define FRB FRA + 1
231#define FRB_MASK (0x1f << 11)
0f1bac05 232 { 5, 11, 0, 0, PPC_OPERAND_FPR, 0 },
252b5132
RH
233
234 /* The FRC field in an A form instruction. */
235#define FRC FRB + 1
236#define FRC_MASK (0x1f << 6)
0f1bac05 237 { 5, 6, 0, 0, PPC_OPERAND_FPR, 0 },
252b5132
RH
238
239 /* The FRS field in an X form instruction or the FRT field in a D, X
240 or A form instruction. */
241#define FRS FRC + 1
242#define FRT FRS
0f1bac05 243 { 5, 21, 0, 0, PPC_OPERAND_FPR, 0 },
252b5132
RH
244
245 /* The FXM field in an XFX instruction. */
246#define FXM FRS + 1
247#define FXM_MASK (0xff << 12)
0f1bac05 248 { 8, 12, 0, 0, 0, 0 },
252b5132
RH
249
250 /* The L field in a D or X form instruction. */
251#define L FXM + 1
0f1bac05 252 { 1, 21, 0, 0, PPC_OPERAND_OPTIONAL, 0 },
252b5132
RH
253
254 /* The LEV field in a POWER SC form instruction. */
255#define LEV L + 1
0f1bac05 256 { 7, 5, 0, 0, 0, 0 },
252b5132
RH
257
258 /* The LI field in an I form instruction. The lower two bits are
259 forced to zero. */
260#define LI LEV + 1
0f1bac05
AM
261 { 26, 0, insert_li, extract_li, PPC_OPERAND_RELATIVE | PPC_OPERAND_SIGNED,
262 BFD_RELOC_PPC_B26 },
252b5132
RH
263
264 /* The LI field in an I form instruction when used as an absolute
265 address. */
266#define LIA LI + 1
0f1bac05
AM
267 { 26, 0, insert_li, extract_li, PPC_OPERAND_ABSOLUTE | PPC_OPERAND_SIGNED,
268 BFD_RELOC_PPC_BA26 },
252b5132
RH
269
270 /* The MB field in an M form instruction. */
271#define MB LIA + 1
272#define MB_MASK (0x1f << 6)
0f1bac05 273 { 5, 6, 0, 0, 0, 0 },
252b5132
RH
274
275 /* The ME field in an M form instruction. */
276#define ME MB + 1
277#define ME_MASK (0x1f << 1)
0f1bac05 278 { 5, 1, 0, 0, 0, 0 },
252b5132
RH
279
280 /* The MB and ME fields in an M form instruction expressed a single
281 operand which is a bitmask indicating which bits to select. This
282 is a two operand form using PPC_OPERAND_NEXT. See the
283 description in opcode/ppc.h for what this means. */
284#define MBE ME + 1
0f1bac05
AM
285 { 5, 6, 0, 0, PPC_OPERAND_OPTIONAL | PPC_OPERAND_NEXT, 0 },
286 { 32, 0, insert_mbe, extract_mbe, 0, 0 },
252b5132
RH
287
288 /* The MB or ME field in an MD or MDS form instruction. The high
289 bit is wrapped to the low end. */
290#define MB6 MBE + 2
291#define ME6 MB6
292#define MB6_MASK (0x3f << 5)
0f1bac05 293 { 6, 5, insert_mb6, extract_mb6, 0, 0 },
252b5132
RH
294
295 /* The NB field in an X form instruction. The value 32 is stored as
296 0. */
297#define NB MB6 + 1
0f1bac05 298 { 6, 11, insert_nb, extract_nb, 0, 0 },
252b5132
RH
299
300 /* The NSI field in a D form instruction. This is the same as the
301 SI field, only negated. */
302#define NSI NB + 1
303 { 16, 0, insert_nsi, extract_nsi,
0f1bac05 304 PPC_OPERAND_NEGATIVE | PPC_OPERAND_SIGNED, 0 },
252b5132
RH
305
306 /* The RA field in an D, DS, X, XO, M, or MDS form instruction. */
307#define RA NSI + 1
308#define RA_MASK (0x1f << 16)
0f1bac05 309 { 5, 16, 0, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
310
311 /* The RA field in a D or X form instruction which is an updating
312 load, which means that the RA field may not be zero and may not
313 equal the RT field. */
314#define RAL RA + 1
0f1bac05 315 { 5, 16, insert_ral, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
316
317 /* The RA field in an lmw instruction, which has special value
318 restrictions. */
319#define RAM RAL + 1
0f1bac05 320 { 5, 16, insert_ram, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
321
322 /* The RA field in a D or X form instruction which is an updating
323 store or an updating floating point load, which means that the RA
324 field may not be zero. */
325#define RAS RAM + 1
0f1bac05 326 { 5, 16, insert_ras, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
327
328 /* The RB field in an X, XO, M, or MDS form instruction. */
329#define RB RAS + 1
330#define RB_MASK (0x1f << 11)
0f1bac05 331 { 5, 11, 0, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
332
333 /* The RB field in an X form instruction when it must be the same as
334 the RS field in the instruction. This is used for extended
335 mnemonics like mr. */
336#define RBS RB + 1
0f1bac05 337 { 5, 1, insert_rbs, extract_rbs, PPC_OPERAND_FAKE, 0 },
252b5132
RH
338
339 /* The RS field in a D, DS, X, XFX, XS, M, MD or MDS form
340 instruction or the RT field in a D, DS, X, XFX or XO form
341 instruction. */
342#define RS RBS + 1
343#define RT RS
344#define RT_MASK (0x1f << 21)
0f1bac05 345 { 5, 21, 0, 0, PPC_OPERAND_GPR, 0 },
252b5132
RH
346
347 /* The SH field in an X or M form instruction. */
348#define SH RS + 1
349#define SH_MASK (0x1f << 11)
0f1bac05 350 { 5, 11, 0, 0, 0, 0 },
252b5132
RH
351
352 /* The SH field in an MD form instruction. This is split. */
353#define SH6 SH + 1
354#define SH6_MASK ((0x1f << 11) | (1 << 1))
0f1bac05 355 { 6, 1, insert_sh6, extract_sh6, 0, 0 },
252b5132
RH
356
357 /* The SI field in a D form instruction. */
358#define SI SH6 + 1
0f1bac05 359 { 16, 0, 0, 0, PPC_OPERAND_SIGNED, 0 },
252b5132
RH
360
361 /* The SI field in a D form instruction when we accept a wide range
362 of positive values. */
363#define SISIGNOPT SI + 1
0f1bac05 364 { 16, 0, 0, 0, PPC_OPERAND_SIGNED | PPC_OPERAND_SIGNOPT, 0 },
252b5132
RH
365
366 /* The SPR field in an XFX form instruction. This is flipped--the
367 lower 5 bits are stored in the upper 5 and vice- versa. */
368#define SPR SISIGNOPT + 1
369#define SPR_MASK (0x3ff << 11)
0f1bac05 370 { 10, 11, insert_spr, extract_spr, 0, 0 },
252b5132
RH
371
372 /* The BAT index number in an XFX form m[ft]ibat[lu] instruction. */
373#define SPRBAT SPR + 1
374#define SPRBAT_MASK (0x3 << 17)
0f1bac05 375 { 2, 17, 0, 0, 0, 0 },
252b5132
RH
376
377 /* The SPRG register number in an XFX form m[ft]sprg instruction. */
378#define SPRG SPRBAT + 1
379#define SPRG_MASK (0x3 << 16)
0f1bac05 380 { 2, 16, 0, 0, 0, 0 },
252b5132
RH
381
382 /* The SR field in an X form instruction. */
383#define SR SPRG + 1
0f1bac05 384 { 4, 16, 0, 0, 0, 0 },
252b5132
RH
385
386 /* The SV field in a POWER SC form instruction. */
387#define SV SR + 1
0f1bac05 388 { 14, 2, 0, 0, 0, 0 },
252b5132
RH
389
390 /* The TBR field in an XFX form instruction. This is like the SPR
391 field, but it is optional. */
392#define TBR SV + 1
0f1bac05 393 { 10, 11, insert_tbr, extract_tbr, PPC_OPERAND_OPTIONAL, 0 },
252b5132
RH
394
395 /* The TO field in a D or X form instruction. */
396#define TO TBR + 1
397#define TO_MASK (0x1f << 21)
0f1bac05 398 { 5, 21, 0, 0, 0, 0 },
252b5132
RH
399
400 /* The U field in an X form instruction. */
401#define U TO + 1
0f1bac05 402 { 4, 12, 0, 0, 0, 0 },
252b5132
RH
403
404 /* The UI field in a D form instruction. */
405#define UI U + 1
0f1bac05 406 { 16, 0, 0, 0, 0, 0 },
786e2c0f
C
407
408 /* The VA field in a VA, VX or VXR form instruction. */
409#define VA UI + 1
410#define VA_MASK (0x1f << 16)
0f1bac05 411 {5, 16, 0, 0, PPC_OPERAND_VR, 0},
786e2c0f
C
412
413 /* The VB field in a VA, VX or VXR form instruction. */
414#define VB VA + 1
415#define VB_MASK (0x1f << 11)
0f1bac05 416 {5, 11, 0, 0, PPC_OPERAND_VR, 0},
786e2c0f
C
417
418 /* The VC field in a VA form instruction. */
419#define VC VB + 1
420#define VC_MASK (0x1f << 6)
0f1bac05 421 {5, 6, 0, 0, PPC_OPERAND_VR, 0},
786e2c0f
C
422
423 /* The VD or VS field in a VA, VX, VXR or X form instruction. */
424#define VD VC + 1
425#define VS VD
426#define VD_MASK (0x1f << 21)
0f1bac05 427 {5, 21, 0, 0, PPC_OPERAND_VR, 0},
786e2c0f
C
428
429 /* The SIMM field in a VX form instruction. */
430#define SIMM VD + 1
0f1bac05 431 { 5, 16, 0, 0, PPC_OPERAND_SIGNED, 0},
786e2c0f
C
432
433 /* The UIMM field in a VX form instruction. */
434#define UIMM SIMM + 1
0f1bac05 435 { 5, 16, 0, 0, 0, 0 },
786e2c0f
C
436
437 /* The SHB field in a VA form instruction. */
438#define SHB UIMM + 1
0f1bac05 439 { 4, 6, 0, 0, 0, 0 },
252b5132
RH
440};
441
442/* The functions used to insert and extract complicated operands. */
443
444/* The BA field in an XL form instruction when it must be the same as
445 the BT field in the same instruction. This operand is marked FAKE.
446 The insertion function just copies the BT field into the BA field,
447 and the extraction function just checks that the fields are the
448 same. */
449
450/*ARGSUSED*/
451static unsigned long
452insert_bat (insn, value, errmsg)
453 unsigned long insn;
9aaaa291
ILT
454 long value ATTRIBUTE_UNUSED;
455 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
456{
457 return insn | (((insn >> 21) & 0x1f) << 16);
458}
459
460static long
461extract_bat (insn, invalid)
462 unsigned long insn;
463 int *invalid;
464{
465 if (invalid != (int *) NULL
466 && ((insn >> 21) & 0x1f) != ((insn >> 16) & 0x1f))
467 *invalid = 1;
468 return 0;
469}
470
471/* The BB field in an XL form instruction when it must be the same as
472 the BA field in the same instruction. This operand is marked FAKE.
473 The insertion function just copies the BA field into the BB field,
474 and the extraction function just checks that the fields are the
475 same. */
476
477/*ARGSUSED*/
478static unsigned long
479insert_bba (insn, value, errmsg)
480 unsigned long insn;
9aaaa291
ILT
481 long value ATTRIBUTE_UNUSED;
482 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
483{
484 return insn | (((insn >> 16) & 0x1f) << 11);
485}
486
487static long
488extract_bba (insn, invalid)
489 unsigned long insn;
490 int *invalid;
491{
492 if (invalid != (int *) NULL
493 && ((insn >> 16) & 0x1f) != ((insn >> 11) & 0x1f))
494 *invalid = 1;
495 return 0;
496}
497
498/* The BD field in a B form instruction. The lower two bits are
499 forced to zero. */
500
501/*ARGSUSED*/
502static unsigned long
503insert_bd (insn, value, errmsg)
504 unsigned long insn;
505 long value;
9aaaa291 506 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
507{
508 return insn | (value & 0xfffc);
509}
510
511/*ARGSUSED*/
512static long
513extract_bd (insn, invalid)
514 unsigned long insn;
9aaaa291 515 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
516{
517 if ((insn & 0x8000) != 0)
518 return (insn & 0xfffc) - 0x10000;
519 else
520 return insn & 0xfffc;
521}
522
523/* The BD field in a B form instruction when the - modifier is used.
524 This modifier means that the branch is not expected to be taken.
525 We must set the y bit of the BO field to 1 if the offset is
526 negative. When extracting, we require that the y bit be 1 and that
527 the offset be positive, since if the y bit is 0 we just want to
528 print the normal form of the instruction. */
529
530/*ARGSUSED*/
531static unsigned long
532insert_bdm (insn, value, errmsg)
533 unsigned long insn;
534 long value;
9aaaa291 535 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
536{
537 if ((value & 0x8000) != 0)
538 insn |= 1 << 21;
539 return insn | (value & 0xfffc);
540}
541
542static long
543extract_bdm (insn, invalid)
544 unsigned long insn;
545 int *invalid;
546{
547 if (invalid != (int *) NULL
548 && ((insn & (1 << 21)) == 0
549 || (insn & (1 << 15)) == 0))
550 *invalid = 1;
551 if ((insn & 0x8000) != 0)
552 return (insn & 0xfffc) - 0x10000;
553 else
554 return insn & 0xfffc;
555}
556
557/* The BD field in a B form instruction when the + modifier is used.
558 This is like BDM, above, except that the branch is expected to be
559 taken. */
560
561/*ARGSUSED*/
562static unsigned long
563insert_bdp (insn, value, errmsg)
564 unsigned long insn;
565 long value;
9aaaa291 566 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
567{
568 if ((value & 0x8000) == 0)
569 insn |= 1 << 21;
570 return insn | (value & 0xfffc);
571}
572
573static long
574extract_bdp (insn, invalid)
575 unsigned long insn;
576 int *invalid;
577{
578 if (invalid != (int *) NULL
579 && ((insn & (1 << 21)) == 0
580 || (insn & (1 << 15)) != 0))
581 *invalid = 1;
582 if ((insn & 0x8000) != 0)
583 return (insn & 0xfffc) - 0x10000;
584 else
585 return insn & 0xfffc;
586}
587
588/* Check for legal values of a BO field. */
589
590static int
591valid_bo (value)
592 long value;
593{
594 /* Certain encodings have bits that are required to be zero. These
595 are (z must be zero, y may be anything):
596 001zy
597 011zy
598 1z00y
599 1z01y
600 1z1zz
601 */
602 switch (value & 0x14)
603 {
604 default:
605 case 0:
606 return 1;
607 case 0x4:
608 return (value & 0x2) == 0;
609 case 0x10:
610 return (value & 0x8) == 0;
611 case 0x14:
612 return value == 0x14;
613 }
614}
615
616/* The BO field in a B form instruction. Warn about attempts to set
617 the field to an illegal value. */
618
619static unsigned long
620insert_bo (insn, value, errmsg)
621 unsigned long insn;
622 long value;
623 const char **errmsg;
624{
625 if (errmsg != (const char **) NULL
626 && ! valid_bo (value))
627 *errmsg = _("invalid conditional option");
628 return insn | ((value & 0x1f) << 21);
629}
630
631static long
632extract_bo (insn, invalid)
633 unsigned long insn;
634 int *invalid;
635{
636 long value;
637
638 value = (insn >> 21) & 0x1f;
639 if (invalid != (int *) NULL
640 && ! valid_bo (value))
641 *invalid = 1;
642 return value;
643}
644
645/* The BO field in a B form instruction when the + or - modifier is
646 used. This is like the BO field, but it must be even. When
647 extracting it, we force it to be even. */
648
649static unsigned long
650insert_boe (insn, value, errmsg)
651 unsigned long insn;
652 long value;
653 const char **errmsg;
654{
655 if (errmsg != (const char **) NULL)
656 {
657 if (! valid_bo (value))
658 *errmsg = _("invalid conditional option");
659 else if ((value & 1) != 0)
660 *errmsg = _("attempt to set y bit when using + or - modifier");
661 }
662 return insn | ((value & 0x1f) << 21);
663}
664
665static long
666extract_boe (insn, invalid)
667 unsigned long insn;
668 int *invalid;
669{
670 long value;
671
672 value = (insn >> 21) & 0x1f;
673 if (invalid != (int *) NULL
674 && ! valid_bo (value))
675 *invalid = 1;
676 return value & 0x1e;
677}
678
679/* The DS field in a DS form instruction. This is like D, but the
680 lower two bits are forced to zero. */
681
682/*ARGSUSED*/
683static unsigned long
684insert_ds (insn, value, errmsg)
685 unsigned long insn;
686 long value;
9aaaa291 687 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
688{
689 return insn | (value & 0xfffc);
690}
691
692/*ARGSUSED*/
693static long
694extract_ds (insn, invalid)
695 unsigned long insn;
9aaaa291 696 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
697{
698 if ((insn & 0x8000) != 0)
699 return (insn & 0xfffc) - 0x10000;
700 else
701 return insn & 0xfffc;
702}
703
704/* The LI field in an I form instruction. The lower two bits are
705 forced to zero. */
706
707/*ARGSUSED*/
708static unsigned long
709insert_li (insn, value, errmsg)
710 unsigned long insn;
711 long value;
712 const char **errmsg;
713{
714 if ((value & 3) != 0 && errmsg != (const char **) NULL)
715 *errmsg = _("ignoring least significant bits in branch offset");
716 return insn | (value & 0x3fffffc);
717}
718
719/*ARGSUSED*/
720static long
721extract_li (insn, invalid)
722 unsigned long insn;
9aaaa291 723 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
724{
725 if ((insn & 0x2000000) != 0)
726 return (insn & 0x3fffffc) - 0x4000000;
727 else
728 return insn & 0x3fffffc;
729}
730
731/* The MB and ME fields in an M form instruction expressed as a single
732 operand which is itself a bitmask. The extraction function always
733 marks it as invalid, since we never want to recognize an
734 instruction which uses a field of this type. */
735
736static unsigned long
737insert_mbe (insn, value, errmsg)
738 unsigned long insn;
739 long value;
740 const char **errmsg;
741{
742 unsigned long uval, mask;
743 int mb, me, mx, count, last;
744
745 uval = value;
746
747 if (uval == 0)
748 {
749 if (errmsg != (const char **) NULL)
750 *errmsg = _("illegal bitmask");
751 return insn;
752 }
753
754 mb = 0;
755 me = 32;
756 if ((uval & 1) != 0)
757 last = 1;
758 else
759 last = 0;
760 count = 0;
761
762 /* mb: location of last 0->1 transition */
763 /* me: location of last 1->0 transition */
764 /* count: # transitions */
765
3eb9799d 766 for (mx = 0, mask = (long) 1 << 31; mx < 32; ++mx, mask >>= 1)
252b5132
RH
767 {
768 if ((uval & mask) && !last)
769 {
770 ++count;
771 mb = mx;
772 last = 1;
773 }
774 else if (!(uval & mask) && last)
775 {
776 ++count;
777 me = mx;
778 last = 0;
779 }
780 }
781 if (me == 0)
782 me = 32;
783
784 if (count != 2 && (count != 0 || ! last))
785 {
786 if (errmsg != (const char **) NULL)
787 *errmsg = _("illegal bitmask");
788 }
789
790 return insn | (mb << 6) | ((me - 1) << 1);
791}
792
793static long
794extract_mbe (insn, invalid)
795 unsigned long insn;
796 int *invalid;
797{
798 long ret;
799 int mb, me;
800 int i;
801
802 if (invalid != (int *) NULL)
803 *invalid = 1;
804
805 mb = (insn >> 6) & 0x1f;
806 me = (insn >> 1) & 0x1f;
807 if (mb < me + 1)
808 {
809 ret = 0;
810 for (i = mb; i <= me; i++)
811 ret |= (long) 1 << (31 - i);
812 }
813 else if (mb == me + 1)
814 ret = ~0;
815 else /* (mb > me + 1) */
816 {
817 ret = ~ (long) 0;
818 for (i = me + 1; i < mb; i++)
819 ret &= ~ ((long) 1 << (31 - i));
820 }
821 return ret;
822}
823
824/* The MB or ME field in an MD or MDS form instruction. The high bit
825 is wrapped to the low end. */
826
827/*ARGSUSED*/
828static unsigned long
829insert_mb6 (insn, value, errmsg)
830 unsigned long insn;
831 long value;
9aaaa291 832 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
833{
834 return insn | ((value & 0x1f) << 6) | (value & 0x20);
835}
836
837/*ARGSUSED*/
838static long
839extract_mb6 (insn, invalid)
840 unsigned long insn;
9aaaa291 841 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
842{
843 return ((insn >> 6) & 0x1f) | (insn & 0x20);
844}
845
846/* The NB field in an X form instruction. The value 32 is stored as
847 0. */
848
849static unsigned long
850insert_nb (insn, value, errmsg)
851 unsigned long insn;
852 long value;
853 const char **errmsg;
854{
855 if (value < 0 || value > 32)
856 *errmsg = _("value out of range");
857 if (value == 32)
858 value = 0;
859 return insn | ((value & 0x1f) << 11);
860}
861
862/*ARGSUSED*/
863static long
864extract_nb (insn, invalid)
865 unsigned long insn;
9aaaa291 866 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
867{
868 long ret;
869
870 ret = (insn >> 11) & 0x1f;
871 if (ret == 0)
872 ret = 32;
873 return ret;
874}
875
876/* The NSI field in a D form instruction. This is the same as the SI
877 field, only negated. The extraction function always marks it as
878 invalid, since we never want to recognize an instruction which uses
879 a field of this type. */
880
881/*ARGSUSED*/
882static unsigned long
883insert_nsi (insn, value, errmsg)
884 unsigned long insn;
885 long value;
9aaaa291 886 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
887{
888 return insn | ((- value) & 0xffff);
889}
890
891static long
892extract_nsi (insn, invalid)
893 unsigned long insn;
894 int *invalid;
895{
896 if (invalid != (int *) NULL)
897 *invalid = 1;
898 if ((insn & 0x8000) != 0)
899 return - ((long)(insn & 0xffff) - 0x10000);
900 else
901 return - (long)(insn & 0xffff);
902}
903
904/* The RA field in a D or X form instruction which is an updating
905 load, which means that the RA field may not be zero and may not
906 equal the RT field. */
907
908static unsigned long
909insert_ral (insn, value, errmsg)
910 unsigned long insn;
911 long value;
912 const char **errmsg;
913{
914 if (value == 0
915 || (unsigned long) value == ((insn >> 21) & 0x1f))
916 *errmsg = "invalid register operand when updating";
917 return insn | ((value & 0x1f) << 16);
918}
919
920/* The RA field in an lmw instruction, which has special value
921 restrictions. */
922
923static unsigned long
924insert_ram (insn, value, errmsg)
925 unsigned long insn;
926 long value;
927 const char **errmsg;
928{
929 if ((unsigned long) value >= ((insn >> 21) & 0x1f))
930 *errmsg = _("index register in load range");
931 return insn | ((value & 0x1f) << 16);
932}
933
934/* The RA field in a D or X form instruction which is an updating
935 store or an updating floating point load, which means that the RA
936 field may not be zero. */
937
938static unsigned long
939insert_ras (insn, value, errmsg)
940 unsigned long insn;
941 long value;
942 const char **errmsg;
943{
944 if (value == 0)
945 *errmsg = _("invalid register operand when updating");
946 return insn | ((value & 0x1f) << 16);
947}
948
949/* The RB field in an X form instruction when it must be the same as
950 the RS field in the instruction. This is used for extended
951 mnemonics like mr. This operand is marked FAKE. The insertion
952 function just copies the BT field into the BA field, and the
953 extraction function just checks that the fields are the same. */
954
955/*ARGSUSED*/
956static unsigned long
957insert_rbs (insn, value, errmsg)
958 unsigned long insn;
9aaaa291
ILT
959 long value ATTRIBUTE_UNUSED;
960 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
961{
962 return insn | (((insn >> 21) & 0x1f) << 11);
963}
964
965static long
966extract_rbs (insn, invalid)
967 unsigned long insn;
968 int *invalid;
969{
970 if (invalid != (int *) NULL
971 && ((insn >> 21) & 0x1f) != ((insn >> 11) & 0x1f))
972 *invalid = 1;
973 return 0;
974}
975
976/* The SH field in an MD form instruction. This is split. */
977
978/*ARGSUSED*/
979static unsigned long
980insert_sh6 (insn, value, errmsg)
981 unsigned long insn;
982 long value;
9aaaa291 983 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
984{
985 return insn | ((value & 0x1f) << 11) | ((value & 0x20) >> 4);
986}
987
988/*ARGSUSED*/
989static long
990extract_sh6 (insn, invalid)
991 unsigned long insn;
9aaaa291 992 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
993{
994 return ((insn >> 11) & 0x1f) | ((insn << 4) & 0x20);
995}
996
997/* The SPR field in an XFX form instruction. This is flipped--the
998 lower 5 bits are stored in the upper 5 and vice- versa. */
999
1000static unsigned long
1001insert_spr (insn, value, errmsg)
1002 unsigned long insn;
1003 long value;
9aaaa291 1004 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
1005{
1006 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6);
1007}
1008
1009static long
1010extract_spr (insn, invalid)
1011 unsigned long insn;
9aaaa291 1012 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
1013{
1014 return ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0);
1015}
1016
1017/* The TBR field in an XFX instruction. This is just like SPR, but it
1018 is optional. When TBR is omitted, it must be inserted as 268 (the
1019 magic number of the TB register). These functions treat 0
1020 (indicating an omitted optional operand) as 268. This means that
1021 ``mftb 4,0'' is not handled correctly. This does not matter very
1022 much, since the architecture manual does not define mftb as
1023 accepting any values other than 268 or 269. */
1024
1025#define TB (268)
1026
1027static unsigned long
1028insert_tbr (insn, value, errmsg)
1029 unsigned long insn;
1030 long value;
9aaaa291 1031 const char **errmsg ATTRIBUTE_UNUSED;
252b5132
RH
1032{
1033 if (value == 0)
1034 value = TB;
1035 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6);
1036}
1037
1038static long
1039extract_tbr (insn, invalid)
1040 unsigned long insn;
9aaaa291 1041 int *invalid ATTRIBUTE_UNUSED;
252b5132
RH
1042{
1043 long ret;
1044
1045 ret = ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0);
1046 if (ret == TB)
1047 ret = 0;
1048 return ret;
1049}
1050\f
1051/* Macros used to form opcodes. */
1052
1053/* The main opcode. */
1054#define OP(x) ((((unsigned long)(x)) & 0x3f) << 26)
1055#define OP_MASK OP (0x3f)
1056
1057/* The main opcode combined with a trap code in the TO field of a D
1058 form instruction. Used for extended mnemonics for the trap
1059 instructions. */
1060#define OPTO(x,to) (OP (x) | ((((unsigned long)(to)) & 0x1f) << 21))
1061#define OPTO_MASK (OP_MASK | TO_MASK)
1062
1063/* The main opcode combined with a comparison size bit in the L field
1064 of a D form or X form instruction. Used for extended mnemonics for
1065 the comparison instructions. */
1066#define OPL(x,l) (OP (x) | ((((unsigned long)(l)) & 1) << 21))
1067#define OPL_MASK OPL (0x3f,1)
1068
1069/* An A form instruction. */
1070#define A(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1) | (((unsigned long)(rc)) & 1))
1071#define A_MASK A (0x3f, 0x1f, 1)
1072
1073/* An A_MASK with the FRB field fixed. */
1074#define AFRB_MASK (A_MASK | FRB_MASK)
1075
1076/* An A_MASK with the FRC field fixed. */
1077#define AFRC_MASK (A_MASK | FRC_MASK)
1078
1079/* An A_MASK with the FRA and FRC fields fixed. */
1080#define AFRAFRC_MASK (A_MASK | FRA_MASK | FRC_MASK)
1081
1082/* A B form instruction. */
1083#define B(op, aa, lk) (OP (op) | ((((unsigned long)(aa)) & 1) << 1) | ((lk) & 1))
1084#define B_MASK B (0x3f, 1, 1)
1085
1086/* A B form instruction setting the BO field. */
1087#define BBO(op, bo, aa, lk) (B ((op), (aa), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
1088#define BBO_MASK BBO (0x3f, 0x1f, 1, 1)
1089
1090/* A BBO_MASK with the y bit of the BO field removed. This permits
1091 matching a conditional branch regardless of the setting of the y
1092 bit. */
1093#define Y_MASK (((unsigned long)1) << 21)
1094#define BBOY_MASK (BBO_MASK &~ Y_MASK)
1095
1096/* A B form instruction setting the BO field and the condition bits of
1097 the BI field. */
1098#define BBOCB(op, bo, cb, aa, lk) \
1099 (BBO ((op), (bo), (aa), (lk)) | ((((unsigned long)(cb)) & 0x3) << 16))
1100#define BBOCB_MASK BBOCB (0x3f, 0x1f, 0x3, 1, 1)
1101
1102/* A BBOCB_MASK with the y bit of the BO field removed. */
1103#define BBOYCB_MASK (BBOCB_MASK &~ Y_MASK)
1104
1105/* A BBOYCB_MASK in which the BI field is fixed. */
1106#define BBOYBI_MASK (BBOYCB_MASK | BI_MASK)
1107
1108/* The main opcode mask with the RA field clear. */
1109#define DRA_MASK (OP_MASK | RA_MASK)
1110
1111/* A DS form instruction. */
1112#define DSO(op, xop) (OP (op) | ((xop) & 0x3))
1113#define DS_MASK DSO (0x3f, 3)
1114
1115/* An M form instruction. */
1116#define M(op, rc) (OP (op) | ((rc) & 1))
1117#define M_MASK M (0x3f, 1)
1118
1119/* An M form instruction with the ME field specified. */
1120#define MME(op, me, rc) (M ((op), (rc)) | ((((unsigned long)(me)) & 0x1f) << 1))
1121
1122/* An M_MASK with the MB and ME fields fixed. */
1123#define MMBME_MASK (M_MASK | MB_MASK | ME_MASK)
1124
1125/* An M_MASK with the SH and ME fields fixed. */
1126#define MSHME_MASK (M_MASK | SH_MASK | ME_MASK)
1127
1128/* An MD form instruction. */
1129#define MD(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x7) << 2) | ((rc) & 1))
1130#define MD_MASK MD (0x3f, 0x7, 1)
1131
1132/* An MD_MASK with the MB field fixed. */
1133#define MDMB_MASK (MD_MASK | MB6_MASK)
1134
1135/* An MD_MASK with the SH field fixed. */
1136#define MDSH_MASK (MD_MASK | SH6_MASK)
1137
1138/* An MDS form instruction. */
1139#define MDS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0xf) << 1) | ((rc) & 1))
1140#define MDS_MASK MDS (0x3f, 0xf, 1)
1141
1142/* An MDS_MASK with the MB field fixed. */
1143#define MDSMB_MASK (MDS_MASK | MB6_MASK)
1144
1145/* An SC form instruction. */
1146#define SC(op, sa, lk) (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))
1147#define SC_MASK (OP_MASK | (((unsigned long)0x3ff) << 16) | (((unsigned long)1) << 1) | 1)
1148
786e2c0f
C
1149/* An VX form instruction. */
1150#define VX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7ff))
1151
1152/* The mask for an VX form instruction. */
1153#define VX_MASK VX(0x3f, 0x7ff)
1154
1155/* An VA form instruction. */
1156#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x07f))
1157
1158/* The mask for an VA form instruction. */
1159#define VXA_MASK VXA(0x3f, 0x7f)
1160
1161/* An VXR form instruction. */
1162#define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))
1163
1164/* The mask for a VXR form instruction. */
1165#define VXR_MASK VXR(0x3f, 0x3ff, 1)
1166
252b5132
RH
1167/* An X form instruction. */
1168#define X(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
1169
1170/* An X form instruction with the RC bit specified. */
1171#define XRC(op, xop, rc) (X ((op), (xop)) | ((rc) & 1))
1172
1173/* The mask for an X form instruction. */
1174#define X_MASK XRC (0x3f, 0x3ff, 1)
1175
1176/* An X_MASK with the RA field fixed. */
1177#define XRA_MASK (X_MASK | RA_MASK)
1178
1179/* An X_MASK with the RB field fixed. */
1180#define XRB_MASK (X_MASK | RB_MASK)
1181
1182/* An X_MASK with the RT field fixed. */
1183#define XRT_MASK (X_MASK | RT_MASK)
1184
1185/* An X_MASK with the RA and RB fields fixed. */
1186#define XRARB_MASK (X_MASK | RA_MASK | RB_MASK)
1187
1188/* An X_MASK with the RT and RA fields fixed. */
1189#define XRTRA_MASK (X_MASK | RT_MASK | RA_MASK)
1190
1191/* An X form comparison instruction. */
1192#define XCMPL(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))
1193
1194/* The mask for an X form comparison instruction. */
1195#define XCMP_MASK (X_MASK | (((unsigned long)1) << 22))
1196
1197/* The mask for an X form comparison instruction with the L field
1198 fixed. */
1199#define XCMPL_MASK (XCMP_MASK | (((unsigned long)1) << 21))
1200
1201/* An X form trap instruction with the TO field specified. */
1202#define XTO(op, xop, to) (X ((op), (xop)) | ((((unsigned long)(to)) & 0x1f) << 21))
1203#define XTO_MASK (X_MASK | TO_MASK)
1204
e0c21649
GK
1205/* An X form tlb instruction with the SH field specified. */
1206#define XTLB(op, xop, sh) (X ((op), (xop)) | ((((unsigned long)(sh)) & 0x1f) << 11))
1207#define XTLB_MASK (X_MASK | SH_MASK)
1208
252b5132
RH
1209/* An XFL form instruction. */
1210#define XFL(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1))
1211#define XFL_MASK (XFL (0x3f, 0x3ff, 1) | (((unsigned long)1) << 25) | (((unsigned long)1) << 16))
1212
1213/* An XL form instruction with the LK field set to 0. */
1214#define XL(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
1215
1216/* An XL form instruction which uses the LK field. */
1217#define XLLK(op, xop, lk) (XL ((op), (xop)) | ((lk) & 1))
1218
1219/* The mask for an XL form instruction. */
1220#define XL_MASK XLLK (0x3f, 0x3ff, 1)
1221
1222/* An XL form instruction which explicitly sets the BO field. */
1223#define XLO(op, bo, xop, lk) \
1224 (XLLK ((op), (xop), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
1225#define XLO_MASK (XL_MASK | BO_MASK)
1226
1227/* An XL form instruction which explicitly sets the y bit of the BO
1228 field. */
1229#define XLYLK(op, xop, y, lk) (XLLK ((op), (xop), (lk)) | ((((unsigned long)(y)) & 1) << 21))
1230#define XLYLK_MASK (XL_MASK | Y_MASK)
1231
1232/* An XL form instruction which sets the BO field and the condition
1233 bits of the BI field. */
1234#define XLOCB(op, bo, cb, xop, lk) \
1235 (XLO ((op), (bo), (xop), (lk)) | ((((unsigned long)(cb)) & 3) << 16))
1236#define XLOCB_MASK XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)
1237
1238/* An XL_MASK or XLYLK_MASK or XLOCB_MASK with the BB field fixed. */
1239#define XLBB_MASK (XL_MASK | BB_MASK)
1240#define XLYBB_MASK (XLYLK_MASK | BB_MASK)
1241#define XLBOCBBB_MASK (XLOCB_MASK | BB_MASK)
1242
1243/* An XL_MASK with the BO and BB fields fixed. */
1244#define XLBOBB_MASK (XL_MASK | BO_MASK | BB_MASK)
1245
1246/* An XL_MASK with the BO, BI and BB fields fixed. */
1247#define XLBOBIBB_MASK (XL_MASK | BO_MASK | BI_MASK | BB_MASK)
1248
1249/* An XO form instruction. */
1250#define XO(op, xop, oe, rc) \
1251 (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1) | ((((unsigned long)(oe)) & 1) << 10) | (((unsigned long)(rc)) & 1))
1252#define XO_MASK XO (0x3f, 0x1ff, 1, 1)
1253
1254/* An XO_MASK with the RB field fixed. */
1255#define XORB_MASK (XO_MASK | RB_MASK)
1256
1257/* An XS form instruction. */
1258#define XS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2) | (((unsigned long)(rc)) & 1))
1259#define XS_MASK XS (0x3f, 0x1ff, 1)
1260
1261/* A mask for the FXM version of an XFX form instruction. */
1262#define XFXFXM_MASK (X_MASK | (((unsigned long)1) << 20) | (((unsigned long)1) << 11))
1263
1264/* An XFX form instruction with the FXM field filled in. */
1265#define XFXM(op, xop, fxm) \
1266 (X ((op), (xop)) | ((((unsigned long)(fxm)) & 0xff) << 12))
1267
1268/* An XFX form instruction with the SPR field filled in. */
1269#define XSPR(op, xop, spr) \
1270 (X ((op), (xop)) | ((((unsigned long)(spr)) & 0x1f) << 16) | ((((unsigned long)(spr)) & 0x3e0) << 6))
1271#define XSPR_MASK (X_MASK | SPR_MASK)
1272
1273/* An XFX form instruction with the SPR field filled in except for the
1274 SPRBAT field. */
1275#define XSPRBAT_MASK (XSPR_MASK &~ SPRBAT_MASK)
1276
1277/* An XFX form instruction with the SPR field filled in except for the
1278 SPRG field. */
1279#define XSPRG_MASK (XSPR_MASK &~ SPRG_MASK)
1280
1281/* An X form instruction with everything filled in except the E field. */
1282#define XE_MASK (0xffff7fff)
1283
1284/* The BO encodings used in extended conditional branch mnemonics. */
1285#define BODNZF (0x0)
1286#define BODNZFP (0x1)
1287#define BODZF (0x2)
1288#define BODZFP (0x3)
1289#define BOF (0x4)
1290#define BOFP (0x5)
1291#define BODNZT (0x8)
1292#define BODNZTP (0x9)
1293#define BODZT (0xa)
1294#define BODZTP (0xb)
1295#define BOT (0xc)
1296#define BOTP (0xd)
1297#define BODNZ (0x10)
1298#define BODNZP (0x11)
1299#define BODZ (0x12)
1300#define BODZP (0x13)
1301#define BOU (0x14)
1302
1303/* The BI condition bit encodings used in extended conditional branch
1304 mnemonics. */
1305#define CBLT (0)
1306#define CBGT (1)
1307#define CBEQ (2)
1308#define CBSO (3)
1309
1310/* The TO encodings used in extended trap mnemonics. */
1311#define TOLGT (0x1)
1312#define TOLLT (0x2)
1313#define TOEQ (0x4)
1314#define TOLGE (0x5)
1315#define TOLNL (0x5)
1316#define TOLLE (0x6)
1317#define TOLNG (0x6)
1318#define TOGT (0x8)
1319#define TOGE (0xc)
1320#define TONL (0xc)
1321#define TOLT (0x10)
1322#define TOLE (0x14)
1323#define TONG (0x14)
1324#define TONE (0x18)
1325#define TOU (0x1f)
1326\f
1327/* Smaller names for the flags so each entry in the opcodes table will
1328 fit on a single line. */
1329#undef PPC
1330#define PPC PPC_OPCODE_PPC | PPC_OPCODE_ANY
1331#define PPCCOM PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_ANY
1332#define PPC32 PPC_OPCODE_PPC | PPC_OPCODE_32 | PPC_OPCODE_ANY
1333#define PPC64 PPC_OPCODE_PPC | PPC_OPCODE_64 | PPC_OPCODE_ANY
1334#define PPCONLY PPC_OPCODE_PPC
1335#define PPC403 PPC
e0c21649 1336#define PPC405 PPC403
252b5132
RH
1337#define PPC750 PPC
1338#define PPC860 PPC
786e2c0f 1339#define PPCVEC PPC_OPCODE_ALTIVEC | PPC_OPCODE_ANY
252b5132
RH
1340#define POWER PPC_OPCODE_POWER | PPC_OPCODE_ANY
1341#define POWER2 PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY
1342#define PPCPWR2 PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY
1343#define POWER32 PPC_OPCODE_POWER | PPC_OPCODE_ANY | PPC_OPCODE_32
1344#define COM PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_ANY
1345#define COM32 PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_ANY | PPC_OPCODE_32
1346#define M601 PPC_OPCODE_POWER | PPC_OPCODE_601 | PPC_OPCODE_ANY
1347#define PWRCOM PPC_OPCODE_POWER | PPC_OPCODE_601 | PPC_OPCODE_COMMON | PPC_OPCODE_ANY
1348#define MFDEC1 PPC_OPCODE_POWER
1349#define MFDEC2 PPC_OPCODE_PPC | PPC_OPCODE_601
1350\f
1351/* The opcode table.
1352
1353 The format of the opcode table is:
1354
1355 NAME OPCODE MASK FLAGS { OPERANDS }
1356
1357 NAME is the name of the instruction.
1358 OPCODE is the instruction opcode.
1359 MASK is the opcode mask; this is used to tell the disassembler
1360 which bits in the actual opcode must match OPCODE.
1361 FLAGS are flags indicated what processors support the instruction.
1362 OPERANDS is the list of operands.
1363
1364 The disassembler reads the table in order and prints the first
1365 instruction which matches, so this table is sorted to put more
1366 specific instructions before more general instructions. It is also
1367 sorted by major opcode. */
1368
1369const struct powerpc_opcode powerpc_opcodes[] = {
1370{ "tdlgti", OPTO(2,TOLGT), OPTO_MASK, PPC64, { RA, SI } },
1371{ "tdllti", OPTO(2,TOLLT), OPTO_MASK, PPC64, { RA, SI } },
1372{ "tdeqi", OPTO(2,TOEQ), OPTO_MASK, PPC64, { RA, SI } },
1373{ "tdlgei", OPTO(2,TOLGE), OPTO_MASK, PPC64, { RA, SI } },
1374{ "tdlnli", OPTO(2,TOLNL), OPTO_MASK, PPC64, { RA, SI } },
1375{ "tdllei", OPTO(2,TOLLE), OPTO_MASK, PPC64, { RA, SI } },
1376{ "tdlngi", OPTO(2,TOLNG), OPTO_MASK, PPC64, { RA, SI } },
1377{ "tdgti", OPTO(2,TOGT), OPTO_MASK, PPC64, { RA, SI } },
1378{ "tdgei", OPTO(2,TOGE), OPTO_MASK, PPC64, { RA, SI } },
1379{ "tdnli", OPTO(2,TONL), OPTO_MASK, PPC64, { RA, SI } },
1380{ "tdlti", OPTO(2,TOLT), OPTO_MASK, PPC64, { RA, SI } },
1381{ "tdlei", OPTO(2,TOLE), OPTO_MASK, PPC64, { RA, SI } },
1382{ "tdngi", OPTO(2,TONG), OPTO_MASK, PPC64, { RA, SI } },
1383{ "tdnei", OPTO(2,TONE), OPTO_MASK, PPC64, { RA, SI } },
1384{ "tdi", OP(2), OP_MASK, PPC64, { TO, RA, SI } },
1385
1386{ "twlgti", OPTO(3,TOLGT), OPTO_MASK, PPCCOM, { RA, SI } },
1387{ "tlgti", OPTO(3,TOLGT), OPTO_MASK, PWRCOM, { RA, SI } },
1388{ "twllti", OPTO(3,TOLLT), OPTO_MASK, PPCCOM, { RA, SI } },
1389{ "tllti", OPTO(3,TOLLT), OPTO_MASK, PWRCOM, { RA, SI } },
1390{ "tweqi", OPTO(3,TOEQ), OPTO_MASK, PPCCOM, { RA, SI } },
1391{ "teqi", OPTO(3,TOEQ), OPTO_MASK, PWRCOM, { RA, SI } },
1392{ "twlgei", OPTO(3,TOLGE), OPTO_MASK, PPCCOM, { RA, SI } },
1393{ "tlgei", OPTO(3,TOLGE), OPTO_MASK, PWRCOM, { RA, SI } },
1394{ "twlnli", OPTO(3,TOLNL), OPTO_MASK, PPCCOM, { RA, SI } },
1395{ "tlnli", OPTO(3,TOLNL), OPTO_MASK, PWRCOM, { RA, SI } },
1396{ "twllei", OPTO(3,TOLLE), OPTO_MASK, PPCCOM, { RA, SI } },
1397{ "tllei", OPTO(3,TOLLE), OPTO_MASK, PWRCOM, { RA, SI } },
1398{ "twlngi", OPTO(3,TOLNG), OPTO_MASK, PPCCOM, { RA, SI } },
1399{ "tlngi", OPTO(3,TOLNG), OPTO_MASK, PWRCOM, { RA, SI } },
1400{ "twgti", OPTO(3,TOGT), OPTO_MASK, PPCCOM, { RA, SI } },
1401{ "tgti", OPTO(3,TOGT), OPTO_MASK, PWRCOM, { RA, SI } },
1402{ "twgei", OPTO(3,TOGE), OPTO_MASK, PPCCOM, { RA, SI } },
1403{ "tgei", OPTO(3,TOGE), OPTO_MASK, PWRCOM, { RA, SI } },
1404{ "twnli", OPTO(3,TONL), OPTO_MASK, PPCCOM, { RA, SI } },
1405{ "tnli", OPTO(3,TONL), OPTO_MASK, PWRCOM, { RA, SI } },
1406{ "twlti", OPTO(3,TOLT), OPTO_MASK, PPCCOM, { RA, SI } },
1407{ "tlti", OPTO(3,TOLT), OPTO_MASK, PWRCOM, { RA, SI } },
1408{ "twlei", OPTO(3,TOLE), OPTO_MASK, PPCCOM, { RA, SI } },
1409{ "tlei", OPTO(3,TOLE), OPTO_MASK, PWRCOM, { RA, SI } },
1410{ "twngi", OPTO(3,TONG), OPTO_MASK, PPCCOM, { RA, SI } },
1411{ "tngi", OPTO(3,TONG), OPTO_MASK, PWRCOM, { RA, SI } },
1412{ "twnei", OPTO(3,TONE), OPTO_MASK, PPCCOM, { RA, SI } },
1413{ "tnei", OPTO(3,TONE), OPTO_MASK, PWRCOM, { RA, SI } },
1414{ "twi", OP(3), OP_MASK, PPCCOM, { TO, RA, SI } },
1415{ "ti", OP(3), OP_MASK, PWRCOM, { TO, RA, SI } },
e0c21649
GK
1416
1417{ "macchw", XO(4,172,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1418{ "macchw.", XO(4,172,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1419{ "macchwo", XO(4,172,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1420{ "macchwo.", XO(4,172,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1421{ "macchws", XO(4,236,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1422{ "macchws.", XO(4,236,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1423{ "macchwso", XO(4,236,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1424{ "macchwso.", XO(4,236,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1425{ "macchwsu", XO(4,204,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1426{ "macchwsu.", XO(4,204,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1427{ "macchwsuo", XO(4,204,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1428{ "macchwsuo.", XO(4,204,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1429{ "macchwu", XO(4,140,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1430{ "macchwu.", XO(4,140,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1431{ "macchwuo", XO(4,140,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1432{ "macchwuo.", XO(4,140,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1433{ "machhw", XO(4,44,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1434{ "machhw.", XO(4,44,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1435{ "machhwo", XO(4,44,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1436{ "machhwo.", XO(4,44,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1437{ "machhws", XO(4,108,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1438{ "machhws.", XO(4,108,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1439{ "machhwso", XO(4,108,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1440{ "machhwso.", XO(4,108,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1441{ "machhwsu", XO(4,76,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1442{ "machhwsu.", XO(4,76,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1443{ "machhwsuo", XO(4,76,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1444{ "machhwsuo.", XO(4,76,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1445{ "machhwu", XO(4,12,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1446{ "machhwu.", XO(4,12,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1447{ "machhwuo", XO(4,12,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1448{ "machhwuo.", XO(4,12,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1449{ "maclhw", XO(4,428,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1450{ "maclhw.", XO(4,428,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1451{ "maclhwo", XO(4,428,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1452{ "maclhwo.", XO(4,428,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1453{ "maclhws", XO(4,492,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1454{ "maclhws.", XO(4,492,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1455{ "maclhwso", XO(4,492,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1456{ "maclhwso.", XO(4,492,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1457{ "maclhwsu", XO(4,460,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1458{ "maclhwsu.", XO(4,460,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1459{ "maclhwsuo", XO(4,460,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1460{ "maclhwsuo.", XO(4,460,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1461{ "maclhwu", XO(4,396,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1462{ "maclhwu.", XO(4,396,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1463{ "maclhwuo", XO(4,396,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1464{ "maclhwuo.", XO(4,396,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1465{ "mulchw", XRC(4,168,0), X_MASK, PPC405, { RT, RA, RB } },
1466{ "mulchw.", XRC(4,168,1), X_MASK, PPC405, { RT, RA, RB } },
1467{ "mulchwu", XRC(4,136,0), X_MASK, PPC405, { RT, RA, RB } },
1468{ "mulchwu.", XRC(4,136,1), X_MASK, PPC405, { RT, RA, RB } },
1469{ "mulhhw", XRC(4,40,0), X_MASK, PPC405, { RT, RA, RB } },
1470{ "mulhhw.", XRC(4,40,1), X_MASK, PPC405, { RT, RA, RB } },
1471{ "mulhhwu", XRC(4,8,0), X_MASK, PPC405, { RT, RA, RB } },
1472{ "mulhhwu.", XRC(4,8,1), X_MASK, PPC405, { RT, RA, RB } },
1473{ "mullhw", XRC(4,424,0), X_MASK, PPC405, { RT, RA, RB } },
1474{ "mullhw.", XRC(4,424,1), X_MASK, PPC405, { RT, RA, RB } },
1475{ "mullhwu", XRC(4,392,0), X_MASK, PPC405, { RT, RA, RB } },
1476{ "mullhwu.", XRC(4,392,1), X_MASK, PPC405, { RT, RA, RB } },
1477{ "nmacchw", XO(4,174,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1478{ "nmacchw.", XO(4,174,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1479{ "nmacchwo", XO(4,174,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1480{ "nmacchwo.", XO(4,174,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1481{ "nmacchws", XO(4,238,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1482{ "nmacchws.", XO(4,238,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1483{ "nmacchwso", XO(4,238,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1484{ "nmacchwso.", XO(4,238,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1485{ "nmachhw", XO(4,46,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1486{ "nmachhw.", XO(4,46,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1487{ "nmachhwo", XO(4,46,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1488{ "nmachhwo.", XO(4,46,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1489{ "nmachhws", XO(4,110,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1490{ "nmachhws.", XO(4,110,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1491{ "nmachhwso", XO(4,110,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1492{ "nmachhwso.", XO(4,110,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1493{ "nmaclhw", XO(4,430,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1494{ "nmaclhw.", XO(4,430,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1495{ "nmaclhwo", XO(4,430,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1496{ "nmaclhwo.", XO(4,430,1,1), XO_MASK, PPC405, { RT, RA, RB } },
1497{ "nmaclhws", XO(4,494,0,0), XO_MASK, PPC405, { RT, RA, RB } },
1498{ "nmaclhws.", XO(4,494,0,1), XO_MASK, PPC405, { RT, RA, RB } },
1499{ "nmaclhwso", XO(4,494,1,0), XO_MASK, PPC405, { RT, RA, RB } },
1500{ "nmaclhwso.", XO(4,494,1,1), XO_MASK, PPC405, { RT, RA, RB } },
786e2c0f
C
1501{ "mfvscr", VX(4, 1540), VX_MASK, PPCVEC, { VD } },
1502{ "mtvscr", VX(4, 1604), VX_MASK, PPCVEC, { VD } },
1503{ "vaddcuw", VX(4, 384), VX_MASK, PPCVEC, { VD, VA, VB } },
1504{ "vaddfp", VX(4, 10), VX_MASK, PPCVEC, { VD, VA, VB } },
1505{ "vaddsbs", VX(4, 768), VX_MASK, PPCVEC, { VD, VA, VB } },
1506{ "vaddshs", VX(4, 832), VX_MASK, PPCVEC, { VD, VA, VB } },
1507{ "vaddsws", VX(4, 896), VX_MASK, PPCVEC, { VD, VA, VB } },
1508{ "vaddubm", VX(4, 0), VX_MASK, PPCVEC, { VD, VA, VB } },
1509{ "vaddubs", VX(4, 512), VX_MASK, PPCVEC, { VD, VA, VB } },
1510{ "vadduhm", VX(4, 64), VX_MASK, PPCVEC, { VD, VA, VB } },
1511{ "vadduhs", VX(4, 576), VX_MASK, PPCVEC, { VD, VA, VB } },
1512{ "vadduwm", VX(4, 128), VX_MASK, PPCVEC, { VD, VA, VB } },
1513{ "vadduws", VX(4, 640), VX_MASK, PPCVEC, { VD, VA, VB } },
1514{ "vand", VX(4, 1028), VX_MASK, PPCVEC, { VD, VA, VB } },
1515{ "vandc", VX(4, 1092), VX_MASK, PPCVEC, { VD, VA, VB } },
1516{ "vavgsb", VX(4, 1282), VX_MASK, PPCVEC, { VD, VA, VB } },
1517{ "vavgsh", VX(4, 1346), VX_MASK, PPCVEC, { VD, VA, VB } },
1518{ "vavgsw", VX(4, 1410), VX_MASK, PPCVEC, { VD, VA, VB } },
1519{ "vavgub", VX(4, 1026), VX_MASK, PPCVEC, { VD, VA, VB } },
1520{ "vavguh", VX(4, 1090), VX_MASK, PPCVEC, { VD, VA, VB } },
1521{ "vavguw", VX(4, 1154), VX_MASK, PPCVEC, { VD, VA, VB } },
1522{ "vcfsx", VX(4, 842), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1523{ "vcfux", VX(4, 778), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1524{ "vcmpbfp", VXR(4, 966, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1525{ "vcmpbfp.", VXR(4, 966, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1526{ "vcmpeqfp", VXR(4, 198, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1527{ "vcmpeqfp.", VXR(4, 198, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1528{ "vcmpequb", VXR(4, 6, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1529{ "vcmpequb.", VXR(4, 6, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1530{ "vcmpequh", VXR(4, 70, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1531{ "vcmpequh.", VXR(4, 70, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1532{ "vcmpequw", VXR(4, 134, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1533{ "vcmpequw.", VXR(4, 134, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1534{ "vcmpgefp", VXR(4, 454, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1535{ "vcmpgefp.", VXR(4, 454, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1536{ "vcmpgtfp", VXR(4, 710, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1537{ "vcmpgtfp.", VXR(4, 710, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1538{ "vcmpgtsb", VXR(4, 774, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1539{ "vcmpgtsb.", VXR(4, 774, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1540{ "vcmpgtsh", VXR(4, 838, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1541{ "vcmpgtsh.", VXR(4, 838, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1542{ "vcmpgtsw", VXR(4, 902, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1543{ "vcmpgtsw.", VXR(4, 902, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1544{ "vcmpgtub", VXR(4, 518, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1545{ "vcmpgtub.", VXR(4, 518, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1546{ "vcmpgtuh", VXR(4, 582, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1547{ "vcmpgtuh.", VXR(4, 582, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1548{ "vcmpgtuw", VXR(4, 646, 0), VXR_MASK, PPCVEC, { VD, VA, VB } },
1549{ "vcmpgtuw.", VXR(4, 646, 1), VXR_MASK, PPCVEC, { VD, VA, VB } },
1550{ "vctsxs", VX(4, 970), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1551{ "vctuxs", VX(4, 906), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1552{ "vexptefp", VX(4, 394), VX_MASK, PPCVEC, { VD, VB } },
1553{ "vlogefp", VX(4, 458), VX_MASK, PPCVEC, { VD, VB } },
1554{ "vmaddfp", VXA(4, 46), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1555{ "vmaxfp", VX(4, 1034), VX_MASK, PPCVEC, { VD, VA, VB } },
1556{ "vmaxsb", VX(4, 258), VX_MASK, PPCVEC, { VD, VA, VB } },
1557{ "vmaxsh", VX(4, 322), VX_MASK, PPCVEC, { VD, VA, VB } },
1558{ "vmaxsw", VX(4, 386), VX_MASK, PPCVEC, { VD, VA, VB } },
1559{ "vmaxub", VX(4, 2), VX_MASK, PPCVEC, { VD, VA, VB } },
1560{ "vmaxuh", VX(4, 66), VX_MASK, PPCVEC, { VD, VA, VB } },
1561{ "vmaxuw", VX(4, 130), VX_MASK, PPCVEC, { VD, VA, VB } },
1562{ "vmhaddshs", VXA(4, 32), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1563{ "vmhraddshs", VXA(4, 33), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1564{ "vminfp", VX(4, 1098), VX_MASK, PPCVEC, { VD, VA, VB } },
1565{ "vminsb", VX(4, 770), VX_MASK, PPCVEC, { VD, VA, VB } },
1566{ "vminsh", VX(4, 834), VX_MASK, PPCVEC, { VD, VA, VB } },
1567{ "vminsw", VX(4, 898), VX_MASK, PPCVEC, { VD, VA, VB } },
1568{ "vminub", VX(4, 514), VX_MASK, PPCVEC, { VD, VA, VB } },
1569{ "vminuh", VX(4, 578), VX_MASK, PPCVEC, { VD, VA, VB } },
1570{ "vminuw", VX(4, 642), VX_MASK, PPCVEC, { VD, VA, VB } },
1571{ "vmladduhm", VXA(4, 34), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1572{ "vmrghb", VX(4, 12), VX_MASK, PPCVEC, { VD, VA, VB } },
1573{ "vmrghh", VX(4, 76), VX_MASK, PPCVEC, { VD, VA, VB } },
1574{ "vmrghw", VX(4, 140), VX_MASK, PPCVEC, { VD, VA, VB } },
1575{ "vmrglb", VX(4, 268), VX_MASK, PPCVEC, { VD, VA, VB } },
1576{ "vmrglh", VX(4, 332), VX_MASK, PPCVEC, { VD, VA, VB } },
1577{ "vmrglw", VX(4, 396), VX_MASK, PPCVEC, { VD, VA, VB } },
1578{ "vmsummbm", VXA(4, 37), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1579{ "vmsumshm", VXA(4, 40), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1580{ "vmsumshs", VXA(4, 41), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
d2f75a6f
GK
1581{ "vmsumubm", VXA(4, 36), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1582{ "vmsumuhm", VXA(4, 38), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1583{ "vmsumuhs", VXA(4, 39), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
786e2c0f
C
1584{ "vmulesb", VX(4, 776), VX_MASK, PPCVEC, { VD, VA, VB } },
1585{ "vmulesh", VX(4, 840), VX_MASK, PPCVEC, { VD, VA, VB } },
1586{ "vmuleub", VX(4, 520), VX_MASK, PPCVEC, { VD, VA, VB } },
1587{ "vmuleuh", VX(4, 584), VX_MASK, PPCVEC, { VD, VA, VB } },
1588{ "vmulosb", VX(4, 264), VX_MASK, PPCVEC, { VD, VA, VB } },
1589{ "vmulosh", VX(4, 328), VX_MASK, PPCVEC, { VD, VA, VB } },
1590{ "vmuloub", VX(4, 8), VX_MASK, PPCVEC, { VD, VA, VB } },
1591{ "vmulouh", VX(4, 72), VX_MASK, PPCVEC, { VD, VA, VB } },
1592{ "vnmsubfp", VXA(4, 47), VXA_MASK, PPCVEC, { VD, VA, VC, VB } },
1593{ "vnor", VX(4, 1284), VX_MASK, PPCVEC, { VD, VA, VB } },
1594{ "vor", VX(4, 1156), VX_MASK, PPCVEC, { VD, VA, VB } },
1595{ "vperm", VXA(4, 43), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1596{ "vpkpx", VX(4, 782), VX_MASK, PPCVEC, { VD, VA, VB } },
1597{ "vpkshss", VX(4, 398), VX_MASK, PPCVEC, { VD, VA, VB } },
1598{ "vpkshus", VX(4, 270), VX_MASK, PPCVEC, { VD, VA, VB } },
1599{ "vpkswss", VX(4, 462), VX_MASK, PPCVEC, { VD, VA, VB } },
1600{ "vpkswus", VX(4, 334), VX_MASK, PPCVEC, { VD, VA, VB } },
1601{ "vpkuhum", VX(4, 14), VX_MASK, PPCVEC, { VD, VA, VB } },
1602{ "vpkuhus", VX(4, 142), VX_MASK, PPCVEC, { VD, VA, VB } },
1603{ "vpkuwum", VX(4, 78), VX_MASK, PPCVEC, { VD, VA, VB } },
1604{ "vpkuwus", VX(4, 206), VX_MASK, PPCVEC, { VD, VA, VB } },
1605{ "vrefp", VX(4, 266), VX_MASK, PPCVEC, { VD, VB } },
1606{ "vrfim", VX(4, 714), VX_MASK, PPCVEC, { VD, VB } },
1607{ "vrfin", VX(4, 522), VX_MASK, PPCVEC, { VD, VB } },
1608{ "vrfip", VX(4, 650), VX_MASK, PPCVEC, { VD, VB } },
1609{ "vrfiz", VX(4, 586), VX_MASK, PPCVEC, { VD, VB } },
1610{ "vrlb", VX(4, 4), VX_MASK, PPCVEC, { VD, VA, VB } },
1611{ "vrlh", VX(4, 68), VX_MASK, PPCVEC, { VD, VA, VB } },
1612{ "vrlw", VX(4, 132), VX_MASK, PPCVEC, { VD, VA, VB } },
1613{ "vrsqrtefp", VX(4, 330), VX_MASK, PPCVEC, { VD, VB } },
1614{ "vsel", VXA(4, 42), VXA_MASK, PPCVEC, { VD, VA, VB, VC } },
1615{ "vsl", VX(4, 452), VX_MASK, PPCVEC, { VD, VA, VB } },
1616{ "vslb", VX(4, 260), VX_MASK, PPCVEC, { VD, VA, VB } },
1617{ "vsldoi", VXA(4, 44), VXA_MASK, PPCVEC, { VD, VA, VB, SHB } },
1618{ "vslh", VX(4, 324), VX_MASK, PPCVEC, { VD, VA, VB } },
1619{ "vslo", VX(4, 1036), VX_MASK, PPCVEC, { VD, VA, VB } },
1da5001c 1620{ "vslw", VX(4, 388), VX_MASK, PPCVEC, { VD, VA, VB } },
786e2c0f
C
1621{ "vspltb", VX(4, 524), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1622{ "vsplth", VX(4, 588), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1623{ "vspltisb", VX(4, 780), VX_MASK, PPCVEC, { VD, SIMM } },
1624{ "vspltish", VX(4, 844), VX_MASK, PPCVEC, { VD, SIMM } },
1625{ "vspltisw", VX(4, 908), VX_MASK, PPCVEC, { VD, SIMM } },
1626{ "vspltw", VX(4, 652), VX_MASK, PPCVEC, { VD, VB, UIMM } },
1627{ "vsr", VX(4, 708), VX_MASK, PPCVEC, { VD, VA, VB } },
1628{ "vsrab", VX(4, 772), VX_MASK, PPCVEC, { VD, VA, VB } },
1629{ "vsrah", VX(4, 836), VX_MASK, PPCVEC, { VD, VA, VB } },
1630{ "vsraw", VX(4, 900), VX_MASK, PPCVEC, { VD, VA, VB } },
1631{ "vsrb", VX(4, 516), VX_MASK, PPCVEC, { VD, VA, VB } },
1632{ "vsrh", VX(4, 580), VX_MASK, PPCVEC, { VD, VA, VB } },
1633{ "vsro", VX(4, 1100), VX_MASK, PPCVEC, { VD, VA, VB } },
1634{ "vsrw", VX(4, 644), VX_MASK, PPCVEC, { VD, VA, VB } },
1635{ "vsubcuw", VX(4, 1408), VX_MASK, PPCVEC, { VD, VA, VB } },
1636{ "vsubfp", VX(4, 74), VX_MASK, PPCVEC, { VD, VA, VB } },
1637{ "vsubsbs", VX(4, 1792), VX_MASK, PPCVEC, { VD, VA, VB } },
1638{ "vsubshs", VX(4, 1856), VX_MASK, PPCVEC, { VD, VA, VB } },
1639{ "vsubsws", VX(4, 1920), VX_MASK, PPCVEC, { VD, VA, VB } },
1640{ "vsububm", VX(4, 1024), VX_MASK, PPCVEC, { VD, VA, VB } },
1641{ "vsububs", VX(4, 1536), VX_MASK, PPCVEC, { VD, VA, VB } },
1642{ "vsubuhm", VX(4, 1088), VX_MASK, PPCVEC, { VD, VA, VB } },
1643{ "vsubuhs", VX(4, 1600), VX_MASK, PPCVEC, { VD, VA, VB } },
1644{ "vsubuwm", VX(4, 1152), VX_MASK, PPCVEC, { VD, VA, VB } },
1645{ "vsubuws", VX(4, 1664), VX_MASK, PPCVEC, { VD, VA, VB } },
1646{ "vsumsws", VX(4, 1928), VX_MASK, PPCVEC, { VD, VA, VB } },
1647{ "vsum2sws", VX(4, 1672), VX_MASK, PPCVEC, { VD, VA, VB } },
1648{ "vsum4sbs", VX(4, 1800), VX_MASK, PPCVEC, { VD, VA, VB } },
1649{ "vsum4shs", VX(4, 1608), VX_MASK, PPCVEC, { VD, VA, VB } },
1650{ "vsum4ubs", VX(4, 1544), VX_MASK, PPCVEC, { VD, VA, VB } },
1651{ "vupkhpx", VX(4, 846), VX_MASK, PPCVEC, { VD, VB } },
1652{ "vupkhsb", VX(4, 526), VX_MASK, PPCVEC, { VD, VB } },
1653{ "vupkhsh", VX(4, 590), VX_MASK, PPCVEC, { VD, VB } },
1654{ "vupklpx", VX(4, 974), VX_MASK, PPCVEC, { VD, VB } },
1655{ "vupklsb", VX(4, 654), VX_MASK, PPCVEC, { VD, VB } },
1656{ "vupklsh", VX(4, 718), VX_MASK, PPCVEC, { VD, VB } },
1657{ "vxor", VX(4, 1220), VX_MASK, PPCVEC, { VD, VA, VB } },
252b5132
RH
1658
1659{ "mulli", OP(7), OP_MASK, PPCCOM, { RT, RA, SI } },
1660{ "muli", OP(7), OP_MASK, PWRCOM, { RT, RA, SI } },
1661
1662{ "subfic", OP(8), OP_MASK, PPCCOM, { RT, RA, SI } },
1663{ "sfi", OP(8), OP_MASK, PWRCOM, { RT, RA, SI } },
1664
1665{ "dozi", OP(9), OP_MASK, M601, { RT, RA, SI } },
1666
1667{ "cmplwi", OPL(10,0), OPL_MASK, PPCCOM, { OBF, RA, UI } },
1668{ "cmpldi", OPL(10,1), OPL_MASK, PPC64, { OBF, RA, UI } },
1669{ "cmpli", OP(10), OP_MASK, PPCONLY, { BF, L, RA, UI } },
1670{ "cmpli", OP(10), OP_MASK, PWRCOM, { BF, RA, UI } },
1671
1672{ "cmpwi", OPL(11,0), OPL_MASK, PPCCOM, { OBF, RA, SI } },
1673{ "cmpdi", OPL(11,1), OPL_MASK, PPC64, { OBF, RA, SI } },
1674{ "cmpi", OP(11), OP_MASK, PPCONLY, { BF, L, RA, SI } },
1675{ "cmpi", OP(11), OP_MASK, PWRCOM, { BF, RA, SI } },
1676
1677{ "addic", OP(12), OP_MASK, PPCCOM, { RT, RA, SI } },
1678{ "ai", OP(12), OP_MASK, PWRCOM, { RT, RA, SI } },
1679{ "subic", OP(12), OP_MASK, PPCCOM, { RT, RA, NSI } },
1680
1681{ "addic.", OP(13), OP_MASK, PPCCOM, { RT, RA, SI } },
1682{ "ai.", OP(13), OP_MASK, PWRCOM, { RT, RA, SI } },
1683{ "subic.", OP(13), OP_MASK, PPCCOM, { RT, RA, NSI } },
1684
1685{ "li", OP(14), DRA_MASK, PPCCOM, { RT, SI } },
1686{ "lil", OP(14), DRA_MASK, PWRCOM, { RT, SI } },
1687{ "addi", OP(14), OP_MASK, PPCCOM, { RT, RA, SI } },
1688{ "cal", OP(14), OP_MASK, PWRCOM, { RT, D, RA } },
1689{ "subi", OP(14), OP_MASK, PPCCOM, { RT, RA, NSI } },
1690{ "la", OP(14), OP_MASK, PPCCOM, { RT, D, RA } },
1691
1692{ "lis", OP(15), DRA_MASK, PPCCOM, { RT, SISIGNOPT } },
1693{ "liu", OP(15), DRA_MASK, PWRCOM, { RT, SISIGNOPT } },
1694{ "addis", OP(15), OP_MASK, PPCCOM, { RT,RA,SISIGNOPT } },
1695{ "cau", OP(15), OP_MASK, PWRCOM, { RT,RA,SISIGNOPT } },
1696{ "subis", OP(15), OP_MASK, PPCCOM, { RT, RA, NSI } },
1697
d2f75a6f
GK
1698{ "bdnz-", BBO(16,BODNZ,0,0), BBOYBI_MASK, PPCCOM, { BDM } },
1699{ "bdnz+", BBO(16,BODNZ,0,0), BBOYBI_MASK, PPCCOM, { BDP } },
252b5132
RH
1700{ "bdnz", BBO(16,BODNZ,0,0), BBOYBI_MASK, PPCCOM, { BD } },
1701{ "bdn", BBO(16,BODNZ,0,0), BBOYBI_MASK, PWRCOM, { BD } },
d2f75a6f
GK
1702{ "bdnzl-", BBO(16,BODNZ,0,1), BBOYBI_MASK, PPCCOM, { BDM } },
1703{ "bdnzl+", BBO(16,BODNZ,0,1), BBOYBI_MASK, PPCCOM, { BDP } },
252b5132
RH
1704{ "bdnzl", BBO(16,BODNZ,0,1), BBOYBI_MASK, PPCCOM, { BD } },
1705{ "bdnl", BBO(16,BODNZ,0,1), BBOYBI_MASK, PWRCOM, { BD } },
d2f75a6f
GK
1706{ "bdnza-", BBO(16,BODNZ,1,0), BBOYBI_MASK, PPCCOM, { BDMA } },
1707{ "bdnza+", BBO(16,BODNZ,1,0), BBOYBI_MASK, PPCCOM, { BDPA } },
252b5132
RH
1708{ "bdnza", BBO(16,BODNZ,1,0), BBOYBI_MASK, PPCCOM, { BDA } },
1709{ "bdna", BBO(16,BODNZ,1,0), BBOYBI_MASK, PWRCOM, { BDA } },
d2f75a6f
GK
1710{ "bdnzla-", BBO(16,BODNZ,1,1), BBOYBI_MASK, PPCCOM, { BDMA } },
1711{ "bdnzla+", BBO(16,BODNZ,1,1), BBOYBI_MASK, PPCCOM, { BDPA } },
252b5132
RH
1712{ "bdnzla", BBO(16,BODNZ,1,1), BBOYBI_MASK, PPCCOM, { BDA } },
1713{ "bdnla", BBO(16,BODNZ,1,1), BBOYBI_MASK, PWRCOM, { BDA } },
d2f75a6f
GK
1714{ "bdz-", BBO(16,BODZ,0,0), BBOYBI_MASK, PPCCOM, { BDM } },
1715{ "bdz+", BBO(16,BODZ,0,0), BBOYBI_MASK, PPCCOM, { BDP } },
252b5132 1716{ "bdz", BBO(16,BODZ,0,0), BBOYBI_MASK, COM, { BD } },
d2f75a6f
GK
1717{ "bdzl-", BBO(16,BODZ,0,1), BBOYBI_MASK, PPCCOM, { BDM } },
1718{ "bdzl+", BBO(16,BODZ,0,1), BBOYBI_MASK, PPCCOM, { BDP } },
252b5132 1719{ "bdzl", BBO(16,BODZ,0,1), BBOYBI_MASK, COM, { BD } },
d2f75a6f
GK
1720{ "bdza-", BBO(16,BODZ,1,0), BBOYBI_MASK, PPCCOM, { BDMA } },
1721{ "bdza+", BBO(16,BODZ,1,0), BBOYBI_MASK, PPCCOM, { BDPA } },
252b5132 1722{ "bdza", BBO(16,BODZ,1,0), BBOYBI_MASK, COM, { BDA } },
d2f75a6f
GK
1723{ "bdzla-", BBO(16,BODZ,1,1), BBOYBI_MASK, PPCCOM, { BDMA } },
1724{ "bdzla+", BBO(16,BODZ,1,1), BBOYBI_MASK, PPCCOM, { BDPA } },
252b5132 1725{ "bdzla", BBO(16,BODZ,1,1), BBOYBI_MASK, COM, { BDA } },
d2f75a6f
GK
1726{ "blt-", BBOCB(16,BOT,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1727{ "blt+", BBOCB(16,BOT,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1728{ "blt", BBOCB(16,BOT,CBLT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1729{ "bltl-", BBOCB(16,BOT,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1730{ "bltl+", BBOCB(16,BOT,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1731{ "bltl", BBOCB(16,BOT,CBLT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1732{ "blta-", BBOCB(16,BOT,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1733{ "blta+", BBOCB(16,BOT,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1734{ "blta", BBOCB(16,BOT,CBLT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1735{ "bltla-", BBOCB(16,BOT,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1736{ "bltla+", BBOCB(16,BOT,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1737{ "bltla", BBOCB(16,BOT,CBLT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1738{ "bgt-", BBOCB(16,BOT,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1739{ "bgt+", BBOCB(16,BOT,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1740{ "bgt", BBOCB(16,BOT,CBGT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1741{ "bgtl-", BBOCB(16,BOT,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1742{ "bgtl+", BBOCB(16,BOT,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1743{ "bgtl", BBOCB(16,BOT,CBGT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1744{ "bgta-", BBOCB(16,BOT,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1745{ "bgta+", BBOCB(16,BOT,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1746{ "bgta", BBOCB(16,BOT,CBGT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1747{ "bgtla-", BBOCB(16,BOT,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1748{ "bgtla+", BBOCB(16,BOT,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1749{ "bgtla", BBOCB(16,BOT,CBGT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1750{ "beq-", BBOCB(16,BOT,CBEQ,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1751{ "beq+", BBOCB(16,BOT,CBEQ,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1752{ "beq", BBOCB(16,BOT,CBEQ,0,0), BBOYCB_MASK, COM, { CR, BD } },
1753{ "beql-", BBOCB(16,BOT,CBEQ,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1754{ "beql+", BBOCB(16,BOT,CBEQ,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1755{ "beql", BBOCB(16,BOT,CBEQ,0,1), BBOYCB_MASK, COM, { CR, BD } },
1756{ "beqa-", BBOCB(16,BOT,CBEQ,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1757{ "beqa+", BBOCB(16,BOT,CBEQ,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1758{ "beqa", BBOCB(16,BOT,CBEQ,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1759{ "beqla-", BBOCB(16,BOT,CBEQ,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1760{ "beqla+", BBOCB(16,BOT,CBEQ,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1761{ "beqla", BBOCB(16,BOT,CBEQ,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1762{ "bso-", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1763{ "bso+", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1764{ "bso", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, COM, { CR, BD } },
1765{ "bsol-", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1766{ "bsol+", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1767{ "bsol", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, COM, { CR, BD } },
1768{ "bsoa-", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1769{ "bsoa+", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1770{ "bsoa", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1771{ "bsola-", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1772{ "bsola+", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1773{ "bsola", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1774{ "bun-", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1775{ "bun+", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1776{ "bun", BBOCB(16,BOT,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BD } },
1777{ "bunl-", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1778{ "bunl+", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1779{ "bunl", BBOCB(16,BOT,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BD } },
1780{ "buna-", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1781{ "buna+", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1782{ "buna", BBOCB(16,BOT,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDA } },
1783{ "bunla-", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1784{ "bunla+", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1785{ "bunla", BBOCB(16,BOT,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDA } },
1786{ "bge-", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1787{ "bge+", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1788{ "bge", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1789{ "bgel-", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1790{ "bgel+", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1791{ "bgel", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1792{ "bgea-", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1793{ "bgea+", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1794{ "bgea", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1795{ "bgela-", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1796{ "bgela+", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1797{ "bgela", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1798{ "bnl-", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1799{ "bnl+", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1800{ "bnl", BBOCB(16,BOF,CBLT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1801{ "bnll-", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1802{ "bnll+", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1803{ "bnll", BBOCB(16,BOF,CBLT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1804{ "bnla-", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1805{ "bnla+", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1806{ "bnla", BBOCB(16,BOF,CBLT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1807{ "bnlla-", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1808{ "bnlla+", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1809{ "bnlla", BBOCB(16,BOF,CBLT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1810{ "ble-", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1811{ "ble+", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1812{ "ble", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1813{ "blel-", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1814{ "blel+", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1815{ "blel", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1816{ "blea-", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1817{ "blea+", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1818{ "blea", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1819{ "blela-", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1820{ "blela+", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1821{ "blela", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1822{ "bng-", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1823{ "bng+", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1824{ "bng", BBOCB(16,BOF,CBGT,0,0), BBOYCB_MASK, COM, { CR, BD } },
1825{ "bngl-", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1826{ "bngl+", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1827{ "bngl", BBOCB(16,BOF,CBGT,0,1), BBOYCB_MASK, COM, { CR, BD } },
1828{ "bnga-", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1829{ "bnga+", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1830{ "bnga", BBOCB(16,BOF,CBGT,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1831{ "bngla-", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1832{ "bngla+", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1833{ "bngla", BBOCB(16,BOF,CBGT,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1834{ "bne-", BBOCB(16,BOF,CBEQ,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1835{ "bne+", BBOCB(16,BOF,CBEQ,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1836{ "bne", BBOCB(16,BOF,CBEQ,0,0), BBOYCB_MASK, COM, { CR, BD } },
1837{ "bnel-", BBOCB(16,BOF,CBEQ,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1838{ "bnel+", BBOCB(16,BOF,CBEQ,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1839{ "bnel", BBOCB(16,BOF,CBEQ,0,1), BBOYCB_MASK, COM, { CR, BD } },
1840{ "bnea-", BBOCB(16,BOF,CBEQ,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1841{ "bnea+", BBOCB(16,BOF,CBEQ,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1842{ "bnea", BBOCB(16,BOF,CBEQ,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1843{ "bnela-", BBOCB(16,BOF,CBEQ,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1844{ "bnela+", BBOCB(16,BOF,CBEQ,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1845{ "bnela", BBOCB(16,BOF,CBEQ,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1846{ "bns-", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1847{ "bns+", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1848{ "bns", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, COM, { CR, BD } },
1849{ "bnsl-", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1850{ "bnsl+", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1851{ "bnsl", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, COM, { CR, BD } },
1852{ "bnsa-", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1853{ "bnsa+", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1854{ "bnsa", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, COM, { CR, BDA } },
1855{ "bnsla-", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1856{ "bnsla+", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1857{ "bnsla", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, COM, { CR, BDA } },
1858{ "bnu-", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1859{ "bnu+", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1860{ "bnu", BBOCB(16,BOF,CBSO,0,0), BBOYCB_MASK, PPCCOM, { CR, BD } },
1861{ "bnul-", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDM } },
1862{ "bnul+", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BDP } },
1863{ "bnul", BBOCB(16,BOF,CBSO,0,1), BBOYCB_MASK, PPCCOM, { CR, BD } },
1864{ "bnua-", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1865{ "bnua+", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1866{ "bnua", BBOCB(16,BOF,CBSO,1,0), BBOYCB_MASK, PPCCOM, { CR, BDA } },
1867{ "bnula-", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDMA } },
1868{ "bnula+", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDPA } },
1869{ "bnula", BBOCB(16,BOF,CBSO,1,1), BBOYCB_MASK, PPCCOM, { CR, BDA } },
1870{ "bdnzt-", BBO(16,BODNZT,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1871{ "bdnzt+", BBO(16,BODNZT,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1872{ "bdnzt", BBO(16,BODNZT,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1873{ "bdnztl-", BBO(16,BODNZT,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1874{ "bdnztl+", BBO(16,BODNZT,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1875{ "bdnztl", BBO(16,BODNZT,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1876{ "bdnzta-", BBO(16,BODNZT,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1877{ "bdnzta+", BBO(16,BODNZT,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1878{ "bdnzta", BBO(16,BODNZT,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1879{ "bdnztla-",BBO(16,BODNZT,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1880{ "bdnztla+",BBO(16,BODNZT,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1881{ "bdnztla", BBO(16,BODNZT,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1882{ "bdnzf-", BBO(16,BODNZF,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1883{ "bdnzf+", BBO(16,BODNZF,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1884{ "bdnzf", BBO(16,BODNZF,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1885{ "bdnzfl-", BBO(16,BODNZF,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1886{ "bdnzfl+", BBO(16,BODNZF,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1887{ "bdnzfl", BBO(16,BODNZF,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1888{ "bdnzfa-", BBO(16,BODNZF,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1889{ "bdnzfa+", BBO(16,BODNZF,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1890{ "bdnzfa", BBO(16,BODNZF,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1891{ "bdnzfla-",BBO(16,BODNZF,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1892{ "bdnzfla+",BBO(16,BODNZF,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1893{ "bdnzfla", BBO(16,BODNZF,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1894{ "bt-", BBO(16,BOT,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1895{ "bt+", BBO(16,BOT,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132
RH
1896{ "bt", BBO(16,BOT,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
1897{ "bbt", BBO(16,BOT,0,0), BBOY_MASK, PWRCOM, { BI, BD } },
d2f75a6f
GK
1898{ "btl-", BBO(16,BOT,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1899{ "btl+", BBO(16,BOT,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132
RH
1900{ "btl", BBO(16,BOT,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
1901{ "bbtl", BBO(16,BOT,0,1), BBOY_MASK, PWRCOM, { BI, BD } },
d2f75a6f
GK
1902{ "bta-", BBO(16,BOT,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1903{ "bta+", BBO(16,BOT,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132
RH
1904{ "bta", BBO(16,BOT,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
1905{ "bbta", BBO(16,BOT,1,0), BBOY_MASK, PWRCOM, { BI, BDA } },
d2f75a6f
GK
1906{ "btla-", BBO(16,BOT,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1907{ "btla+", BBO(16,BOT,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132
RH
1908{ "btla", BBO(16,BOT,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
1909{ "bbtla", BBO(16,BOT,1,1), BBOY_MASK, PWRCOM, { BI, BDA } },
d2f75a6f
GK
1910{ "bf-", BBO(16,BOF,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1911{ "bf+", BBO(16,BOF,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132
RH
1912{ "bf", BBO(16,BOF,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
1913{ "bbf", BBO(16,BOF,0,0), BBOY_MASK, PWRCOM, { BI, BD } },
d2f75a6f
GK
1914{ "bfl-", BBO(16,BOF,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1915{ "bfl+", BBO(16,BOF,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132
RH
1916{ "bfl", BBO(16,BOF,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
1917{ "bbfl", BBO(16,BOF,0,1), BBOY_MASK, PWRCOM, { BI, BD } },
d2f75a6f
GK
1918{ "bfa-", BBO(16,BOF,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1919{ "bfa+", BBO(16,BOF,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132
RH
1920{ "bfa", BBO(16,BOF,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
1921{ "bbfa", BBO(16,BOF,1,0), BBOY_MASK, PWRCOM, { BI, BDA } },
d2f75a6f
GK
1922{ "bfla-", BBO(16,BOF,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1923{ "bfla+", BBO(16,BOF,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132
RH
1924{ "bfla", BBO(16,BOF,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
1925{ "bbfla", BBO(16,BOF,1,1), BBOY_MASK, PWRCOM, { BI, BDA } },
d2f75a6f
GK
1926{ "bdzt-", BBO(16,BODZT,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1927{ "bdzt+", BBO(16,BODZT,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1928{ "bdzt", BBO(16,BODZT,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1929{ "bdztl-", BBO(16,BODZT,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1930{ "bdztl+", BBO(16,BODZT,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1931{ "bdztl", BBO(16,BODZT,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1932{ "bdzta-", BBO(16,BODZT,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1933{ "bdzta+", BBO(16,BODZT,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1934{ "bdzta", BBO(16,BODZT,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1935{ "bdztla-", BBO(16,BODZT,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1936{ "bdztla+", BBO(16,BODZT,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1937{ "bdztla", BBO(16,BODZT,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1938{ "bdzf-", BBO(16,BODZF,0,0), BBOY_MASK, PPCCOM, { BI, BDM } },
1939{ "bdzf+", BBO(16,BODZF,0,0), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1940{ "bdzf", BBO(16,BODZF,0,0), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1941{ "bdzfl-", BBO(16,BODZF,0,1), BBOY_MASK, PPCCOM, { BI, BDM } },
1942{ "bdzfl+", BBO(16,BODZF,0,1), BBOY_MASK, PPCCOM, { BI, BDP } },
252b5132 1943{ "bdzfl", BBO(16,BODZF,0,1), BBOY_MASK, PPCCOM, { BI, BD } },
d2f75a6f
GK
1944{ "bdzfa-", BBO(16,BODZF,1,0), BBOY_MASK, PPCCOM, { BI, BDMA } },
1945{ "bdzfa+", BBO(16,BODZF,1,0), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1946{ "bdzfa", BBO(16,BODZF,1,0), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1947{ "bdzfla-", BBO(16,BODZF,1,1), BBOY_MASK, PPCCOM, { BI, BDMA } },
1948{ "bdzfla+", BBO(16,BODZF,1,1), BBOY_MASK, PPCCOM, { BI, BDPA } },
252b5132 1949{ "bdzfla", BBO(16,BODZF,1,1), BBOY_MASK, PPCCOM, { BI, BDA } },
d2f75a6f
GK
1950{ "bc-", B(16,0,0), B_MASK, PPCCOM, { BOE, BI, BDM } },
1951{ "bc+", B(16,0,0), B_MASK, PPCCOM, { BOE, BI, BDP } },
252b5132 1952{ "bc", B(16,0,0), B_MASK, COM, { BO, BI, BD } },
d2f75a6f
GK
1953{ "bcl-", B(16,0,1), B_MASK, PPCCOM, { BOE, BI, BDM } },
1954{ "bcl+", B(16,0,1), B_MASK, PPCCOM, { BOE, BI, BDP } },
252b5132 1955{ "bcl", B(16,0,1), B_MASK, COM, { BO, BI, BD } },
d2f75a6f
GK
1956{ "bca-", B(16,1,0), B_MASK, PPCCOM, { BOE, BI, BDMA } },
1957{ "bca+", B(16,1,0), B_MASK, PPCCOM, { BOE, BI, BDPA } },
252b5132 1958{ "bca", B(16,1,0), B_MASK, COM, { BO, BI, BDA } },
d2f75a6f
GK
1959{ "bcla-", B(16,1,1), B_MASK, PPCCOM, { BOE, BI, BDMA } },
1960{ "bcla+", B(16,1,1), B_MASK, PPCCOM, { BOE, BI, BDPA } },
252b5132
RH
1961{ "bcla", B(16,1,1), B_MASK, COM, { BO, BI, BDA } },
1962
1963{ "sc", SC(17,1,0), 0xffffffff, PPC, { 0 } },
1964{ "svc", SC(17,0,0), SC_MASK, POWER, { LEV, FL1, FL2 } },
1965{ "svcl", SC(17,0,1), SC_MASK, POWER, { LEV, FL1, FL2 } },
1966{ "svca", SC(17,1,0), SC_MASK, PWRCOM, { SV } },
1967{ "svcla", SC(17,1,1), SC_MASK, POWER, { SV } },
1968
1969{ "b", B(18,0,0), B_MASK, COM, { LI } },
1970{ "bl", B(18,0,1), B_MASK, COM, { LI } },
1971{ "ba", B(18,1,0), B_MASK, COM, { LIA } },
1972{ "bla", B(18,1,1), B_MASK, COM, { LIA } },
1973
1974{ "mcrf", XL(19,0), XLBB_MASK|(3<<21)|(3<<16), COM, { BF, BFA } },
1975
1976{ "blr", XLO(19,BOU,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
1977{ "br", XLO(19,BOU,16,0), XLBOBIBB_MASK, PWRCOM, { 0 } },
1978{ "blrl", XLO(19,BOU,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
1979{ "brl", XLO(19,BOU,16,1), XLBOBIBB_MASK, PWRCOM, { 0 } },
1980{ "bdnzlr", XLO(19,BODNZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
d2f75a6f
GK
1981{ "bdnzlr-", XLO(19,BODNZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
1982{ "bdnzlr+", XLO(19,BODNZP,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
252b5132 1983{ "bdnzlrl", XLO(19,BODNZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
d2f75a6f
GK
1984{ "bdnzlrl-",XLO(19,BODNZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
1985{ "bdnzlrl+",XLO(19,BODNZP,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
252b5132 1986{ "bdzlr", XLO(19,BODZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
d2f75a6f
GK
1987{ "bdzlr-", XLO(19,BODZ,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
1988{ "bdzlr+", XLO(19,BODZP,16,0), XLBOBIBB_MASK, PPCCOM, { 0 } },
252b5132 1989{ "bdzlrl", XLO(19,BODZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
d2f75a6f
GK
1990{ "bdzlrl-", XLO(19,BODZ,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
1991{ "bdzlrl+", XLO(19,BODZP,16,1), XLBOBIBB_MASK, PPCCOM, { 0 } },
252b5132 1992{ "bltlr", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
1993{ "bltlr-", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
1994{ "bltlr+", XLOCB(19,BOTP,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
1995{ "bltr", XLOCB(19,BOT,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
1996{ "bltlrl", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
1997{ "bltlrl-", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
1998{ "bltlrl+", XLOCB(19,BOTP,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
1999{ "bltrl", XLOCB(19,BOT,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2000{ "bgtlr", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2001{ "bgtlr-", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2002{ "bgtlr+", XLOCB(19,BOTP,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2003{ "bgtr", XLOCB(19,BOT,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2004{ "bgtlrl", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2005{ "bgtlrl-", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2006{ "bgtlrl+", XLOCB(19,BOTP,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2007{ "bgtrl", XLOCB(19,BOT,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2008{ "beqlr", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2009{ "beqlr-", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2010{ "beqlr+", XLOCB(19,BOTP,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2011{ "beqr", XLOCB(19,BOT,CBEQ,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2012{ "beqlrl", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2013{ "beqlrl-", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2014{ "beqlrl+", XLOCB(19,BOTP,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2015{ "beqrl", XLOCB(19,BOT,CBEQ,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2016{ "bsolr", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2017{ "bsolr-", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2018{ "bsolr+", XLOCB(19,BOTP,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2019{ "bsor", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2020{ "bsolrl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2021{ "bsolrl-", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2022{ "bsolrl+", XLOCB(19,BOTP,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2023{ "bsorl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2024{ "bunlr", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2025{ "bunlr-", XLOCB(19,BOT,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2026{ "bunlr+", XLOCB(19,BOTP,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2027{ "bunlrl", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2028{ "bunlrl-", XLOCB(19,BOT,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2029{ "bunlrl+", XLOCB(19,BOTP,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2030{ "bgelr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2031{ "bgelr-", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2032{ "bgelr+", XLOCB(19,BOFP,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2033{ "bger", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2034{ "bgelrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2035{ "bgelrl-", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2036{ "bgelrl+", XLOCB(19,BOFP,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2037{ "bgerl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2038{ "bnllr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2039{ "bnllr-", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2040{ "bnllr+", XLOCB(19,BOFP,CBLT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2041{ "bnlr", XLOCB(19,BOF,CBLT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2042{ "bnllrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2043{ "bnllrl-", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2044{ "bnllrl+", XLOCB(19,BOFP,CBLT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2045{ "bnlrl", XLOCB(19,BOF,CBLT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2046{ "blelr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2047{ "blelr-", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2048{ "blelr+", XLOCB(19,BOFP,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2049{ "bler", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2050{ "blelrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2051{ "blelrl-", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2052{ "blelrl+", XLOCB(19,BOFP,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2053{ "blerl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2054{ "bnglr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2055{ "bnglr-", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2056{ "bnglr+", XLOCB(19,BOFP,CBGT,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2057{ "bngr", XLOCB(19,BOF,CBGT,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2058{ "bnglrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2059{ "bnglrl-", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2060{ "bnglrl+", XLOCB(19,BOFP,CBGT,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2061{ "bngrl", XLOCB(19,BOF,CBGT,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2062{ "bnelr", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2063{ "bnelr-", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2064{ "bnelr+", XLOCB(19,BOFP,CBEQ,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2065{ "bner", XLOCB(19,BOF,CBEQ,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2066{ "bnelrl", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2067{ "bnelrl-", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2068{ "bnelrl+", XLOCB(19,BOFP,CBEQ,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2069{ "bnerl", XLOCB(19,BOF,CBEQ,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2070{ "bnslr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2071{ "bnslr-", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2072{ "bnslr+", XLOCB(19,BOFP,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2073{ "bnsr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PWRCOM, { CR } },
2074{ "bnslrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2075{ "bnslrl-", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2076{ "bnslrl+", XLOCB(19,BOFP,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132
RH
2077{ "bnsrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PWRCOM, { CR } },
2078{ "bnulr", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2079{ "bnulr-", XLOCB(19,BOF,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2080{ "bnulr+", XLOCB(19,BOFP,CBSO,16,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2081{ "bnulrl", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2082{ "bnulrl-", XLOCB(19,BOF,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2083{ "bnulrl+", XLOCB(19,BOFP,CBSO,16,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2084{ "btlr", XLO(19,BOT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2085{ "btlr-", XLO(19,BOT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2086{ "btlr+", XLO(19,BOTP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132
RH
2087{ "bbtr", XLO(19,BOT,16,0), XLBOBB_MASK, PWRCOM, { BI } },
2088{ "btlrl", XLO(19,BOT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2089{ "btlrl-", XLO(19,BOT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2090{ "btlrl+", XLO(19,BOTP,16,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132
RH
2091{ "bbtrl", XLO(19,BOT,16,1), XLBOBB_MASK, PWRCOM, { BI } },
2092{ "bflr", XLO(19,BOF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2093{ "bflr-", XLO(19,BOF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2094{ "bflr+", XLO(19,BOFP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132
RH
2095{ "bbfr", XLO(19,BOF,16,0), XLBOBB_MASK, PWRCOM, { BI } },
2096{ "bflrl", XLO(19,BOF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2097{ "bflrl-", XLO(19,BOF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2098{ "bflrl+", XLO(19,BOFP,16,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132
RH
2099{ "bbfrl", XLO(19,BOF,16,1), XLBOBB_MASK, PWRCOM, { BI } },
2100{ "bdnztlr", XLO(19,BODNZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2101{ "bdnztlr-",XLO(19,BODNZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2102{ "bdnztlr+",XLO(19,BODNZTP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2103{ "bdnztlrl",XLO(19,BODNZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2104{ "bdnztlrl-",XLO(19,BODNZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2105{ "bdnztlrl+",XLO(19,BODNZTP,16,1), XLBOBB_MASK, PPCCOM,{ BI } },
252b5132 2106{ "bdnzflr", XLO(19,BODNZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2107{ "bdnzflr-",XLO(19,BODNZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2108{ "bdnzflr+",XLO(19,BODNZFP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2109{ "bdnzflrl",XLO(19,BODNZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2110{ "bdnzflrl-",XLO(19,BODNZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2111{ "bdnzflrl+",XLO(19,BODNZFP,16,1), XLBOBB_MASK, PPCCOM,{ BI } },
252b5132 2112{ "bdztlr", XLO(19,BODZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2113{ "bdztlr-", XLO(19,BODZT,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2114{ "bdztlr+", XLO(19,BODZTP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2115{ "bdztlrl", XLO(19,BODZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2116{ "bdztlrl-",XLO(19,BODZT,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2117{ "bdztlrl+",XLO(19,BODZTP,16,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2118{ "bdzflr", XLO(19,BODZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2119{ "bdzflr-", XLO(19,BODZF,16,0), XLBOBB_MASK, PPCCOM, { BI } },
2120{ "bdzflr+", XLO(19,BODZFP,16,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2121{ "bdzflrl", XLO(19,BODZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2122{ "bdzflrl-",XLO(19,BODZF,16,1), XLBOBB_MASK, PPCCOM, { BI } },
2123{ "bdzflrl+",XLO(19,BODZFP,16,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132
RH
2124{ "bclr", XLLK(19,16,0), XLYBB_MASK, PPCCOM, { BO, BI } },
2125{ "bclrl", XLLK(19,16,1), XLYBB_MASK, PPCCOM, { BO, BI } },
d2f75a6f
GK
2126{ "bclr+", XLYLK(19,16,1,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
2127{ "bclrl+", XLYLK(19,16,1,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
2128{ "bclr-", XLYLK(19,16,0,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
2129{ "bclrl-", XLYLK(19,16,0,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
252b5132
RH
2130{ "bcr", XLLK(19,16,0), XLBB_MASK, PWRCOM, { BO, BI } },
2131{ "bcrl", XLLK(19,16,1), XLBB_MASK, PWRCOM, { BO, BI } },
2132
f509565f
GK
2133{ "rfid", XL(19,18), 0xffffffff, PPC64, { 0 } },
2134
252b5132
RH
2135{ "crnot", XL(19,33), XL_MASK, PPCCOM, { BT, BA, BBA } },
2136{ "crnor", XL(19,33), XL_MASK, COM, { BT, BA, BB } },
2137
2138{ "rfi", XL(19,50), 0xffffffff, COM, { 0 } },
e0c21649 2139{ "rfci", XL(19,51), 0xffffffff, PPC403, { 0 } },
252b5132
RH
2140
2141{ "rfsvc", XL(19,82), 0xffffffff, POWER, { 0 } },
2142
2143{ "crandc", XL(19,129), XL_MASK, COM, { BT, BA, BB } },
2144
2145{ "isync", XL(19,150), 0xffffffff, PPCCOM, { 0 } },
2146{ "ics", XL(19,150), 0xffffffff, PWRCOM, { 0 } },
2147
2148{ "crclr", XL(19,193), XL_MASK, PPCCOM, { BT, BAT, BBA } },
2149{ "crxor", XL(19,193), XL_MASK, COM, { BT, BA, BB } },
2150
2151{ "crnand", XL(19,225), XL_MASK, COM, { BT, BA, BB } },
2152
2153{ "crand", XL(19,257), XL_MASK, COM, { BT, BA, BB } },
2154
2155{ "crset", XL(19,289), XL_MASK, PPCCOM, { BT, BAT, BBA } },
2156{ "creqv", XL(19,289), XL_MASK, COM, { BT, BA, BB } },
2157
2158{ "crorc", XL(19,417), XL_MASK, COM, { BT, BA, BB } },
2159
2160{ "crmove", XL(19,449), XL_MASK, PPCCOM, { BT, BA, BBA } },
2161{ "cror", XL(19,449), XL_MASK, COM, { BT, BA, BB } },
2162
2163{ "bctr", XLO(19,BOU,528,0), XLBOBIBB_MASK, COM, { 0 } },
2164{ "bctrl", XLO(19,BOU,528,1), XLBOBIBB_MASK, COM, { 0 } },
2165{ "bltctr", XLOCB(19,BOT,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2166{ "bltctr-", XLOCB(19,BOT,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2167{ "bltctr+", XLOCB(19,BOTP,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2168{ "bltctrl", XLOCB(19,BOT,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2169{ "bltctrl-",XLOCB(19,BOT,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2170{ "bltctrl+",XLOCB(19,BOTP,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2171{ "bgtctr", XLOCB(19,BOT,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2172{ "bgtctr-", XLOCB(19,BOT,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2173{ "bgtctr+", XLOCB(19,BOTP,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2174{ "bgtctrl", XLOCB(19,BOT,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2175{ "bgtctrl-",XLOCB(19,BOT,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2176{ "bgtctrl+",XLOCB(19,BOTP,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2177{ "beqctr", XLOCB(19,BOT,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2178{ "beqctr-", XLOCB(19,BOT,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2179{ "beqctr+", XLOCB(19,BOTP,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2180{ "beqctrl", XLOCB(19,BOT,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2181{ "beqctrl-",XLOCB(19,BOT,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2182{ "beqctrl+",XLOCB(19,BOTP,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2183{ "bsoctr", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2184{ "bsoctr-", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2185{ "bsoctr+", XLOCB(19,BOTP,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2186{ "bsoctrl", XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2187{ "bsoctrl-",XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2188{ "bsoctrl+",XLOCB(19,BOTP,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2189{ "bunctr", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2190{ "bunctr-", XLOCB(19,BOT,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2191{ "bunctr+", XLOCB(19,BOTP,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2192{ "bunctrl", XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2193{ "bunctrl-",XLOCB(19,BOT,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2194{ "bunctrl+",XLOCB(19,BOTP,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2195{ "bgectr", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2196{ "bgectr-", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2197{ "bgectr+", XLOCB(19,BOFP,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2198{ "bgectrl", XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2199{ "bgectrl-",XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2200{ "bgectrl+",XLOCB(19,BOFP,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2201{ "bnlctr", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2202{ "bnlctr-", XLOCB(19,BOF,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2203{ "bnlctr+", XLOCB(19,BOFP,CBLT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2204{ "bnlctrl", XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2205{ "bnlctrl-",XLOCB(19,BOF,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2206{ "bnlctrl+",XLOCB(19,BOFP,CBLT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2207{ "blectr", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2208{ "blectr-", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2209{ "blectr+", XLOCB(19,BOFP,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2210{ "blectrl", XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2211{ "blectrl-",XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2212{ "blectrl+",XLOCB(19,BOFP,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2213{ "bngctr", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2214{ "bngctr-", XLOCB(19,BOF,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2215{ "bngctr+", XLOCB(19,BOFP,CBGT,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2216{ "bngctrl", XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2217{ "bngctrl-",XLOCB(19,BOF,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2218{ "bngctrl+",XLOCB(19,BOFP,CBGT,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2219{ "bnectr", XLOCB(19,BOF,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2220{ "bnectr-", XLOCB(19,BOF,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2221{ "bnectr+", XLOCB(19,BOFP,CBEQ,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2222{ "bnectrl", XLOCB(19,BOF,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2223{ "bnectrl-",XLOCB(19,BOF,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2224{ "bnectrl+",XLOCB(19,BOFP,CBEQ,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2225{ "bnsctr", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2226{ "bnsctr-", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2227{ "bnsctr+", XLOCB(19,BOFP,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2228{ "bnsctrl", XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2229{ "bnsctrl-",XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2230{ "bnsctrl+",XLOCB(19,BOFP,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2231{ "bnuctr", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2232{ "bnuctr-", XLOCB(19,BOF,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
2233{ "bnuctr+", XLOCB(19,BOFP,CBSO,528,0), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2234{ "bnuctrl", XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
d2f75a6f
GK
2235{ "bnuctrl-",XLOCB(19,BOF,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
2236{ "bnuctrl+",XLOCB(19,BOFP,CBSO,528,1), XLBOCBBB_MASK, PPCCOM, { CR } },
252b5132 2237{ "btctr", XLO(19,BOT,528,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2238{ "btctr-", XLO(19,BOT,528,0), XLBOBB_MASK, PPCCOM, { BI } },
2239{ "btctr+", XLO(19,BOTP,528,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2240{ "btctrl", XLO(19,BOT,528,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2241{ "btctrl-", XLO(19,BOT,528,1), XLBOBB_MASK, PPCCOM, { BI } },
2242{ "btctrl+", XLO(19,BOTP,528,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2243{ "bfctr", XLO(19,BOF,528,0), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2244{ "bfctr-", XLO(19,BOF,528,0), XLBOBB_MASK, PPCCOM, { BI } },
2245{ "bfctr+", XLO(19,BOFP,528,0), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2246{ "bfctrl", XLO(19,BOF,528,1), XLBOBB_MASK, PPCCOM, { BI } },
d2f75a6f
GK
2247{ "bfctrl-", XLO(19,BOF,528,1), XLBOBB_MASK, PPCCOM, { BI } },
2248{ "bfctrl+", XLO(19,BOFP,528,1), XLBOBB_MASK, PPCCOM, { BI } },
252b5132 2249{ "bcctr", XLLK(19,528,0), XLYBB_MASK, PPCCOM, { BO, BI } },
d2f75a6f
GK
2250{ "bcctr-", XLYLK(19,528,0,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
2251{ "bcctr+", XLYLK(19,528,1,0), XLYBB_MASK, PPCCOM, { BOE, BI } },
252b5132 2252{ "bcctrl", XLLK(19,528,1), XLYBB_MASK, PPCCOM, { BO, BI } },
d2f75a6f
GK
2253{ "bcctrl-", XLYLK(19,528,0,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
2254{ "bcctrl+", XLYLK(19,528,1,1), XLYBB_MASK, PPCCOM, { BOE, BI } },
252b5132
RH
2255{ "bcc", XLLK(19,528,0), XLBB_MASK, PWRCOM, { BO, BI } },
2256{ "bccl", XLLK(19,528,1), XLBB_MASK, PWRCOM, { BO, BI } },
2257
2258{ "rlwimi", M(20,0), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
2259{ "rlimi", M(20,0), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
2260
2261{ "rlwimi.", M(20,1), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
2262{ "rlimi.", M(20,1), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
2263
2264{ "rotlwi", MME(21,31,0), MMBME_MASK, PPCCOM, { RA, RS, SH } },
2265{ "clrlwi", MME(21,31,0), MSHME_MASK, PPCCOM, { RA, RS, MB } },
2266{ "rlwinm", M(21,0), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
2267{ "rlinm", M(21,0), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
2268{ "rotlwi.", MME(21,31,1), MMBME_MASK, PPCCOM, { RA,RS,SH } },
2269{ "clrlwi.", MME(21,31,1), MSHME_MASK, PPCCOM, { RA, RS, MB } },
2270{ "rlwinm.", M(21,1), M_MASK, PPCCOM, { RA,RS,SH,MBE,ME } },
2271{ "rlinm.", M(21,1), M_MASK, PWRCOM, { RA,RS,SH,MBE,ME } },
2272
2273{ "rlmi", M(22,0), M_MASK, M601, { RA,RS,RB,MBE,ME } },
2274{ "rlmi.", M(22,1), M_MASK, M601, { RA,RS,RB,MBE,ME } },
2275
2276{ "rotlw", MME(23,31,0), MMBME_MASK, PPCCOM, { RA, RS, RB } },
2277{ "rlwnm", M(23,0), M_MASK, PPCCOM, { RA,RS,RB,MBE,ME } },
2278{ "rlnm", M(23,0), M_MASK, PWRCOM, { RA,RS,RB,MBE,ME } },
2279{ "rotlw.", MME(23,31,1), MMBME_MASK, PPCCOM, { RA, RS, RB } },
2280{ "rlwnm.", M(23,1), M_MASK, PPCCOM, { RA,RS,RB,MBE,ME } },
2281{ "rlnm.", M(23,1), M_MASK, PWRCOM, { RA,RS,RB,MBE,ME } },
2282
2283{ "nop", OP(24), 0xffffffff, PPCCOM, { 0 } },
2284{ "ori", OP(24), OP_MASK, PPCCOM, { RA, RS, UI } },
2285{ "oril", OP(24), OP_MASK, PWRCOM, { RA, RS, UI } },
2286
2287{ "oris", OP(25), OP_MASK, PPCCOM, { RA, RS, UI } },
2288{ "oriu", OP(25), OP_MASK, PWRCOM, { RA, RS, UI } },
2289
2290{ "xori", OP(26), OP_MASK, PPCCOM, { RA, RS, UI } },
2291{ "xoril", OP(26), OP_MASK, PWRCOM, { RA, RS, UI } },
2292
2293{ "xoris", OP(27), OP_MASK, PPCCOM, { RA, RS, UI } },
2294{ "xoriu", OP(27), OP_MASK, PWRCOM, { RA, RS, UI } },
2295
2296{ "andi.", OP(28), OP_MASK, PPCCOM, { RA, RS, UI } },
2297{ "andil.", OP(28), OP_MASK, PWRCOM, { RA, RS, UI } },
2298
2299{ "andis.", OP(29), OP_MASK, PPCCOM, { RA, RS, UI } },
2300{ "andiu.", OP(29), OP_MASK, PWRCOM, { RA, RS, UI } },
2301
2302{ "rotldi", MD(30,0,0), MDMB_MASK, PPC64, { RA, RS, SH6 } },
2303{ "clrldi", MD(30,0,0), MDSH_MASK, PPC64, { RA, RS, MB6 } },
2304{ "rldicl", MD(30,0,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2305{ "rotldi.", MD(30,0,1), MDMB_MASK, PPC64, { RA, RS, SH6 } },
2306{ "clrldi.", MD(30,0,1), MDSH_MASK, PPC64, { RA, RS, MB6 } },
2307{ "rldicl.", MD(30,0,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2308
2309{ "rldicr", MD(30,1,0), MD_MASK, PPC64, { RA, RS, SH6, ME6 } },
2310{ "rldicr.", MD(30,1,1), MD_MASK, PPC64, { RA, RS, SH6, ME6 } },
2311
2312{ "rldic", MD(30,2,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2313{ "rldic.", MD(30,2,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2314
2315{ "rldimi", MD(30,3,0), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2316{ "rldimi.", MD(30,3,1), MD_MASK, PPC64, { RA, RS, SH6, MB6 } },
2317
2318{ "rotld", MDS(30,8,0), MDSMB_MASK, PPC64, { RA, RS, RB } },
2319{ "rldcl", MDS(30,8,0), MDS_MASK, PPC64, { RA, RS, RB, MB6 } },
2320{ "rotld.", MDS(30,8,1), MDSMB_MASK, PPC64, { RA, RS, RB } },
2321{ "rldcl.", MDS(30,8,1), MDS_MASK, PPC64, { RA, RS, RB, MB6 } },
2322
2323{ "rldcr", MDS(30,9,0), MDS_MASK, PPC64, { RA, RS, RB, ME6 } },
2324{ "rldcr.", MDS(30,9,1), MDS_MASK, PPC64, { RA, RS, RB, ME6 } },
2325
2326{ "cmpw", XCMPL(31,0,0), XCMPL_MASK, PPCCOM, { OBF, RA, RB } },
2327{ "cmpd", XCMPL(31,0,1), XCMPL_MASK, PPC64, { OBF, RA, RB } },
2328{ "cmp", X(31,0), XCMP_MASK, PPCONLY, { BF, L, RA, RB } },
2329{ "cmp", X(31,0), XCMPL_MASK, PWRCOM, { BF, RA, RB } },
2330
2331{ "twlgt", XTO(31,4,TOLGT), XTO_MASK, PPCCOM, { RA, RB } },
2332{ "tlgt", XTO(31,4,TOLGT), XTO_MASK, PWRCOM, { RA, RB } },
2333{ "twllt", XTO(31,4,TOLLT), XTO_MASK, PPCCOM, { RA, RB } },
2334{ "tllt", XTO(31,4,TOLLT), XTO_MASK, PWRCOM, { RA, RB } },
2335{ "tweq", XTO(31,4,TOEQ), XTO_MASK, PPCCOM, { RA, RB } },
2336{ "teq", XTO(31,4,TOEQ), XTO_MASK, PWRCOM, { RA, RB } },
2337{ "twlge", XTO(31,4,TOLGE), XTO_MASK, PPCCOM, { RA, RB } },
2338{ "tlge", XTO(31,4,TOLGE), XTO_MASK, PWRCOM, { RA, RB } },
2339{ "twlnl", XTO(31,4,TOLNL), XTO_MASK, PPCCOM, { RA, RB } },
2340{ "tlnl", XTO(31,4,TOLNL), XTO_MASK, PWRCOM, { RA, RB } },
2341{ "twlle", XTO(31,4,TOLLE), XTO_MASK, PPCCOM, { RA, RB } },
2342{ "tlle", XTO(31,4,TOLLE), XTO_MASK, PWRCOM, { RA, RB } },
2343{ "twlng", XTO(31,4,TOLNG), XTO_MASK, PPCCOM, { RA, RB } },
2344{ "tlng", XTO(31,4,TOLNG), XTO_MASK, PWRCOM, { RA, RB } },
2345{ "twgt", XTO(31,4,TOGT), XTO_MASK, PPCCOM, { RA, RB } },
2346{ "tgt", XTO(31,4,TOGT), XTO_MASK, PWRCOM, { RA, RB } },
2347{ "twge", XTO(31,4,TOGE), XTO_MASK, PPCCOM, { RA, RB } },
2348{ "tge", XTO(31,4,TOGE), XTO_MASK, PWRCOM, { RA, RB } },
2349{ "twnl", XTO(31,4,TONL), XTO_MASK, PPCCOM, { RA, RB } },
2350{ "tnl", XTO(31,4,TONL), XTO_MASK, PWRCOM, { RA, RB } },
2351{ "twlt", XTO(31,4,TOLT), XTO_MASK, PPCCOM, { RA, RB } },
2352{ "tlt", XTO(31,4,TOLT), XTO_MASK, PWRCOM, { RA, RB } },
2353{ "twle", XTO(31,4,TOLE), XTO_MASK, PPCCOM, { RA, RB } },
2354{ "tle", XTO(31,4,TOLE), XTO_MASK, PWRCOM, { RA, RB } },
2355{ "twng", XTO(31,4,TONG), XTO_MASK, PPCCOM, { RA, RB } },
2356{ "tng", XTO(31,4,TONG), XTO_MASK, PWRCOM, { RA, RB } },
2357{ "twne", XTO(31,4,TONE), XTO_MASK, PPCCOM, { RA, RB } },
2358{ "tne", XTO(31,4,TONE), XTO_MASK, PWRCOM, { RA, RB } },
2359{ "trap", XTO(31,4,TOU), 0xffffffff, PPCCOM, { 0 } },
2360{ "tw", X(31,4), X_MASK, PPCCOM, { TO, RA, RB } },
2361{ "t", X(31,4), X_MASK, PWRCOM, { TO, RA, RB } },
2362
2363{ "subfc", XO(31,8,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2364{ "sf", XO(31,8,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2365{ "subc", XO(31,8,0,0), XO_MASK, PPC, { RT, RB, RA } },
2366{ "subfc.", XO(31,8,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2367{ "sf.", XO(31,8,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2368{ "subc.", XO(31,8,0,1), XO_MASK, PPCCOM, { RT, RB, RA } },
2369{ "subfco", XO(31,8,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2370{ "sfo", XO(31,8,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2371{ "subco", XO(31,8,1,0), XO_MASK, PPC, { RT, RB, RA } },
2372{ "subfco.", XO(31,8,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2373{ "sfo.", XO(31,8,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2374{ "subco.", XO(31,8,1,1), XO_MASK, PPC, { RT, RB, RA } },
2375
2376{ "mulhdu", XO(31,9,0,0), XO_MASK, PPC64, { RT, RA, RB } },
2377{ "mulhdu.", XO(31,9,0,1), XO_MASK, PPC64, { RT, RA, RB } },
2378
2379{ "addc", XO(31,10,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2380{ "a", XO(31,10,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2381{ "addc.", XO(31,10,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2382{ "a.", XO(31,10,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2383{ "addco", XO(31,10,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2384{ "ao", XO(31,10,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2385{ "addco.", XO(31,10,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2386{ "ao.", XO(31,10,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2387
2388{ "mulhwu", XO(31,11,0,0), XO_MASK, PPC, { RT, RA, RB } },
2389{ "mulhwu.", XO(31,11,0,1), XO_MASK, PPC, { RT, RA, RB } },
2390
2391{ "mfcr", X(31,19), XRARB_MASK, COM, { RT } },
2392
2393{ "lwarx", X(31,20), X_MASK, PPC, { RT, RA, RB } },
2394
2395{ "ldx", X(31,21), X_MASK, PPC64, { RT, RA, RB } },
2396
2397{ "lwzx", X(31,23), X_MASK, PPCCOM, { RT, RA, RB } },
2398{ "lx", X(31,23), X_MASK, PWRCOM, { RT, RA, RB } },
2399
2400{ "slw", XRC(31,24,0), X_MASK, PPCCOM, { RA, RS, RB } },
2401{ "sl", XRC(31,24,0), X_MASK, PWRCOM, { RA, RS, RB } },
2402{ "slw.", XRC(31,24,1), X_MASK, PPCCOM, { RA, RS, RB } },
2403{ "sl.", XRC(31,24,1), X_MASK, PWRCOM, { RA, RS, RB } },
2404
2405{ "cntlzw", XRC(31,26,0), XRB_MASK, PPCCOM, { RA, RS } },
2406{ "cntlz", XRC(31,26,0), XRB_MASK, PWRCOM, { RA, RS } },
2407{ "cntlzw.", XRC(31,26,1), XRB_MASK, PPCCOM, { RA, RS } },
2408{ "cntlz.", XRC(31,26,1), XRB_MASK, PWRCOM, { RA, RS } },
2409
2410{ "sld", XRC(31,27,0), X_MASK, PPC64, { RA, RS, RB } },
2411{ "sld.", XRC(31,27,1), X_MASK, PPC64, { RA, RS, RB } },
2412
2413{ "and", XRC(31,28,0), X_MASK, COM, { RA, RS, RB } },
2414{ "and.", XRC(31,28,1), X_MASK, COM, { RA, RS, RB } },
2415
2416{ "maskg", XRC(31,29,0), X_MASK, M601, { RA, RS, RB } },
2417{ "maskg.", XRC(31,29,1), X_MASK, M601, { RA, RS, RB } },
2418
2419{ "cmplw", XCMPL(31,32,0), XCMPL_MASK, PPCCOM, { OBF, RA, RB } },
2420{ "cmpld", XCMPL(31,32,1), XCMPL_MASK, PPC64, { OBF, RA, RB } },
2421{ "cmpl", X(31,32), XCMP_MASK, PPCONLY, { BF, L, RA, RB } },
2422{ "cmpl", X(31,32), XCMPL_MASK, PWRCOM, { BF, RA, RB } },
2423
2424{ "subf", XO(31,40,0,0), XO_MASK, PPC, { RT, RA, RB } },
2425{ "sub", XO(31,40,0,0), XO_MASK, PPC, { RT, RB, RA } },
2426{ "subf.", XO(31,40,0,1), XO_MASK, PPC, { RT, RA, RB } },
2427{ "sub.", XO(31,40,0,1), XO_MASK, PPC, { RT, RB, RA } },
2428{ "subfo", XO(31,40,1,0), XO_MASK, PPC, { RT, RA, RB } },
2429{ "subo", XO(31,40,1,0), XO_MASK, PPC, { RT, RB, RA } },
2430{ "subfo.", XO(31,40,1,1), XO_MASK, PPC, { RT, RA, RB } },
2431{ "subo.", XO(31,40,1,1), XO_MASK, PPC, { RT, RB, RA } },
2432
2433{ "ldux", X(31,53), X_MASK, PPC64, { RT, RAL, RB } },
2434
2435{ "dcbst", X(31,54), XRT_MASK, PPC, { RA, RB } },
2436
2437{ "lwzux", X(31,55), X_MASK, PPCCOM, { RT, RAL, RB } },
2438{ "lux", X(31,55), X_MASK, PWRCOM, { RT, RA, RB } },
2439
2440{ "cntlzd", XRC(31,58,0), XRB_MASK, PPC64, { RA, RS } },
2441{ "cntlzd.", XRC(31,58,1), XRB_MASK, PPC64, { RA, RS } },
2442
2443{ "andc", XRC(31,60,0), X_MASK, COM, { RA, RS, RB } },
2444{ "andc.", XRC(31,60,1), X_MASK, COM, { RA, RS, RB } },
2445
2446{ "tdlgt", XTO(31,68,TOLGT), XTO_MASK, PPC64, { RA, RB } },
2447{ "tdllt", XTO(31,68,TOLLT), XTO_MASK, PPC64, { RA, RB } },
2448{ "tdeq", XTO(31,68,TOEQ), XTO_MASK, PPC64, { RA, RB } },
2449{ "tdlge", XTO(31,68,TOLGE), XTO_MASK, PPC64, { RA, RB } },
2450{ "tdlnl", XTO(31,68,TOLNL), XTO_MASK, PPC64, { RA, RB } },
2451{ "tdlle", XTO(31,68,TOLLE), XTO_MASK, PPC64, { RA, RB } },
2452{ "tdlng", XTO(31,68,TOLNG), XTO_MASK, PPC64, { RA, RB } },
2453{ "tdgt", XTO(31,68,TOGT), XTO_MASK, PPC64, { RA, RB } },
2454{ "tdge", XTO(31,68,TOGE), XTO_MASK, PPC64, { RA, RB } },
2455{ "tdnl", XTO(31,68,TONL), XTO_MASK, PPC64, { RA, RB } },
2456{ "tdlt", XTO(31,68,TOLT), XTO_MASK, PPC64, { RA, RB } },
2457{ "tdle", XTO(31,68,TOLE), XTO_MASK, PPC64, { RA, RB } },
2458{ "tdng", XTO(31,68,TONG), XTO_MASK, PPC64, { RA, RB } },
2459{ "tdne", XTO(31,68,TONE), XTO_MASK, PPC64, { RA, RB } },
2460{ "td", X(31,68), X_MASK, PPC64, { TO, RA, RB } },
2461
2462{ "mulhd", XO(31,73,0,0), XO_MASK, PPC64, { RT, RA, RB } },
2463{ "mulhd.", XO(31,73,0,1), XO_MASK, PPC64, { RT, RA, RB } },
2464
2465{ "mulhw", XO(31,75,0,0), XO_MASK, PPC, { RT, RA, RB } },
2466{ "mulhw.", XO(31,75,0,1), XO_MASK, PPC, { RT, RA, RB } },
2467
f509565f
GK
2468{ "mtsrd", X(31,82), XRB_MASK|(1<<20), PPC64, { SR, RS } },
2469
252b5132
RH
2470{ "mfmsr", X(31,83), XRARB_MASK, COM, { RT } },
2471
2472{ "ldarx", X(31,84), X_MASK, PPC64, { RT, RA, RB } },
2473
2474{ "dcbf", X(31,86), XRT_MASK, PPC, { RA, RB } },
2475
2476{ "lbzx", X(31,87), X_MASK, COM, { RT, RA, RB } },
2477
2478{ "neg", XO(31,104,0,0), XORB_MASK, COM, { RT, RA } },
2479{ "neg.", XO(31,104,0,1), XORB_MASK, COM, { RT, RA } },
2480{ "nego", XO(31,104,1,0), XORB_MASK, COM, { RT, RA } },
2481{ "nego.", XO(31,104,1,1), XORB_MASK, COM, { RT, RA } },
2482
2483{ "mul", XO(31,107,0,0), XO_MASK, M601, { RT, RA, RB } },
2484{ "mul.", XO(31,107,0,1), XO_MASK, M601, { RT, RA, RB } },
2485{ "mulo", XO(31,107,1,0), XO_MASK, M601, { RT, RA, RB } },
2486{ "mulo.", XO(31,107,1,1), XO_MASK, M601, { RT, RA, RB } },
2487
f509565f
GK
2488{ "mtsrdin", X(31,114), XRA_MASK, PPC64, { RS, RB } },
2489
2dd46b8b 2490{ "clf", X(31,118), XTO_MASK, POWER, { RA, RB } },
252b5132
RH
2491
2492{ "lbzux", X(31,119), X_MASK, COM, { RT, RAL, RB } },
2493
2494{ "not", XRC(31,124,0), X_MASK, COM, { RA, RS, RBS } },
2495{ "nor", XRC(31,124,0), X_MASK, COM, { RA, RS, RB } },
2496{ "not.", XRC(31,124,1), X_MASK, COM, { RA, RS, RBS } },
2497{ "nor.", XRC(31,124,1), X_MASK, COM, { RA, RS, RB } },
2498
2499{ "wrtee", X(31,131), XRARB_MASK, PPC403, { RS } },
2500
2501{ "subfe", XO(31,136,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2502{ "sfe", XO(31,136,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2503{ "subfe.", XO(31,136,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2504{ "sfe.", XO(31,136,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2505{ "subfeo", XO(31,136,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2506{ "sfeo", XO(31,136,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2507{ "subfeo.", XO(31,136,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2508{ "sfeo.", XO(31,136,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2509
2510{ "adde", XO(31,138,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2511{ "ae", XO(31,138,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2512{ "adde.", XO(31,138,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2513{ "ae.", XO(31,138,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2514{ "addeo", XO(31,138,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2515{ "aeo", XO(31,138,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2516{ "addeo.", XO(31,138,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2517{ "aeo.", XO(31,138,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2518
2519{ "mtcr", XFXM(31,144,0xff), XFXFXM_MASK|FXM_MASK, COM, { RS }},
2520{ "mtcrf", X(31,144), XFXFXM_MASK, COM, { FXM, RS } },
2521
2522{ "mtmsr", X(31,146), XRARB_MASK, COM, { RS } },
2523
2524{ "stdx", X(31,149), X_MASK, PPC64, { RS, RA, RB } },
2525
2526{ "stwcx.", XRC(31,150,1), X_MASK, PPC, { RS, RA, RB } },
2527
2528{ "stwx", X(31,151), X_MASK, PPCCOM, { RS, RA, RB } },
2529{ "stx", X(31,151), X_MASK, PWRCOM, { RS, RA, RB } },
2530
2531{ "slq", XRC(31,152,0), X_MASK, M601, { RA, RS, RB } },
2532{ "slq.", XRC(31,152,1), X_MASK, M601, { RA, RS, RB } },
2533
2534{ "sle", XRC(31,153,0), X_MASK, M601, { RA, RS, RB } },
2535{ "sle.", XRC(31,153,1), X_MASK, M601, { RA, RS, RB } },
2536
2537{ "wrteei", X(31,163), XE_MASK, PPC403, { E } },
2538
f509565f
GK
2539{ "mtmsrd", X(31,178), XRARB_MASK, PPC64, { RS } },
2540
252b5132
RH
2541{ "stdux", X(31,181), X_MASK, PPC64, { RS, RAS, RB } },
2542
2543{ "stwux", X(31,183), X_MASK, PPCCOM, { RS, RAS, RB } },
2544{ "stux", X(31,183), X_MASK, PWRCOM, { RS, RA, RB } },
2545
2546{ "sliq", XRC(31,184,0), X_MASK, M601, { RA, RS, SH } },
2547{ "sliq.", XRC(31,184,1), X_MASK, M601, { RA, RS, SH } },
2548
2549{ "subfze", XO(31,200,0,0), XORB_MASK, PPCCOM, { RT, RA } },
2550{ "sfze", XO(31,200,0,0), XORB_MASK, PWRCOM, { RT, RA } },
2551{ "subfze.", XO(31,200,0,1), XORB_MASK, PPCCOM, { RT, RA } },
2552{ "sfze.", XO(31,200,0,1), XORB_MASK, PWRCOM, { RT, RA } },
2553{ "subfzeo", XO(31,200,1,0), XORB_MASK, PPCCOM, { RT, RA } },
2554{ "sfzeo", XO(31,200,1,0), XORB_MASK, PWRCOM, { RT, RA } },
2555{ "subfzeo.",XO(31,200,1,1), XORB_MASK, PPCCOM, { RT, RA } },
2556{ "sfzeo.", XO(31,200,1,1), XORB_MASK, PWRCOM, { RT, RA } },
2557
2558{ "addze", XO(31,202,0,0), XORB_MASK, PPCCOM, { RT, RA } },
2559{ "aze", XO(31,202,0,0), XORB_MASK, PWRCOM, { RT, RA } },
2560{ "addze.", XO(31,202,0,1), XORB_MASK, PPCCOM, { RT, RA } },
2561{ "aze.", XO(31,202,0,1), XORB_MASK, PWRCOM, { RT, RA } },
2562{ "addzeo", XO(31,202,1,0), XORB_MASK, PPCCOM, { RT, RA } },
2563{ "azeo", XO(31,202,1,0), XORB_MASK, PWRCOM, { RT, RA } },
2564{ "addzeo.", XO(31,202,1,1), XORB_MASK, PPCCOM, { RT, RA } },
2565{ "azeo.", XO(31,202,1,1), XORB_MASK, PWRCOM, { RT, RA } },
2566
2567{ "mtsr", X(31,210), XRB_MASK|(1<<20), COM32, { SR, RS } },
2568
2569{ "stdcx.", XRC(31,214,1), X_MASK, PPC64, { RS, RA, RB } },
2570
2571{ "stbx", X(31,215), X_MASK, COM, { RS, RA, RB } },
2572
2573{ "sllq", XRC(31,216,0), X_MASK, M601, { RA, RS, RB } },
2574{ "sllq.", XRC(31,216,1), X_MASK, M601, { RA, RS, RB } },
2575
2576{ "sleq", XRC(31,217,0), X_MASK, M601, { RA, RS, RB } },
2577{ "sleq.", XRC(31,217,1), X_MASK, M601, { RA, RS, RB } },
2578
2579{ "subfme", XO(31,232,0,0), XORB_MASK, PPCCOM, { RT, RA } },
2580{ "sfme", XO(31,232,0,0), XORB_MASK, PWRCOM, { RT, RA } },
2581{ "subfme.", XO(31,232,0,1), XORB_MASK, PPCCOM, { RT, RA } },
2582{ "sfme.", XO(31,232,0,1), XORB_MASK, PWRCOM, { RT, RA } },
2583{ "subfmeo", XO(31,232,1,0), XORB_MASK, PPCCOM, { RT, RA } },
2584{ "sfmeo", XO(31,232,1,0), XORB_MASK, PWRCOM, { RT, RA } },
2585{ "subfmeo.",XO(31,232,1,1), XORB_MASK, PPCCOM, { RT, RA } },
2586{ "sfmeo.", XO(31,232,1,1), XORB_MASK, PWRCOM, { RT, RA } },
2587
2588{ "mulld", XO(31,233,0,0), XO_MASK, PPC64, { RT, RA, RB } },
2589{ "mulld.", XO(31,233,0,1), XO_MASK, PPC64, { RT, RA, RB } },
2590{ "mulldo", XO(31,233,1,0), XO_MASK, PPC64, { RT, RA, RB } },
2591{ "mulldo.", XO(31,233,1,1), XO_MASK, PPC64, { RT, RA, RB } },
2592
2593{ "addme", XO(31,234,0,0), XORB_MASK, PPCCOM, { RT, RA } },
2594{ "ame", XO(31,234,0,0), XORB_MASK, PWRCOM, { RT, RA } },
2595{ "addme.", XO(31,234,0,1), XORB_MASK, PPCCOM, { RT, RA } },
2596{ "ame.", XO(31,234,0,1), XORB_MASK, PWRCOM, { RT, RA } },
2597{ "addmeo", XO(31,234,1,0), XORB_MASK, PPCCOM, { RT, RA } },
2598{ "ameo", XO(31,234,1,0), XORB_MASK, PWRCOM, { RT, RA } },
2599{ "addmeo.", XO(31,234,1,1), XORB_MASK, PPCCOM, { RT, RA } },
2600{ "ameo.", XO(31,234,1,1), XORB_MASK, PWRCOM, { RT, RA } },
2601
2602{ "mullw", XO(31,235,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2603{ "muls", XO(31,235,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2604{ "mullw.", XO(31,235,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2605{ "muls.", XO(31,235,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2606{ "mullwo", XO(31,235,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2607{ "mulso", XO(31,235,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2608{ "mullwo.", XO(31,235,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2609{ "mulso.", XO(31,235,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2610
2611{ "mtsrin", X(31,242), XRA_MASK, PPC32, { RS, RB } },
2612{ "mtsri", X(31,242), XRA_MASK, POWER32, { RS, RB } },
2613
2614{ "dcbtst", X(31,246), XRT_MASK, PPC, { RA, RB } },
2615
2616{ "stbux", X(31,247), X_MASK, COM, { RS, RAS, RB } },
2617
2618{ "slliq", XRC(31,248,0), X_MASK, M601, { RA, RS, SH } },
2619{ "slliq.", XRC(31,248,1), X_MASK, M601, { RA, RS, SH } },
2620
2621{ "doz", XO(31,264,0,0), XO_MASK, M601, { RT, RA, RB } },
2622{ "doz.", XO(31,264,0,1), XO_MASK, M601, { RT, RA, RB } },
2623{ "dozo", XO(31,264,1,0), XO_MASK, M601, { RT, RA, RB } },
2624{ "dozo.", XO(31,264,1,1), XO_MASK, M601, { RT, RA, RB } },
2625
2626{ "add", XO(31,266,0,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2627{ "cax", XO(31,266,0,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2628{ "add.", XO(31,266,0,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2629{ "cax.", XO(31,266,0,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2630{ "addo", XO(31,266,1,0), XO_MASK, PPCCOM, { RT, RA, RB } },
2631{ "caxo", XO(31,266,1,0), XO_MASK, PWRCOM, { RT, RA, RB } },
2632{ "addo.", XO(31,266,1,1), XO_MASK, PPCCOM, { RT, RA, RB } },
2633{ "caxo.", XO(31,266,1,1), XO_MASK, PWRCOM, { RT, RA, RB } },
2634
2635{ "lscbx", XRC(31,277,0), X_MASK, M601, { RT, RA, RB } },
2636{ "lscbx.", XRC(31,277,1), X_MASK, M601, { RT, RA, RB } },
2637
2638{ "dcbt", X(31,278), XRT_MASK, PPC, { RA, RB } },
2639
2640{ "lhzx", X(31,279), X_MASK, COM, { RT, RA, RB } },
2641
e0c21649 2642{ "icbt", X(31,262), XRT_MASK, PPC403, { RA, RB } },
252b5132
RH
2643
2644{ "eqv", XRC(31,284,0), X_MASK, COM, { RA, RS, RB } },
2645{ "eqv.", XRC(31,284,1), X_MASK, COM, { RA, RS, RB } },
2646
2647{ "tlbie", X(31,306), XRTRA_MASK, PPC, { RB } },
2648{ "tlbi", X(31,306), XRT_MASK, POWER, { RA, RB } },
2649
2650{ "eciwx", X(31,310), X_MASK, PPC, { RT, RA, RB } },
2651
2652{ "lhzux", X(31,311), X_MASK, COM, { RT, RAL, RB } },
2653
2654{ "xor", XRC(31,316,0), X_MASK, COM, { RA, RS, RB } },
2655{ "xor.", XRC(31,316,1), X_MASK, COM, { RA, RS, RB } },
2656
2657{ "mfexisr", XSPR(31,323,64), XSPR_MASK, PPC403, { RT } },
2658{ "mfexier", XSPR(31,323,66), XSPR_MASK, PPC403, { RT } },
2659{ "mfbr0", XSPR(31,323,128), XSPR_MASK, PPC403, { RT } },
2660{ "mfbr1", XSPR(31,323,129), XSPR_MASK, PPC403, { RT } },
2661{ "mfbr2", XSPR(31,323,130), XSPR_MASK, PPC403, { RT } },
2662{ "mfbr3", XSPR(31,323,131), XSPR_MASK, PPC403, { RT } },
2663{ "mfbr4", XSPR(31,323,132), XSPR_MASK, PPC403, { RT } },
2664{ "mfbr5", XSPR(31,323,133), XSPR_MASK, PPC403, { RT } },
2665{ "mfbr6", XSPR(31,323,134), XSPR_MASK, PPC403, { RT } },
2666{ "mfbr7", XSPR(31,323,135), XSPR_MASK, PPC403, { RT } },
2667{ "mfbear", XSPR(31,323,144), XSPR_MASK, PPC403, { RT } },
2668{ "mfbesr", XSPR(31,323,145), XSPR_MASK, PPC403, { RT } },
2669{ "mfiocr", XSPR(31,323,160), XSPR_MASK, PPC403, { RT } },
2670{ "mfdmacr0", XSPR(31,323,192), XSPR_MASK, PPC403, { RT } },
2671{ "mfdmact0", XSPR(31,323,193), XSPR_MASK, PPC403, { RT } },
2672{ "mfdmada0", XSPR(31,323,194), XSPR_MASK, PPC403, { RT } },
2673{ "mfdmasa0", XSPR(31,323,195), XSPR_MASK, PPC403, { RT } },
2674{ "mfdmacc0", XSPR(31,323,196), XSPR_MASK, PPC403, { RT } },
2675{ "mfdmacr1", XSPR(31,323,200), XSPR_MASK, PPC403, { RT } },
2676{ "mfdmact1", XSPR(31,323,201), XSPR_MASK, PPC403, { RT } },
2677{ "mfdmada1", XSPR(31,323,202), XSPR_MASK, PPC403, { RT } },
2678{ "mfdmasa1", XSPR(31,323,203), XSPR_MASK, PPC403, { RT } },
2679{ "mfdmacc1", XSPR(31,323,204), XSPR_MASK, PPC403, { RT } },
2680{ "mfdmacr2", XSPR(31,323,208), XSPR_MASK, PPC403, { RT } },
2681{ "mfdmact2", XSPR(31,323,209), XSPR_MASK, PPC403, { RT } },
2682{ "mfdmada2", XSPR(31,323,210), XSPR_MASK, PPC403, { RT } },
2683{ "mfdmasa2", XSPR(31,323,211), XSPR_MASK, PPC403, { RT } },
2684{ "mfdmacc2", XSPR(31,323,212), XSPR_MASK, PPC403, { RT } },
2685{ "mfdmacr3", XSPR(31,323,216), XSPR_MASK, PPC403, { RT } },
2686{ "mfdmact3", XSPR(31,323,217), XSPR_MASK, PPC403, { RT } },
2687{ "mfdmada3", XSPR(31,323,218), XSPR_MASK, PPC403, { RT } },
2688{ "mfdmasa3", XSPR(31,323,219), XSPR_MASK, PPC403, { RT } },
2689{ "mfdmacc3", XSPR(31,323,220), XSPR_MASK, PPC403, { RT } },
2690{ "mfdmasr", XSPR(31,323,224), XSPR_MASK, PPC403, { RT } },
e0c21649 2691{ "mfdcr", X(31,323), X_MASK, PPC403, { RT, SPR } },
252b5132
RH
2692
2693{ "div", XO(31,331,0,0), XO_MASK, M601, { RT, RA, RB } },
2694{ "div.", XO(31,331,0,1), XO_MASK, M601, { RT, RA, RB } },
2695{ "divo", XO(31,331,1,0), XO_MASK, M601, { RT, RA, RB } },
2696{ "divo.", XO(31,331,1,1), XO_MASK, M601, { RT, RA, RB } },
2697
2698{ "mfmq", XSPR(31,339,0), XSPR_MASK, M601, { RT } },
2699{ "mfxer", XSPR(31,339,1), XSPR_MASK, COM, { RT } },
2700{ "mfrtcu", XSPR(31,339,4), XSPR_MASK, COM, { RT } },
2701{ "mfrtcl", XSPR(31,339,5), XSPR_MASK, COM, { RT } },
2702{ "mfdec", XSPR(31,339,6), XSPR_MASK, MFDEC1, { RT } },
2703{ "mflr", XSPR(31,339,8), XSPR_MASK, COM, { RT } },
2704{ "mfctr", XSPR(31,339,9), XSPR_MASK, COM, { RT } },
2705{ "mftid", XSPR(31,339,17), XSPR_MASK, POWER, { RT } },
2706{ "mfdsisr", XSPR(31,339,18), XSPR_MASK, COM, { RT } },
2707{ "mfdar", XSPR(31,339,19), XSPR_MASK, COM, { RT } },
2708{ "mfdec", XSPR(31,339,22), XSPR_MASK, MFDEC2, { RT } },
2709{ "mfsdr0", XSPR(31,339,24), XSPR_MASK, POWER, { RT } },
2710{ "mfsdr1", XSPR(31,339,25), XSPR_MASK, COM, { RT } },
2711{ "mfsrr0", XSPR(31,339,26), XSPR_MASK, COM, { RT } },
2712{ "mfsrr1", XSPR(31,339,27), XSPR_MASK, COM, { RT } },
2713{ "mfcmpa", XSPR(31,339,144), XSPR_MASK, PPC860, { RT } },
2714{ "mfcmpb", XSPR(31,339,145), XSPR_MASK, PPC860, { RT } },
2715{ "mfcmpc", XSPR(31,339,146), XSPR_MASK, PPC860, { RT } },
2716{ "mfcmpd", XSPR(31,339,147), XSPR_MASK, PPC860, { RT } },
2717{ "mficr", XSPR(31,339,148), XSPR_MASK, PPC860, { RT } },
2718{ "mfder", XSPR(31,339,149), XSPR_MASK, PPC860, { RT } },
2719{ "mfcounta", XSPR(31,339,150), XSPR_MASK, PPC860, { RT } },
2720{ "mfcountb", XSPR(31,339,151), XSPR_MASK, PPC860, { RT } },
2721{ "mfcmpe", XSPR(31,339,152), XSPR_MASK, PPC860, { RT } },
2722{ "mfcmpf", XSPR(31,339,153), XSPR_MASK, PPC860, { RT } },
2723{ "mfcmpg", XSPR(31,339,154), XSPR_MASK, PPC860, { RT } },
2724{ "mfcmph", XSPR(31,339,155), XSPR_MASK, PPC860, { RT } },
2725{ "mflctrl1", XSPR(31,339,156), XSPR_MASK, PPC860, { RT } },
2726{ "mflctrl2", XSPR(31,339,157), XSPR_MASK, PPC860, { RT } },
2727{ "mfictrl", XSPR(31,339,158), XSPR_MASK, PPC860, { RT } },
2728{ "mfbar", XSPR(31,339,159), XSPR_MASK, PPC860, { RT } },
e0c21649
GK
2729{ "mfsprg4", XSPR(31,339,260), XSPR_MASK, PPC405, { RT } },
2730{ "mfsprg5", XSPR(31,339,261), XSPR_MASK, PPC405, { RT } },
2731{ "mfsprg6", XSPR(31,339,262), XSPR_MASK, PPC405, { RT } },
2732{ "mfsprg7", XSPR(31,339,263), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2733{ "mfsprg", XSPR(31,339,272), XSPRG_MASK, PPC, { RT, SPRG } },
2734{ "mfsprg0", XSPR(31,339,272), XSPR_MASK, PPC, { RT } },
2735{ "mfsprg1", XSPR(31,339,273), XSPR_MASK, PPC, { RT } },
2736{ "mfsprg2", XSPR(31,339,274), XSPR_MASK, PPC, { RT } },
2737{ "mfsprg3", XSPR(31,339,275), XSPR_MASK, PPC, { RT } },
2738{ "mfasr", XSPR(31,339,280), XSPR_MASK, PPC64, { RT } },
2739{ "mfear", XSPR(31,339,282), XSPR_MASK, PPC, { RT } },
2740{ "mfpvr", XSPR(31,339,287), XSPR_MASK, PPC, { RT } },
2741{ "mfibatu", XSPR(31,339,528), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
2742{ "mfibatl", XSPR(31,339,529), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
2743{ "mfdbatu", XSPR(31,339,536), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
2744{ "mfdbatl", XSPR(31,339,537), XSPRBAT_MASK, PPC, { RT, SPRBAT } },
2745{ "mfic_cst", XSPR(31,339,560), XSPR_MASK, PPC860, { RT } },
2746{ "mfic_adr", XSPR(31,339,561), XSPR_MASK, PPC860, { RT } },
2747{ "mfic_dat", XSPR(31,339,562), XSPR_MASK, PPC860, { RT } },
2748{ "mfdc_cst", XSPR(31,339,568), XSPR_MASK, PPC860, { RT } },
2749{ "mfdc_adr", XSPR(31,339,569), XSPR_MASK, PPC860, { RT } },
2750{ "mfdc_dat", XSPR(31,339,570), XSPR_MASK, PPC860, { RT } },
2751{ "mfdpdr", XSPR(31,339,630), XSPR_MASK, PPC860, { RT } },
2752{ "mfdpir", XSPR(31,339,631), XSPR_MASK, PPC860, { RT } },
2753{ "mfimmr", XSPR(31,339,638), XSPR_MASK, PPC860, { RT } },
2754{ "mfmi_ctr", XSPR(31,339,784), XSPR_MASK, PPC860, { RT } },
2755{ "mfmi_ap", XSPR(31,339,786), XSPR_MASK, PPC860, { RT } },
2756{ "mfmi_epn", XSPR(31,339,787), XSPR_MASK, PPC860, { RT } },
2757{ "mfmi_twc", XSPR(31,339,789), XSPR_MASK, PPC860, { RT } },
2758{ "mfmi_rpn", XSPR(31,339,790), XSPR_MASK, PPC860, { RT } },
2759{ "mfmd_ctr", XSPR(31,339,792), XSPR_MASK, PPC860, { RT } },
2760{ "mfm_casid",XSPR(31,339,793), XSPR_MASK, PPC860, { RT } },
2761{ "mfmd_ap", XSPR(31,339,794), XSPR_MASK, PPC860, { RT } },
2762{ "mfmd_epn", XSPR(31,339,795), XSPR_MASK, PPC860, { RT } },
2763{ "mfmd_twb", XSPR(31,339,796), XSPR_MASK, PPC860, { RT } },
2764{ "mfmd_twc", XSPR(31,339,797), XSPR_MASK, PPC860, { RT } },
2765{ "mfmd_rpn", XSPR(31,339,798), XSPR_MASK, PPC860, { RT } },
2766{ "mfm_tw", XSPR(31,339,799), XSPR_MASK, PPC860, { RT } },
2767{ "mfmi_dbcam",XSPR(31,339,816), XSPR_MASK, PPC860, { RT } },
2768{ "mfmi_dbram0",XSPR(31,339,817), XSPR_MASK, PPC860, { RT } },
2769{ "mfmi_dbram1",XSPR(31,339,818), XSPR_MASK, PPC860, { RT } },
2770{ "mfmd_dbcam", XSPR(31,339,824), XSPR_MASK, PPC860, { RT } },
2771{ "mfmd_dbram0",XSPR(31,339,825), XSPR_MASK, PPC860, { RT } },
2772{ "mfmd_dbram1",XSPR(31,339,826), XSPR_MASK, PPC860, { RT } },
e0c21649
GK
2773{ "mfzpr", XSPR(31,339,944), XSPR_MASK, PPC403, { RT } },
2774{ "mfpid", XSPR(31,339,945), XSPR_MASK, PPC403, { RT } },
2775{ "mfccr0", XSPR(31,339,947), XSPR_MASK, PPC405, { RT } },
2776{ "mficdbdr", XSPR(31,339,979), XSPR_MASK, PPC403, { RT } },
252b5132
RH
2777{ "mfummcr0", XSPR(31,339,936), XSPR_MASK, PPC750, { RT } },
2778{ "mfupmc1", XSPR(31,339,937), XSPR_MASK, PPC750, { RT } },
2779{ "mfupmc2", XSPR(31,339,938), XSPR_MASK, PPC750, { RT } },
2780{ "mfusia", XSPR(31,339,939), XSPR_MASK, PPC750, { RT } },
2781{ "mfummcr1", XSPR(31,339,940), XSPR_MASK, PPC750, { RT } },
2782{ "mfupmc3", XSPR(31,339,941), XSPR_MASK, PPC750, { RT } },
2783{ "mfupmc4", XSPR(31,339,942), XSPR_MASK, PPC750, { RT } },
e0c21649
GK
2784{ "mfiac3", XSPR(31,339,948), XSPR_MASK, PPC405, { RT } },
2785{ "mfiac4", XSPR(31,339,949), XSPR_MASK, PPC405, { RT } },
2786{ "mfdvc1", XSPR(31,339,950), XSPR_MASK, PPC405, { RT } },
2787{ "mfdvc2", XSPR(31,339,951), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2788{ "mfmmcr0", XSPR(31,339,952), XSPR_MASK, PPC750, { RT } },
2789{ "mfpmc1", XSPR(31,339,953), XSPR_MASK, PPC750, { RT } },
e0c21649 2790{ "mfsgr", XSPR(31,339,953), XSPR_MASK, PPC403, { RT } },
252b5132 2791{ "mfpmc2", XSPR(31,339,954), XSPR_MASK, PPC750, { RT } },
e0c21649 2792{ "mfdcwr", XSPR(31,339,954), XSPR_MASK, PPC403, { RT } },
252b5132 2793{ "mfsia", XSPR(31,339,955), XSPR_MASK, PPC750, { RT } },
e0c21649 2794{ "mfsler", XSPR(31,339,955), XSPR_MASK, PPC405, { RT } },
252b5132 2795{ "mfmmcr1", XSPR(31,339,956), XSPR_MASK, PPC750, { RT } },
e0c21649 2796{ "mfsu0r", XSPR(31,339,956), XSPR_MASK, PPC405, { RT } },
252b5132 2797{ "mfpmc3", XSPR(31,339,957), XSPR_MASK, PPC750, { RT } },
e0c21649 2798{ "mfdbcr1", XSPR(31,339,957), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2799{ "mfpmc4", XSPR(31,339,958), XSPR_MASK, PPC750, { RT } },
2800{ "mfesr", XSPR(31,339,980), XSPR_MASK, PPC403, { RT } },
2801{ "mfdear", XSPR(31,339,981), XSPR_MASK, PPC403, { RT } },
2802{ "mfevpr", XSPR(31,339,982), XSPR_MASK, PPC403, { RT } },
2803{ "mfcdbcr", XSPR(31,339,983), XSPR_MASK, PPC403, { RT } },
2804{ "mftsr", XSPR(31,339,984), XSPR_MASK, PPC403, { RT } },
2805{ "mftcr", XSPR(31,339,986), XSPR_MASK, PPC403, { RT } },
2806{ "mfpit", XSPR(31,339,987), XSPR_MASK, PPC403, { RT } },
2807{ "mftbhi", XSPR(31,339,988), XSPR_MASK, PPC403, { RT } },
2808{ "mftblo", XSPR(31,339,989), XSPR_MASK, PPC403, { RT } },
2809{ "mfsrr2", XSPR(31,339,990), XSPR_MASK, PPC403, { RT } },
2810{ "mfsrr3", XSPR(31,339,991), XSPR_MASK, PPC403, { RT } },
2811{ "mfdbsr", XSPR(31,339,1008), XSPR_MASK, PPC403, { RT } },
e0c21649 2812{ "mfdbcr0", XSPR(31,339,1010), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2813{ "mfiac1", XSPR(31,339,1012), XSPR_MASK, PPC403, { RT } },
2814{ "mfiac2", XSPR(31,339,1013), XSPR_MASK, PPC403, { RT } },
2815{ "mfdac1", XSPR(31,339,1014), XSPR_MASK, PPC403, { RT } },
2816{ "mfdac2", XSPR(31,339,1015), XSPR_MASK, PPC403, { RT } },
2817{ "mfdccr", XSPR(31,339,1018), XSPR_MASK, PPC403, { RT } },
2818{ "mficcr", XSPR(31,339,1019), XSPR_MASK, PPC403, { RT } },
2819{ "mfpbl1", XSPR(31,339,1020), XSPR_MASK, PPC403, { RT } },
2820{ "mfpbu1", XSPR(31,339,1021), XSPR_MASK, PPC403, { RT } },
2821{ "mfpbl2", XSPR(31,339,1022), XSPR_MASK, PPC403, { RT } },
2822{ "mfpbu2", XSPR(31,339,1023), XSPR_MASK, PPC403, { RT } },
2823{ "mfl2cr", XSPR(31,339,1017), XSPR_MASK, PPC750, { RT } },
2824{ "mfictc", XSPR(31,339,1019), XSPR_MASK, PPC750, { RT } },
2825{ "mfthrm1", XSPR(31,339,1020), XSPR_MASK, PPC750, { RT } },
2826{ "mfthrm2", XSPR(31,339,1021), XSPR_MASK, PPC750, { RT } },
2827{ "mfthrm3", XSPR(31,339,1022), XSPR_MASK, PPC750, { RT } },
2828{ "mfspr", X(31,339), X_MASK, COM, { RT, SPR } },
2829
2830{ "lwax", X(31,341), X_MASK, PPC64, { RT, RA, RB } },
2831
2832{ "lhax", X(31,343), X_MASK, COM, { RT, RA, RB } },
2833
e0c21649 2834{ "dccci", X(31,454), XRT_MASK, PPC403, { RA, RB } },
252b5132
RH
2835
2836{ "abs", XO(31,360,0,0), XORB_MASK, M601, { RT, RA } },
2837{ "abs.", XO(31,360,0,1), XORB_MASK, M601, { RT, RA } },
2838{ "abso", XO(31,360,1,0), XORB_MASK, M601, { RT, RA } },
2839{ "abso.", XO(31,360,1,1), XORB_MASK, M601, { RT, RA } },
2840
2841{ "divs", XO(31,363,0,0), XO_MASK, M601, { RT, RA, RB } },
2842{ "divs.", XO(31,363,0,1), XO_MASK, M601, { RT, RA, RB } },
2843{ "divso", XO(31,363,1,0), XO_MASK, M601, { RT, RA, RB } },
2844{ "divso.", XO(31,363,1,1), XO_MASK, M601, { RT, RA, RB } },
2845
2846{ "tlbia", X(31,370), 0xffffffff, PPC, { 0 } },
2847
e0c21649 2848{ "mftbl", XSPR(31,371,268), XSPR_MASK, PPC, { RT } },
252b5132
RH
2849{ "mftbu", XSPR(31,371,269), XSPR_MASK, PPC, { RT } },
2850{ "mftb", X(31,371), X_MASK, PPC, { RT, TBR } },
2851
2852{ "lwaux", X(31,373), X_MASK, PPC64, { RT, RAL, RB } },
2853
2854{ "lhaux", X(31,375), X_MASK, COM, { RT, RAL, RB } },
2855
2856{ "sthx", X(31,407), X_MASK, COM, { RS, RA, RB } },
2857
2858{ "lfqx", X(31,791), X_MASK, POWER2, { FRT, RA, RB } },
2859
2860{ "lfqux", X(31,823), X_MASK, POWER2, { FRT, RA, RB } },
2861
2862{ "stfqx", X(31,919), X_MASK, POWER2, { FRS, RA, RB } },
2863
2864{ "stfqux", X(31,951), X_MASK, POWER2, { FRS, RA, RB } },
2865
2866{ "orc", XRC(31,412,0), X_MASK, COM, { RA, RS, RB } },
2867{ "orc.", XRC(31,412,1), X_MASK, COM, { RA, RS, RB } },
2868
2869{ "sradi", XS(31,413,0), XS_MASK, PPC64, { RA, RS, SH6 } },
2870{ "sradi.", XS(31,413,1), XS_MASK, PPC64, { RA, RS, SH6 } },
2871
2872{ "slbie", X(31,434), XRTRA_MASK, PPC64, { RB } },
2873
2874{ "ecowx", X(31,438), X_MASK, PPC, { RT, RA, RB } },
2875
2876{ "sthux", X(31,439), X_MASK, COM, { RS, RAS, RB } },
2877
2878{ "mr", XRC(31,444,0), X_MASK, COM, { RA, RS, RBS } },
2879{ "or", XRC(31,444,0), X_MASK, COM, { RA, RS, RB } },
2880{ "mr.", XRC(31,444,1), X_MASK, COM, { RA, RS, RBS } },
2881{ "or.", XRC(31,444,1), X_MASK, COM, { RA, RS, RB } },
2882
2883{ "mtexisr", XSPR(31,451,64), XSPR_MASK, PPC403, { RT } },
2884{ "mtexier", XSPR(31,451,66), XSPR_MASK, PPC403, { RT } },
2885{ "mtbr0", XSPR(31,451,128), XSPR_MASK, PPC403, { RT } },
2886{ "mtbr1", XSPR(31,451,129), XSPR_MASK, PPC403, { RT } },
2887{ "mtbr2", XSPR(31,451,130), XSPR_MASK, PPC403, { RT } },
2888{ "mtbr3", XSPR(31,451,131), XSPR_MASK, PPC403, { RT } },
2889{ "mtbr4", XSPR(31,451,132), XSPR_MASK, PPC403, { RT } },
2890{ "mtbr5", XSPR(31,451,133), XSPR_MASK, PPC403, { RT } },
2891{ "mtbr6", XSPR(31,451,134), XSPR_MASK, PPC403, { RT } },
2892{ "mtbr7", XSPR(31,451,135), XSPR_MASK, PPC403, { RT } },
2893{ "mtbear", XSPR(31,451,144), XSPR_MASK, PPC403, { RT } },
2894{ "mtbesr", XSPR(31,451,145), XSPR_MASK, PPC403, { RT } },
2895{ "mtiocr", XSPR(31,451,160), XSPR_MASK, PPC403, { RT } },
2896{ "mtdmacr0", XSPR(31,451,192), XSPR_MASK, PPC403, { RT } },
2897{ "mtdmact0", XSPR(31,451,193), XSPR_MASK, PPC403, { RT } },
2898{ "mtdmada0", XSPR(31,451,194), XSPR_MASK, PPC403, { RT } },
2899{ "mtdmasa0", XSPR(31,451,195), XSPR_MASK, PPC403, { RT } },
2900{ "mtdmacc0", XSPR(31,451,196), XSPR_MASK, PPC403, { RT } },
2901{ "mtdmacr1", XSPR(31,451,200), XSPR_MASK, PPC403, { RT } },
2902{ "mtdmact1", XSPR(31,451,201), XSPR_MASK, PPC403, { RT } },
2903{ "mtdmada1", XSPR(31,451,202), XSPR_MASK, PPC403, { RT } },
2904{ "mtdmasa1", XSPR(31,451,203), XSPR_MASK, PPC403, { RT } },
2905{ "mtdmacc1", XSPR(31,451,204), XSPR_MASK, PPC403, { RT } },
2906{ "mtdmacr2", XSPR(31,451,208), XSPR_MASK, PPC403, { RT } },
2907{ "mtdmact2", XSPR(31,451,209), XSPR_MASK, PPC403, { RT } },
2908{ "mtdmada2", XSPR(31,451,210), XSPR_MASK, PPC403, { RT } },
2909{ "mtdmasa2", XSPR(31,451,211), XSPR_MASK, PPC403, { RT } },
2910{ "mtdmacc2", XSPR(31,451,212), XSPR_MASK, PPC403, { RT } },
2911{ "mtdmacr3", XSPR(31,451,216), XSPR_MASK, PPC403, { RT } },
2912{ "mtdmact3", XSPR(31,451,217), XSPR_MASK, PPC403, { RT } },
2913{ "mtdmada3", XSPR(31,451,218), XSPR_MASK, PPC403, { RT } },
2914{ "mtdmasa3", XSPR(31,451,219), XSPR_MASK, PPC403, { RT } },
2915{ "mtdmacc3", XSPR(31,451,220), XSPR_MASK, PPC403, { RT } },
2916{ "mtdmasr", XSPR(31,451,224), XSPR_MASK, PPC403, { RT } },
e0c21649 2917{ "mtdcr", X(31,451), X_MASK, PPC403, { SPR, RS } },
252b5132
RH
2918
2919{ "divdu", XO(31,457,0,0), XO_MASK, PPC64, { RT, RA, RB } },
2920{ "divdu.", XO(31,457,0,1), XO_MASK, PPC64, { RT, RA, RB } },
2921{ "divduo", XO(31,457,1,0), XO_MASK, PPC64, { RT, RA, RB } },
2922{ "divduo.", XO(31,457,1,1), XO_MASK, PPC64, { RT, RA, RB } },
2923
2924{ "divwu", XO(31,459,0,0), XO_MASK, PPC, { RT, RA, RB } },
2925{ "divwu.", XO(31,459,0,1), XO_MASK, PPC, { RT, RA, RB } },
2926{ "divwuo", XO(31,459,1,0), XO_MASK, PPC, { RT, RA, RB } },
2927{ "divwuo.", XO(31,459,1,1), XO_MASK, PPC, { RT, RA, RB } },
2928
2929{ "mtmq", XSPR(31,467,0), XSPR_MASK, M601, { RS } },
2930{ "mtxer", XSPR(31,467,1), XSPR_MASK, COM, { RS } },
2931{ "mtlr", XSPR(31,467,8), XSPR_MASK, COM, { RS } },
2932{ "mtctr", XSPR(31,467,9), XSPR_MASK, COM, { RS } },
2933{ "mttid", XSPR(31,467,17), XSPR_MASK, POWER, { RS } },
2934{ "mtdsisr", XSPR(31,467,18), XSPR_MASK, COM, { RS } },
2935{ "mtdar", XSPR(31,467,19), XSPR_MASK, COM, { RS } },
2936{ "mtrtcu", XSPR(31,467,20), XSPR_MASK, COM, { RS } },
2937{ "mtrtcl", XSPR(31,467,21), XSPR_MASK, COM, { RS } },
2938{ "mtdec", XSPR(31,467,22), XSPR_MASK, COM, { RS } },
2939{ "mtsdr0", XSPR(31,467,24), XSPR_MASK, POWER, { RS } },
2940{ "mtsdr1", XSPR(31,467,25), XSPR_MASK, COM, { RS } },
2941{ "mtsrr0", XSPR(31,467,26), XSPR_MASK, COM, { RS } },
2942{ "mtsrr1", XSPR(31,467,27), XSPR_MASK, COM, { RS } },
2943{ "mtcmpa", XSPR(31,467,144), XSPR_MASK, PPC860, { RT } },
2944{ "mtcmpb", XSPR(31,467,145), XSPR_MASK, PPC860, { RT } },
2945{ "mtcmpc", XSPR(31,467,146), XSPR_MASK, PPC860, { RT } },
2946{ "mtcmpd", XSPR(31,467,147), XSPR_MASK, PPC860, { RT } },
2947{ "mticr", XSPR(31,467,148), XSPR_MASK, PPC860, { RT } },
2948{ "mtder", XSPR(31,467,149), XSPR_MASK, PPC860, { RT } },
2949{ "mtcounta", XSPR(31,467,150), XSPR_MASK, PPC860, { RT } },
2950{ "mtcountb", XSPR(31,467,151), XSPR_MASK, PPC860, { RT } },
2951{ "mtcmpe", XSPR(31,467,152), XSPR_MASK, PPC860, { RT } },
2952{ "mtcmpf", XSPR(31,467,153), XSPR_MASK, PPC860, { RT } },
2953{ "mtcmpg", XSPR(31,467,154), XSPR_MASK, PPC860, { RT } },
2954{ "mtcmph", XSPR(31,467,155), XSPR_MASK, PPC860, { RT } },
2955{ "mtlctrl1", XSPR(31,467,156), XSPR_MASK, PPC860, { RT } },
2956{ "mtlctrl2", XSPR(31,467,157), XSPR_MASK, PPC860, { RT } },
2957{ "mtictrl", XSPR(31,467,158), XSPR_MASK, PPC860, { RT } },
2958{ "mtbar", XSPR(31,467,159), XSPR_MASK, PPC860, { RT } },
2959{ "mtsprg", XSPR(31,467,272), XSPRG_MASK, PPC, { SPRG, RS } },
2960{ "mtsprg0", XSPR(31,467,272), XSPR_MASK, PPC, { RT } },
2961{ "mtsprg1", XSPR(31,467,273), XSPR_MASK, PPC, { RT } },
2962{ "mtsprg2", XSPR(31,467,274), XSPR_MASK, PPC, { RT } },
2963{ "mtsprg3", XSPR(31,467,275), XSPR_MASK, PPC, { RT } },
e0c21649
GK
2964{ "mtsprg4", XSPR(31,467,276), XSPR_MASK, PPC405, { RT } },
2965{ "mtsprg5", XSPR(31,467,277), XSPR_MASK, PPC405, { RT } },
2966{ "mtsprg6", XSPR(31,467,278), XSPR_MASK, PPC405, { RT } },
2967{ "mtsprg7", XSPR(31,467,279), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2968{ "mtasr", XSPR(31,467,280), XSPR_MASK, PPC64, { RS } },
2969{ "mtear", XSPR(31,467,282), XSPR_MASK, PPC, { RS } },
2970{ "mttbl", XSPR(31,467,284), XSPR_MASK, PPC, { RS } },
2971{ "mttbu", XSPR(31,467,285), XSPR_MASK, PPC, { RS } },
2972{ "mtibatu", XSPR(31,467,528), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
2973{ "mtibatl", XSPR(31,467,529), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
2974{ "mtdbatu", XSPR(31,467,536), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
2975{ "mtdbatl", XSPR(31,467,537), XSPRBAT_MASK, PPC, { SPRBAT, RS } },
2976{ "mtzpr", XSPR(31,467,944), XSPR_MASK, PPC403, { RT } },
2977{ "mtpid", XSPR(31,467,945), XSPR_MASK, PPC403, { RT } },
e0c21649
GK
2978{ "mtccr0", XSPR(31,467,947), XSPR_MASK, PPC405, { RT } },
2979{ "mtiac3", XSPR(31,467,948), XSPR_MASK, PPC405, { RT } },
2980{ "mtiac4", XSPR(31,467,949), XSPR_MASK, PPC405, { RT } },
2981{ "mtdvc1", XSPR(31,467,950), XSPR_MASK, PPC405, { RT } },
2982{ "mtdvc2", XSPR(31,467,951), XSPR_MASK, PPC405, { RT } },
2983{ "mtsgr", XSPR(31,467,953), XSPR_MASK, PPC403, { RT } },
2984{ "mtdcwr", XSPR(31,467,954), XSPR_MASK, PPC403, { RT } },
2985{ "mtsler", XSPR(31,467,955), XSPR_MASK, PPC405, { RT } },
2986{ "mtsu0r", XSPR(31,467,956), XSPR_MASK, PPC405, { RT } },
2987{ "mtdbcr1", XSPR(31,467,957), XSPR_MASK, PPC405, { RT } },
252b5132
RH
2988{ "mticdbdr",XSPR(31,467,979), XSPR_MASK, PPC403, { RT } },
2989{ "mtesr", XSPR(31,467,980), XSPR_MASK, PPC403, { RT } },
e0c21649 2990{ "mtdear", XSPR(31,467,981), XSPR_MASK, PPC403, { RT } },
252b5132
RH
2991{ "mtevpr", XSPR(31,467,982), XSPR_MASK, PPC403, { RT } },
2992{ "mtcdbcr", XSPR(31,467,983), XSPR_MASK, PPC403, { RT } },
2993{ "mttsr", XSPR(31,467,984), XSPR_MASK, PPC403, { RT } },
2994{ "mttcr", XSPR(31,467,986), XSPR_MASK, PPC403, { RT } },
2995{ "mtpit", XSPR(31,467,987), XSPR_MASK, PPC403, { RT } },
2996{ "mttbhi", XSPR(31,467,988), XSPR_MASK, PPC403, { RT } },
2997{ "mttblo", XSPR(31,467,989), XSPR_MASK, PPC403, { RT } },
2998{ "mtsrr2", XSPR(31,467,990), XSPR_MASK, PPC403, { RT } },
2999{ "mtsrr3", XSPR(31,467,991), XSPR_MASK, PPC403, { RT } },
3000{ "mtdbsr", XSPR(31,467,1008), XSPR_MASK, PPC403, { RT } },
e0c21649 3001{ "mtdbcr0", XSPR(31,467,1010), XSPR_MASK, PPC405, { RT } },
252b5132
RH
3002{ "mtiac1", XSPR(31,467,1012), XSPR_MASK, PPC403, { RT } },
3003{ "mtiac2", XSPR(31,467,1013), XSPR_MASK, PPC403, { RT } },
3004{ "mtdac1", XSPR(31,467,1014), XSPR_MASK, PPC403, { RT } },
3005{ "mtdac2", XSPR(31,467,1015), XSPR_MASK, PPC403, { RT } },
3006{ "mtdccr", XSPR(31,467,1018), XSPR_MASK, PPC403, { RT } },
3007{ "mticcr", XSPR(31,467,1019), XSPR_MASK, PPC403, { RT } },
3008{ "mtpbl1", XSPR(31,467,1020), XSPR_MASK, PPC403, { RT } },
3009{ "mtpbu1", XSPR(31,467,1021), XSPR_MASK, PPC403, { RT } },
3010{ "mtpbl2", XSPR(31,467,1022), XSPR_MASK, PPC403, { RT } },
3011{ "mtpbu2", XSPR(31,467,1023), XSPR_MASK, PPC403, { RT } },
24a7a601
C
3012{ "mtummcr0", XSPR(31,467,936), XSPR_MASK, PPC750, { RT } },
3013{ "mtupmc1", XSPR(31,467,937), XSPR_MASK, PPC750, { RT } },
3014{ "mtupmc2", XSPR(31,467,938), XSPR_MASK, PPC750, { RT } },
3015{ "mtusia", XSPR(31,467,939), XSPR_MASK, PPC750, { RT } },
3016{ "mtummcr1", XSPR(31,467,940), XSPR_MASK, PPC750, { RT } },
3017{ "mtupmc3", XSPR(31,467,941), XSPR_MASK, PPC750, { RT } },
3018{ "mtupmc4", XSPR(31,467,942), XSPR_MASK, PPC750, { RT } },
3019{ "mtmmcr0", XSPR(31,467,952), XSPR_MASK, PPC750, { RT } },
3020{ "mtpmc1", XSPR(31,467,953), XSPR_MASK, PPC750, { RT } },
3021{ "mtpmc2", XSPR(31,467,954), XSPR_MASK, PPC750, { RT } },
3022{ "mtsia", XSPR(31,467,955), XSPR_MASK, PPC750, { RT } },
3023{ "mtmmcr1", XSPR(31,467,956), XSPR_MASK, PPC750, { RT } },
3024{ "mtpmc3", XSPR(31,467,957), XSPR_MASK, PPC750, { RT } },
3025{ "mtpmc4", XSPR(31,467,958), XSPR_MASK, PPC750, { RT } },
3026{ "mtl2cr", XSPR(31,467,1017), XSPR_MASK, PPC750, { RT } },
3027{ "mtictc", XSPR(31,467,1019), XSPR_MASK, PPC750, { RT } },
3028{ "mtthrm1", XSPR(31,467,1020), XSPR_MASK, PPC750, { RT } },
3029{ "mtthrm2", XSPR(31,467,1021), XSPR_MASK, PPC750, { RT } },
3030{ "mtthrm3", XSPR(31,467,1022), XSPR_MASK, PPC750, { RT } },
252b5132
RH
3031{ "mtspr", X(31,467), X_MASK, COM, { SPR, RS } },
3032
3033{ "dcbi", X(31,470), XRT_MASK, PPC, { RA, RB } },
3034
3035{ "nand", XRC(31,476,0), X_MASK, COM, { RA, RS, RB } },
3036{ "nand.", XRC(31,476,1), X_MASK, COM, { RA, RS, RB } },
3037
4db3857a 3038{ "dcread", X(31,486), X_MASK, PPC403, { RT, RA, RB }},
252b5132
RH
3039
3040{ "nabs", XO(31,488,0,0), XORB_MASK, M601, { RT, RA } },
3041{ "nabs.", XO(31,488,0,1), XORB_MASK, M601, { RT, RA } },
3042{ "nabso", XO(31,488,1,0), XORB_MASK, M601, { RT, RA } },
3043{ "nabso.", XO(31,488,1,1), XORB_MASK, M601, { RT, RA } },
3044
3045{ "divd", XO(31,489,0,0), XO_MASK, PPC64, { RT, RA, RB } },
3046{ "divd.", XO(31,489,0,1), XO_MASK, PPC64, { RT, RA, RB } },
3047{ "divdo", XO(31,489,1,0), XO_MASK, PPC64, { RT, RA, RB } },
3048{ "divdo.", XO(31,489,1,1), XO_MASK, PPC64, { RT, RA, RB } },
3049
3050{ "divw", XO(31,491,0,0), XO_MASK, PPC, { RT, RA, RB } },
3051{ "divw.", XO(31,491,0,1), XO_MASK, PPC, { RT, RA, RB } },
3052{ "divwo", XO(31,491,1,0), XO_MASK, PPC, { RT, RA, RB } },
3053{ "divwo.", XO(31,491,1,1), XO_MASK, PPC, { RT, RA, RB } },
3054
3055{ "slbia", X(31,498), 0xffffffff, PPC64, { 0 } },
3056
3057{ "cli", X(31,502), XRB_MASK, POWER, { RT, RA } },
3058
3059{ "mcrxr", X(31,512), XRARB_MASK|(3<<21), COM, { BF } },
3060
3061{ "clcs", X(31,531), XRB_MASK, M601, { RT, RA } },
3062
3063{ "lswx", X(31,533), X_MASK, PPCCOM, { RT, RA, RB } },
3064{ "lsx", X(31,533), X_MASK, PWRCOM, { RT, RA, RB } },
3065
3066{ "lwbrx", X(31,534), X_MASK, PPCCOM, { RT, RA, RB } },
3067{ "lbrx", X(31,534), X_MASK, PWRCOM, { RT, RA, RB } },
3068
3069{ "lfsx", X(31,535), X_MASK, COM, { FRT, RA, RB } },
3070
3071{ "srw", XRC(31,536,0), X_MASK, PPCCOM, { RA, RS, RB } },
3072{ "sr", XRC(31,536,0), X_MASK, PWRCOM, { RA, RS, RB } },
3073{ "srw.", XRC(31,536,1), X_MASK, PPCCOM, { RA, RS, RB } },
3074{ "sr.", XRC(31,536,1), X_MASK, PWRCOM, { RA, RS, RB } },
3075
3076{ "rrib", XRC(31,537,0), X_MASK, M601, { RA, RS, RB } },
3077{ "rrib.", XRC(31,537,1), X_MASK, M601, { RA, RS, RB } },
3078
3079{ "srd", XRC(31,539,0), X_MASK, PPC64, { RA, RS, RB } },
3080{ "srd.", XRC(31,539,1), X_MASK, PPC64, { RA, RS, RB } },
3081
3082{ "maskir", XRC(31,541,0), X_MASK, M601, { RA, RS, RB } },
3083{ "maskir.", XRC(31,541,1), X_MASK, M601, { RA, RS, RB } },
3084
3085{ "tlbsync", X(31,566), 0xffffffff, PPC, { 0 } },
3086
3087{ "lfsux", X(31,567), X_MASK, COM, { FRT, RAS, RB } },
3088
3089{ "mfsr", X(31,595), XRB_MASK|(1<<20), COM32, { RT, SR } },
3090
3091{ "lswi", X(31,597), X_MASK, PPCCOM, { RT, RA, NB } },
3092{ "lsi", X(31,597), X_MASK, PWRCOM, { RT, RA, NB } },
3093
3094{ "sync", X(31,598), 0xffffffff, PPCCOM, { 0 } },
3095{ "dcs", X(31,598), 0xffffffff, PWRCOM, { 0 } },
3096
3097{ "lfdx", X(31,599), X_MASK, COM, { FRT, RA, RB } },
3098
3099{ "mfsri", X(31,627), X_MASK, PWRCOM, { RT, RA, RB } },
3100
3101{ "dclst", X(31,630), XRB_MASK, PWRCOM, { RS, RA } },
3102
3103{ "lfdux", X(31,631), X_MASK, COM, { FRT, RAS, RB } },
3104
3105{ "mfsrin", X(31,659), XRA_MASK, PPC32, { RT, RB } },
3106
3107{ "stswx", X(31,661), X_MASK, PPCCOM, { RS, RA, RB } },
3108{ "stsx", X(31,661), X_MASK, PWRCOM, { RS, RA, RB } },
3109
3110{ "stwbrx", X(31,662), X_MASK, PPCCOM, { RS, RA, RB } },
3111{ "stbrx", X(31,662), X_MASK, PWRCOM, { RS, RA, RB } },
3112
3113{ "stfsx", X(31,663), X_MASK, COM, { FRS, RA, RB } },
3114
3115{ "srq", XRC(31,664,0), X_MASK, M601, { RA, RS, RB } },
3116{ "srq.", XRC(31,664,1), X_MASK, M601, { RA, RS, RB } },
3117
3118{ "sre", XRC(31,665,0), X_MASK, M601, { RA, RS, RB } },
3119{ "sre.", XRC(31,665,1), X_MASK, M601, { RA, RS, RB } },
3120
3121{ "stfsux", X(31,695), X_MASK, COM, { FRS, RAS, RB } },
3122
3123{ "sriq", XRC(31,696,0), X_MASK, M601, { RA, RS, SH } },
3124{ "sriq.", XRC(31,696,1), X_MASK, M601, { RA, RS, SH } },
3125
3126{ "stswi", X(31,725), X_MASK, PPCCOM, { RS, RA, NB } },
3127{ "stsi", X(31,725), X_MASK, PWRCOM, { RS, RA, NB } },
3128
3129{ "stfdx", X(31,727), X_MASK, COM, { FRS, RA, RB } },
3130
3131{ "srlq", XRC(31,728,0), X_MASK, M601, { RA, RS, RB } },
3132{ "srlq.", XRC(31,728,1), X_MASK, M601, { RA, RS, RB } },
3133
3134{ "sreq", XRC(31,729,0), X_MASK, M601, { RA, RS, RB } },
3135{ "sreq.", XRC(31,729,1), X_MASK, M601, { RA, RS, RB } },
3136
e0c21649
GK
3137{ "dcba", X(31,758), XRT_MASK, PPC405, { RA, RB } },
3138
252b5132
RH
3139{ "stfdux", X(31,759), X_MASK, COM, { FRS, RAS, RB } },
3140
3141{ "srliq", XRC(31,760,0), X_MASK, M601, { RA, RS, SH } },
3142{ "srliq.", XRC(31,760,1), X_MASK, M601, { RA, RS, SH } },
3143
3144{ "lhbrx", X(31,790), X_MASK, COM, { RT, RA, RB } },
3145
3146{ "sraw", XRC(31,792,0), X_MASK, PPCCOM, { RA, RS, RB } },
3147{ "sra", XRC(31,792,0), X_MASK, PWRCOM, { RA, RS, RB } },
3148{ "sraw.", XRC(31,792,1), X_MASK, PPCCOM, { RA, RS, RB } },
3149{ "sra.", XRC(31,792,1), X_MASK, PWRCOM, { RA, RS, RB } },
3150
3151{ "srad", XRC(31,794,0), X_MASK, PPC64, { RA, RS, RB } },
3152{ "srad.", XRC(31,794,1), X_MASK, PPC64, { RA, RS, RB } },
3153
3154{ "rac", X(31,818), X_MASK, PWRCOM, { RT, RA, RB } },
3155
3156{ "srawi", XRC(31,824,0), X_MASK, PPCCOM, { RA, RS, SH } },
3157{ "srai", XRC(31,824,0), X_MASK, PWRCOM, { RA, RS, SH } },
3158{ "srawi.", XRC(31,824,1), X_MASK, PPCCOM, { RA, RS, SH } },
3159{ "srai.", XRC(31,824,1), X_MASK, PWRCOM, { RA, RS, SH } },
3160
3161{ "eieio", X(31,854), 0xffffffff, PPC, { 0 } },
3162
3163{ "tlbsx", XRC(31,914,0), X_MASK, PPC403, { RT, RA, RB } },
3164{ "tlbsx.", XRC(31,914,1), X_MASK, PPC403, { RT, RA, RB } },
3165
3166{ "sthbrx", X(31,918), X_MASK, COM, { RS, RA, RB } },
3167
3168{ "sraq", XRC(31,920,0), X_MASK, M601, { RA, RS, RB } },
3169{ "sraq.", XRC(31,920,1), X_MASK, M601, { RA, RS, RB } },
3170
3171{ "srea", XRC(31,921,0), X_MASK, M601, { RA, RS, RB } },
3172{ "srea.", XRC(31,921,1), X_MASK, M601, { RA, RS, RB } },
3173
3174{ "extsh", XRC(31,922,0), XRB_MASK, PPCCOM, { RA, RS } },
3175{ "exts", XRC(31,922,0), XRB_MASK, PWRCOM, { RA, RS } },
3176{ "extsh.", XRC(31,922,1), XRB_MASK, PPCCOM, { RA, RS } },
3177{ "exts.", XRC(31,922,1), XRB_MASK, PWRCOM, { RA, RS } },
3178
e0c21649
GK
3179{ "tlbrehi", XTLB(31,946,0), XTLB_MASK, PPC403, { RT, RA } },
3180{ "tlbrelo", XTLB(31,946,1), XTLB_MASK, PPC403, { RT, RA } },
252b5132
RH
3181{ "tlbre", X(31,946), X_MASK, PPC403, { RT, RA, SH } },
3182
3183{ "sraiq", XRC(31,952,0), X_MASK, M601, { RA, RS, SH } },
3184{ "sraiq.", XRC(31,952,1), X_MASK, M601, { RA, RS, SH } },
3185
3186{ "extsb", XRC(31,954,0), XRB_MASK, PPC, { RA, RS} },
3187{ "extsb.", XRC(31,954,1), XRB_MASK, PPC, { RA, RS} },
3188
e0c21649 3189{ "iccci", X(31,966), XRT_MASK, PPC403, { RA, RB } },
252b5132
RH
3190
3191{ "tlbld", X(31,978), XRTRA_MASK, PPC, { RB } },
e0c21649
GK
3192
3193{ "tlbwehi", XTLB(31,978,0), XTLB_MASK, PPC403, { RT, RA } },
3194{ "tlbwelo", XTLB(31,978,1), XTLB_MASK, PPC403, { RT, RA } },
252b5132
RH
3195{ "tlbwe", X(31,978), X_MASK, PPC403, { RS, RA, SH } },
3196
3197{ "icbi", X(31,982), XRT_MASK, PPC, { RA, RB } },
3198
3199{ "stfiwx", X(31,983), X_MASK, PPC, { FRS, RA, RB } },
3200
3201{ "extsw", XRC(31,986,0), XRB_MASK, PPC, { RA, RS } },
3202{ "extsw.", XRC(31,986,1), XRB_MASK, PPC, { RA, RS } },
3203
3204{ "icread", X(31,998), XRT_MASK, PPC403, { RA, RB } },
3205
3206{ "tlbli", X(31,1010), XRTRA_MASK, PPC, { RB } },
3207
3208{ "dcbz", X(31,1014), XRT_MASK, PPC, { RA, RB } },
3209{ "dclz", X(31,1014), XRT_MASK, PPC, { RA, RB } },
3210
786e2c0f
C
3211{ "lvebx", X(31, 7), X_MASK, PPCVEC, { VD, RA, RB } },
3212{ "lvehx", X(31, 39), X_MASK, PPCVEC, { VD, RA, RB } },
3213{ "lvewx", X(31, 71), X_MASK, PPCVEC, { VD, RA, RB } },
3214{ "lvsl", X(31, 6), X_MASK, PPCVEC, { VD, RA, RB } },
3215{ "lvsr", X(31, 38), X_MASK, PPCVEC, { VD, RA, RB } },
3216{ "lvx", X(31, 103), X_MASK, PPCVEC, { VD, RA, RB } },
3217{ "lvxl", X(31, 359), X_MASK, PPCVEC, { VD, RA, RB } },
3218{ "stvebx", X(31, 135), X_MASK, PPCVEC, { VS, RA, RB } },
3219{ "stvehx", X(31, 167), X_MASK, PPCVEC, { VS, RA, RB } },
3220{ "stvewx", X(31, 199), X_MASK, PPCVEC, { VS, RA, RB } },
3221{ "stvx", X(31, 231), X_MASK, PPCVEC, { VS, RA, RB } },
3222{ "stvxl", X(31, 487), X_MASK, PPCVEC, { VS, RA, RB } },
3223
252b5132
RH
3224{ "lwz", OP(32), OP_MASK, PPCCOM, { RT, D, RA } },
3225{ "l", OP(32), OP_MASK, PWRCOM, { RT, D, RA } },
3226
3227{ "lwzu", OP(33), OP_MASK, PPCCOM, { RT, D, RAL } },
3228{ "lu", OP(33), OP_MASK, PWRCOM, { RT, D, RA } },
3229
3230{ "lbz", OP(34), OP_MASK, COM, { RT, D, RA } },
3231
3232{ "lbzu", OP(35), OP_MASK, COM, { RT, D, RAL } },
3233
3234{ "stw", OP(36), OP_MASK, PPCCOM, { RS, D, RA } },
3235{ "st", OP(36), OP_MASK, PWRCOM, { RS, D, RA } },
3236
3237{ "stwu", OP(37), OP_MASK, PPCCOM, { RS, D, RAS } },
3238{ "stu", OP(37), OP_MASK, PWRCOM, { RS, D, RA } },
3239
3240{ "stb", OP(38), OP_MASK, COM, { RS, D, RA } },
3241
3242{ "stbu", OP(39), OP_MASK, COM, { RS, D, RAS } },
3243
3244{ "lhz", OP(40), OP_MASK, COM, { RT, D, RA } },
3245
3246{ "lhzu", OP(41), OP_MASK, COM, { RT, D, RAL } },
3247
3248{ "lha", OP(42), OP_MASK, COM, { RT, D, RA } },
3249
3250{ "lhau", OP(43), OP_MASK, COM, { RT, D, RAL } },
3251
3252{ "sth", OP(44), OP_MASK, COM, { RS, D, RA } },
3253
3254{ "sthu", OP(45), OP_MASK, COM, { RS, D, RAS } },
3255
3256{ "lmw", OP(46), OP_MASK, PPCCOM, { RT, D, RAM } },
3257{ "lm", OP(46), OP_MASK, PWRCOM, { RT, D, RA } },
3258
3259{ "stmw", OP(47), OP_MASK, PPCCOM, { RS, D, RA } },
3260{ "stm", OP(47), OP_MASK, PWRCOM, { RS, D, RA } },
3261
3262{ "lfs", OP(48), OP_MASK, COM, { FRT, D, RA } },
3263
3264{ "lfsu", OP(49), OP_MASK, COM, { FRT, D, RAS } },
3265
3266{ "lfd", OP(50), OP_MASK, COM, { FRT, D, RA } },
3267
3268{ "lfdu", OP(51), OP_MASK, COM, { FRT, D, RAS } },
3269
3270{ "stfs", OP(52), OP_MASK, COM, { FRS, D, RA } },
3271
3272{ "stfsu", OP(53), OP_MASK, COM, { FRS, D, RAS } },
3273
3274{ "stfd", OP(54), OP_MASK, COM, { FRS, D, RA } },
3275
3276{ "stfdu", OP(55), OP_MASK, COM, { FRS, D, RAS } },
3277
3278{ "lfq", OP(56), OP_MASK, POWER2, { FRT, D, RA } },
3279
3280{ "lfqu", OP(57), OP_MASK, POWER2, { FRT, D, RA } },
3281
3282{ "ld", DSO(58,0), DS_MASK, PPC64, { RT, DS, RA } },
3283
3284{ "ldu", DSO(58,1), DS_MASK, PPC64, { RT, DS, RAL } },
3285
3286{ "lwa", DSO(58,2), DS_MASK, PPC64, { RT, DS, RA } },
3287
3288{ "fdivs", A(59,18,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3289{ "fdivs.", A(59,18,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3290
3291{ "fsubs", A(59,20,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3292{ "fsubs.", A(59,20,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3293
3294{ "fadds", A(59,21,0), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3295{ "fadds.", A(59,21,1), AFRC_MASK, PPC, { FRT, FRA, FRB } },
3296
3297{ "fsqrts", A(59,22,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
3298{ "fsqrts.", A(59,22,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
3299
3300{ "fres", A(59,24,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
3301{ "fres.", A(59,24,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
3302
3303{ "fmuls", A(59,25,0), AFRB_MASK, PPC, { FRT, FRA, FRC } },
3304{ "fmuls.", A(59,25,1), AFRB_MASK, PPC, { FRT, FRA, FRC } },
3305
3306{ "fmsubs", A(59,28,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3307{ "fmsubs.", A(59,28,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3308
3309{ "fmadds", A(59,29,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3310{ "fmadds.", A(59,29,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3311
3312{ "fnmsubs", A(59,30,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3313{ "fnmsubs.",A(59,30,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3314
3315{ "fnmadds", A(59,31,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3316{ "fnmadds.",A(59,31,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3317
3318{ "stfq", OP(60), OP_MASK, POWER2, { FRS, D, RA } },
3319
3320{ "stfqu", OP(61), OP_MASK, POWER2, { FRS, D, RA } },
3321
3322{ "std", DSO(62,0), DS_MASK, PPC64, { RS, DS, RA } },
3323
3324{ "stdu", DSO(62,1), DS_MASK, PPC64, { RS, DS, RAS } },
3325
3326{ "fcmpu", X(63,0), X_MASK|(3<<21), COM, { BF, FRA, FRB } },
3327
3328{ "frsp", XRC(63,12,0), XRA_MASK, COM, { FRT, FRB } },
3329{ "frsp.", XRC(63,12,1), XRA_MASK, COM, { FRT, FRB } },
3330
3331{ "fctiw", XRC(63,14,0), XRA_MASK, PPCCOM, { FRT, FRB } },
3332{ "fcir", XRC(63,14,0), XRA_MASK, POWER2, { FRT, FRB } },
3333{ "fctiw.", XRC(63,14,1), XRA_MASK, PPCCOM, { FRT, FRB } },
3334{ "fcir.", XRC(63,14,1), XRA_MASK, POWER2, { FRT, FRB } },
3335
3336{ "fctiwz", XRC(63,15,0), XRA_MASK, PPCCOM, { FRT, FRB } },
3337{ "fcirz", XRC(63,15,0), XRA_MASK, POWER2, { FRT, FRB } },
3338{ "fctiwz.", XRC(63,15,1), XRA_MASK, PPCCOM, { FRT, FRB } },
3339{ "fcirz.", XRC(63,15,1), XRA_MASK, POWER2, { FRT, FRB } },
3340
3341{ "fdiv", A(63,18,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3342{ "fd", A(63,18,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3343{ "fdiv.", A(63,18,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3344{ "fd.", A(63,18,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3345
3346{ "fsub", A(63,20,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3347{ "fs", A(63,20,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3348{ "fsub.", A(63,20,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3349{ "fs.", A(63,20,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3350
3351{ "fadd", A(63,21,0), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3352{ "fa", A(63,21,0), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3353{ "fadd.", A(63,21,1), AFRC_MASK, PPCCOM, { FRT, FRA, FRB } },
3354{ "fa.", A(63,21,1), AFRC_MASK, PWRCOM, { FRT, FRA, FRB } },
3355
3356{ "fsqrt", A(63,22,0), AFRAFRC_MASK, PPCPWR2, { FRT, FRB } },
3357{ "fsqrt.", A(63,22,1), AFRAFRC_MASK, PPCPWR2, { FRT, FRB } },
3358
3359{ "fsel", A(63,23,0), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3360{ "fsel.", A(63,23,1), A_MASK, PPC, { FRT,FRA,FRC,FRB } },
3361
3362{ "fmul", A(63,25,0), AFRB_MASK, PPCCOM, { FRT, FRA, FRC } },
3363{ "fm", A(63,25,0), AFRB_MASK, PWRCOM, { FRT, FRA, FRC } },
3364{ "fmul.", A(63,25,1), AFRB_MASK, PPCCOM, { FRT, FRA, FRC } },
3365{ "fm.", A(63,25,1), AFRB_MASK, PWRCOM, { FRT, FRA, FRC } },
3366
3367{ "frsqrte", A(63,26,0), AFRAFRC_MASK, PPC, { FRT, FRB } },
3368{ "frsqrte.",A(63,26,1), AFRAFRC_MASK, PPC, { FRT, FRB } },
3369
3370{ "fmsub", A(63,28,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3371{ "fms", A(63,28,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3372{ "fmsub.", A(63,28,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3373{ "fms.", A(63,28,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3374
3375{ "fmadd", A(63,29,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3376{ "fma", A(63,29,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3377{ "fmadd.", A(63,29,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3378{ "fma.", A(63,29,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3379
3380{ "fnmsub", A(63,30,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3381{ "fnms", A(63,30,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3382{ "fnmsub.", A(63,30,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3383{ "fnms.", A(63,30,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3384
3385{ "fnmadd", A(63,31,0), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3386{ "fnma", A(63,31,0), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3387{ "fnmadd.", A(63,31,1), A_MASK, PPCCOM, { FRT,FRA,FRC,FRB } },
3388{ "fnma.", A(63,31,1), A_MASK, PWRCOM, { FRT,FRA,FRC,FRB } },
3389
3390{ "fcmpo", X(63,32), X_MASK|(3<<21), COM, { BF, FRA, FRB } },
3391
3392{ "mtfsb1", XRC(63,38,0), XRARB_MASK, COM, { BT } },
3393{ "mtfsb1.", XRC(63,38,1), XRARB_MASK, COM, { BT } },
3394
3395{ "fneg", XRC(63,40,0), XRA_MASK, COM, { FRT, FRB } },
3396{ "fneg.", XRC(63,40,1), XRA_MASK, COM, { FRT, FRB } },
3397
3398{ "mcrfs", X(63,64), XRB_MASK|(3<<21)|(3<<16), COM, { BF, BFA } },
3399
3400{ "mtfsb0", XRC(63,70,0), XRARB_MASK, COM, { BT } },
3401{ "mtfsb0.", XRC(63,70,1), XRARB_MASK, COM, { BT } },
3402
3403{ "fmr", XRC(63,72,0), XRA_MASK, COM, { FRT, FRB } },
3404{ "fmr.", XRC(63,72,1), XRA_MASK, COM, { FRT, FRB } },
3405
3406{ "mtfsfi", XRC(63,134,0), XRA_MASK|(3<<21)|(1<<11), COM, { BF, U } },
3407{ "mtfsfi.", XRC(63,134,1), XRA_MASK|(3<<21)|(1<<11), COM, { BF, U } },
3408
3409{ "fnabs", XRC(63,136,0), XRA_MASK, COM, { FRT, FRB } },
3410{ "fnabs.", XRC(63,136,1), XRA_MASK, COM, { FRT, FRB } },
3411
3412{ "fabs", XRC(63,264,0), XRA_MASK, COM, { FRT, FRB } },
3413{ "fabs.", XRC(63,264,1), XRA_MASK, COM, { FRT, FRB } },
3414
3415{ "mffs", XRC(63,583,0), XRARB_MASK, COM, { FRT } },
3416{ "mffs.", XRC(63,583,1), XRARB_MASK, COM, { FRT } },
3417
3418{ "mtfsf", XFL(63,711,0), XFL_MASK, COM, { FLM, FRB } },
3419{ "mtfsf.", XFL(63,711,1), XFL_MASK, COM, { FLM, FRB } },
3420
3421{ "fctid", XRC(63,814,0), XRA_MASK, PPC64, { FRT, FRB } },
3422{ "fctid.", XRC(63,814,1), XRA_MASK, PPC64, { FRT, FRB } },
3423
3424{ "fctidz", XRC(63,815,0), XRA_MASK, PPC64, { FRT, FRB } },
3425{ "fctidz.", XRC(63,815,1), XRA_MASK, PPC64, { FRT, FRB } },
3426
3427{ "fcfid", XRC(63,846,0), XRA_MASK, PPC64, { FRT, FRB } },
3428{ "fcfid.", XRC(63,846,1), XRA_MASK, PPC64, { FRT, FRB } },
3429
3430};
3431
3432const int powerpc_num_opcodes =
3433 sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]);
3434\f
3435/* The macro table. This is only used by the assembler. */
3436
3437/* The expressions of the form (-x ! 31) & (x | 31) have the value 0
3438 when x=0; 32-x when x is between 1 and 31; are negative if x is
3439 negative; and are 32 or more otherwise. This is what you want
3440 when, for instance, you are emulating a right shift by a
3441 rotate-left-and-mask, because the underlying instructions support
3442 shifts of size 0 but not shifts of size 32. By comparison, when
3443 extracting x bits from some word you want to use just 32-x, because
3444 the underlying instructions don't support extracting 0 bits but do
3445 support extracting the whole word (32 bits in this case). */
3446
3447const struct powerpc_macro powerpc_macros[] = {
3448{ "extldi", 4, PPC64, "rldicr %0,%1,%3,(%2)-1" },
3449{ "extldi.", 4, PPC64, "rldicr. %0,%1,%3,(%2)-1" },
3450{ "extrdi", 4, PPC64, "rldicl %0,%1,(%2)+(%3),64-(%2)" },
3451{ "extrdi.", 4, PPC64, "rldicl. %0,%1,(%2)+(%3),64-(%2)" },
3452{ "insrdi", 4, PPC64, "rldimi %0,%1,64-((%2)+(%3)),%3" },
3453{ "insrdi.", 4, PPC64, "rldimi. %0,%1,64-((%2)+(%3)),%3" },
3454{ "rotrdi", 3, PPC64, "rldicl %0,%1,(-(%2)!63)&((%2)|63),0" },
3455{ "rotrdi.", 3, PPC64, "rldicl. %0,%1,(-(%2)!63)&((%2)|63),0" },
3456{ "sldi", 3, PPC64, "rldicr %0,%1,%2,63-(%2)" },
3457{ "sldi.", 3, PPC64, "rldicr. %0,%1,%2,63-(%2)" },
3458{ "srdi", 3, PPC64, "rldicl %0,%1,(-(%2)!63)&((%2)|63),%2" },
3459{ "srdi.", 3, PPC64, "rldicl. %0,%1,(-(%2)!63)&((%2)|63),%2" },
3460{ "clrrdi", 3, PPC64, "rldicr %0,%1,0,63-(%2)" },
3461{ "clrrdi.", 3, PPC64, "rldicr. %0,%1,0,63-(%2)" },
3462{ "clrlsldi",4, PPC64, "rldic %0,%1,%3,(%2)-(%3)" },
3463{ "clrlsldi.",4, PPC64, "rldic. %0,%1,%3,(%2)-(%3)" },
3464
3465{ "extlwi", 4, PPCCOM, "rlwinm %0,%1,%3,0,(%2)-1" },
3466{ "extlwi.", 4, PPCCOM, "rlwinm. %0,%1,%3,0,(%2)-1" },
3467{ "extrwi", 4, PPCCOM, "rlwinm %0,%1,(%2)+(%3),32-(%2),31" },
3468{ "extrwi.", 4, PPCCOM, "rlwinm. %0,%1,(%2)+(%3),32-(%2),31" },
3469{ "inslwi", 4, PPCCOM, "rlwimi %0,%1,(-(%3)!31)&((%3)|31),%3,(%2)+(%3)-1" },
3470{ "inslwi.", 4, PPCCOM, "rlwimi. %0,%1,(-(%3)!31)&((%3)|31),%3,(%2)+(%3)-1"},
3471{ "insrwi", 4, PPCCOM, "rlwimi %0,%1,32-((%2)+(%3)),%3,(%2)+(%3)-1" },
3472{ "insrwi.", 4, PPCCOM, "rlwimi. %0,%1,32-((%2)+(%3)),%3,(%2)+(%3)-1"},
3473{ "rotrwi", 3, PPCCOM, "rlwinm %0,%1,(-(%2)!31)&((%2)|31),0,31" },
3474{ "rotrwi.", 3, PPCCOM, "rlwinm. %0,%1,(-(%2)!31)&((%2)|31),0,31" },
3475{ "slwi", 3, PPCCOM, "rlwinm %0,%1,%2,0,31-(%2)" },
3476{ "sli", 3, PWRCOM, "rlinm %0,%1,%2,0,31-(%2)" },
3477{ "slwi.", 3, PPCCOM, "rlwinm. %0,%1,%2,0,31-(%2)" },
3478{ "sli.", 3, PWRCOM, "rlinm. %0,%1,%2,0,31-(%2)" },
3479{ "srwi", 3, PPCCOM, "rlwinm %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
3480{ "sri", 3, PWRCOM, "rlinm %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
3481{ "srwi.", 3, PPCCOM, "rlwinm. %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
3482{ "sri.", 3, PWRCOM, "rlinm. %0,%1,(-(%2)!31)&((%2)|31),%2,31" },
3483{ "clrrwi", 3, PPCCOM, "rlwinm %0,%1,0,0,31-(%2)" },
3484{ "clrrwi.", 3, PPCCOM, "rlwinm. %0,%1,0,0,31-(%2)" },
3485{ "clrlslwi",4, PPCCOM, "rlwinm %0,%1,%3,(%2)-(%3),31-(%3)" },
3486{ "clrlslwi.",4, PPCCOM, "rlwinm. %0,%1,%3,(%2)-(%3),31-(%3)" },
3487
3488};
3489
3490const int powerpc_num_macros =
3491 sizeof (powerpc_macros) / sizeof (powerpc_macros[0]);
This page took 0.314201 seconds and 4 git commands to generate.