Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
ppc-opc.c File Reference
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include "nonstdio.h"
#include "ppc.h"

Go to the source code of this file.

Macros

#define ATTRIBUTE_UNUSED
 
#define _(x)   x
 
#define UNUSED   0
 
#define BA   UNUSED + 1
 
#define BA_MASK   (0x1f << 16)
 
#define BAT   BA + 1
 
#define BB   BAT + 1
 
#define BB_MASK   (0x1f << 11)
 
#define BBA   BB + 1
 
#define BD   BBA + 1
 
#define BDA   BD + 1
 
#define BDM   BDA + 1
 
#define BDMA   BDM + 1
 
#define BDP   BDMA + 1
 
#define BDPA   BDP + 1
 
#define BF   BDPA + 1
 
#define OBF   BF + 1
 
#define BFA   OBF + 1
 
#define BI   BFA + 1
 
#define BI_MASK   (0x1f << 16)
 
#define BO   BI + 1
 
#define BO_MASK   (0x1f << 21)
 
#define BOE   BO + 1
 
#define BH   BOE + 1
 
#define BT   BH + 1
 
#define CR   BT + 1
 
#define CRB   CR + 1
 
#define CRFD   CRB + 1
 
#define CRFS   CRFD + 1
 
#define CT   CRFS + 1
 
#define D   CT + 1
 
#define DE   D + 1
 
#define DES   DE + 1
 
#define DQ   DES + 1
 
#define DS   DQ + 1
 
#define E   DS + 1
 
#define FL1   E + 1
 
#define FL2   FL1 + 1
 
#define FLM   FL2 + 1
 
#define FRA   FLM + 1
 
#define FRA_MASK   (0x1f << 16)
 
#define FRB   FRA + 1
 
#define FRB_MASK   (0x1f << 11)
 
#define FRC   FRB + 1
 
#define FRC_MASK   (0x1f << 6)
 
#define FRS   FRC + 1
 
#define FRT   FRS
 
#define FXM   FRS + 1
 
#define FXM_MASK   (0xff << 12)
 
#define FXM4   FXM + 1
 
#define L   FXM4 + 1
 
#define SVC_LEV   L + 1
 
#define LEV   SVC_LEV + 1
 
#define LI   LEV + 1
 
#define LIA   LI + 1
 
#define LS   LIA + 1
 
#define MB   LS + 1
 
#define MB_MASK   (0x1f << 6)
 
#define ME   MB + 1
 
#define ME_MASK   (0x1f << 1)
 
#define MBE   ME + 1
 
#define MB6   MBE + 2
 
#define ME6   MB6
 
#define MB6_MASK   (0x3f << 5)
 
#define MO   MB6 + 1
 
#define NB   MO + 1
 
#define NSI   NB + 1
 
#define RA   NSI + 1
 
#define RA_MASK   (0x1f << 16)
 
#define RA0   RA + 1
 
#define RAQ   RA0 + 1
 
#define RAL   RAQ + 1
 
#define RAM   RAL + 1
 
#define RAS   RAM + 1
 
#define RAOPT   RAS + 1
 
#define RB   RAOPT + 1
 
#define RB_MASK   (0x1f << 11)
 
#define RBS   RB + 1
 
#define RS   RBS + 1
 
#define RT   RS
 
#define RT_MASK   (0x1f << 21)
 
#define RSQ   RS + 1
 
#define RTQ   RSQ + 1
 
#define RSO   RTQ + 1
 
#define RTO   RSO
 
#define SH   RSO + 1
 
#define SH_MASK   (0x1f << 11)
 
#define SH6   SH + 1
 
#define SH6_MASK   ((0x1f << 11) | (1 << 1))
 
#define SHO   SH6 + 1
 
#define SI   SHO + 1
 
#define SISIGNOPT   SI + 1
 
#define SPR   SISIGNOPT + 1
 
#define PMR   SPR
 
#define SPR_MASK   (0x3ff << 11)
 
#define SPRBAT   SPR + 1
 
#define SPRBAT_MASK   (0x3 << 17)
 
#define SPRG   SPRBAT + 1
 
#define SR   SPRG + 1
 
#define STRM   SR + 1
 
#define STRM_MASK   (0x3 << 21)
 
#define SV   STRM + 1
 
#define TBR   SV + 1
 
#define TO   TBR + 1
 
#define TO_MASK   (0x1f << 21)
 
#define U   TO + 1
 
#define UI   U + 1
 
#define VA   UI + 1
 
#define VA_MASK   (0x1f << 16)
 
#define VB   VA + 1
 
#define VB_MASK   (0x1f << 11)
 
#define VC   VB + 1
 
#define VC_MASK   (0x1f << 6)
 
#define VD   VC + 1
 
#define VS   VD
 
#define VD_MASK   (0x1f << 21)
 
#define SIMM   VD + 1
 
#define UIMM   SIMM + 1
 
#define SHB   UIMM + 1
 
#define EVUIMM   SHB + 1
 
#define EVUIMM_2   EVUIMM + 1
 
#define EVUIMM_4   EVUIMM_2 + 1
 
#define EVUIMM_8   EVUIMM_4 + 1
 
#define WS   EVUIMM_8 + 1
 
#define WS_MASK   (0x7 << 11)
 
#define MTMSRD_L   WS + 1
 
#define A_L   MTMSRD_L
 
#define DCM   MTMSRD_L + 1
 
#define DGM   DCM + 1
 
#define TE   DGM + 1
 
#define RMC   TE + 1
 
#define R   RMC + 1
 
#define SP   R + 1
 
#define S   SP + 1
 
#define SH16   S + 1
 
#define XRT_L   SH16 + 1
 
#define EH   XRT_L + 1
 
#define TB   (268)
 
#define OP(x)   ((((unsigned long)(x)) & 0x3f) << 26)
 
#define OP_MASK   OP (0x3f)
 
#define OPTO(x, to)   (OP (x) | ((((unsigned long)(to)) & 0x1f) << 21))
 
#define OPTO_MASK   (OP_MASK | TO_MASK)
 
#define OPL(x, l)   (OP (x) | ((((unsigned long)(l)) & 1) << 21))
 
#define OPL_MASK   OPL (0x3f,1)
 
