1 1.6 christos /* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */ 2 1.1 christos /* CPU data header for fr30. 3 1.1 christos 4 1.1 christos THIS FILE IS MACHINE GENERATED WITH CGEN. 5 1.1 christos 6 1.10 christos Copyright (C) 1996-2025 Free Software Foundation, Inc. 7 1.1 christos 8 1.1 christos This file is part of the GNU Binutils and/or GDB, the GNU debugger. 9 1.1 christos 10 1.1 christos This file is free software; you can redistribute it and/or modify 11 1.1 christos it under the terms of the GNU General Public License as published by 12 1.1 christos the Free Software Foundation; either version 3, or (at your option) 13 1.1 christos any later version. 14 1.1 christos 15 1.1 christos It is distributed in the hope that it will be useful, but WITHOUT 16 1.1 christos ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 17 1.1 christos or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 18 1.1 christos License for more details. 19 1.1 christos 20 1.1 christos You should have received a copy of the GNU General Public License along 21 1.1 christos with this program; if not, write to the Free Software Foundation, Inc., 22 1.1 christos 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 23 1.1 christos 24 1.1 christos */ 25 1.1 christos 26 1.1 christos #ifndef FR30_CPU_H 27 1.1 christos #define FR30_CPU_H 28 1.1 christos 29 1.6 christos #ifdef __cplusplus 30 1.6 christos extern "C" { 31 1.6 christos #endif 32 1.6 christos 33 1.1 christos #define CGEN_ARCH fr30 34 1.1 christos 35 1.1 christos /* Given symbol S, return fr30_cgen_<S>. */ 36 1.1 christos #define CGEN_SYM(s) fr30##_cgen_##s 37 1.1 christos 38 1.1 christos 39 1.1 christos /* Selected cpu families. */ 40 1.1 christos #define HAVE_CPU_FR30BF 41 1.1 christos 42 1.1 christos #define CGEN_INSN_LSB0_P 0 43 1.1 christos 44 1.1 christos /* Minimum size of any insn (in bytes). */ 45 1.1 christos #define CGEN_MIN_INSN_SIZE 2 46 1.1 christos 47 1.1 christos /* Maximum size of any insn (in bytes). */ 48 1.1 christos #define CGEN_MAX_INSN_SIZE 6 49 1.1 christos 50 1.1 christos #define CGEN_INT_INSN_P 0 51 1.1 christos 52 1.1 christos /* Maximum number of syntax elements in an instruction. */ 53 1.1 christos #define CGEN_ACTUAL_MAX_SYNTAX_ELEMENTS 15 54 1.1 christos 55 1.1 christos /* CGEN_MNEMONIC_OPERANDS is defined if mnemonics have operands. 56 1.1 christos e.g. In "b,a foo" the ",a" is an operand. If mnemonics have operands 57 1.1 christos we can't hash on everything up to the space. */ 58 1.1 christos #define CGEN_MNEMONIC_OPERANDS 59 1.1 christos 60 1.1 christos /* Maximum number of fields in an instruction. */ 61 1.1 christos #define CGEN_ACTUAL_MAX_IFMT_OPERANDS 7 62 1.1 christos 63 1.1 christos /* Enums. */ 64 1.1 christos 65 1.1 christos /* Enum declaration for insn op1 enums. */ 66 1.1 christos typedef enum insn_op1 { 67 1.1 christos OP1_0, OP1_1, OP1_2, OP1_3 68 1.1 christos , OP1_4, OP1_5, OP1_6, OP1_7 69 1.1 christos , OP1_8, OP1_9, OP1_A, OP1_B 70 1.1 christos , OP1_C, OP1_D, OP1_E, OP1_F 71 1.1 christos } INSN_OP1; 72 1.1 christos 73 1.1 christos /* Enum declaration for insn op2 enums. */ 74 1.1 christos typedef enum insn_op2 { 75 1.1 christos OP2_0, OP2_1, OP2_2, OP2_3 76 1.1 christos , OP2_4, OP2_5, OP2_6, OP2_7 77 1.1 christos , OP2_8, OP2_9, OP2_A, OP2_B 78 1.1 christos , OP2_C, OP2_D, OP2_E, OP2_F 79 1.1 christos } INSN_OP2; 80 1.1 christos 81 1.1 christos /* Enum declaration for insn op3 enums. */ 82 1.1 christos typedef enum insn_op3 { 83 1.1 christos OP3_0, OP3_1, OP3_2, OP3_3 84 1.1 christos , OP3_4, OP3_5, OP3_6, OP3_7 85 1.1 christos , OP3_8, OP3_9, OP3_A, OP3_B 86 1.1 christos , OP3_C, OP3_D, OP3_E, OP3_F 87 1.1 christos } INSN_OP3; 88 1.1 christos 89 1.1 christos /* Enum declaration for insn op4 enums. */ 90 1.1 christos typedef enum insn_op4 { 91 1.1 christos OP4_0 92 1.1 christos } INSN_OP4; 93 1.1 christos 94 1.1 christos /* Enum declaration for insn op5 enums. */ 95 1.1 christos typedef enum insn_op5 { 96 1.1 christos OP5_0, OP5_1 97 1.1 christos } INSN_OP5; 98 1.1 christos 99 1.1 christos /* Enum declaration for insn cc enums. */ 100 1.1 christos typedef enum insn_cc { 101 1.1 christos CC_RA, CC_NO, CC_EQ, CC_NE 102 1.1 christos , CC_C, CC_NC, CC_N, CC_P 103 1.1 christos , CC_V, CC_NV, CC_LT, CC_GE 104 1.1 christos , CC_LE, CC_GT, CC_LS, CC_HI 105 1.1 christos } INSN_CC; 106 1.1 christos 107 1.1 christos /* Enum declaration for . */ 108 1.1 christos typedef enum gr_names { 109 1.1 christos H_GR_R0 = 0, H_GR_R1 = 1, H_GR_R2 = 2, H_GR_R3 = 3 110 1.1 christos , H_GR_R4 = 4, H_GR_R5 = 5, H_GR_R6 = 6, H_GR_R7 = 7 111 1.1 christos , H_GR_R8 = 8, H_GR_R9 = 9, H_GR_R10 = 10, H_GR_R11 = 11 112 1.1 christos , H_GR_R12 = 12, H_GR_R13 = 13, H_GR_R14 = 14, H_GR_R15 = 15 113 1.1 christos , H_GR_AC = 13, H_GR_FP = 14, H_GR_SP = 15 114 1.1 christos } GR_NAMES; 115 1.1 christos 116 1.1 christos /* Enum declaration for . */ 117 1.1 christos typedef enum cr_names { 118 1.1 christos H_CR_CR0, H_CR_CR1, H_CR_CR2, H_CR_CR3 119 1.1 christos , H_CR_CR4, H_CR_CR5, H_CR_CR6, H_CR_CR7 120 1.1 christos , H_CR_CR8, H_CR_CR9, H_CR_CR10, H_CR_CR11 121 1.1 christos , H_CR_CR12, H_CR_CR13, H_CR_CR14, H_CR_CR15 122 1.1 christos } CR_NAMES; 123 1.1 christos 124 1.1 christos /* Enum declaration for . */ 125 1.1 christos typedef enum dr_names { 126 1.1 christos H_DR_TBR, H_DR_RP, H_DR_SSP, H_DR_USP 127 1.1 christos , H_DR_MDH, H_DR_MDL 128 1.1 christos } DR_NAMES; 129 1.1 christos 130 1.1 christos /* Attributes. */ 131 1.1 christos 132 1.1 christos /* Enum declaration for machine type selection. */ 133 1.1 christos typedef enum mach_attr { 134 1.1 christos MACH_BASE, MACH_FR30, MACH_MAX 135 1.1 christos } MACH_ATTR; 136 1.1 christos 137 1.1 christos /* Enum declaration for instruction set selection. */ 138 1.1 christos typedef enum isa_attr { 139 1.1 christos ISA_FR30, ISA_MAX 140 1.1 christos } ISA_ATTR; 141 1.1 christos 142 1.1 christos /* Number of architecture variants. */ 143 1.1 christos #define MAX_ISAS 1 144 1.1 christos #define MAX_MACHS ((int) MACH_MAX) 145 1.1 christos 146 1.1 christos /* Ifield support. */ 147 1.1 christos 148 1.1 christos /* Ifield attribute indices. */ 149 1.1 christos 150 1.1 christos /* Enum declaration for cgen_ifld attrs. */ 151 1.1 christos typedef enum cgen_ifld_attr { 152 1.1 christos CGEN_IFLD_VIRTUAL, CGEN_IFLD_PCREL_ADDR, CGEN_IFLD_ABS_ADDR, CGEN_IFLD_RESERVED 153 1.1 christos , CGEN_IFLD_SIGN_OPT, CGEN_IFLD_SIGNED, CGEN_IFLD_END_BOOLS, CGEN_IFLD_START_NBOOLS = 31 154 1.1 christos , CGEN_IFLD_MACH, CGEN_IFLD_END_NBOOLS 155 1.1 christos } CGEN_IFLD_ATTR; 156 1.1 christos 157 1.1 christos /* Number of non-boolean elements in cgen_ifld_attr. */ 158 1.1 christos #define CGEN_IFLD_NBOOL_ATTRS (CGEN_IFLD_END_NBOOLS - CGEN_IFLD_START_NBOOLS - 1) 159 1.1 christos 160 1.1 christos /* cgen_ifld attribute accessor macros. */ 161 1.1 christos #define CGEN_ATTR_CGEN_IFLD_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_IFLD_MACH-CGEN_IFLD_START_NBOOLS-1].nonbitset) 162 1.1 christos #define CGEN_ATTR_CGEN_IFLD_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_VIRTUAL)) != 0) 163 1.1 christos #define CGEN_ATTR_CGEN_IFLD_PCREL_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_PCREL_ADDR)) != 0) 164 1.1 christos #define CGEN_ATTR_CGEN_IFLD_ABS_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_ABS_ADDR)) != 0) 165 1.1 christos #define CGEN_ATTR_CGEN_IFLD_RESERVED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_RESERVED)) != 0) 166 1.1 christos #define CGEN_ATTR_CGEN_IFLD_SIGN_OPT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_SIGN_OPT)) != 0) 167 1.1 christos #define CGEN_ATTR_CGEN_IFLD_SIGNED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_IFLD_SIGNED)) != 0) 168 1.1 christos 169 1.1 christos /* Enum declaration for fr30 ifield types. */ 170 1.1 christos typedef enum ifield_type { 171 1.1 christos FR30_F_NIL, FR30_F_ANYOF, FR30_F_OP1, FR30_F_OP2 172 1.1 christos , FR30_F_OP3, FR30_F_OP4, FR30_F_OP5, FR30_F_CC 173 1.1 christos , FR30_F_CCC, FR30_F_RJ, FR30_F_RI, FR30_F_RS1 174 1.1 christos , FR30_F_RS2, FR30_F_RJC, FR30_F_RIC, FR30_F_CRJ 175 1.1 christos , FR30_F_CRI, FR30_F_U4, FR30_F_U4C, FR30_F_I4 176 1.1 christos , FR30_F_M4, FR30_F_U8, FR30_F_I8, FR30_F_I20_4 177 1.1 christos , FR30_F_I20_16, FR30_F_I20, FR30_F_I32, FR30_F_UDISP6 178 1.1 christos , FR30_F_DISP8, FR30_F_DISP9, FR30_F_DISP10, FR30_F_S10 179 1.1 christos , FR30_F_U10, FR30_F_REL9, FR30_F_DIR8, FR30_F_DIR9 180 1.1 christos , FR30_F_DIR10, FR30_F_REL12, FR30_F_REGLIST_HI_ST, FR30_F_REGLIST_LOW_ST 181 1.1 christos , FR30_F_REGLIST_HI_LD, FR30_F_REGLIST_LOW_LD, FR30_F_MAX 182 1.1 christos } IFIELD_TYPE; 183 1.1 christos 184 1.1 christos #define MAX_IFLD ((int) FR30_F_MAX) 185 1.1 christos 186 1.1 christos /* Hardware attribute indices. */ 187 1.1 christos 188 1.1 christos /* Enum declaration for cgen_hw attrs. */ 189 1.1 christos typedef enum cgen_hw_attr { 190 1.1 christos CGEN_HW_VIRTUAL, CGEN_HW_CACHE_ADDR, CGEN_HW_PC, CGEN_HW_PROFILE 191 1.1 christos , CGEN_HW_END_BOOLS, CGEN_HW_START_NBOOLS = 31, CGEN_HW_MACH, CGEN_HW_END_NBOOLS 192 1.1 christos } CGEN_HW_ATTR; 193 1.1 christos 194 1.1 christos /* Number of non-boolean elements in cgen_hw_attr. */ 195 1.1 christos #define CGEN_HW_NBOOL_ATTRS (CGEN_HW_END_NBOOLS - CGEN_HW_START_NBOOLS - 1) 196 1.1 christos 197 1.1 christos /* cgen_hw attribute accessor macros. */ 198 1.1 christos #define CGEN_ATTR_CGEN_HW_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_HW_MACH-CGEN_HW_START_NBOOLS-1].nonbitset) 199 1.1 christos #define CGEN_ATTR_CGEN_HW_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_VIRTUAL)) != 0) 200 1.1 christos #define CGEN_ATTR_CGEN_HW_CACHE_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_CACHE_ADDR)) != 0) 201 1.1 christos #define CGEN_ATTR_CGEN_HW_PC_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_PC)) != 0) 202 1.1 christos #define CGEN_ATTR_CGEN_HW_PROFILE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_HW_PROFILE)) != 0) 203 1.1 christos 204 1.1 christos /* Enum declaration for fr30 hardware types. */ 205 1.1 christos typedef enum cgen_hw_type { 206 1.1 christos HW_H_MEMORY, HW_H_SINT, HW_H_UINT, HW_H_ADDR 207 1.1 christos , HW_H_IADDR, HW_H_PC, HW_H_GR, HW_H_CR 208 1.1 christos , HW_H_DR, HW_H_PS, HW_H_R13, HW_H_R14 209 1.1 christos , HW_H_R15, HW_H_NBIT, HW_H_ZBIT, HW_H_VBIT 210 1.1 christos , HW_H_CBIT, HW_H_IBIT, HW_H_SBIT, HW_H_TBIT 211 1.1 christos , HW_H_D0BIT, HW_H_D1BIT, HW_H_CCR, HW_H_SCR 212 1.1 christos , HW_H_ILM, HW_MAX 213 1.1 christos } CGEN_HW_TYPE; 214 1.1 christos 215 1.1 christos #define MAX_HW ((int) HW_MAX) 216 1.1 christos 217 1.1 christos /* Operand attribute indices. */ 218 1.1 christos 219 1.1 christos /* Enum declaration for cgen_operand attrs. */ 220 1.1 christos typedef enum cgen_operand_attr { 221 1.1 christos CGEN_OPERAND_VIRTUAL, CGEN_OPERAND_PCREL_ADDR, CGEN_OPERAND_ABS_ADDR, CGEN_OPERAND_SIGN_OPT 222 1.1 christos , CGEN_OPERAND_SIGNED, CGEN_OPERAND_NEGATIVE, CGEN_OPERAND_RELAX, CGEN_OPERAND_SEM_ONLY 223 1.1 christos , CGEN_OPERAND_HASH_PREFIX, CGEN_OPERAND_END_BOOLS, CGEN_OPERAND_START_NBOOLS = 31, CGEN_OPERAND_MACH 224 1.1 christos , CGEN_OPERAND_END_NBOOLS 225 1.1 christos } CGEN_OPERAND_ATTR; 226 1.1 christos 227 1.1 christos /* Number of non-boolean elements in cgen_operand_attr. */ 228 1.1 christos #define CGEN_OPERAND_NBOOL_ATTRS (CGEN_OPERAND_END_NBOOLS - CGEN_OPERAND_START_NBOOLS - 1) 229 1.1 christos 230 1.1 christos /* cgen_operand attribute accessor macros. */ 231 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_OPERAND_MACH-CGEN_OPERAND_START_NBOOLS-1].nonbitset) 232 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_VIRTUAL)) != 0) 233 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_PCREL_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_PCREL_ADDR)) != 0) 234 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_ABS_ADDR_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_ABS_ADDR)) != 0) 235 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_SIGN_OPT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SIGN_OPT)) != 0) 236 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_SIGNED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SIGNED)) != 0) 237 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_NEGATIVE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_NEGATIVE)) != 0) 238 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_RELAX_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_RELAX)) != 0) 239 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_SEM_ONLY_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_SEM_ONLY)) != 0) 240 1.1 christos #define CGEN_ATTR_CGEN_OPERAND_HASH_PREFIX_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_OPERAND_HASH_PREFIX)) != 0) 241 1.1 christos 242 1.1 christos /* Enum declaration for fr30 operand types. */ 243 1.1 christos typedef enum cgen_operand_type { 244 1.1 christos FR30_OPERAND_PC, FR30_OPERAND_RI, FR30_OPERAND_RJ, FR30_OPERAND_RIC 245 1.1 christos , FR30_OPERAND_RJC, FR30_OPERAND_CRI, FR30_OPERAND_CRJ, FR30_OPERAND_RS1 246 1.1 christos , FR30_OPERAND_RS2, FR30_OPERAND_R13, FR30_OPERAND_R14, FR30_OPERAND_R15 247 1.1 christos , FR30_OPERAND_PS, FR30_OPERAND_U4, FR30_OPERAND_U4C, FR30_OPERAND_U8 248 1.1 christos , FR30_OPERAND_I8, FR30_OPERAND_UDISP6, FR30_OPERAND_DISP8, FR30_OPERAND_DISP9 249 1.1 christos , FR30_OPERAND_DISP10, FR30_OPERAND_S10, FR30_OPERAND_U10, FR30_OPERAND_I32 250 1.1 christos , FR30_OPERAND_M4, FR30_OPERAND_I20, FR30_OPERAND_DIR8, FR30_OPERAND_DIR9 251 1.1 christos , FR30_OPERAND_DIR10, FR30_OPERAND_LABEL9, FR30_OPERAND_LABEL12, FR30_OPERAND_REGLIST_LOW_LD 252 1.1 christos , FR30_OPERAND_REGLIST_HI_LD, FR30_OPERAND_REGLIST_LOW_ST, FR30_OPERAND_REGLIST_HI_ST, FR30_OPERAND_CC 253 1.1 christos , FR30_OPERAND_CCC, FR30_OPERAND_NBIT, FR30_OPERAND_VBIT, FR30_OPERAND_ZBIT 254 1.1 christos , FR30_OPERAND_CBIT, FR30_OPERAND_IBIT, FR30_OPERAND_SBIT, FR30_OPERAND_TBIT 255 1.1 christos , FR30_OPERAND_D0BIT, FR30_OPERAND_D1BIT, FR30_OPERAND_CCR, FR30_OPERAND_SCR 256 1.1 christos , FR30_OPERAND_ILM, FR30_OPERAND_MAX 257 1.1 christos } CGEN_OPERAND_TYPE; 258 1.1 christos 259 1.1 christos /* Number of operands types. */ 260 1.1 christos #define MAX_OPERANDS 49 261 1.1 christos 262 1.1 christos /* Maximum number of operands referenced by any insn. */ 263 1.1 christos #define MAX_OPERAND_INSTANCES 8 264 1.1 christos 265 1.1 christos /* Insn attribute indices. */ 266 1.1 christos 267 1.1 christos /* Enum declaration for cgen_insn attrs. */ 268 1.1 christos typedef enum cgen_insn_attr { 269 1.1 christos CGEN_INSN_ALIAS, CGEN_INSN_VIRTUAL, CGEN_INSN_UNCOND_CTI, CGEN_INSN_COND_CTI 270 1.1 christos , CGEN_INSN_SKIP_CTI, CGEN_INSN_DELAY_SLOT, CGEN_INSN_RELAXABLE, CGEN_INSN_RELAXED 271 1.1 christos , CGEN_INSN_NO_DIS, CGEN_INSN_PBB, CGEN_INSN_NOT_IN_DELAY_SLOT, CGEN_INSN_END_BOOLS 272 1.1 christos , CGEN_INSN_START_NBOOLS = 31, CGEN_INSN_MACH, CGEN_INSN_END_NBOOLS 273 1.1 christos } CGEN_INSN_ATTR; 274 1.1 christos 275 1.1 christos /* Number of non-boolean elements in cgen_insn_attr. */ 276 1.1 christos #define CGEN_INSN_NBOOL_ATTRS (CGEN_INSN_END_NBOOLS - CGEN_INSN_START_NBOOLS - 1) 277 1.1 christos 278 1.1 christos /* cgen_insn attribute accessor macros. */ 279 1.1 christos #define CGEN_ATTR_CGEN_INSN_MACH_VALUE(attrs) ((attrs)->nonbool[CGEN_INSN_MACH-CGEN_INSN_START_NBOOLS-1].nonbitset) 280 1.1 christos #define CGEN_ATTR_CGEN_INSN_ALIAS_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_ALIAS)) != 0) 281 1.1 christos #define CGEN_ATTR_CGEN_INSN_VIRTUAL_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_VIRTUAL)) != 0) 282 1.1 christos #define CGEN_ATTR_CGEN_INSN_UNCOND_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_UNCOND_CTI)) != 0) 283 1.1 christos #define CGEN_ATTR_CGEN_INSN_COND_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_COND_CTI)) != 0) 284 1.1 christos #define CGEN_ATTR_CGEN_INSN_SKIP_CTI_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_SKIP_CTI)) != 0) 285 1.1 christos #define CGEN_ATTR_CGEN_INSN_DELAY_SLOT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_DELAY_SLOT)) != 0) 286 1.1 christos #define CGEN_ATTR_CGEN_INSN_RELAXABLE_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_RELAXABLE)) != 0) 287 1.1 christos #define CGEN_ATTR_CGEN_INSN_RELAXED_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_RELAXED)) != 0) 288 1.1 christos #define CGEN_ATTR_CGEN_INSN_NO_DIS_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_NO_DIS)) != 0) 289 1.1 christos #define CGEN_ATTR_CGEN_INSN_PBB_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_PBB)) != 0) 290 1.1 christos #define CGEN_ATTR_CGEN_INSN_NOT_IN_DELAY_SLOT_VALUE(attrs) (((attrs)->bool_ & (1 << CGEN_INSN_NOT_IN_DELAY_SLOT)) != 0) 291 1.1 christos 292 1.1 christos /* cgen.h uses things we just defined. */ 293 1.1 christos #include "opcode/cgen.h" 294 1.1 christos 295 1.1 christos extern const struct cgen_ifld fr30_cgen_ifld_table[]; 296 1.1 christos 297 1.1 christos /* Attributes. */ 298 1.1 christos extern const CGEN_ATTR_TABLE fr30_cgen_hardware_attr_table[]; 299 1.1 christos extern const CGEN_ATTR_TABLE fr30_cgen_ifield_attr_table[]; 300 1.1 christos extern const CGEN_ATTR_TABLE fr30_cgen_operand_attr_table[]; 301 1.1 christos extern const CGEN_ATTR_TABLE fr30_cgen_insn_attr_table[]; 302 1.1 christos 303 1.1 christos /* Hardware decls. */ 304 1.1 christos 305 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_gr_names; 306 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_cr_names; 307 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_dr_names; 308 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_h_ps; 309 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_h_r13; 310 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_h_r14; 311 1.1 christos extern CGEN_KEYWORD fr30_cgen_opval_h_r15; 312 1.1 christos 313 1.1 christos extern const CGEN_HW_ENTRY fr30_cgen_hw_table[]; 314 1.1 christos 315 1.1 christos 316 1.1 christos 317 1.6 christos #ifdef __cplusplus 318 1.6 christos } 319 1.6 christos #endif 320 1.6 christos 321 1.1 christos #endif /* FR30_CPU_H */ 322