osprey/cygnus/opcodes/ppc-opc.c File Reference

#include <stdio.h>
#include "sysdep.h"
#include "opcode/ppc.h"
#include "opintl.h"

Include dependency graph for ppc-opc.c:

Go to the source code of this file.

Defines

#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 LEV   L + 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 SPRG_MASK   (0x3 << 16)
#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 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 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 XRC(op, xop, rc)   (X ((op), (xop)) | ((rc) & 1))
#define X_MASK   XRC (0x3f, 0x3ff, 1)
#define XRA_MASK   (X_MASK | RA_MASK)
#define XRB_MASK   (X_MASK | RB_MASK)
#define XRT_MASK   (X_MASK | RT_MASK)
#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 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 &~ SPRG_MASK)
#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 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 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

Functions/Subroutines

static unsigned long insert_bat (unsigned long, long, int, const char **)
static long extract_bat (unsigned long, int, int *)
static unsigned long insert_bba (unsigned long, long, int, const char **)
static long extract_bba (unsigned long, int, int *)
static unsigned long insert_bd (unsigned long, long, int, const char **)
static long extract_bd (unsigned long, int, int *)
static unsigned long insert_bdm (unsigned long, long, int, const char **)
static long extract_bdm (unsigned long, int, int *)
static unsigned long insert_bdp (unsigned long, long, int, const char **)
static long extract_bdp (unsigned long, int, int *)
static unsigned long insert_bo (unsigned long, long, int, const char **)
static long extract_bo (unsigned long, int, int *)
static unsigned long insert_boe (unsigned long, long, int, const char **)
static long extract_boe (unsigned long, int, int *)
static unsigned long insert_dq (unsigned long, long, int, const char **)
static long extract_dq (unsigned long, int, int *)
static unsigned long insert_ds (unsigned long, long, int, const char **)
static long extract_ds (unsigned long, int, int *)
static unsigned long insert_de (unsigned long, long, int, const char **)
static long extract_de (unsigned long, int, int *)
static unsigned long insert_des (unsigned long, long, int, const char **)
static long extract_des (unsigned long, int, int *)
static unsigned long insert_fxm (unsigned long, long, int, const char **)
static long extract_fxm (unsigned long, int, int *)
static unsigned long insert_li (unsigned long, long, int, const char **)
static long extract_li (unsigned long, int, int *)
static unsigned long insert_mbe (unsigned long, long, int, const char **)
static long extract_mbe (unsigned long, int, int *)
static unsigned long insert_mb6 (unsigned long, long, int, const char **)
static long extract_mb6 (unsigned long, int, int *)
static unsigned long insert_nb (unsigned long, long, int, const char **)
static long extract_nb (unsigned long, int, int *)
static unsigned long insert_nsi (unsigned long, long, int, const char **)
static long extract_nsi (unsigned long, int, int *)
static unsigned long insert_ral (unsigned long, long, int, const char **)
static unsigned long insert_ram (unsigned long, long, int, const char **)
static unsigned long insert_raq (unsigned long, long, int, const char **)
static unsigned long insert_ras (unsigned long, long, int, const char **)
static unsigned long insert_rbs (unsigned long, long, int, const char **)
static long extract_rbs (unsigned long, int, int *)
static unsigned long insert_rsq (unsigned long, long, int, const char **)
static unsigned long insert_rtq (unsigned long, long, int, const char **)
static unsigned long insert_sh6 (unsigned long, long, int, const char **)
static long extract_sh6 (unsigned long, int, int *)
static unsigned long insert_spr (unsigned long, long, int, const char **)
static long extract_spr (unsigned long, int, int *)
static unsigned long insert_tbr (unsigned long, long, int, const char **)
static long extract_tbr (unsigned long, int, int *)
static unsigned long insert_ev2 (unsigned long, long, int, const char **)
static long extract_ev2 (unsigned long, int, int *)
static unsigned long insert_ev4 (unsigned long, long, int, const char **)
static long extract_ev4 (unsigned long, int, int *)
static unsigned long insert_ev8 (unsigned long, long, int, const char **)
static long extract_ev8 (unsigned long, int, int *)
static unsigned long insert_bat (unsigned long insn, long value ATTRIBUTE_UNUSED, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_bat (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_bba (unsigned long insn, long value ATTRIBUTE_UNUSED, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_bba (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_bd (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_bd (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_bdm (unsigned long insn, long value, int dialect, const char **errmsg ATTRIBUTE_UNUSED)
static unsigned long insert_bdp (unsigned long insn, long value, int dialect, const char **errmsg ATTRIBUTE_UNUSED)
static int valid_bo (long value, int dialect)
static unsigned long insert_dq (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_dq (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_ev2 (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_ev2 (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_ev4 (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_ev4 (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_ev8 (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_ev8 (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_ds (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_ds (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_de (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_de (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_des (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_des (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static long extract_fxm (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_li (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_li (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_mbe (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_mbe (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_mb6 (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_mb6 (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_nb (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static long extract_nb (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_nsi (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_nsi (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_ral (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_ram (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_raq (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_ras (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_rbs (unsigned long insn, long value ATTRIBUTE_UNUSED, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_rbs (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid)
static unsigned long insert_rtq (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_rsq (unsigned long insn, long value ATTRIBUTE_UNUSED, int dialect ATTRIBUTE_UNUSED, const char **errmsg)
static unsigned long insert_sh6 (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_sh6 (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_spr (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_spr (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)
static unsigned long insert_tbr (unsigned long insn, long value, int dialect ATTRIBUTE_UNUSED, const char **errmsg ATTRIBUTE_UNUSED)
static long extract_tbr (unsigned long insn, int dialect ATTRIBUTE_UNUSED, int *invalid ATTRIBUTE_UNUSED)

Variables

struct powerpc_operand powerpc_operands []
struct powerpc_opcode powerpc_opcodes []
const int powerpc_num_opcodes
struct powerpc_macro powerpc_macros []
const int powerpc_num_macros


Define Documentation

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

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

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

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

#define AFRAFRC_MASK   (A_MASK | FRA_MASK | FRC_MASK)

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

#define AFRB_MASK   (A_MASK | FRB_MASK)

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

#define AFRC_MASK   (A_MASK | FRC_MASK)

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

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

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

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

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

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

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

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

Definition at line 1472 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 1475 of file ppc-opc.c.

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

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

#define BBOAT2CB_MASK   (BBOCB_MASK &~ AT2_MASK)

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

#define BBOAT_MASK   (BBO_MASK &~ AT1_MASK)

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

#define BBOATBI_MASK   (BBOAT2CB_MASK | BI_MASK)

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

#define BBOATCB_MASK   (BBOCB_MASK &~ AT1_MASK)

Definition at line 1495 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 1489 of file ppc-opc.c.

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

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

#define BBOY_MASK   (BBO_MASK &~ Y_MASK)

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

#define BBOYBI_MASK   (BBOYCB_MASK | BI_MASK)

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

#define BBOYCB_MASK   (BBOCB_MASK &~ Y_MASK)

Definition at line 1494 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

Referenced by printop().

#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 1741 of file ppc-opc.c.

#define BODNZF   (0x0)

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

#define BODNZFP   (0x1)

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

#define BODNZM4   (0x18)

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

#define BODNZP   (0x11)

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

#define BODNZP4   (0x19)

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

#define BODNZT   (0x8)

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

#define BODNZTP   (0x9)

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

#define BODZ   (0x12)

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

#define BODZF   (0x2)

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

#define BODZFP   (0x3)

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

#define BODZM4   (0x1a)

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

#define BODZP   (0x13)

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

#define BODZP4   (0x1b)

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

#define BODZT   (0xa)

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

#define BODZTP   (0xb)

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

#define BOE   BO + 1

#define BOF   (0x4)

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

#define BOFM4   (0x6)

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

#define BOFP   (0x5)

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

#define BOFP4   (0x7)

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

#define BOOKE   PPC_OPCODE_BOOKE

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

#define BOOKE64   PPC_OPCODE_BOOKE64

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

#define BOT   (0xc)

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

#define BOTM4   (0xe)

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

#define BOTP   (0xd)

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

#define BOTP4   (0xf)

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

#define BOU   (0x14)

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

#define BT   BH + 1

#define CBEQ   (2)

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

#define CBGT   (1)

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

#define CBLT   (0)

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

#define CBSO   (3)

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

#define CLASSIC   PPC_OPCODE_CLASSIC

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

#define COM   PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON

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

Referenced by _bfd_generic_link_add_one_symbol().

#define COM32   PPC_OPCODE_POWER | PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_32

Definition at line 1796 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 1503 of file ppc-opc.c.

Referenced by ucn_valid_in_identifier().

#define CTX_MASK   CTX(0x3f, 0x7)

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

#define D   CT + 1

#define DE   D + 1

#define DE_MASK   DEO (0x3e, 0xf)

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

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

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

#define DES   DE + 1

#define DQ   DES + 1

#define DRA_MASK   (OP_MASK | RA_MASK)

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

#define DS   DQ + 1

#define DS_MASK   DSO (0x3f, 3)

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

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

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

Referenced by check_existence_of_phases().

#define E   DS + 1

#define EVSEL ( op,
xop   )     (OP (op) | (((unsigned long)(xop)) & 0xff) << 3)

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

#define EVSEL_MASK   EVSEL(0x3f, 0xff)

Definition at line 1523 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   L + 1

#define LI   LEV + 1

#define LIA   LI + 1

#define LS   LIA + 1

Referenced by print_insn_mcore().

#define M ( op,
rc   )     (OP (op) | ((rc) & 1))

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

#define M601   PPC_OPCODE_POWER | PPC_OPCODE_601

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

#define M_MASK   M (0x3f, 1)

Definition at line 1527 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 1539 of file ppc-opc.c.

Referenced by g_number().

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

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

#define MDMB_MASK   (MD_MASK | MB6_MASK)

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

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

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

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

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

#define MDSH_MASK   (MD_MASK | SH6_MASK)

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

#define MDSMB_MASK   (MDS_MASK | MB6_MASK)

Definition at line 1553 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 1799 of file ppc-opc.c.

#define MFDEC2   PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE

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

#define MMBME_MASK   (M_MASK | MB_MASK | ME_MASK)

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

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

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

#define MO   MB6 + 1

#define MSHME_MASK   (M_MASK | SH_MASK | ME_MASK)

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

#define MTMSRD_L   WS + 1

#define NB   MO + 1

#define NOPOWER4   PPC_OPCODE_NOPOWER4 | PPCCOM

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

#define NSI   NB + 1

#define OBF   BF + 1

#define OP (  )     ((((unsigned long)(x)) & 0x3f) << 26)

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

#define OP_MASK   OP (0x3f)

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

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

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

#define OPL_MASK   OPL (0x3f,1)

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

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

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

#define OPTO_MASK   (OP_MASK | TO_MASK)

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

#define PMR   SPR

#define POWER   PPC_OPCODE_POWER

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

#define POWER2   PPC_OPCODE_POWER | PPC_OPCODE_POWER2

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

#define POWER32   PPC_OPCODE_POWER | PPC_OPCODE_32

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

#define POWER4   PPC_OPCODE_POWER4

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

#define PPC   PPC_OPCODE_PPC

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

#define PPC32   PPC_OPCODE_32 | PPC_OPCODE_PPC

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

#define PPC403   PPC_OPCODE_403

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

#define PPC405   PPC403

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

#define PPC440   PPC_OPCODE_440

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

#define PPC64   PPC_OPCODE_64 | PPC_OPCODE_PPC

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

#define PPC750   PPC

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

#define PPC860   PPC

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

#define PPCBRLK   PPC_OPCODE_BRLOCK

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

#define PPCCHLK   PPC_OPCODE_CACHELCK

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

#define PPCCHLK64   PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64

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

#define PPCCOM   PPC_OPCODE_PPC | PPC_OPCODE_COMMON

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

#define PPCEFS   PPC_OPCODE_EFS

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

#define PPCISEL   PPC_OPCODE_ISEL

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

#define PPCPMR   PPC_OPCODE_PMR

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

#define PPCPWR2   PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2

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

#define PPCRFMCI   PPC_OPCODE_RFMCI

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

#define PPCSPE   PPC_OPCODE_SPE

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

#define PPCVEC   PPC_OPCODE_ALTIVEC

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

#define PWRCOM   PPC_OPCODE_POWER | PPC_OPCODE_601 | PPC_OPCODE_COMMON

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

#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 RS   RBS + 1

#define RSO   RTQ + 1

#define RSQ   RS + 1

#define RT   RS

#define RT_MASK   (0x1f << 21)

Referenced by insert_raq().

#define RTO   RSO

#define RTQ   RSQ + 1

#define SC ( op,
sa,
lk   )     (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))

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

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

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

#define SH   RSO + 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 SPR   SISIGNOPT + 1

#define SPR_MASK   (0x3ff << 11)

#define SPRBAT   SPR + 1

#define SPRBAT_MASK   (0x3 << 17)

#define SPRG   SPRBAT + 1

#define SPRG_MASK   (0x3 << 16)

#define SR   SPRG + 1

#define STRM   SR + 1

#define STRM_MASK   (0x3 << 21)

#define SV   STRM + 1

#define TB   (268)

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

Referenced by extract_tbr(), and insert_tbr().

#define TBR   SV + 1

#define TO   TBR + 1

#define TO_MASK   (0x1f << 21)

#define TOEQ   (0x4)

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

#define TOGE   (0xc)

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

#define TOGT   (0x8)

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

#define TOLE   (0x14)

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

#define TOLGE   (0x5)

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

#define TOLGT   (0x1)

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

#define TOLLE   (0x6)

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

#define TOLLT   (0x2)

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

#define TOLNG   (0x6)

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

#define TOLNL   (0x5)

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

#define TOLT   (0x10)

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

#define TONE   (0x18)

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

#define TONG   (0x14)

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

#define TONL   (0xc)

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

#define TOU   (0x1f)

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

#define U   TO + 1

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

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

#define UCTX_MASK   UCTX(0x3f, 0x1f)

Definition at line 1508 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 1560 of file ppc-opc.c.

#define VX_MASK   VX(0x3f, 0x7ff)

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

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

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

#define VXA_MASK   VXA(0x3f, 0x3f)

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

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

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

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

Definition at line 1575 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 1578 of file ppc-opc.c.

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

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

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

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

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

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

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

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

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

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

#define XE_MASK   (0xffff7fff)

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

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

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

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

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

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

Definition at line 1695 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 1698 of file ppc-opc.c.

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

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

#define XISEL_MASK   XISEL(0x3f, 0x1f)

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

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

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

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

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

#define XLBB_MASK   (XL_MASK | BB_MASK)

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

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

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

#define XLBOBB_MASK   (XL_MASK | BO_MASK | BB_MASK)

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

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

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

#define XLBOCBBB_MASK   (XLOCB_MASK | BB_MASK)

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

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

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

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

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

#define XLO_MASK   (XL_MASK | BO_MASK)

Definition at line 1655 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 1664 of file ppc-opc.c.

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

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

#define XLYBB_MASK   (XLYLK_MASK | BB_MASK)

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

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

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

#define XLYLK_MASK   (XL_MASK | Y_MASK)

Definition at line 1660 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 1683 of file ppc-opc.c.

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

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

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

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

#define XORB_MASK   (XO_MASK | RB_MASK)

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

#define XRA_MASK   (X_MASK | RA_MASK)

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

#define XRARB_MASK   (X_MASK | RA_MASK | RB_MASK)

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

#define XRB_MASK   (X_MASK | RB_MASK)

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

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

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

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

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

#define XRT_MASK   (X_MASK | RT_MASK)

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

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

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

#define XRTRA_MASK   (X_MASK | RT_MASK | RA_MASK)

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

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

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

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

Definition at line 1692 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 1703 of file ppc-opc.c.

#define XSPR_MASK   (X_MASK | SPR_MASK)

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

#define XSPRBAT_MASK   (XSPR_MASK &~ SPRBAT_MASK)

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

#define XSPRG_MASK   (XSPR_MASK &~ SPRG_MASK)

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

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

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

#define XSYNC_MASK   (0xff9fffff)

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

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

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

#define XTLB_MASK   (X_MASK | SH_MASK)

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

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

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

#define XTO_MASK   (X_MASK | TO_MASK)

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

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

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

#define XUC_MASK   XUC(0x3f, 0x1f)

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

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

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


Function Documentation

static long extract_bat ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

static long extract_bat ( unsigned  long,
int  ,
int *   
) [static]

static long extract_bba ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

static long extract_bba ( unsigned  long,
int  ,
int *   
) [static]

static long extract_bd ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_bd ( unsigned  long,
int  ,
int *   
) [static]

static long extract_bdm ( unsigned long  insn,
int  dialect,
int *  invalid 
) [static]

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

References PPC_OPCODE_POWER4.

static long extract_bdp ( unsigned long  insn,
int  dialect,
int *  invalid 
) [static]

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

References PPC_OPCODE_POWER4.

static long extract_bo ( unsigned long  insn,
int  dialect,
int *  invalid 
) [static]

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

References valid_bo().

static long extract_boe ( unsigned long  insn,
int  dialect,
int *  invalid 
) [static]

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

References valid_bo().

static long extract_de ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_de ( unsigned  long,
int  ,
int *   
) [static]

static long extract_des ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_des ( unsigned  long,
int  ,
int *   
) [static]

static long extract_dq ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_dq ( unsigned  long,
int  ,
int *   
) [static]

static long extract_ds ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_ds ( unsigned  long,
int  ,
int *   
) [static]

static long extract_ev2 ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_ev2 ( unsigned  long,
int  ,
int *   
) [static]

static long extract_ev4 ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_ev4 ( unsigned  long,
int  ,
int *   
) [static]

static long extract_ev8 ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_ev8 ( unsigned  long,
int  ,
int *   
) [static]

static long extract_fxm ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

static long extract_fxm ( unsigned  long,
int  ,
int *   
) [static]

static long extract_li ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_li ( unsigned  long,
int  ,
int *   
) [static]

static long extract_mb6 ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_mb6 ( unsigned  long,
int  ,
int *   
) [static]

static long extract_mbe ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

References i, L, and ret.

static long extract_mbe ( unsigned  long,
int  ,
int *   
) [static]

static long extract_nb ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

References ret.

static long extract_nb ( unsigned  long,
int  ,
int *   
) [static]

static long extract_nsi ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

static long extract_nsi ( unsigned  long,
int  ,
int *   
) [static]

static long extract_rbs ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *  invalid 
) [static]

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

static long extract_rbs ( unsigned  long,
int  ,
int *   
) [static]

static long extract_sh6 ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_sh6 ( unsigned  long,
int  ,
int *   
) [static]

static long extract_spr ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

static long extract_spr ( unsigned  long,
int  ,
int *   
) [static]

static long extract_tbr ( unsigned long  insn,
int dialect  ATTRIBUTE_UNUSED,
int *invalid  ATTRIBUTE_UNUSED 
) [static]

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

References ret, and TB.

static long extract_tbr ( unsigned  long,
int  ,
int *   
) [static]

static unsigned long insert_bat ( unsigned long  insn,
long value  ATTRIBUTE_UNUSED,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_bat ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_bba ( unsigned long  insn,
long value  ATTRIBUTE_UNUSED,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_bba ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_bd ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_bd ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_bdm ( unsigned long  insn,
long  value,
int  dialect,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

References PPC_OPCODE_POWER4.

static unsigned long insert_bdm ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_bdp ( unsigned long  insn,
long  value,
int  dialect,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

References PPC_OPCODE_POWER4.

static unsigned long insert_bdp ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_bo ( unsigned long  insn,
long  value,
int  dialect,
const char **  errmsg 
) [static]

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

References _, and valid_bo().

static unsigned long insert_boe ( unsigned long  insn,
long  value,
int  dialect,
const char **  errmsg 
) [static]

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

References _, and valid_bo().

static unsigned long insert_de ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_de ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_des ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_des ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_dq ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_dq ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ds ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ds ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ev2 ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ev2 ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ev4 ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ev4 ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ev8 ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ev8 ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_fxm ( unsigned long  insn,
long  value,
int  dialect,
const char **  errmsg 
) [static]

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

References _, PPC_OPCODE_ANY, and PPC_OPCODE_POWER4.

static unsigned long insert_li ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_li ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_mb6 ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_mb6 ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_mbe ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _, count, L, and last.

static unsigned long insert_mbe ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_nb ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_nb ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_nsi ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_nsi ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ral ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

static unsigned long insert_ral ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ram ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ram ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_raq ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _, and RT_MASK.

static unsigned long insert_raq ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_ras ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_ras ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_rbs ( unsigned long  insn,
long value  ATTRIBUTE_UNUSED,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_rbs ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_rsq ( unsigned long  insn,
long value  ATTRIBUTE_UNUSED,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_rsq ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_rtq ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **  errmsg 
) [static]

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

References _.

static unsigned long insert_rtq ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_sh6 ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_sh6 ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_spr ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

static unsigned long insert_spr ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static unsigned long insert_tbr ( unsigned long  insn,
long  value,
int dialect  ATTRIBUTE_UNUSED,
const char **errmsg  ATTRIBUTE_UNUSED 
) [static]

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

References TB.

static unsigned long insert_tbr ( unsigned  long,
long  ,
int  ,
const char **   
) [static]

static int valid_bo ( long  value,
int  dialect 
) [static]

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

References PPC_OPCODE_POWER4, x1, and x2.

Referenced by extract_bo(), extract_boe(), insert_bo(), and insert_boe().


Variable Documentation

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

const int powerpc_num_macros

Initial value:

  sizeof (powerpc_macros) / sizeof (powerpc_macros[0])

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

Initial value:

  sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0])

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

Referenced by print_insn_powerpc().

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

Referenced by print_insn_powerpc().

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

Referenced by print_insn_powerpc().


Generated on Wed Apr 8 15:05:59 2009 for Open64 by  doxygen 1.5.6