#define A(op, xop, rc)   (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1) | (((unsigned long)(rc)) & 1))
 
#define A_MASK   A (0x3f, 0x1f, 1)
 
#define AFRB_MASK   (A_MASK | FRB_MASK)
 
#define AFRC_MASK   (A_MASK | FRC_MASK)
 
#define AFRAFRC_MASK   (A_MASK | FRA_MASK | FRC_MASK)
 
#define AFRALFRC_MASK   (AFRAFRC_MASK & ~((unsigned long) 1 << 16))
 
#define B(op, aa, lk)   (OP (op) | ((((unsigned long)(aa)) & 1) << 1) | ((lk) & 1))
 
#define B_MASK   B (0x3f, 1, 1)
 
#define BBO(op, bo, aa, lk)   (B ((op), (aa), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
 
#define BBO_MASK   BBO (0x3f, 0x1f, 1, 1)
 
#define Y_MASK   (((unsigned long) 1) << 21)
 
#define AT1_MASK   (((unsigned long) 3) << 21)
 
#define AT2_MASK   (((unsigned long) 9) << 21)
 
#define BBOY_MASK   (BBO_MASK &~ Y_MASK)
 
#define BBOAT_MASK   (BBO_MASK &~ AT1_MASK)
 
#define BBOCB(op, bo, cb, aa, lk)   (BBO ((op), (bo), (aa), (lk)) | ((((unsigned long)(cb)) & 0x3) << 16))
 
#define BBOCB_MASK   BBOCB (0x3f, 0x1f, 0x3, 1, 1)
 
#define BBOYCB_MASK   (BBOCB_MASK &~ Y_MASK)
 
#define BBOATCB_MASK   (BBOCB_MASK &~ AT1_MASK)
 
#define BBOAT2CB_MASK   (BBOCB_MASK &~ AT2_MASK)
 
#define BBOYBI_MASK   (BBOYCB_MASK | BI_MASK)
 
#define BBOATBI_MASK   (BBOAT2CB_MASK | BI_MASK)
 
#define CTX(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0x7))
 
#define CTX_MASK   CTX(0x3f, 0x7)
 
#define UCTX(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0x1f))
 
#define UCTX_MASK   UCTX(0x3f, 0x1f)
 
#define DRA_MASK   (OP_MASK | RA_MASK)
 
#define DSO(op, xop)   (OP (op) | ((xop) & 0x3))
 
#define DS_MASK   DSO (0x3f, 3)
 
#define DEO(op, xop)   (OP (op) | ((xop) & 0xf))
 
#define DE_MASK   DEO (0x3e, 0xf)
 
#define EVSEL(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0xff) << 3)
 
#define EVSEL_MASK   EVSEL(0x3f, 0xff)
 
#define M(op, rc)   (OP (op) | ((rc) & 1))
 
#define M_MASK   M (0x3f, 1)
 
#define MME(op, me, rc)   (M ((op), (rc)) | ((((unsigned long)(me)) & 0x1f) << 1))
 
#define MMBME_MASK   (M_MASK | MB_MASK | ME_MASK)
 
#define MSHME_MASK   (M_MASK | SH_MASK | ME_MASK)
 
#define MD(op, xop, rc)   (OP (op) | ((((unsigned long)(xop)) & 0x7) << 2) | ((rc) & 1))
 
#define MD_MASK   MD (0x3f, 0x7, 1)
 
#define MDMB_MASK   (MD_MASK | MB6_MASK)
 
#define MDSH_MASK   (MD_MASK | SH6_MASK)
 
#define MDS(op, xop, rc)   (OP (op) | ((((unsigned long)(xop)) & 0xf) << 1) | ((rc) & 1))
 
#define MDS_MASK   MDS (0x3f, 0xf, 1)
 
#define MDSMB_MASK   (MDS_MASK | MB6_MASK)
 
#define SC(op, sa, lk)   (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))
 
#define SC_MASK   (OP_MASK | (((unsigned long)0x3ff) << 16) | (((unsigned long)1) << 1) | 1)
 
#define VX(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0x7ff))
 
#define VX_MASK   VX(0x3f, 0x7ff)
 
#define VXA(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0x03f))
 
#define VXA_MASK   VXA(0x3f, 0x3f)
 
#define VXR(op, xop, rc)   (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))
 
#define VXR_MASK   VXR(0x3f, 0x3ff, 1)
 
#define X(op, xop)   (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
 
#define Z(op, xop)   (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1))
 
#define XRC(op, xop, rc)   (X ((op), (xop)) | ((rc) & 1))
 
#define ZRC(op, xop, rc)   (Z ((op), (xop)) | ((rc) & 1))
 
#define X_MASK   XRC (0x3f, 0x3ff, 1)
 
#define Z_MASK   ZRC (0x3f, 0x1ff, 1)
 
#define XRA_MASK   (X_MASK | RA_MASK)
 
#define XRB_MASK   (X_MASK | RB_MASK)
 
#define XRT_MASK   (X_MASK | RT_MASK)
 
#define XLRT_MASK   (XRT_MASK & ~((unsigned long) 0x3 << 21))
 
#define XRARB_MASK   (X_MASK | RA_MASK | RB_MASK)
 
#define XRLARB_MASK   (XRARB_MASK & ~((unsigned long) 1 << 16))
 
#define XRTRA_MASK   (X_MASK | RT_MASK | RA_MASK)
 
#define XRTLRA_MASK   (XRTRA_MASK & ~((unsigned long) 1 << 21))
 
#define XOPL(op, xop, l)   (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))
 
#define XCMP_MASK   (X_MASK | (((unsigned long)1) << 22))
 
#define XCMPL_MASK   (XCMP_MASK | (((unsigned long)1) << 21))
 
#define XTO(op, xop, to)   (X ((op), (xop)) | ((((unsigned long)(to)) & 0x1f) << 21))
 
#define XTO_MASK   (X_MASK | TO_MASK)
 
#define XTLB(op, xop, sh)   (X ((op), (xop)) | ((((unsigned long)(sh)) & 0x1f) << 11))
 
#define XTLB_MASK   (X_MASK | SH_MASK)
 
#define XSYNC(op, xop, l)   (X ((op), (xop)) | ((((unsigned long)(l)) & 3) << 21))
 
