Back to index

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

Go to the source code of this file.

Classes

struct  shmedia_opcode_info
struct  shmedia_creg_info

Defines

#define SHMEDIA_LIKELY_BIT   0x00000200
#define SHMEDIA_PT_OPC   0xe8000000
#define SHMEDIA_PTB_BIT   0x04000000
#define SHMEDIA_PTA_OPC   0xe8000000
#define SHMEDIA_PTB_OPC   0xec000000
#define SHMEDIA_PTREL_OPC   0x6bf50000
#define SHMEDIA_MOVI_OPC   0xcc000000
#define SHMEDIA_SHORI_OPC   0xc8000000
#define SHMEDIA_ADDI_OPC   0xd0000000
#define SHMEDIA_ADD_OPC   0x00090000
#define SHMEDIA_NOP_OPC   0x6ff0fff0
#define SHMEDIA_TEMP_REG   25

Enumerations

enum  shmedia_nibble_type {
  OFFSET_NONE = 0, OFFSET_4 = 4, OFFSET_9 = 9, OFFSET_10 = 10,
  OFFSET_20 = 20
}
enum  shmedia_arg_type {
  A_NONE = 0, A_GREG_M, A_GREG_N, A_GREG_D,
  A_FREG_G, A_FREG_H, A_FREG_F, A_DREG_G,
  A_DREG_H, A_DREG_F, A_FVREG_G, A_FVREG_H,
  A_FVREG_F, A_FMREG_G, A_FMREG_H, A_FMREG_F,
  A_FPREG_G, A_FPREG_H, A_FPREG_F, A_TREG_A,
  A_TREG_B, A_CREG_K, A_CREG_J, A_IMMM,
  A_REUSE_PREV, A_IMMU5, A_IMMS6, A_IMMS6BY32,
  A_IMMU6, A_IMMS10, A_IMMS10BY1, A_IMMS10BY2,
  A_IMMS10BY4, A_IMMS10BY8, A_IMMS16, A_IMMU16,
  A_PCIMMS16BY4, A_PCIMMS16BY4_PT
}

Variables

const shmedia_opcode_info shmedia_table []
const shmedia_creg_info shmedia_creg_table []

Class Documentation

struct shmedia_opcode_info

Definition at line 108 of file sh64-opc.h.

Class Members
shmedia_arg_type arg
char * name
shmedia_nibble_type nibbles
unsigned long opcode_base
struct shmedia_creg_info

Definition at line 117 of file sh64-opc.h.

Class Members
int cregno
char * name

Define Documentation

#define SHMEDIA_ADD_OPC   0x00090000

Definition at line 135 of file sh64-opc.h.

#define SHMEDIA_ADDI_OPC   0xd0000000

Definition at line 134 of file sh64-opc.h.

#define SHMEDIA_LIKELY_BIT   0x00000200

Definition at line 124 of file sh64-opc.h.

#define SHMEDIA_MOVI_OPC   0xcc000000

Definition at line 132 of file sh64-opc.h.

#define SHMEDIA_NOP_OPC   0x6ff0fff0

Definition at line 136 of file sh64-opc.h.

#define SHMEDIA_PT_OPC   0xe8000000

Definition at line 125 of file sh64-opc.h.

#define SHMEDIA_PTA_OPC   0xe8000000

Definition at line 127 of file sh64-opc.h.

#define SHMEDIA_PTB_BIT   0x04000000

Definition at line 126 of file sh64-opc.h.

#define SHMEDIA_PTB_OPC   0xec000000

Definition at line 128 of file sh64-opc.h.

#define SHMEDIA_PTREL_OPC   0x6bf50000

Definition at line 131 of file sh64-opc.h.

#define SHMEDIA_SHORI_OPC   0xc8000000

Definition at line 133 of file sh64-opc.h.

#define SHMEDIA_TEMP_REG   25

Definition at line 137 of file sh64-opc.h.


Enumeration Type Documentation

Enumerator:
A_NONE 
A_GREG_M 
A_GREG_N 
A_GREG_D 
A_FREG_G 
A_FREG_H 
A_FREG_F 
A_DREG_G 
A_DREG_H 
A_DREG_F 
A_FVREG_G 
A_FVREG_H 
A_FVREG_F 
A_FMREG_G 
A_FMREG_H 
A_FMREG_F 
A_FPREG_G 
A_FPREG_H 
A_FPREG_F 
A_TREG_A 
A_TREG_B 
A_CREG_K 
A_CREG_J 
A_IMMM 
A_REUSE_PREV 
A_IMMU5 
A_IMMS6 
A_IMMS6BY32 
A_IMMU6 
A_IMMS10 
A_IMMS10BY1 
A_IMMS10BY2 
A_IMMS10BY4 
A_IMMS10BY8 
A_IMMS16 
A_IMMU16 
A_PCIMMS16BY4 
A_PCIMMS16BY4_PT 

Definition at line 33 of file sh64-opc.h.

             {
  /* First a placeholder.  */
  A_NONE = 0,

  /* Registers.  */
  A_GREG_M,
  A_GREG_N,
  A_GREG_D,
  A_FREG_G,
  A_FREG_H,
  A_FREG_F,
  A_DREG_G,
  A_DREG_H,
  A_DREG_F,
  A_FVREG_G,
  A_FVREG_H,
  A_FVREG_F,
  A_FMREG_G,
  A_FMREG_H,
  A_FMREG_F,
  A_FPREG_G,
  A_FPREG_H,
  A_FPREG_F,
  A_TREG_A,
  A_TREG_B,
  A_CREG_K,
  A_CREG_J,

  /* This one is only used in a shmedia_get_operand.  */
  A_IMMM,

  /* Copy of previous register.  */
  A_REUSE_PREV,

  /* Unsigned 5-bit operand.  */
  A_IMMU5,

  /* Signed 6-bit operand.  */
  A_IMMS6,

  /* Signed operand, 6 bits << 5.  */
  A_IMMS6BY32,

  /* Unsigned 6-bit operand.  */
  A_IMMU6,

  /* Signed 10-bit operand.  */
  A_IMMS10,

  /* Signed operand, 10 bits << 0.  */
  A_IMMS10BY1,

  /* Signed operand, 10 bits << 1.  */
  A_IMMS10BY2,

  /* Signed operand, 10 bits << 2.  */
  A_IMMS10BY4,

  /* Signed operand, 10 bits << 3.  */
  A_IMMS10BY8,

  /* Signed 16-bit operand.  */
  A_IMMS16,

  /* Unsigned 16-bit operand.  */
  A_IMMU16,

  /* PC-relative signed operand, 16 bits << 2, for PTA and PTB insns.  */
  A_PCIMMS16BY4,

  /* PC relative signed operand, 16 bits << 2, for PT insns.  Also adjusts
     the opcode to be PTA or PTB.  */
  A_PCIMMS16BY4_PT,
} shmedia_arg_type;
Enumerator:
OFFSET_NONE 
OFFSET_4 
OFFSET_9 
OFFSET_10 
OFFSET_20 

Definition at line 21 of file sh64-opc.h.

{
  /* A placeholder.  */
  OFFSET_NONE = 0,

  /* Bit number for where to insert operand.  */
  OFFSET_4  = 4,
  OFFSET_9  = 9,
  OFFSET_10 = 10,
  OFFSET_20 = 20
} shmedia_nibble_type;

Variable Documentation

Definition at line 750 of file sh64-opc.c.

Definition at line 23 of file sh64-opc.c.