Home | History | Annotate | Line # | Download | only in opcodes
mt-desc.h revision 1.1
      1  1.1  christos /* CPU data header for mt.
      2  1.1  christos 
      3  1.1  christos THIS FILE IS MACHINE GENERATED WITH CGEN.
      4  1.1  christos 
      5  1.1  christos Copyright 1996-2010 Free Software Foundation, Inc.
      6  1.1  christos 
      7  1.1  christos This file is part of the GNU Binutils and/or GDB, the GNU debugger.
      8  1.1  christos 
      9  1.1  christos    This file is free software; you can redistribute it and/or modify
     10  1.1  christos    it under the terms of the GNU General Public License as published by
     11  1.1  christos    the Free Software Foundation; either version 3, or (at your option)
     12  1.1  christos    any later version.
     13  1.1  christos 
     14  1.1  christos    It is distributed in the hope that it will be useful, but WITHOUT
     15  1.1  christos    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     16  1.1  christos    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     17  1.1  christos    License for more details.
     18  1.1  christos 
     19  1.1  christos    You should have received a copy of the GNU General Public License along
     20  1.1  christos    with this program; if not, write to the Free Software Foundation, Inc.,
     21  1.1  christos    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
     22  1.1  christos 
     23  1.1  christos */
     24  1.1  christos 
     25  1.1  christos #ifndef MT_CPU_H
     26  1.1  christos #define MT_CPU_H
     27  1.1  christos 
     28  1.1  christos #define CGEN_ARCH mt
     29  1.1  christos 
     30  1.1  christos /* Given symbol S, return mt_cgen_<S>.  */
     31  1.1  christos #define CGEN_SYM(s) mt##_cgen_##s
     32  1.1  christos 
     33  1.1  christos 
     34  1.1  christos /* Selected cpu families.  */
     35  1.1  christos #define HAVE_CPU_MS1BF
     36  1.1  christos #define HAVE_CPU_MS1_003BF
     37  1.1  christos #define HAVE_CPU_MS2BF
     38  1.1  christos 
     39  1.1  christos #define CGEN_INSN_LSB0_P 1
     40  1.1  christos 
     41  1.1  christos /* Minimum size of any insn (in bytes).  */
     42  1.1  christos #define CGEN_MIN_INSN_SIZE 4
     43  1.1  christos 
     44  1.1  christos /* Maximum size of any insn (in bytes).  */
     45  1.1  christos #define CGEN_MAX_INSN_SIZE 4
     46  1.1  christos 
     47  1.1  christos #define CGEN_INT_INSN_P 1
     48  1.1  christos 
     49  1.1  christos /* Maximum number of syntax elements in an instruction.  */
     50  1.1  christos #define CGEN_ACTUAL_MAX_SYNTAX_ELEMENTS 40
     51  1.1  christos 
     52  1.1  christos /* CGEN_MNEMONIC_OPERANDS is defined if mnemonics have operands.
     53  1.1  christos    e.g. In "b,a foo" the ",a" is an operand.  If mnemonics have operands
     54  1.1  christos    we can't hash on everything up to the space.  */
     55  1.1  christos #define CGEN_MNEMONIC_OPERANDS
     56  1.1  christos 
     57  1.1  christos /* Maximum number of fields in an instruction.  */
     58  1.1  christos #define CGEN_ACTUAL_MAX_IFMT_OPERANDS 14
     59  1.1  christos 
     60  1.1  christos /* Enums.  */
     61  1.1  christos 
     62  1.1  christos /* Enum declaration for msys enums.  */
     63  1.1  christos typedef enum insn_msys {
     64  1.1  christos   MSYS_NO, MSYS_YES
     65  1.1  christos } INSN_MSYS;
     66  1.1  christos 
     67  1.1  christos /* Enum declaration for opc enums.  */
     68  1.1  christos typedef enum insn_opc {
     69  1.1  christos   OPC_ADD = 0, OPC_ADDU = 1, OPC_SUB = 2, OPC_SUBU = 3
     70  1.1  christos  , OPC_MUL = 4, OPC_AND = 8, OPC_OR = 9, OPC_XOR = 10
     71  1.1  christos  , OPC_NAND = 11, OPC_NOR = 12, OPC_XNOR = 13, OPC_LDUI = 14
     72  1.1  christos  , OPC_LSL = 16, OPC_LSR = 17, OPC_ASR = 18, OPC_BRLT = 24
     73  1.1  christos  , OPC_BRLE = 25, OPC_BREQ = 26, OPC_JMP = 27, OPC_JAL = 28
     74  1.1  christos  , OPC_BRNEQ = 29, OPC_DBNZ = 30, OPC_LOOP = 31, OPC_LDW = 32
     75  1.1  christos  , OPC_STW = 33, OPC_EI = 48, OPC_DI = 49, OPC_SI = 50
     76  1.1  christos  , OPC_RETI = 51, OPC_BREAK = 52, OPC_IFLUSH = 53
     77  1.1  christos } INSN_OPC;
     78  1.1  christos 
     79  1.1  christos /* Enum declaration for msopc enums.  */
     80  1.1  christos typedef enum insn_msopc {
     81  1.1  christos   MSOPC_LDCTXT, MSOPC_LDFB, MSOPC_STFB, MSOPC_FBCB
     82  1.1  christos  , MSOPC_MFBCB, MSOPC_FBCCI, MSOPC_FBRCI, MSOPC_FBCRI
     83  1.1  christos  , MSOPC_FBRRI, MSOPC_MFBCCI, MSOPC_MFBRCI, MSOPC_MFBCRI
     84  1.1  christos  , MSOPC_MFBRRI, MSOPC_FBCBDR, MSOPC_RCFBCB, MSOPC_MRCFBCB
     85  1.1  christos  , MSOPC_CBCAST, MSOPC_DUPCBCAST, MSOPC_WFBI, MSOPC_WFB
     86  1.1  christos  , MSOPC_RCRISC, MSOPC_FBCBINC, MSOPC_RCXMODE, MSOPC_INTLVR
     87  1.1  christos  , MSOPC_WFBINC, MSOPC_MWFBINC, MSOPC_WFBINCR, MSOPC_MWFBINCR
     88  1.1  christos  , MSOPC_FBCBINCS, MSOPC_MFBCBINCS, MSOPC_FBCBINCRS, MSOPC_MFBCBINCRS
     89  1.1  christos } INSN_MSOPC;
     90  1.1  christos 
     91  1.1  christos /* Enum declaration for imm enums.  */
     92  1.1  christos typedef enum insn_imm {
     93  1.1  christos   IMM_NO, IMM_YES
     94  1.1  christos } INSN_IMM;
     95  1.1  christos 
     96  1.1  christos /* Enum declaration for .  */
     97  1.1  christos typedef enum msys_syms {
     98  1.1  christos   H_NIL_DUP = 1, H_NIL_XX = 0
     99  1.1  christos } MSYS_SYMS;
    100  1.1  christos 
    101  1.1  christos /* Attributes.  */
    102  1.1  christos 
    103  1.1  christos /* Enum declaration for machine type selection.  */
    104  1.1  christos typedef enum mach_attr {
    105  1.1  christos   MACH_BASE, MACH_MS1, MACH_MS1_003, MACH_MS2
    106  1.1  christos  , MACH_MAX
    107  1.1  christos } MACH_ATTR;
    108  1.1  christos 
    109  1.1  christos /* Enum declaration for instruction set selection.  */
    110  1.1  christos typedef enum isa_attr {
    111  1.1  christos   ISA_MT, ISA_MAX
    112  1.1  christos } ISA_ATTR;
    113  1.1  christos 
    114  1.1  christos /* Number of architecture variants.  */
    115  1.1  christos #define MAX_ISAS  1
    116  1.1  christos #define MAX_MACHS ((int) MACH_MAX)
    117  1.1  christos 
    118  1.1  christos /* Ifield support.  */
    119  1.1  christos 
    120  1.1  christos /* Ifield attribute indices.  */
    121  1.1  christos 
    122  1.1  christos /* Enum declaration for cgen_ifld attrs.  */
    123  1.1  christos typedef enum cgen_ifld_attr {
    124  1.1  christos   CGEN_IFLD_VIRTUAL, CGEN_IFLD_PCREL_ADDR, CGEN_IFLD_ABS_ADDR, CGEN_IFLD_RESERVED
    125  1.1  christos  , CGEN_IFLD_SIGN_OPT, CGEN_IFLD_SIGNED, CGEN_IFLD_END_BOOLS, CGEN_IFLD_START_NBOOLS = 31
    126  1.1  christos  , CGEN_IFLD_MACH, CGEN_IFLD_END_NBOOLS
    127  1.1  christos } CGEN_IFLD_ATTR;
    128  1.1  christos 
    129  1.1  christos /* Number of non-boolean elements in cgen_ifld_attr.  */
    130  1.1  christos #define CGEN_IFLD_NBOOL_ATTRS (CGEN_IFLD_END_NBOOLS - CGEN_IFLD_START_NBOOLS - 1)
    131  1.1  christos 
    132  1.1  christos /* cgen_ifld attribute accessor macros.  */
    133  1.1  christos #define CGEN_ATTR_CGEN_IFLD_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_IFLD_MACH-CGEN_IFLD_START_NBOOLS-1].nonbitset)
    134  1.1  christos #define CGEN_ATTR_CGEN_IFLD_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_VIRTUAL)) != 0)
    135  1.1  christos #define CGEN_ATTR_CGEN_IFLD_PCREL_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_PCREL_ADDR)) != 0)
    136  1.1  christos #define CGEN_ATTR_CGEN_IFLD_ABS_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_ABS_ADDR)) != 0)
    137  1.1  christos #define CGEN_ATTR_CGEN_IFLD_RESERVED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_RESERVED)) != 0)
    138  1.1  christos #define CGEN_ATTR_CGEN_IFLD_SIGN_OPT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_SIGN_OPT)) != 0)
    139  1.1  christos #define CGEN_ATTR_CGEN_IFLD_SIGNED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_SIGNED)) != 0)
    140  1.1  christos 
    141  1.1  christos /* Enum declaration for mt ifield types.  */
    142  1.1  christos typedef enum ifield_type {
    143  1.1  christos   MT_F_NIL, MT_F_ANYOF, MT_F_MSYS, MT_F_OPC
    144  1.1  christos  , MT_F_IMM, MT_F_UU24, MT_F_SR1, MT_F_SR2
    145  1.1  christos  , MT_F_DR, MT_F_DRRR, MT_F_IMM16U, MT_F_IMM16S
    146  1.1  christos  , MT_F_IMM16A, MT_F_UU4A, MT_F_UU4B, MT_F_UU12
    147  1.1  christos  , MT_F_UU8, MT_F_UU16, MT_F_UU1, MT_F_MSOPC
    148  1.1  christos  , MT_F_UU_26_25, MT_F_MASK, MT_F_BANKADDR, MT_F_RDA
    149  1.1  christos  , MT_F_UU_2_25, MT_F_RBBC, MT_F_PERM, MT_F_MODE
    150  1.1  christos  , MT_F_UU_1_24, MT_F_WR, MT_F_FBINCR, MT_F_UU_2_23
    151  1.1  christos  , MT_F_XMODE, MT_F_A23, MT_F_MASK1, MT_F_CR
    152  1.1  christos  , MT_F_TYPE, MT_F_INCAMT, MT_F_CBS, MT_F_UU_1_19
    153  1.1  christos  , MT_F_BALL, MT_F_COLNUM, MT_F_BRC, MT_F_INCR
    154  1.1  christos  , MT_F_FBDISP, MT_F_UU_4_15, MT_F_LENGTH, MT_F_UU_1_15
    155  1.1  christos  , MT_F_RC, MT_F_RCNUM, MT_F_ROWNUM, MT_F_CBX
    156  1.1  christos  , MT_F_ID, MT_F_SIZE, MT_F_ROWNUM1, MT_F_UU_3_11
    157  1.1  christos  , MT_F_RC1, MT_F_CCB, MT_F_CBRB, MT_F_CDB
    158  1.1  christos  , MT_F_ROWNUM2, MT_F_CELL, MT_F_UU_3_9, MT_F_CONTNUM
    159  1.1  christos  , MT_F_UU_1_6, MT_F_DUP, MT_F_RC2, MT_F_CTXDISP
    160  1.1  christos  , MT_F_IMM16L, MT_F_LOOPO, MT_F_CB1SEL, MT_F_CB2SEL
    161  1.1  christos  , MT_F_CB1INCR, MT_F_CB2INCR, MT_F_RC3, MT_F_MSYSFRSR2
    162  1.1  christos  , MT_F_BRC2, MT_F_BALL2, MT_F_MAX
    163  1.1  christos } IFIELD_TYPE;
    164  1.1  christos 
    165  1.1  christos #define MAX_IFLD ((int) MT_F_MAX)
    166  1.1  christos 
    167  1.1  christos /* Hardware attribute indices.  */
    168  1.1  christos 
    169  1.1  christos /* Enum declaration for cgen_hw attrs.  */
    170  1.1  christos typedef enum cgen_hw_attr {
    171  1.1  christos   CGEN_HW_VIRTUAL, CGEN_HW_CACHE_ADDR, CGEN_HW_PC, CGEN_HW_PROFILE
    172  1.1  christos  , CGEN_HW_END_BOOLS, CGEN_HW_START_NBOOLS = 31, CGEN_HW_MACH, CGEN_HW_END_NBOOLS
    173  1.1  christos } CGEN_HW_ATTR;
    174  1.1  christos 
    175  1.1  christos /* Number of non-boolean elements in cgen_hw_attr.  */
    176  1.1  christos #define CGEN_HW_NBOOL_ATTRS (CGEN_HW_END_NBOOLS - CGEN_HW_START_NBOOLS - 1)
    177  1.1  christos 
    178  1.1  christos /* cgen_hw attribute accessor macros.  */
    179  1.1  christos #define CGEN_ATTR_CGEN_HW_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_HW_MACH-CGEN_HW_START_NBOOLS-1].nonbitset)
    180  1.1  christos #define CGEN_ATTR_CGEN_HW_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_VIRTUAL)) != 0)
    181  1.1  christos #define CGEN_ATTR_CGEN_HW_CACHE_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_CACHE_ADDR)) != 0)
    182  1.1  christos #define CGEN_ATTR_CGEN_HW_PC_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_PC)) != 0)
    183  1.1  christos #define CGEN_ATTR_CGEN_HW_PROFILE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_PROFILE)) != 0)
    184  1.1  christos 
    185  1.1  christos /* Enum declaration for mt hardware types.  */
    186  1.1  christos typedef enum cgen_hw_type {
    187  1.1  christos   HW_H_MEMORY, HW_H_SINT, HW_H_UINT, HW_H_ADDR
    188  1.1  christos  , HW_H_IADDR, HW_H_SPR, HW_H_PC, HW_MAX
    189  1.1  christos } CGEN_HW_TYPE;
    190  1.1  christos 
    191  1.1  christos #define MAX_HW ((int) HW_MAX)
    192  1.1  christos 
    193  1.1  christos /* Operand attribute indices.  */
    194  1.1  christos 
    195  1.1  christos /* Enum declaration for cgen_operand attrs.  */
    196  1.1  christos typedef enum cgen_operand_attr {
    197  1.1  christos   CGEN_OPERAND_VIRTUAL, CGEN_OPERAND_PCREL_ADDR, CGEN_OPERAND_ABS_ADDR, CGEN_OPERAND_SIGN_OPT
    198  1.1  christos  , CGEN_OPERAND_SIGNED, CGEN_OPERAND_NEGATIVE, CGEN_OPERAND_RELAX, CGEN_OPERAND_SEM_ONLY
    199  1.1  christos  , CGEN_OPERAND_END_BOOLS, CGEN_OPERAND_START_NBOOLS = 31, CGEN_OPERAND_MACH, CGEN_OPERAND_END_NBOOLS
    200  1.1  christos } CGEN_OPERAND_ATTR;
    201  1.1  christos 
    202  1.1  christos /* Number of non-boolean elements in cgen_operand_attr.  */
    203  1.1  christos #define CGEN_OPERAND_NBOOL_ATTRS (CGEN_OPERAND_END_NBOOLS - CGEN_OPERAND_START_NBOOLS - 1)
    204  1.1  christos 
    205  1.1  christos /* cgen_operand attribute accessor macros.  */
    206  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_OPERAND_MACH-CGEN_OPERAND_START_NBOOLS-1].nonbitset)
    207  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_VIRTUAL)) != 0)
    208  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_PCREL_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_PCREL_ADDR)) != 0)
    209  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_ABS_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_ABS_ADDR)) != 0)
    210  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_SIGN_OPT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SIGN_OPT)) != 0)
    211  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_SIGNED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SIGNED)) != 0)
    212  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_NEGATIVE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_NEGATIVE)) != 0)
    213  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_RELAX_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_RELAX)) != 0)
    214  1.1  christos #define CGEN_ATTR_CGEN_OPERAND_SEM_ONLY_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SEM_ONLY)) != 0)
    215  1.1  christos 
    216  1.1  christos /* Enum declaration for mt operand types.  */
    217  1.1  christos typedef enum cgen_operand_type {
    218  1.1  christos   MT_OPERAND_PC, MT_OPERAND_FRSR1, MT_OPERAND_FRSR2, MT_OPERAND_FRDR
    219  1.1  christos  , MT_OPERAND_FRDRRR, MT_OPERAND_IMM16, MT_OPERAND_IMM16Z, MT_OPERAND_IMM16O
    220  1.1  christos  , MT_OPERAND_RC, MT_OPERAND_RCNUM, MT_OPERAND_CONTNUM, MT_OPERAND_RBBC
    221  1.1  christos  , MT_OPERAND_COLNUM, MT_OPERAND_ROWNUM, MT_OPERAND_ROWNUM1, MT_OPERAND_ROWNUM2
    222  1.1  christos  , MT_OPERAND_RC1, MT_OPERAND_RC2, MT_OPERAND_CBRB, MT_OPERAND_CELL
    223  1.1  christos  , MT_OPERAND_DUP, MT_OPERAND_CTXDISP, MT_OPERAND_FBDISP, MT_OPERAND_TYPE
    224  1.1  christos  , MT_OPERAND_MASK, MT_OPERAND_BANKADDR, MT_OPERAND_INCAMT, MT_OPERAND_XMODE
    225  1.1  christos  , MT_OPERAND_MASK1, MT_OPERAND_BALL, MT_OPERAND_BRC, MT_OPERAND_RDA
    226  1.1  christos  , MT_OPERAND_WR, MT_OPERAND_BALL2, MT_OPERAND_BRC2, MT_OPERAND_PERM
    227  1.1  christos  , MT_OPERAND_A23, MT_OPERAND_CR, MT_OPERAND_CBS, MT_OPERAND_INCR
    228  1.1  christos  , MT_OPERAND_LENGTH, MT_OPERAND_CBX, MT_OPERAND_CCB, MT_OPERAND_CDB
    229  1.1  christos  , MT_OPERAND_MODE, MT_OPERAND_ID, MT_OPERAND_SIZE, MT_OPERAND_FBINCR
    230  1.1  christos  , MT_OPERAND_LOOPSIZE, MT_OPERAND_IMM16L, MT_OPERAND_RC3, MT_OPERAND_CB1SEL
    231  1.1  christos  , MT_OPERAND_CB2SEL, MT_OPERAND_CB1INCR, MT_OPERAND_CB2INCR, MT_OPERAND_MAX
    232  1.1  christos } CGEN_OPERAND_TYPE;
    233  1.1  christos 
    234  1.1  christos /* Number of operands types.  */
    235  1.1  christos #define MAX_OPERANDS 55
    236  1.1  christos 
    237  1.1  christos /* Maximum number of operands referenced by any insn.  */
    238  1.1  christos #define MAX_OPERAND_INSTANCES 8
    239  1.1  christos 
    240  1.1  christos /* Insn attribute indices.  */
    241  1.1  christos 
    242  1.1  christos /* Enum declaration for cgen_insn attrs.  */
    243  1.1  christos typedef enum cgen_insn_attr {
    244  1.1  christos   CGEN_INSN_ALIAS, CGEN_INSN_VIRTUAL, CGEN_INSN_UNCOND_CTI, CGEN_INSN_COND_CTI
    245  1.1  christos  , CGEN_INSN_SKIP_CTI, CGEN_INSN_DELAY_SLOT, CGEN_INSN_RELAXABLE, CGEN_INSN_RELAXED
    246  1.1  christos  , CGEN_INSN_NO_DIS, CGEN_INSN_PBB, CGEN_INSN_LOAD_DELAY, CGEN_INSN_MEMORY_ACCESS
    247  1.1  christos  , CGEN_INSN_AL_INSN, CGEN_INSN_IO_INSN, CGEN_INSN_BR_INSN, CGEN_INSN_JAL_HAZARD
    248  1.1  christos  , CGEN_INSN_USES_FRDR, CGEN_INSN_USES_FRDRRR, CGEN_INSN_USES_FRSR1, CGEN_INSN_USES_FRSR2
    249  1.1  christos  , CGEN_INSN_SKIPA, CGEN_INSN_END_BOOLS, CGEN_INSN_START_NBOOLS = 31, CGEN_INSN_MACH
    250  1.1  christos  , CGEN_INSN_END_NBOOLS
    251  1.1  christos } CGEN_INSN_ATTR;
    252  1.1  christos 
    253  1.1  christos /* Number of non-boolean elements in cgen_insn_attr.  */
    254  1.1  christos #define CGEN_INSN_NBOOL_ATTRS (CGEN_INSN_END_NBOOLS - CGEN_INSN_START_NBOOLS - 1)
    255  1.1  christos 
    256  1.1  christos /* cgen_insn attribute accessor macros.  */
    257  1.1  christos #define CGEN_ATTR_CGEN_INSN_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_INSN_MACH-CGEN_INSN_START_NBOOLS-1].nonbitset)
    258  1.1  christos #define CGEN_ATTR_CGEN_INSN_ALIAS_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_ALIAS)) != 0)
    259  1.1  christos #define CGEN_ATTR_CGEN_INSN_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_VIRTUAL)) != 0)
    260  1.1  christos #define CGEN_ATTR_CGEN_INSN_UNCOND_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_UNCOND_CTI)) != 0)
    261  1.1  christos #define CGEN_ATTR_CGEN_INSN_COND_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_COND_CTI)) != 0)
    262  1.1  christos #define CGEN_ATTR_CGEN_INSN_SKIP_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_SKIP_CTI)) != 0)
    263  1.1  christos #define CGEN_ATTR_CGEN_INSN_DELAY_SLOT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_DELAY_SLOT)) != 0)
    264  1.1  christos #define CGEN_ATTR_CGEN_INSN_RELAXABLE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_RELAXABLE)) != 0)
    265  1.1  christos #define CGEN_ATTR_CGEN_INSN_RELAXED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_RELAXED)) != 0)
    266  1.1  christos #define CGEN_ATTR_CGEN_INSN_NO_DIS_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_NO_DIS)) != 0)
    267  1.1  christos #define CGEN_ATTR_CGEN_INSN_PBB_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_PBB)) != 0)
    268  1.1  christos #define CGEN_ATTR_CGEN_INSN_LOAD_DELAY_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_LOAD_DELAY)) != 0)
    269  1.1  christos #define CGEN_ATTR_CGEN_INSN_MEMORY_ACCESS_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_MEMORY_ACCESS)) != 0)
    270  1.1  christos #define CGEN_ATTR_CGEN_INSN_AL_INSN_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_AL_INSN)) != 0)
    271  1.1  christos #define CGEN_ATTR_CGEN_INSN_IO_INSN_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_IO_INSN)) != 0)
    272  1.1  christos #define CGEN_ATTR_CGEN_INSN_BR_INSN_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_BR_INSN)) != 0)
    273  1.1  christos #define CGEN_ATTR_CGEN_INSN_JAL_HAZARD_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_JAL_HAZARD)) != 0)
    274  1.1  christos #define CGEN_ATTR_CGEN_INSN_USES_FRDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_USES_FRDR)) != 0)
    275  1.1  christos #define CGEN_ATTR_CGEN_INSN_USES_FRDRRR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_USES_FRDRRR)) != 0)
    276  1.1  christos #define CGEN_ATTR_CGEN_INSN_USES_FRSR1_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_USES_FRSR1)) != 0)
    277  1.1  christos #define CGEN_ATTR_CGEN_INSN_USES_FRSR2_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_USES_FRSR2)) != 0)
    278  1.1  christos #define CGEN_ATTR_CGEN_INSN_SKIPA_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_SKIPA)) != 0)
    279  1.1  christos 
    280  1.1  christos /* cgen.h uses things we just defined.  */
    281  1.1  christos #include "opcode/cgen.h"
    282  1.1  christos 
    283  1.1  christos extern const struct cgen_ifld mt_cgen_ifld_table[];
    284  1.1  christos 
    285  1.1  christos /* Attributes.  */
    286  1.1  christos extern const CGEN_ATTR_TABLE mt_cgen_hardware_attr_table[];
    287  1.1  christos extern const CGEN_ATTR_TABLE mt_cgen_ifield_attr_table[];
    288  1.1  christos extern const CGEN_ATTR_TABLE mt_cgen_operand_attr_table[];
    289  1.1  christos extern const CGEN_ATTR_TABLE mt_cgen_insn_attr_table[];
    290  1.1  christos 
    291  1.1  christos /* Hardware decls.  */
    292  1.1  christos 
    293  1.1  christos extern CGEN_KEYWORD mt_cgen_opval_h_spr;
    294  1.1  christos 
    295  1.1  christos extern const CGEN_HW_ENTRY mt_cgen_hw_table[];
    296  1.1  christos 
    297  1.1  christos 
    298  1.1  christos 
    299  1.1  christos #endif /* MT_CPU_H */
    300