#define XSYNC_MASK   (0xff9fffff)
 
#define XEH_MASK   (X_MASK & ~((unsigned long )1))
 
#define XDSS(op, xop, a)   (X ((op), (xop)) | ((((unsigned long)(a)) & 1) << 25))
 
#define XDSS_MASK   XDSS(0x3f, 0x3ff, 1)
 
#define XFL(op, xop, rc)   (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1))
 
#define XFL_MASK   (XFL (0x3f, 0x3ff, 1) | (((unsigned long)1) << 25) | (((unsigned long)1) << 16))
 
#define XISEL(op, xop)   (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1))
 
#define XISEL_MASK   XISEL(0x3f, 0x1f)
 
#define XL(op, xop)   (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))
 
#define XLLK(op, xop, lk)   (XL ((op), (xop)) | ((lk) & 1))
 
#define XL_MASK   XLLK (0x3f, 0x3ff, 1)
 
#define XLO(op, bo, xop, lk)   (XLLK ((op), (xop), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
 
#define XLO_MASK   (XL_MASK | BO_MASK)
 
#define XLYLK(op, xop, y, lk)   (XLLK ((op), (xop), (lk)) | ((((unsigned long)(y)) & 1) << 21))
 
#define XLYLK_MASK   (XL_MASK | Y_MASK)
 
#define XLOCB(op, bo, cb, xop, lk)   (XLO ((op), (bo), (xop), (lk)) | ((((unsigned long)(cb)) & 3) << 16))
 
#define XLOCB_MASK   XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)
 
#define XLBB_MASK   (XL_MASK | BB_MASK)
 
#define XLYBB_MASK   (XLYLK_MASK | BB_MASK)
 
#define XLBOCBBB_MASK   (XLOCB_MASK | BB_MASK)
 
#define XLBH_MASK   (XL_MASK | (0x1c << 11))
 
#define XLBOBB_MASK   (XL_MASK | BO_MASK | BB_MASK)
 
#define XLBOBIBB_MASK   (XL_MASK | BO_MASK | BI_MASK | BB_MASK)
 
#define XO(op, xop, oe, rc)   (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1) | ((((unsigned long)(oe)) & 1) << 10) | (((unsigned long)(rc)) & 1))
 
#define XO_MASK   XO (0x3f, 0x1ff, 1, 1)
 
#define XORB_MASK   (XO_MASK | RB_MASK)
 
#define XS(op, xop, rc)   (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2) | (((unsigned long)(rc)) & 1))
 
#define XS_MASK   XS (0x3f, 0x1ff, 1)
 
#define XFXFXM_MASK   (X_MASK | (1 << 11) | (1 << 20))
 
#define XFXM(op, xop, fxm, p4)
 
#define XSPR(op, xop, spr)   (X ((op), (xop)) | ((((unsigned long)(spr)) & 0x1f) << 16) | ((((unsigned long)(spr)) & 0x3e0) << 6))
 
#define XSPR_MASK   (X_MASK | SPR_MASK)
 
#define XSPRBAT_MASK   (XSPR_MASK &~ SPRBAT_MASK)
 
#define XSPRG_MASK   (XSPR_MASK & ~(0x17 << 16))
 
#define XE_MASK   (0xffff7fff)
 
#define XUC(op, xop)   (OP (op) | (((unsigned long)(xop)) & 0x1f))
 
#define XUC_MASK   XUC(0x3f, 0x1f)
 
#define BODNZF   (0x0)
 
#define BODNZFP   (0x1)
 
#define BODZF   (0x2)
 
#define BODZFP   (0x3)
 
#define BODNZT   (0x8)
 
#define BODNZTP   (0x9)
 
#define BODZT   (0xa)
 
#define BODZTP   (0xb)
 
#define BOF   (0x4)
 
#define BOFP   (0x5)
 
#define BOFM4   (0x6)
 
#define BOFP4   (0x7)
 
#define BOT   (0xc)
 
#define BOTP   (0xd)
 
#define BOTM4   (0xe)
 
#define BOTP4   (0xf)
 
#define BODNZ   (0x10)
 
#define BODNZP   (0x11)
 
#define BODZ   (0x12)
 
#define BODZP   (0x13)
 
#define BODNZM4   (0x18)
 
#define BODNZP4   (0x19)
 
#define BODZM4   (0x1a)
 
#define BODZP4   (0x1b)
 
#define BOU   (0x14)
 
#define CBLT   (0)
 
#define CBGT   (1)
 
#define CBEQ   (2)
 
#define CBSO   (3)
 
#define TOLGT   (0x1)
 
#define TOLLT   (0x2)
 
#define TOEQ   (0x4)
 
#define TOLGE   (0x5)
 
#define TOLNL   (0x5)
 
#define TOLLE   (0x6)
 
#define TOLNG   (0x6)
 
#define TOGT   (0x8)
 
#define TOGE   (0xc)
 
#define TONL   (0xc)
 
#define TOLT   (0x10)
 
#define TOLE   (0x14)
 
#define TONG   (0x14)
 
#define TONE   (0x18)
 
#define TOU   (0x1f)
 
#define PPC   PPC_OPCODE_PPC
 
#define PPCCOM   PPC_OPCODE_PPC | PPC_OPCODE_COMMON
 
#define NOPOWER4   PPC_OPCODE_NOPOWER4 | PPCCOM
 
#define POWER4   PPC_OPCODE_POWER4
 
#define POWER5   PPC_OPCODE_POWER5
 
#define POWER6   PPC_OPCODE_POWER6
 
#define CELL   PPC_OPCODE_CELL
 
#define PPC32   PPC_OPCODE_32 | PPC_OPCODE_PPC
 
#define PPC64   PPC_OPCODE_64 | PPC_OPCODE_PPC
 
#define PPC403   PPC_OPCODE_403
 
#define PPC405   PPC403
 
#define PPC440   PPC_OPCODE_440
 
#define PPC750   PPC
 
#define PPC860   PPC
 
#define PPCVEC   PPC_OPCODE_ALTIVEC
 
#define POWER   PPC_OPCODE_POWER
 
#define POWER2   PPC_OPCODE_POWER | PPC_OPCODE_POWER2
 
#define PPCPWR2   PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2
 
