Back to index

cell-binutils  2.17cvs20070401
fr30-opc.h
Go to the documentation of this file.
00001 /* Instruction opcode header for fr30.
00002 
00003 THIS FILE IS MACHINE GENERATED WITH CGEN.
00004 
00005 Copyright 1996-2005 Free Software Foundation, Inc.
00006 
00007 This file is part of the GNU Binutils and/or GDB, the GNU debugger.
00008 
00009 This program is free software; you can redistribute it and/or modify
00010 it under the terms of the GNU General Public License as published by
00011 the Free Software Foundation; either version 2, or (at your option)
00012 any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License along
00020 with this program; if not, write to the Free Software Foundation, Inc.,
00021 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
00022 
00023 */
00024 
00025 #ifndef FR30_OPC_H
00026 #define FR30_OPC_H
00027 
00028 /* -- opc.h */
00029 
00030 /* ??? This can be improved upon.  */
00031 #undef  CGEN_DIS_HASH_SIZE
00032 #define CGEN_DIS_HASH_SIZE 16
00033 #undef  CGEN_DIS_HASH
00034 #define CGEN_DIS_HASH(buffer, value) (((unsigned char *) (buffer))[0] >> 4)
00035 
00036 /* -- */
00037 /* Enum declaration for fr30 instruction types.  */
00038 typedef enum cgen_insn_type {
00039   FR30_INSN_INVALID, FR30_INSN_ADD, FR30_INSN_ADDI, FR30_INSN_ADD2
00040  , FR30_INSN_ADDC, FR30_INSN_ADDN, FR30_INSN_ADDNI, FR30_INSN_ADDN2
00041  , FR30_INSN_SUB, FR30_INSN_SUBC, FR30_INSN_SUBN, FR30_INSN_CMP
00042  , FR30_INSN_CMPI, FR30_INSN_CMP2, FR30_INSN_AND, FR30_INSN_OR
00043  , FR30_INSN_EOR, FR30_INSN_ANDM, FR30_INSN_ANDH, FR30_INSN_ANDB
00044  , FR30_INSN_ORM, FR30_INSN_ORH, FR30_INSN_ORB, FR30_INSN_EORM
00045  , FR30_INSN_EORH, FR30_INSN_EORB, FR30_INSN_BANDL, FR30_INSN_BORL
00046  , FR30_INSN_BEORL, FR30_INSN_BANDH, FR30_INSN_BORH, FR30_INSN_BEORH
00047  , FR30_INSN_BTSTL, FR30_INSN_BTSTH, FR30_INSN_MUL, FR30_INSN_MULU
00048  , FR30_INSN_MULH, FR30_INSN_MULUH, FR30_INSN_DIV0S, FR30_INSN_DIV0U
00049  , FR30_INSN_DIV1, FR30_INSN_DIV2, FR30_INSN_DIV3, FR30_INSN_DIV4S
00050  , FR30_INSN_LSL, FR30_INSN_LSLI, FR30_INSN_LSL2, FR30_INSN_LSR
00051  , FR30_INSN_LSRI, FR30_INSN_LSR2, FR30_INSN_ASR, FR30_INSN_ASRI
00052  , FR30_INSN_ASR2, FR30_INSN_LDI8, FR30_INSN_LDI20, FR30_INSN_LDI32
00053  , FR30_INSN_LD, FR30_INSN_LDUH, FR30_INSN_LDUB, FR30_INSN_LDR13
00054  , FR30_INSN_LDR13UH, FR30_INSN_LDR13UB, FR30_INSN_LDR14, FR30_INSN_LDR14UH
00055  , FR30_INSN_LDR14UB, FR30_INSN_LDR15, FR30_INSN_LDR15GR, FR30_INSN_LDR15DR
00056  , FR30_INSN_LDR15PS, FR30_INSN_ST, FR30_INSN_STH, FR30_INSN_STB
00057  , FR30_INSN_STR13, FR30_INSN_STR13H, FR30_INSN_STR13B, FR30_INSN_STR14
00058  , FR30_INSN_STR14H, FR30_INSN_STR14B, FR30_INSN_STR15, FR30_INSN_STR15GR
00059  , FR30_INSN_STR15DR, FR30_INSN_STR15PS, FR30_INSN_MOV, FR30_INSN_MOVDR
00060  , FR30_INSN_MOVPS, FR30_INSN_MOV2DR, FR30_INSN_MOV2PS, FR30_INSN_JMP
00061  , FR30_INSN_JMPD, FR30_INSN_CALLR, FR30_INSN_CALLRD, FR30_INSN_CALL
00062  , FR30_INSN_CALLD, FR30_INSN_RET, FR30_INSN_RET_D, FR30_INSN_INT
00063  , FR30_INSN_INTE, FR30_INSN_RETI, FR30_INSN_BRAD, FR30_INSN_BRA
00064  , FR30_INSN_BNOD, FR30_INSN_BNO, FR30_INSN_BEQD, FR30_INSN_BEQ
00065  , FR30_INSN_BNED, FR30_INSN_BNE, FR30_INSN_BCD, FR30_INSN_BC
00066  , FR30_INSN_BNCD, FR30_INSN_BNC, FR30_INSN_BND, FR30_INSN_BN
00067  , FR30_INSN_BPD, FR30_INSN_BP, FR30_INSN_BVD, FR30_INSN_BV
00068  , FR30_INSN_BNVD, FR30_INSN_BNV, FR30_INSN_BLTD, FR30_INSN_BLT
00069  , FR30_INSN_BGED, FR30_INSN_BGE, FR30_INSN_BLED, FR30_INSN_BLE
00070  , FR30_INSN_BGTD, FR30_INSN_BGT, FR30_INSN_BLSD, FR30_INSN_BLS
00071  , FR30_INSN_BHID, FR30_INSN_BHI, FR30_INSN_DMOVR13, FR30_INSN_DMOVR13H
00072  , FR30_INSN_DMOVR13B, FR30_INSN_DMOVR13PI, FR30_INSN_DMOVR13PIH, FR30_INSN_DMOVR13PIB
00073  , FR30_INSN_DMOVR15PI, FR30_INSN_DMOV2R13, FR30_INSN_DMOV2R13H, FR30_INSN_DMOV2R13B
00074  , FR30_INSN_DMOV2R13PI, FR30_INSN_DMOV2R13PIH, FR30_INSN_DMOV2R13PIB, FR30_INSN_DMOV2R15PD
00075  , FR30_INSN_LDRES, FR30_INSN_STRES, FR30_INSN_COPOP, FR30_INSN_COPLD
00076  , FR30_INSN_COPST, FR30_INSN_COPSV, FR30_INSN_NOP, FR30_INSN_ANDCCR
00077  , FR30_INSN_ORCCR, FR30_INSN_STILM, FR30_INSN_ADDSP, FR30_INSN_EXTSB
00078  , FR30_INSN_EXTUB, FR30_INSN_EXTSH, FR30_INSN_EXTUH, FR30_INSN_LDM0
00079  , FR30_INSN_LDM1, FR30_INSN_STM0, FR30_INSN_STM1, FR30_INSN_ENTER
00080  , FR30_INSN_LEAVE, FR30_INSN_XCHB
00081 } CGEN_INSN_TYPE;
00082 
00083 /* Index of `invalid' insn place holder.  */
00084 #define CGEN_INSN_INVALID FR30_INSN_INVALID
00085 
00086 /* Total number of insns in table.  */
00087 #define MAX_INSNS ((int) FR30_INSN_XCHB + 1)
00088 
00089 /* This struct records data prior to insertion or after extraction.  */
00090 struct cgen_fields
00091 {
00092   int length;
00093   long f_nil;
00094   long f_anyof;
00095   long f_op1;
00096   long f_op2;
00097   long f_op3;
00098   long f_op4;
00099   long f_op5;
00100   long f_cc;
00101   long f_ccc;
00102   long f_Rj;
00103   long f_Ri;
00104   long f_Rs1;
00105   long f_Rs2;
00106   long f_Rjc;
00107   long f_Ric;
00108   long f_CRj;
00109   long f_CRi;
00110   long f_u4;
00111   long f_u4c;
00112   long f_i4;
00113   long f_m4;
00114   long f_u8;
00115   long f_i8;
00116   long f_i20_4;
00117   long f_i20_16;
00118   long f_i20;
00119   long f_i32;
00120   long f_udisp6;
00121   long f_disp8;
00122   long f_disp9;
00123   long f_disp10;
00124   long f_s10;
00125   long f_u10;
00126   long f_rel9;
00127   long f_dir8;
00128   long f_dir9;
00129   long f_dir10;
00130   long f_rel12;
00131   long f_reglist_hi_st;
00132   long f_reglist_low_st;
00133   long f_reglist_hi_ld;
00134   long f_reglist_low_ld;
00135 };
00136 
00137 #define CGEN_INIT_PARSE(od) \
00138 {\
00139 }
00140 #define CGEN_INIT_INSERT(od) \
00141 {\
00142 }
00143 #define CGEN_INIT_EXTRACT(od) \
00144 {\
00145 }
00146 #define CGEN_INIT_PRINT(od) \
00147 {\
00148 }
00149 
00150 
00151 #endif /* FR30_OPC_H */