1 /* Instruction opcode header for i960.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
7 This file is part of the GNU Binutils and/or GDB, the GNU debugger.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #undef CGEN_DIS_HASH_SIZE
31 #define CGEN_DIS_HASH_SIZE 256
33 #define CGEN_DIS_HASH(buffer, value) ((unsigned char *) (buffer))[3]
35 /* ??? Until cgen disassembler complete and functioning well, redirect back
36 to old disassembler. */
37 #define CGEN_PRINT_INSN(od, pc, info) print_insn_i960_orig (pc, info)
40 /* Enum declaration for i960 instruction types. */
41 typedef enum cgen_insn_type
{
42 I960_INSN_INVALID
, I960_INSN_MULO
, I960_INSN_MULO1
, I960_INSN_MULO2
43 , I960_INSN_MULO3
, I960_INSN_REMO
, I960_INSN_REMO1
, I960_INSN_REMO2
44 , I960_INSN_REMO3
, I960_INSN_DIVO
, I960_INSN_DIVO1
, I960_INSN_DIVO2
45 , I960_INSN_DIVO3
, I960_INSN_REMI
, I960_INSN_REMI1
, I960_INSN_REMI2
46 , I960_INSN_REMI3
, I960_INSN_DIVI
, I960_INSN_DIVI1
, I960_INSN_DIVI2
47 , I960_INSN_DIVI3
, I960_INSN_ADDO
, I960_INSN_ADDO1
, I960_INSN_ADDO2
48 , I960_INSN_ADDO3
, I960_INSN_SUBO
, I960_INSN_SUBO1
, I960_INSN_SUBO2
49 , I960_INSN_SUBO3
, I960_INSN_NOTBIT
, I960_INSN_NOTBIT1
, I960_INSN_NOTBIT2
50 , I960_INSN_NOTBIT3
, I960_INSN_AND
, I960_INSN_AND1
, I960_INSN_AND2
51 , I960_INSN_AND3
, I960_INSN_ANDNOT
, I960_INSN_ANDNOT1
, I960_INSN_ANDNOT2
52 , I960_INSN_ANDNOT3
, I960_INSN_SETBIT
, I960_INSN_SETBIT1
, I960_INSN_SETBIT2
53 , I960_INSN_SETBIT3
, I960_INSN_NOTAND
, I960_INSN_NOTAND1
, I960_INSN_NOTAND2
54 , I960_INSN_NOTAND3
, I960_INSN_XOR
, I960_INSN_XOR1
, I960_INSN_XOR2
55 , I960_INSN_XOR3
, I960_INSN_OR
, I960_INSN_OR1
, I960_INSN_OR2
56 , I960_INSN_OR3
, I960_INSN_NOR
, I960_INSN_NOR1
, I960_INSN_NOR2
57 , I960_INSN_NOR3
, I960_INSN_XNOR
, I960_INSN_XNOR1
, I960_INSN_XNOR2
58 , I960_INSN_XNOR3
, I960_INSN_NOT
, I960_INSN_NOT1
, I960_INSN_NOT2
59 , I960_INSN_NOT3
, I960_INSN_ORNOT
, I960_INSN_ORNOT1
, I960_INSN_ORNOT2
60 , I960_INSN_ORNOT3
, I960_INSN_CLRBIT
, I960_INSN_CLRBIT1
, I960_INSN_CLRBIT2
61 , I960_INSN_CLRBIT3
, I960_INSN_SHLO
, I960_INSN_SHLO1
, I960_INSN_SHLO2
62 , I960_INSN_SHLO3
, I960_INSN_SHRO
, I960_INSN_SHRO1
, I960_INSN_SHRO2
63 , I960_INSN_SHRO3
, I960_INSN_SHLI
, I960_INSN_SHLI1
, I960_INSN_SHLI2
64 , I960_INSN_SHLI3
, I960_INSN_SHRI
, I960_INSN_SHRI1
, I960_INSN_SHRI2
65 , I960_INSN_SHRI3
, I960_INSN_EMUL
, I960_INSN_EMUL1
, I960_INSN_EMUL2
66 , I960_INSN_EMUL3
, I960_INSN_MOV
, I960_INSN_MOV1
, I960_INSN_MOVL
67 , I960_INSN_MOVL1
, I960_INSN_MOVT
, I960_INSN_MOVT1
, I960_INSN_MOVQ
68 , I960_INSN_MOVQ1
, I960_INSN_MODPC
, I960_INSN_MODAC
, I960_INSN_LDA_OFFSET
69 , I960_INSN_LDA_INDIRECT_OFFSET
, I960_INSN_LDA_INDIRECT
, I960_INSN_LDA_INDIRECT_INDEX
, I960_INSN_LDA_DISP
70 , I960_INSN_LDA_INDIRECT_DISP
, I960_INSN_LDA_INDEX_DISP
, I960_INSN_LDA_INDIRECT_INDEX_DISP
, I960_INSN_LD_OFFSET
71 , I960_INSN_LD_INDIRECT_OFFSET
, I960_INSN_LD_INDIRECT
, I960_INSN_LD_INDIRECT_INDEX
, I960_INSN_LD_DISP
72 , I960_INSN_LD_INDIRECT_DISP
, I960_INSN_LD_INDEX_DISP
, I960_INSN_LD_INDIRECT_INDEX_DISP
, I960_INSN_LDOB_OFFSET
73 , I960_INSN_LDOB_INDIRECT_OFFSET
, I960_INSN_LDOB_INDIRECT
, I960_INSN_LDOB_INDIRECT_INDEX
, I960_INSN_LDOB_DISP
74 , I960_INSN_LDOB_INDIRECT_DISP
, I960_INSN_LDOB_INDEX_DISP
, I960_INSN_LDOB_INDIRECT_INDEX_DISP
, I960_INSN_LDOS_OFFSET
75 , I960_INSN_LDOS_INDIRECT_OFFSET
, I960_INSN_LDOS_INDIRECT
, I960_INSN_LDOS_INDIRECT_INDEX
, I960_INSN_LDOS_DISP
76 , I960_INSN_LDOS_INDIRECT_DISP
, I960_INSN_LDOS_INDEX_DISP
, I960_INSN_LDOS_INDIRECT_INDEX_DISP
, I960_INSN_LDIB_OFFSET
77 , I960_INSN_LDIB_INDIRECT_OFFSET
, I960_INSN_LDIB_INDIRECT
, I960_INSN_LDIB_INDIRECT_INDEX
, I960_INSN_LDIB_DISP
78 , I960_INSN_LDIB_INDIRECT_DISP
, I960_INSN_LDIB_INDEX_DISP
, I960_INSN_LDIB_INDIRECT_INDEX_DISP
, I960_INSN_LDIS_OFFSET
79 , I960_INSN_LDIS_INDIRECT_OFFSET
, I960_INSN_LDIS_INDIRECT
, I960_INSN_LDIS_INDIRECT_INDEX
, I960_INSN_LDIS_DISP
80 , I960_INSN_LDIS_INDIRECT_DISP
, I960_INSN_LDIS_INDEX_DISP
, I960_INSN_LDIS_INDIRECT_INDEX_DISP
, I960_INSN_LDL_OFFSET
81 , I960_INSN_LDL_INDIRECT_OFFSET
, I960_INSN_LDL_INDIRECT
, I960_INSN_LDL_INDIRECT_INDEX
, I960_INSN_LDL_DISP
82 , I960_INSN_LDL_INDIRECT_DISP
, I960_INSN_LDL_INDEX_DISP
, I960_INSN_LDL_INDIRECT_INDEX_DISP
, I960_INSN_LDT_OFFSET
83 , I960_INSN_LDT_INDIRECT_OFFSET
, I960_INSN_LDT_INDIRECT
, I960_INSN_LDT_INDIRECT_INDEX
, I960_INSN_LDT_DISP
84 , I960_INSN_LDT_INDIRECT_DISP
, I960_INSN_LDT_INDEX_DISP
, I960_INSN_LDT_INDIRECT_INDEX_DISP
, I960_INSN_LDQ_OFFSET
85 , I960_INSN_LDQ_INDIRECT_OFFSET
, I960_INSN_LDQ_INDIRECT
, I960_INSN_LDQ_INDIRECT_INDEX
, I960_INSN_LDQ_DISP
86 , I960_INSN_LDQ_INDIRECT_DISP
, I960_INSN_LDQ_INDEX_DISP
, I960_INSN_LDQ_INDIRECT_INDEX_DISP
, I960_INSN_ST_OFFSET
87 , I960_INSN_ST_INDIRECT_OFFSET
, I960_INSN_ST_INDIRECT
, I960_INSN_ST_INDIRECT_INDEX
, I960_INSN_ST_DISP
88 , I960_INSN_ST_INDIRECT_DISP
, I960_INSN_ST_INDEX_DISP
, I960_INSN_ST_INDIRECT_INDEX_DISP
, I960_INSN_STOB_OFFSET
89 , I960_INSN_STOB_INDIRECT_OFFSET
, I960_INSN_STOB_INDIRECT
, I960_INSN_STOB_INDIRECT_INDEX
, I960_INSN_STOB_DISP
90 , I960_INSN_STOB_INDIRECT_DISP
, I960_INSN_STOB_INDEX_DISP
, I960_INSN_STOB_INDIRECT_INDEX_DISP
, I960_INSN_STOS_OFFSET
91 , I960_INSN_STOS_INDIRECT_OFFSET
, I960_INSN_STOS_INDIRECT
, I960_INSN_STOS_INDIRECT_INDEX
, I960_INSN_STOS_DISP
92 , I960_INSN_STOS_INDIRECT_DISP
, I960_INSN_STOS_INDEX_DISP
, I960_INSN_STOS_INDIRECT_INDEX_DISP
, I960_INSN_STL_OFFSET
93 , I960_INSN_STL_INDIRECT_OFFSET
, I960_INSN_STL_INDIRECT
, I960_INSN_STL_INDIRECT_INDEX
, I960_INSN_STL_DISP
94 , I960_INSN_STL_INDIRECT_DISP
, I960_INSN_STL_INDEX_DISP
, I960_INSN_STL_INDIRECT_INDEX_DISP
, I960_INSN_STT_OFFSET
95 , I960_INSN_STT_INDIRECT_OFFSET
, I960_INSN_STT_INDIRECT
, I960_INSN_STT_INDIRECT_INDEX
, I960_INSN_STT_DISP
96 , I960_INSN_STT_INDIRECT_DISP
, I960_INSN_STT_INDEX_DISP
, I960_INSN_STT_INDIRECT_INDEX_DISP
, I960_INSN_STQ_OFFSET
97 , I960_INSN_STQ_INDIRECT_OFFSET
, I960_INSN_STQ_INDIRECT
, I960_INSN_STQ_INDIRECT_INDEX
, I960_INSN_STQ_DISP
98 , I960_INSN_STQ_INDIRECT_DISP
, I960_INSN_STQ_INDEX_DISP
, I960_INSN_STQ_INDIRECT_INDEX_DISP
, I960_INSN_CMPOBE_REG
99 , I960_INSN_CMPOBE_LIT
, I960_INSN_CMPOBNE_REG
, I960_INSN_CMPOBNE_LIT
, I960_INSN_CMPOBL_REG
100 , I960_INSN_CMPOBL_LIT
, I960_INSN_CMPOBLE_REG
, I960_INSN_CMPOBLE_LIT
, I960_INSN_CMPOBG_REG
101 , I960_INSN_CMPOBG_LIT
, I960_INSN_CMPOBGE_REG
, I960_INSN_CMPOBGE_LIT
, I960_INSN_CMPIBE_REG
102 , I960_INSN_CMPIBE_LIT
, I960_INSN_CMPIBNE_REG
, I960_INSN_CMPIBNE_LIT
, I960_INSN_CMPIBL_REG
103 , I960_INSN_CMPIBL_LIT
, I960_INSN_CMPIBLE_REG
, I960_INSN_CMPIBLE_LIT
, I960_INSN_CMPIBG_REG
104 , I960_INSN_CMPIBG_LIT
, I960_INSN_CMPIBGE_REG
, I960_INSN_CMPIBGE_LIT
, I960_INSN_BBC_REG
105 , I960_INSN_BBC_LIT
, I960_INSN_BBS_REG
, I960_INSN_BBS_LIT
, I960_INSN_CMPI
106 , I960_INSN_CMPI1
, I960_INSN_CMPI2
, I960_INSN_CMPI3
, I960_INSN_CMPO
107 , I960_INSN_CMPO1
, I960_INSN_CMPO2
, I960_INSN_CMPO3
, I960_INSN_TESTNO_REG
108 , I960_INSN_TESTG_REG
, I960_INSN_TESTE_REG
, I960_INSN_TESTGE_REG
, I960_INSN_TESTL_REG
109 , I960_INSN_TESTNE_REG
, I960_INSN_TESTLE_REG
, I960_INSN_TESTO_REG
, I960_INSN_BNO
110 , I960_INSN_BG
, I960_INSN_BE
, I960_INSN_BGE
, I960_INSN_BL
111 , I960_INSN_BNE
, I960_INSN_BLE
, I960_INSN_BO
, I960_INSN_B
112 , I960_INSN_BX_INDIRECT_OFFSET
, I960_INSN_BX_INDIRECT
, I960_INSN_BX_INDIRECT_INDEX
, I960_INSN_BX_DISP
113 , I960_INSN_BX_INDIRECT_DISP
, I960_INSN_CALLX_DISP
, I960_INSN_CALLX_INDIRECT
, I960_INSN_CALLX_INDIRECT_OFFSET
114 , I960_INSN_RET
, I960_INSN_CALLS
, I960_INSN_FMARK
, I960_INSN_FLUSHREG
118 /* Index of `invalid' insn place holder. */
119 #define CGEN_INSN_INVALID I960_INSN_INVALID
121 /* Total number of insns in table. */
122 #define MAX_INSNS ((int) I960_INSN_MAX)
124 /* This struct records data prior to insertion or after extraction. */
156 #define CGEN_INIT_PARSE(od) \
159 #define CGEN_INIT_INSERT(od) \
162 #define CGEN_INIT_EXTRACT(od) \
165 #define CGEN_INIT_PRINT(od) \
170 #endif /* I960_OPC_H */