#define POWER32   PPC_OPCODE_POWER | PPC_OPCODE_32
 
#define COM   PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON
 
#define COM32   PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_32
 
#define M601   PPC_OPCODE_POWER | PPC_OPCODE_601
 
#define PWRCOM   PPC_OPCODE_POWER | PPC_OPCODE_601 | PPC_OPCODE_COMMON
 
#define MFDEC1   PPC_OPCODE_POWER
 
#define MFDEC2   PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE
 
#define BOOKE   PPC_OPCODE_BOOKE
 
#define BOOKE64   PPC_OPCODE_BOOKE64
 
#define CLASSIC   PPC_OPCODE_CLASSIC
 
#define PPCE300   PPC_OPCODE_E300
 
#define PPCSPE   PPC_OPCODE_SPE
 
#define PPCISEL   PPC_OPCODE_ISEL
 
#define PPCEFS   PPC_OPCODE_EFS
 
#define PPCBRLK   PPC_OPCODE_BRLOCK
 
#define PPCPMR   PPC_OPCODE_PMR
 
#define PPCCHLK   PPC_OPCODE_CACHELCK
 
#define PPCCHLK64   PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64
 
#define PPCRFMCI   PPC_OPCODE_RFMCI
 

Variables

struct powerpc_operand powerpc_operands []
 
struct powerpc_opcode powerpc_opcodes []
 
const int powerpc_num_opcodes = ARRAY_SIZE(powerpc_opcodes)
 
struct powerpc_macro powerpc_macros []
 
const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros)
 

Macro Definition Documentation

#define _ (   x)    x

Definition at line 30 of file ppc-opc.c.

#define A (   op,
  xop,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1) | (((unsigned long)(rc)) & 1))

Definition at line 1539 of file ppc-opc.c.

#define A_L   MTMSRD_L
#define A_MASK   A (0x3f, 0x1f, 1)

Definition at line 1540 of file ppc-opc.c.

#define AFRAFRC_MASK   (A_MASK | FRA_MASK | FRC_MASK)

Definition at line 1549 of file ppc-opc.c.

#define AFRALFRC_MASK   (AFRAFRC_MASK & ~((unsigned long) 1 << 16))

Definition at line 1552 of file ppc-opc.c.

#define AFRB_MASK   (A_MASK | FRB_MASK)

Definition at line 1543 of file ppc-opc.c.

#define AFRC_MASK   (A_MASK | FRC_MASK)

Definition at line 1546 of file ppc-opc.c.

#define AT1_MASK   (((unsigned long) 3) << 21)

Definition at line 1566 of file ppc-opc.c.

#define AT2_MASK   (((unsigned long) 9) << 21)

Definition at line 1567 of file ppc-opc.c.

#define ATTRIBUTE_UNUSED

Definition at line 29 of file ppc-opc.c.

#define B (   op,
  aa,
  lk 
)    (OP (op) | ((((unsigned long)(aa)) & 1) << 1) | ((lk) & 1))

Definition at line 1555 of file ppc-opc.c.

#define B_MASK   B (0x3f, 1, 1)

Definition at line 1556 of file ppc-opc.c.

#define BA   UNUSED + 1
#define BA_MASK   (0x1f << 16)
#define BAT   BA + 1
#define BB   BAT + 1
#define BB_MASK   (0x1f << 11)
#define BBA   BB + 1
#define BBO (   op,
  bo,
  aa,
  lk 
)    (B ((op), (aa), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))

Definition at line 1559 of file ppc-opc.c.

#define BBO_MASK   BBO (0x3f, 0x1f, 1, 1)

Definition at line 1560 of file ppc-opc.c.

#define BBOAT2CB_MASK   (BBOCB_MASK &~ AT2_MASK)

Definition at line 1580 of file ppc-opc.c.

#define BBOAT_MASK   (BBO_MASK &~ AT1_MASK)

Definition at line 1569 of file ppc-opc.c.

#define BBOATBI_MASK   (BBOAT2CB_MASK | BI_MASK)

Definition at line 1584 of file ppc-opc.c.

#define BBOATCB_MASK   (BBOCB_MASK &~ AT1_MASK)

Definition at line 1579 of file ppc-opc.c.

#define BBOCB (   op,
  bo,
  cb,
  aa,
  lk 
)    (BBO ((op), (bo), (aa), (lk)) | ((((unsigned long)(cb)) & 0x3) << 16))

Definition at line 1573 of file ppc-opc.c.

#define BBOCB_MASK   BBOCB (0x3f, 0x1f, 0x3, 1, 1)

Definition at line 1575 of file ppc-opc.c.

#define BBOY_MASK   (BBO_MASK &~ Y_MASK)

Definition at line 1568 of file ppc-opc.c.

#define BBOYBI_MASK   (BBOYCB_MASK | BI_MASK)

Definition at line 1583 of file ppc-opc.c.

#define BBOYCB_MASK   (BBOCB_MASK &~ Y_MASK)

Definition at line 1578 of file ppc-opc.c.

#define BD   BBA + 1
#define BDA   BD + 1
#define BDM   BDA + 1
#define BDMA   BDM + 1
#define BDP   BDMA + 1
#define BDPA   BDP + 1
#define BF   BDPA + 1
#define BFA   OBF + 1
#define BH   BOE + 1
#define BI   BFA + 1
#define BI_MASK   (0x1f << 16)
#define BO   BI + 1
#define BO_MASK   (0x1f << 21)
#define BODNZ   (0x10)

Definition at line 1840 of file ppc-opc.c.

#define BODNZF   (0x0)

Definition at line 1822 of file ppc-opc.c.

#define BODNZFP   (0x1)

Definition at line 1823 of file ppc-opc.c.

#define BODNZM4   (0x18)

Definition at line 1844 of file ppc-opc.c.

#define BODNZP   (0x11)

Definition at line 1841 of file ppc-opc.c.

#define BODNZP4   (0x19)

Definition at line 1845 of file ppc-opc.c.

#define BODNZT   (0x8)

Definition at line 1826 of file ppc-opc.c.

#define BODNZTP   (0x9)

Definition at line 1827 of file ppc-opc.c.

#define BODZ   (0x12)

Definition at line 1842 of file ppc-opc.c.

