Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Enumerations
score-inst.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  datafield_range
struct  shift_bitmask
struct  asm_opcode

Defines

#define LDST_UNALIGN_MASK   0x0000007f
#define UA_LCB   0x00000060
#define UA_LCW   0x00000062
#define UA_LCE   0x00000066
#define UA_SCB   0x00000068
#define UA_SCW   0x0000006a
#define UA_SCE   0x0000006e
#define UA_LL   0x0000000c
#define UA_SC   0x0000000e
#define LDST16_RR_MASK   0x0000000f
#define N16_LW   8
#define N16_LH   9
#define N16_POP   10
#define N16_LBU   11
#define N16_SW   12
#define N16_SH   13
#define N16_PUSH   14
#define N16_SB   15
#define LDST16_RI_MASK   0x7007
#define N16_LWP   0x7000
#define N16_LHP   0x7001
#define N16_LBUP   0x7003
#define N16_SWP   0x7004
#define N16_SHP   0x7005
#define N16_SBP   0x7007
#define N16_LIU   0x5000
#define OPC_PSEUDOLDST_MASK   0x00000007
#define REG_TMP   1
#define OP_REG_TYPE   (1 << 6)
#define OP_IMM_TYPE   (1 << 7)
#define OP_SH_REGD   (OP_REG_TYPE |20)
#define OP_SH_REGS1   (OP_REG_TYPE |15)
#define OP_SH_REGS2   (OP_REG_TYPE |10)
#define OP_SH_I   (OP_IMM_TYPE | 1)
#define OP_SH_RI15   (OP_IMM_TYPE | 0)
#define OP_SH_I12   (OP_IMM_TYPE | 3)
#define OP_SH_DISP24   (OP_IMM_TYPE | 1)
#define OP_SH_DISP19_p1   (OP_IMM_TYPE |15)
#define OP_SH_DISP19_p2   (OP_IMM_TYPE | 1)
#define OP_SH_I5   (OP_IMM_TYPE |10)
#define OP_SH_I10   (OP_IMM_TYPE | 5)
#define OP_SH_COPID   (OP_IMM_TYPE | 5)
#define OP_SH_TRAPI5   (OP_IMM_TYPE |15)
#define OP_SH_I15   (OP_IMM_TYPE |10)
#define OP16_SH_REGD   (OP_REG_TYPE | 8)
#define OP16_SH_REGS1   (OP_REG_TYPE | 4)
#define OP16_SH_I45   (OP_IMM_TYPE | 3)
#define OP16_SH_I8   (OP_IMM_TYPE | 0)
#define OP16_SH_DISP8   (OP_IMM_TYPE | 0)
#define OP16_SH_DISP11   (OP_IMM_TYPE | 1)

Enumerations

enum  {
  INSN_LW = 0, INSN_LH = 1, INSN_LHU = 2, INSN_LB = 3,
  INSN_SW = 4, INSN_SH = 5, INSN_LBU = 6, INSN_SB = 7
}
enum  {
  INSN16_LBU = 11, INSN16_LH = 9, INSN16_LW = 8, INSN16_SB = 15,
  INSN16_SH = 13, INSN16_SW = 12
}
enum  { LDST_NOUPDATE = 0, LDST_PRE = 1, LDST_POST = 2 }
enum  score_insn_type {
  Rd_I4, Rd_I5, Rd_rvalueBP_I5, Rd_lvalueBP_I5,
  Rd_Rs_I5, x_Rs_I5, x_I5_x, Rd_I8,
  Rd_Rs_I14, I15, Rd_I16, Rd_rvalueRs_SI10,
  Rd_lvalueRs_SI10, Rd_rvalueRs_preSI12, Rd_rvalueRs_postSI12, Rd_lvalueRs_preSI12,
  Rd_lvalueRs_postSI12, Rd_Rs_SI14, Rd_rvalueRs_SI15, Rd_lvalueRs_SI15,
  Rd_SI16, PC_DISP8div2, PC_DISP11div2, PC_DISP19div2,
  PC_DISP24div2, Rd_Rs_Rs, x_Rs_x, x_Rs_Rs,
  Rd_Rs_x, Rd_x_Rs, Rd_x_x, Rd_Rs,
  Rd_HighRs, Rd_lvalueRs, Rd_rvalueRs, Rd_lvalue32Rs,
  Rd_rvalue32Rs, x_Rs, NO_OPD, NO16_OPD,
  OP5_rvalueRs_SI15, I5_Rs_Rs_I5_OP5, x_rvalueRs_post4, Rd_rvalueRs_post4,
  Rd_x_I5, Rd_lvalueRs_post4, x_lvalueRs_post4, Rd_LowRs,
  Rd_Rs_Rs_imm, Insn_Type_PCE, Insn_Type_SYN, Insn_GP,
  Insn_PIC, Insn_internal
}
enum  score_data_type {
  _IMM4 = 0, _IMM5, _IMM8, _IMM14,
  _IMM15, _IMM16, _SIMM10 = 6, _SIMM12,
  _SIMM14, _SIMM15, _SIMM16, _SIMM14_NEG = 11,
  _IMM16_NEG, _SIMM16_NEG, _IMM20, _IMM25,
  _DISP8div2 = 16, _DISP11div2, _DISP19div2, _DISP24div2,
  _VALUE, _VALUE_HI16, _VALUE_LO16, _VALUE_LDST_LO16 = 23,
  _SIMM16_LA, _IMM5_RSHIFT_1, _IMM5_RSHIFT_2, _SIMM16_LA_POS,
  _IMM5_RANGE_8_31, _IMM10_RSHIFT_2, _GP_IMM15 = 30, _GP_IMM14 = 31,
  _SIMM16_pic = 42, _IMM16_LO16_pic = 43, _IMM16_pic = 44
}
enum  insn_class {
  INSN_CLASS_16, INSN_CLASS_32, INSN_CLASS_PCE, INSN_CLASS_SYN,
  OP1_0, OP1_1, OP1_2, OP1_3
}

