Download src/binutils/binutils-2.44/include/opcode/d30v.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 8.97 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/binutils/binutils-2.44/include/opcode/d30v.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/binutils/binutils-2.44/include/opcode/d30v.h
-
curl -L -o d30v.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/binutils/binutils-2.44/include/opcode/d30v.h
8.97 kB
| /* d30v.h -- Header file for D30V opcode table | |
| Copyright (C) 1997-2025 Free Software Foundation, Inc. | |
| Written by Martin Hunt (hunt@cygnus.com), Cygnus Solutions | |
| This file is part of GDB, GAS, and the GNU binutils. | |
| GDB, GAS, and the GNU binutils are free software; you can redistribute | |
| them and/or modify them under the terms of the GNU General Public | |
| License as published by the Free Software Foundation; either version 3, | |
| or (at your option) any later version. | |
| GDB, GAS, and the GNU binutils are distributed in the hope that they | |
| will be useful, but WITHOUT ANY WARRANTY; without even the implied | |
| warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | |
| the GNU General Public License for more details. | |
| You should have received a copy of the GNU General Public License | |
| along with this file; see the file COPYING3. If not, write to the Free | |
| Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | |
| MA 02110-1301, USA. */ | |
| extern "C" { | |
| /* Structure to hold information about predefined registers. */ | |
| struct pd_reg | |
| { | |
| char *name; /* name to recognize */ | |
| char *pname; /* name to print for this register */ | |
| unsigned int value; | |
| }; | |
| extern const struct pd_reg pre_defined_registers[]; | |
| int reg_name_cnt (void); | |
| /* the number of control registers */ | |
| /* define the format specifiers */ | |
| /* define the opcode classes */ | |
| /* define the execution condition codes */ | |
| extern const char *d30v_ecc_names[]; | |
| /* condition code table for CMP and CMPU */ | |
| extern const char *d30v_cc_names[]; | |
| /* The opcode table is an array of struct d30v_opcode. */ | |
| struct d30v_opcode | |
| { | |
| /* The opcode name. */ | |
| const char *name; | |
| /* the opcode */ | |
| int op1; /* first part, "IALU1" for example */ | |
| int op2; /* the rest of the opcode */ | |
| /* opcode format(s). These numbers correspond to entries */ | |
| /* in the d30v_format_table */ | |
| unsigned char format[4]; | |
| /* the execution unit(s) used */ | |
| int unit; | |
| /* this field is used to decide if two instructions */ | |
| /* can be executed in parallel */ | |
| long flags_used; | |
| long flags_set; | |
| int reloc_flag; | |
| }; | |
| extern const struct d30v_opcode d30v_opcode_table[]; | |
| extern const int d30v_num_opcodes; | |
| /* The operands table is an array of struct d30v_operand. */ | |
| struct d30v_operand | |
| { | |
| /* the length of the field */ | |
| int length; | |
| /* The number of significant bits in the operand. */ | |
| int bits; | |
| /* position relative to Ra */ | |
| int position; | |
| /* syntax flags. */ | |
| long flags; | |
| }; | |
| extern const struct d30v_operand d30v_operand_table[]; | |
| /* Values defined for the flags field of a struct d30v_operand. */ | |
| /* this is the destination register; it will be modified */ | |
| /* this is used by the optimizer */ | |
| /* number or symbol */ | |
| /* address or label */ | |
| /* register */ | |
| /* postincrement + */ | |
| /* postdecrement - */ | |
| /* signed number */ | |
| /* this operand must be shifted left by 3 */ | |
| /* flag register */ | |
| /* control register */ | |
| /* accumulator */ | |
| /* @ */ | |
| /* @( */ | |
| /* predecrement mode '@-sp' */ | |
| /* this operand changes the instruction name */ | |
| /* for example, CPMcc, CMPUcc */ | |
| /* fake operand for mvtsys and mvfsys */ | |
| /* let the optimizer know that two registers are affected */ | |
| /* This operand is pc-relative. Note that repeati can have two immediate | |
| operands, one of which is pcrel, the other (the IMM6U one) is not. */ | |
| /* The format table is an array of struct d30v_format. */ | |
| struct d30v_format | |
| { | |
| int form; /* SHORT_A, LONG, etc */ | |
| int modifier; /* two bit modifier following opcode */ | |
| unsigned char operands[5]; | |
| }; | |
| extern const struct d30v_format d30v_format_table[]; | |
| /* an instruction is defined by an opcode and a format */ | |
| /* for example, "add" has one opcode, but three different */ | |
| /* formats, 2 SHORT_A forms and a LONG form. */ | |
| struct d30v_insn | |
| { | |
| struct d30v_opcode *op; /* pointer to an entry in the opcode table */ | |
| struct d30v_format *form; /* pointer to an entry in the format table */ | |
| int ecc; /* execution condition code */ | |
| }; | |
| /* an expressionS only has one register type, so we fake it */ | |
| /* by setting high bits to indicate type */ | |
| } | |