#define BODZF   (0x2)

Definition at line 1824 of file ppc-opc.c.

#define BODZFP   (0x3)

Definition at line 1825 of file ppc-opc.c.

#define BODZM4   (0x1a)

Definition at line 1846 of file ppc-opc.c.

#define BODZP   (0x13)

Definition at line 1843 of file ppc-opc.c.

#define BODZP4   (0x1b)

Definition at line 1847 of file ppc-opc.c.

#define BODZT   (0xa)

Definition at line 1828 of file ppc-opc.c.

#define BODZTP   (0xb)

Definition at line 1829 of file ppc-opc.c.

#define BOE   BO + 1
#define BOF   (0x4)

Definition at line 1831 of file ppc-opc.c.

#define BOFM4   (0x6)

Definition at line 1833 of file ppc-opc.c.

#define BOFP   (0x5)

Definition at line 1832 of file ppc-opc.c.

#define BOFP4   (0x7)

Definition at line 1834 of file ppc-opc.c.

#define BOOKE   PPC_OPCODE_BOOKE

Definition at line 1903 of file ppc-opc.c.

#define BOOKE64   PPC_OPCODE_BOOKE64

Definition at line 1904 of file ppc-opc.c.

#define BOT   (0xc)

Definition at line 1835 of file ppc-opc.c.

#define BOTM4   (0xe)

Definition at line 1837 of file ppc-opc.c.

#define BOTP   (0xd)

Definition at line 1836 of file ppc-opc.c.

#define BOTP4   (0xf)

Definition at line 1838 of file ppc-opc.c.

#define BOU   (0x14)

Definition at line 1849 of file ppc-opc.c.

#define BT   BH + 1
#define CBEQ   (2)

Definition at line 1855 of file ppc-opc.c.

#define CBGT   (1)

Definition at line 1854 of file ppc-opc.c.

#define CBLT   (0)

Definition at line 1853 of file ppc-opc.c.

#define CBSO   (3)

Definition at line 1856 of file ppc-opc.c.

#define CELL   PPC_OPCODE_CELL

Definition at line 1884 of file ppc-opc.c.

#define CLASSIC   PPC_OPCODE_CLASSIC

Definition at line 1905 of file ppc-opc.c.

Definition at line 1897 of file ppc-opc.c.

Definition at line 1898 of file ppc-opc.c.

#define CR   BT + 1
#define CRB   CR + 1
#define CRFD   CRB + 1
#define CRFS   CRFD + 1
#define CT   CRFS + 1
#define CTX (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0x7))

Definition at line 1587 of file ppc-opc.c.

#define CTX_MASK   CTX(0x3f, 0x7)

Definition at line 1588 of file ppc-opc.c.

#define D   CT + 1
#define DCM   MTMSRD_L + 1
#define DE   D + 1
#define DE_MASK   DEO (0x3e, 0xf)

Definition at line 1603 of file ppc-opc.c.

#define DEO (   op,
  xop 
)    (OP (op) | ((xop) & 0xf))

Definition at line 1602 of file ppc-opc.c.

#define DES   DE + 1
#define DGM   DCM + 1
#define DQ   DES + 1
#define DRA_MASK   (OP_MASK | RA_MASK)

Definition at line 1595 of file ppc-opc.c.

#define DS   DQ + 1
#define DS_MASK   DSO (0x3f, 3)

Definition at line 1599 of file ppc-opc.c.

#define DSO (   op,
  xop 
)    (OP (op) | ((xop) & 0x3))

Definition at line 1598 of file ppc-opc.c.

#define E   DS + 1
#define EH   XRT_L + 1
#define EVSEL (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0xff) << 3)

Definition at line 1606 of file ppc-opc.c.

#define EVSEL_MASK   EVSEL(0x3f, 0xff)

Definition at line 1607 of file ppc-opc.c.

#define EVUIMM   SHB + 1
#define EVUIMM_2   EVUIMM + 1
#define EVUIMM_4   EVUIMM_2 + 1
#define EVUIMM_8   EVUIMM_4 + 1
#define FL1   E + 1
#define FL2   FL1 + 1
#define FLM   FL2 + 1
#define FRA   FLM + 1
#define FRA_MASK   (0x1f << 16)
#define FRB   FRA + 1
#define FRB_MASK   (0x1f << 11)
#define FRC   FRB + 1
#define FRC_MASK   (0x1f << 6)
#define FRS   FRC + 1
#define FRT   FRS
#define FXM   FRS + 1
#define FXM4   FXM + 1
#define FXM_MASK   (0xff << 12)
#define L   FXM4 + 1
#define LEV   SVC_LEV + 1
#define LI   LEV + 1
#define LIA   LI + 1
#define LS   LIA + 1
#define M (   op,
  rc 
)    (OP (op) | ((rc) & 1))

Definition at line 1610 of file ppc-opc.c.

#define M601   PPC_OPCODE_POWER | PPC_OPCODE_601

Definition at line 1899 of file ppc-opc.c.

#define M_MASK   M (0x3f, 1)

Definition at line 1611 of file ppc-opc.c.

#define MB   LS + 1
#define MB6   MBE + 2
#define MB6_MASK   (0x3f << 5)
#define MB_MASK   (0x1f << 6)
#define MBE   ME + 1
#define MD (   op,
  xop,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0x7) << 2) | ((rc) & 1))

Definition at line 1623 of file ppc-opc.c.

#define MD_MASK   MD (0x3f, 0x7, 1)

Definition at line 1624 of file ppc-opc.c.

#define MDMB_MASK   (MD_MASK | MB6_MASK)

Definition at line 1627 of file ppc-opc.c.

#define MDS (   op,
  xop,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0xf) << 1) | ((rc) & 1))

Definition at line 1633 of file ppc-opc.c.

#define MDS_MASK   MDS (0x3f, 0xf, 1)

Definition at line 1634 of file ppc-opc.c.

#define MDSH_MASK   (MD_MASK | SH6_MASK)

Definition at line 1630 of file ppc-opc.c.

#define MDSMB_MASK   (MDS_MASK | MB6_MASK)

Definition at line 1637 of file ppc-opc.c.

#define ME   MB + 1
#define ME6   MB6
#define ME_MASK   (0x1f << 1)
#define MFDEC1   PPC_OPCODE_POWER