Class Documentation

struct datafield_range

Definition at line 209 of file score-inst.h.

Class Members
int bits
int data_type
int range
struct shift_bitmask

Definition at line 265 of file score-inst.h.

Collaboration diagram for shift_bitmask:
Class Members
struct datafield_range * df_range
long fieldbits
int opd_num
int opd_type
int sh

Define Documentation

#define LDST16_RI_MASK   0x7007

Definition at line 45 of file score-inst.h.

#define LDST16_RR_MASK   0x0000000f

Definition at line 36 of file score-inst.h.

#define LDST_UNALIGN_MASK   0x0000007f

Definition at line 27 of file score-inst.h.

#define N16_LBU   11

Definition at line 40 of file score-inst.h.

#define N16_LBUP   0x7003

Definition at line 48 of file score-inst.h.

#define N16_LH   9

Definition at line 38 of file score-inst.h.

#define N16_LHP   0x7001

Definition at line 47 of file score-inst.h.

#define N16_LIU   0x5000

Definition at line 52 of file score-inst.h.

#define N16_LW   8

Definition at line 37 of file score-inst.h.

#define N16_LWP   0x7000

Definition at line 46 of file score-inst.h.

#define N16_POP   10

Definition at line 39 of file score-inst.h.

#define N16_PUSH   14

Definition at line 43 of file score-inst.h.

#define N16_SB   15

Definition at line 44 of file score-inst.h.

#define N16_SBP   0x7007

Definition at line 51 of file score-inst.h.

#define N16_SH   13

Definition at line 42 of file score-inst.h.

#define N16_SHP   0x7005

Definition at line 50 of file score-inst.h.

#define N16_SW   12

Definition at line 41 of file score-inst.h.

#define N16_SWP   0x7004

Definition at line 49 of file score-inst.h.

#define OP16_SH_DISP11   (OP_IMM_TYPE | 1)

Definition at line 207 of file score-inst.h.

#define OP16_SH_DISP8   (OP_IMM_TYPE | 0)

Definition at line 206 of file score-inst.h.

#define OP16_SH_I45   (OP_IMM_TYPE | 3)

Definition at line 204 of file score-inst.h.

#define OP16_SH_I8   (OP_IMM_TYPE | 0)

Definition at line 205 of file score-inst.h.

#define OP16_SH_REGD   (OP_REG_TYPE | 8)

Definition at line 202 of file score-inst.h.

#define OP16_SH_REGS1   (OP_REG_TYPE | 4)

Definition at line 203 of file score-inst.h.

#define OP_IMM_TYPE   (1 << 7)

Definition at line 186 of file score-inst.h.

#define OP_REG_TYPE   (1 << 6)

Definition at line 185 of file score-inst.h.

#define OP_SH_COPID   (OP_IMM_TYPE | 5)

Definition at line 198 of file score-inst.h.

#define OP_SH_DISP19_p1   (OP_IMM_TYPE |15)

Definition at line 194 of file score-inst.h.

#define OP_SH_DISP19_p2   (OP_IMM_TYPE | 1)

Definition at line 195 of file score-inst.h.

#define OP_SH_DISP24   (OP_IMM_TYPE | 1)

Definition at line 193 of file score-inst.h.

#define OP_SH_I   (OP_IMM_TYPE | 1)

Definition at line 190 of file score-inst.h.

#define OP_SH_I10   (OP_IMM_TYPE | 5)

Definition at line 197 of file score-inst.h.

#define OP_SH_I12   (OP_IMM_TYPE | 3)

Definition at line 192 of file score-inst.h.

#define OP_SH_I15   (OP_IMM_TYPE |10)

Definition at line 200 of file score-inst.h.

#define OP_SH_I5   (OP_IMM_TYPE |10)

Definition at line 196 of file score-inst.h.

#define OP_SH_REGD   (OP_REG_TYPE |20)

Definition at line 187 of file score-inst.h.

#define OP_SH_REGS1   (OP_REG_TYPE |15)

Definition at line 188 of file score-inst.h.

#define OP_SH_REGS2   (OP_REG_TYPE |10)

Definition at line 189 of file score-inst.h.

#define OP_SH_RI15   (OP_IMM_TYPE | 0)