Definition at line 1901 of file ppc-opc.c.

Definition at line 1902 of file ppc-opc.c.

#define MMBME_MASK   (M_MASK | MB_MASK | ME_MASK)

Definition at line 1617 of file ppc-opc.c.

#define MME (   op,
  me,
  rc 
)    (M ((op), (rc)) | ((((unsigned long)(me)) & 0x1f) << 1))

Definition at line 1614 of file ppc-opc.c.

#define MO   MB6 + 1
#define MSHME_MASK   (M_MASK | SH_MASK | ME_MASK)

Definition at line 1620 of file ppc-opc.c.

#define MTMSRD_L   WS + 1
#define NB   MO + 1
#define NOPOWER4   PPC_OPCODE_NOPOWER4 | PPCCOM

Definition at line 1880 of file ppc-opc.c.

#define NSI   NB + 1
#define OBF   BF + 1
#define OP (   x)    ((((unsigned long)(x)) & 0x3f) << 26)

Definition at line 1523 of file ppc-opc.c.

#define OP_MASK   OP (0x3f)

Definition at line 1524 of file ppc-opc.c.

#define OPL (   x,
  l 
)    (OP (x) | ((((unsigned long)(l)) & 1) << 21))

Definition at line 1535 of file ppc-opc.c.

#define OPL_MASK   OPL (0x3f,1)

Definition at line 1536 of file ppc-opc.c.

#define OPTO (   x,
  to 
)    (OP (x) | ((((unsigned long)(to)) & 0x1f) << 21))

Definition at line 1529 of file ppc-opc.c.

#define OPTO_MASK   (OP_MASK | TO_MASK)

Definition at line 1530 of file ppc-opc.c.

#define PMR   SPR
#define POWER   PPC_OPCODE_POWER

Definition at line 1893 of file ppc-opc.c.

#define POWER2   PPC_OPCODE_POWER | PPC_OPCODE_POWER2

Definition at line 1894 of file ppc-opc.c.

#define POWER32   PPC_OPCODE_POWER | PPC_OPCODE_32

Definition at line 1896 of file ppc-opc.c.

#define POWER4   PPC_OPCODE_POWER4

Definition at line 1881 of file ppc-opc.c.

#define POWER5   PPC_OPCODE_POWER5

Definition at line 1882 of file ppc-opc.c.

#define POWER6   PPC_OPCODE_POWER6

Definition at line 1883 of file ppc-opc.c.

#define PPC   PPC_OPCODE_PPC

Definition at line 1878 of file ppc-opc.c.

#define PPC32   PPC_OPCODE_32 | PPC_OPCODE_PPC

Definition at line 1885 of file ppc-opc.c.

#define PPC403   PPC_OPCODE_403

Definition at line 1887 of file ppc-opc.c.

#define PPC405   PPC403

Definition at line 1888 of file ppc-opc.c.

#define PPC440   PPC_OPCODE_440

Definition at line 1889 of file ppc-opc.c.

#define PPC64   PPC_OPCODE_64 | PPC_OPCODE_PPC

Definition at line 1886 of file ppc-opc.c.

#define PPC750   PPC

Definition at line 1890 of file ppc-opc.c.

#define PPC860   PPC

Definition at line 1891 of file ppc-opc.c.

#define PPCBRLK   PPC_OPCODE_BRLOCK

Definition at line 1910 of file ppc-opc.c.

#define PPCCHLK   PPC_OPCODE_CACHELCK

Definition at line 1912 of file ppc-opc.c.

#define PPCCHLK64   PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64

Definition at line 1913 of file ppc-opc.c.

#define PPCCOM   PPC_OPCODE_PPC | PPC_OPCODE_COMMON

Definition at line 1879 of file ppc-opc.c.

#define PPCE300   PPC_OPCODE_E300

Definition at line 1906 of file ppc-opc.c.

#define PPCEFS   PPC_OPCODE_EFS

Definition at line 1909 of file ppc-opc.c.

#define PPCISEL   PPC_OPCODE_ISEL

Definition at line 1908 of file ppc-opc.c.

#define PPCPMR   PPC_OPCODE_PMR

Definition at line 1911 of file ppc-opc.c.

Definition at line 1895 of file ppc-opc.c.

#define PPCRFMCI   PPC_OPCODE_RFMCI

Definition at line 1914 of file ppc-opc.c.

#define PPCSPE   PPC_OPCODE_SPE

Definition at line 1907 of file ppc-opc.c.

#define PPCVEC   PPC_OPCODE_ALTIVEC

Definition at line 1892 of file ppc-opc.c.

Definition at line 1900 of file ppc-opc.c.

#define R   RMC + 1
#define RA   NSI + 1
#define RA0   RA + 1
#define RA_MASK   (0x1f << 16)
#define RAL   RAQ + 1
#define RAM   RAL + 1
#define RAOPT   RAS + 1
#define RAQ   RA0 + 1
#define RAS   RAM + 1
#define RB   RAOPT + 1
#define RB_MASK   (0x1f << 11)
#define RBS   RB + 1
#define RMC   TE + 1
#define RS   RBS + 1
#define RSO   RTQ + 1
#define RSQ   RS + 1
#define RT   RS
#define RT_MASK   (0x1f << 21)
#define RTO   RSO
#define RTQ   RSQ + 1
#define S   SP + 1
#define SC (   op,
  sa,
  lk 
)    (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))

Definition at line 1640 of file ppc-opc.c.

#define SC_MASK   (OP_MASK | (((unsigned long)0x3ff) << 16) | (((unsigned long)1) << 1) | 1)

Definition at line 1641 of file ppc-opc.c.

#define SH   RSO + 1
#define SH16   S + 1
#define SH6   SH + 1
#define SH6_MASK   ((0x1f << 11) | (1 << 1))
#define SH_MASK   (0x1f << 11)
#define SHB   UIMM + 1
#define SHO   SH6 + 1
#define SI   SHO + 1
#define SIMM   VD + 1
#define SISIGNOPT   SI + 1
#define SP   R + 1
#define SPR   SISIGNOPT + 1
#define SPR_MASK   (0x3ff << 11)
#define SPRBAT   SPR + 1
#define SPRBAT_MASK   (0x3 << 17)
#define SPRG   SPRBAT + 1
#define SR   SPRG + 1
#define STRM   SR + 1
#define STRM_MASK   (0x3 << 21)
#define SV   STRM + 1
#define SVC_LEV   L + 1
#define TB   (268)

Definition at line 1494 of file ppc-opc.c.

#define TBR   SV + 1
#define TE   DGM + 1
#define TO   TBR + 1
#define TO_MASK   (0x1f << 21)
#define TOEQ   (0x4)

Definition at line 1861 of file ppc-opc.c.

#define TOGE   (0xc)

Definition at line 1867 of file ppc-opc.c.

#define TOGT   (0x8)

Definition at line 1866 of file ppc-opc.c.

#define TOLE   (0x14)

Definition at line 1870 of file ppc-opc.c.

#define TOLGE   (0x5)

Definition at line 1862 of file ppc-opc.c.

#define TOLGT   (0x1)

Definition at line 1859 of file ppc-opc.c.

#define TOLLE   (0x6)

Definition at line 1864 of file ppc-opc.c.

#define TOLLT   (0x2)

Definition at line 1860 of file ppc-opc.c.

#define TOLNG   (0x6)

Definition at line 1865 of file ppc-opc.c.

#define TOLNL   (0x5)

Definition at line 1863 of file ppc-opc.c.

#define TOLT   (0x10)

Definition at line 1869 of file ppc-opc.c.

#define TONE   (0x18)

Definition at line 1872 of file ppc-opc.c.

#define TONG   (0x14)

Definition at line 1871 of file ppc-opc.c.

#define TONL   (0xc)

Definition at line 1868 of file ppc-opc.c.

#define TOU   (0x1f)

Definition at line 1873 of file ppc-opc.c.

#define U   TO + 1
#define UCTX (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0x1f))

Definition at line 1591 of file ppc-opc.c.

#define UCTX_MASK   UCTX(0x3f, 0x1f)

Definition at line 1592 of file ppc-opc.c.

#define UI   U + 1
#define UIMM   SIMM + 1
#define UNUSED   0
#define VA   UI + 1
#define VA_MASK   (0x1f << 16)
#define VB   VA + 1
#define VB_MASK   (0x1f << 11)
#define VC   VB + 1
#define VC_MASK   (0x1f << 6)
#define VD   VC + 1
#define VD_MASK   (0x1f << 21)
#define VS   VD
#define VX (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0x7ff))

Definition at line 1644 of file ppc-opc.c.

#define VX_MASK   VX(0x3f, 0x7ff)

Definition at line 1647 of file ppc-opc.c.

#define VXA (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0x03f))

Definition at line 1650 of file ppc-opc.c.

#define VXA_MASK   VXA(0x3f, 0x3f)

Definition at line 1653 of file ppc-opc.c.

#define VXR (   op,
  xop,
  rc 
)    (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))

Definition at line 1656 of file ppc-opc.c.

#define VXR_MASK   VXR(0x3f, 0x3ff, 1)

Definition at line 1659 of file ppc-opc.c.

#define WS   EVUIMM_8 + 1
#define WS_MASK   (0x7 << 11)
#define X (   op,
  xop 
)    (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))

Definition at line 1662 of file ppc-opc.c.

#define X_MASK   XRC (0x3f, 0x3ff, 1)

Definition at line 1674 of file ppc-opc.c.

#define XCMP_MASK   (X_MASK | (((unsigned long)1) << 22))

Definition at line 1707 of file ppc-opc.c.

#define XCMPL_MASK   (XCMP_MASK | (((unsigned long)1) << 21))

Definition at line 1711 of file ppc-opc.c.

#define XDSS (   op,
  xop,
  a 
)    (X ((op), (xop)) | ((((unsigned long)(a)) & 1) << 25))

Definition at line 1731 of file ppc-opc.c.

#define XDSS_MASK   XDSS(0x3f, 0x3ff, 1)

Definition at line 1732 of file ppc-opc.c.

#define XE_MASK   (0xffff7fff)

Definition at line 1815 of file ppc-opc.c.

#define XEH_MASK   (X_MASK & ~((unsigned long )1))

Definition at line 1728 of file ppc-opc.c.

#define XFL (   op,
  xop,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1))

Definition at line 1735 of file ppc-opc.c.

#define XFL_MASK   (XFL (0x3f, 0x3ff, 1) | (((unsigned long)1) << 25) | (((unsigned long)1) << 16))

Definition at line 1736 of file ppc-opc.c.

#define XFXFXM_MASK   (X_MASK | (1 << 11) | (1 << 20))

Definition at line 1794 of file ppc-opc.c.

#define XFXM (   op,
  xop,
  fxm,
  p4 
)
Value:
(X ((op), (xop)) | ((((unsigned long)(fxm)) & 0xff) << 12) \
| ((unsigned long)(p4) << 20))

Definition at line 1797 of file ppc-opc.c.

#define XISEL (   op,
  xop 
)    (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1))

Definition at line 1739 of file ppc-opc.c.

#define XISEL_MASK   XISEL(0x3f, 0x1f)

Definition at line 1740 of file ppc-opc.c.

#define XL (   op,
  xop 
)    (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1))

Definition at line 1743 of file ppc-opc.c.

#define XL_MASK   XLLK (0x3f, 0x3ff, 1)

Definition at line 1749 of file ppc-opc.c.

#define XLBB_MASK   (XL_MASK | BB_MASK)

Definition at line 1768 of file ppc-opc.c.

#define XLBH_MASK   (XL_MASK | (0x1c << 11))

Definition at line 1773 of file ppc-opc.c.

#define XLBOBB_MASK   (XL_MASK | BO_MASK | BB_MASK)

Definition at line 1776 of file ppc-opc.c.

#define XLBOBIBB_MASK   (XL_MASK | BO_MASK | BI_MASK | BB_MASK)

Definition at line 1779 of file ppc-opc.c.

#define XLBOCBBB_MASK   (XLOCB_MASK | BB_MASK)

Definition at line 1770 of file ppc-opc.c.

#define XLLK (   op,
  xop,
  lk 
)    (XL ((op), (xop)) | ((lk) & 1))