Definition at line 191 of file score-inst.h.

#define OP_SH_TRAPI5   (OP_IMM_TYPE |15)

Definition at line 199 of file score-inst.h.

#define OPC_PSEUDOLDST_MASK   0x00000007

Definition at line 54 of file score-inst.h.

#define REG_TMP   1

Definition at line 183 of file score-inst.h.

#define UA_LCB   0x00000060

Definition at line 28 of file score-inst.h.

#define UA_LCE   0x00000066

Definition at line 30 of file score-inst.h.

#define UA_LCW   0x00000062

Definition at line 29 of file score-inst.h.

#define UA_LL   0x0000000c

Definition at line 34 of file score-inst.h.

#define UA_SC   0x0000000e

Definition at line 35 of file score-inst.h.

#define UA_SCB   0x00000068

Definition at line 31 of file score-inst.h.

#define UA_SCE   0x0000006e

Definition at line 33 of file score-inst.h.

#define UA_SCW   0x0000006a

Definition at line 32 of file score-inst.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
INSN_LW 
INSN_LH 
INSN_LHU 
INSN_LB 
INSN_SW 
INSN_SH 
INSN_LBU 
INSN_SB 

Definition at line 56 of file score-inst.h.

{
  INSN_LW = 0,
  INSN_LH = 1,
  INSN_LHU = 2,
  INSN_LB = 3,
  INSN_SW = 4,
  INSN_SH = 5,
  INSN_LBU = 6,
  INSN_SB = 7,
};
anonymous enum
Enumerator:
INSN16_LBU 
INSN16_LH 
INSN16_LW 
INSN16_SB 
INSN16_SH 
INSN16_SW 

Definition at line 69 of file score-inst.h.

{
  INSN16_LBU = 11,
  INSN16_LH = 9,
  INSN16_LW = 8,
  INSN16_SB = 15,
  INSN16_SH = 13,
  INSN16_SW = 12,
};
anonymous enum
Enumerator:
LDST_NOUPDATE 
LDST_PRE 
LDST_POST 

Definition at line 79 of file score-inst.h.

{
  LDST_NOUPDATE = 0,
  LDST_PRE = 1,
  LDST_POST = 2,
};
enum insn_class
Enumerator:
INSN_CLASS_16 
INSN_CLASS_32 
INSN_CLASS_PCE 
INSN_CLASS_SYN 
OP1_0 
OP1_1 
OP1_2 
OP1_3 

Definition at line 499 of file score-inst.h.

Enumerator:
_IMM4 
_IMM5 
_IMM8 
_IMM14 
_IMM15 
_IMM16 
_SIMM10 
_SIMM12 
_SIMM14 
_SIMM15 
_SIMM16 
_SIMM14_NEG 
_IMM16_NEG 
_SIMM16_NEG 
_IMM20 
_IMM25 
_DISP8div2 
_DISP11div2 
_DISP19div2 
_DISP24div2 
_VALUE 
_VALUE_HI16 
_VALUE_LO16 
_VALUE_LDST_LO16 
_SIMM16_LA 
_IMM5_RSHIFT_1 
_IMM5_RSHIFT_2 
_SIMM16_LA_POS 
_IMM5_RANGE_8_31 
_IMM10_RSHIFT_2 
_GP_IMM15 
_GP_IMM14 
_SIMM16_pic 
_IMM16_LO16_pic 
_IMM16_pic 

Definition at line 144 of file score-inst.h.

Enumerator:
Rd_I4 
Rd_I5 
Rd_rvalueBP_I5 
Rd_lvalueBP_I5 
Rd_Rs_I5 
x_Rs_I5 
x_I5_x 
Rd_I8 
Rd_Rs_I14 
I15 
Rd_I16 
Rd_rvalueRs_SI10 
Rd_lvalueRs_SI10 
Rd_rvalueRs_preSI12 
Rd_rvalueRs_postSI12 
Rd_lvalueRs_preSI12 
Rd_lvalueRs_postSI12 
Rd_Rs_SI14 
Rd_rvalueRs_SI15 
Rd_lvalueRs_SI15 
Rd_SI16 
PC_DISP8div2 
PC_DISP11div2 
PC_DISP19div2 
PC_DISP24div2 
Rd_Rs_Rs 
x_Rs_x 
x_Rs_Rs 
Rd_Rs_x 
Rd_x_Rs 
Rd_x_x 
Rd_Rs 
Rd_HighRs 
Rd_lvalueRs 
Rd_rvalueRs 
Rd_lvalue32Rs 
Rd_rvalue32Rs 
x_Rs 
NO_OPD 
NO16_OPD 
OP5_rvalueRs_SI15 
I5_Rs_Rs_I5_OP5 
x_rvalueRs_post4 
Rd_rvalueRs_post4 
Rd_x_I5 
Rd_lvalueRs_post4 
x_lvalueRs_post4 
Rd_LowRs 
Rd_Rs_Rs_imm 
Insn_Type_PCE 
Insn_Type_SYN 
Insn_GP 
Insn_PIC 
Insn_internal 

Definition at line 86 of file score-inst.h.