Definition at line 1746 of file ppc-opc.c.

#define XLO (   op,
  bo,
  xop,
  lk 
)    (XLLK ((op), (xop), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))

Definition at line 1752 of file ppc-opc.c.

#define XLO_MASK   (XL_MASK | BO_MASK)

Definition at line 1754 of file ppc-opc.c.

#define XLOCB (   op,
  bo,
  cb,
  xop,
  lk 
)    (XLO ((op), (bo), (xop), (lk)) | ((((unsigned long)(cb)) & 3) << 16))

Definition at line 1763 of file ppc-opc.c.

#define XLOCB_MASK   XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)

Definition at line 1765 of file ppc-opc.c.

#define XLRT_MASK   (XRT_MASK & ~((unsigned long) 0x3 << 21))

Definition at line 1689 of file ppc-opc.c.

#define XLYBB_MASK   (XLYLK_MASK | BB_MASK)

Definition at line 1769 of file ppc-opc.c.

#define XLYLK (   op,
  xop,
  y,
  lk 
)    (XLLK ((op), (xop), (lk)) | ((((unsigned long)(y)) & 1) << 21))

Definition at line 1758 of file ppc-opc.c.

#define XLYLK_MASK   (XL_MASK | Y_MASK)

Definition at line 1759 of file ppc-opc.c.

#define XO (   op,
  xop,
  oe,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1) | ((((unsigned long)(oe)) & 1) << 10) | (((unsigned long)(rc)) & 1))

Definition at line 1782 of file ppc-opc.c.

#define XO_MASK   XO (0x3f, 0x1ff, 1, 1)

Definition at line 1784 of file ppc-opc.c.

#define XOPL (   op,
  xop,
  l 
)    (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))

Definition at line 1704 of file ppc-opc.c.

#define XORB_MASK   (XO_MASK | RB_MASK)

Definition at line 1787 of file ppc-opc.c.

#define XRA_MASK   (X_MASK | RA_MASK)

Definition at line 1680 of file ppc-opc.c.

#define XRARB_MASK   (X_MASK | RA_MASK | RB_MASK)

Definition at line 1692 of file ppc-opc.c.

#define XRB_MASK   (X_MASK | RB_MASK)

Definition at line 1683 of file ppc-opc.c.

#define XRC (   op,
  xop,
  rc 
)    (X ((op), (xop)) | ((rc) & 1))

Definition at line 1668 of file ppc-opc.c.

#define XRLARB_MASK   (XRARB_MASK & ~((unsigned long) 1 << 16))

Definition at line 1695 of file ppc-opc.c.

#define XRT_L   SH16 + 1
#define XRT_MASK   (X_MASK | RT_MASK)

Definition at line 1686 of file ppc-opc.c.

#define XRTLRA_MASK   (XRTRA_MASK & ~((unsigned long) 1 << 21))

Definition at line 1701 of file ppc-opc.c.

#define XRTRA_MASK   (X_MASK | RT_MASK | RA_MASK)

Definition at line 1698 of file ppc-opc.c.

#define XS (   op,
  xop,
  rc 
)    (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2) | (((unsigned long)(rc)) & 1))

Definition at line 1790 of file ppc-opc.c.

#define XS_MASK   XS (0x3f, 0x1ff, 1)

Definition at line 1791 of file ppc-opc.c.

#define XSPR (   op,
  xop,
  spr 
)    (X ((op), (xop)) | ((((unsigned long)(spr)) & 0x1f) << 16) | ((((unsigned long)(spr)) & 0x3e0) << 6))

Definition at line 1802 of file ppc-opc.c.

#define XSPR_MASK   (X_MASK | SPR_MASK)

Definition at line 1804 of file ppc-opc.c.

#define XSPRBAT_MASK   (XSPR_MASK &~ SPRBAT_MASK)

Definition at line 1808 of file ppc-opc.c.

#define XSPRG_MASK   (XSPR_MASK & ~(0x17 << 16))

Definition at line 1812 of file ppc-opc.c.

#define XSYNC (   op,
  xop,
  l 
)    (X ((op), (xop)) | ((((unsigned long)(l)) & 3) << 21))

Definition at line 1722 of file ppc-opc.c.

#define XSYNC_MASK   (0xff9fffff)

Definition at line 1725 of file ppc-opc.c.

#define XTLB (   op,
  xop,
  sh 
)    (X ((op), (xop)) | ((((unsigned long)(sh)) & 0x1f) << 11))

Definition at line 1718 of file ppc-opc.c.

#define XTLB_MASK   (X_MASK | SH_MASK)

Definition at line 1719 of file ppc-opc.c.

#define XTO (   op,
  xop,
  to 
)    (X ((op), (xop)) | ((((unsigned long)(to)) & 0x1f) << 21))

Definition at line 1714 of file ppc-opc.c.

#define XTO_MASK   (X_MASK | TO_MASK)

Definition at line 1715 of file ppc-opc.c.

#define XUC (   op,
  xop 
)    (OP (op) | (((unsigned long)(xop)) & 0x1f))

Definition at line 1818 of file ppc-opc.c.

#define XUC_MASK   XUC(0x3f, 0x1f)

Definition at line 1819 of file ppc-opc.c.

#define Y_MASK   (((unsigned long) 1) << 21)

Definition at line 1565 of file ppc-opc.c.

#define Z (   op,
  xop 
)    (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1))

Definition at line 1665 of file ppc-opc.c.

#define Z_MASK   ZRC (0x3f, 0x1ff, 1)

Definition at line 1677 of file ppc-opc.c.

#define ZRC (   op,
  xop,
  rc 
)    (Z ((op), (xop)) | ((rc) & 1))

Definition at line 1671 of file ppc-opc.c.

Variable Documentation

struct powerpc_macro powerpc_macros[]

Definition at line 4951 of file ppc-opc.c.

const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros)

Definition at line 4993 of file ppc-opc.c.

const int powerpc_num_opcodes = ARRAY_SIZE(powerpc_opcodes)

Definition at line 4937 of file ppc-opc.c.

struct powerpc_opcode powerpc_opcodes[]

Definition at line 1934 of file ppc-opc.c.

struct powerpc_operand powerpc_operands[]

Definition at line 113 of file ppc-opc.c.