1 /* Instruction opcode header for or1k.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2015 Free Software Foundation, Inc.
7 This file is part of the GNU Binutils and/or GDB, the GNU debugger.
9 This file 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 3, or (at your option)
14 It is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 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 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
30 #undef CGEN_DIS_HASH_SIZE
31 #define CGEN_DIS_HASH_SIZE 256
33 #define CGEN_DIS_HASH(buffer, value) (((unsigned char *) (buffer))[0] >> 2)
36 /* Enum declaration for or1k instruction types. */
37 typedef enum cgen_insn_type
{
38 OR1K_INSN_INVALID
, OR1K_INSN_L_J
, OR1K_INSN_L_JAL
, OR1K_INSN_L_JR
39 , OR1K_INSN_L_JALR
, OR1K_INSN_L_BNF
, OR1K_INSN_L_BF
, OR1K_INSN_L_TRAP
40 , OR1K_INSN_L_SYS
, OR1K_INSN_L_MSYNC
, OR1K_INSN_L_PSYNC
, OR1K_INSN_L_CSYNC
41 , OR1K_INSN_L_RFE
, OR1K_INSN_L_NOP_IMM
, OR1K_INSN_L_NOP
, OR1K_INSN_L_MOVHI
42 , OR1K_INSN_L_MACRC
, OR1K_INSN_L_MFSPR
, OR1K_INSN_L_MTSPR
, OR1K_INSN_L_LWZ
43 , OR1K_INSN_L_LWS
, OR1K_INSN_L_LWA
, OR1K_INSN_L_LBZ
, OR1K_INSN_L_LBS
44 , OR1K_INSN_L_LHZ
, OR1K_INSN_L_LHS
, OR1K_INSN_L_SW
, OR1K_INSN_L_SB
45 , OR1K_INSN_L_SH
, OR1K_INSN_L_SWA
, OR1K_INSN_L_SLL
, OR1K_INSN_L_SLLI
46 , OR1K_INSN_L_SRL
, OR1K_INSN_L_SRLI
, OR1K_INSN_L_SRA
, OR1K_INSN_L_SRAI
47 , OR1K_INSN_L_ROR
, OR1K_INSN_L_RORI
, OR1K_INSN_L_AND
, OR1K_INSN_L_OR
48 , OR1K_INSN_L_XOR
, OR1K_INSN_L_ADD
, OR1K_INSN_L_SUB
, OR1K_INSN_L_ADDC
49 , OR1K_INSN_L_MUL
, OR1K_INSN_L_MULU
, OR1K_INSN_L_DIV
, OR1K_INSN_L_DIVU
50 , OR1K_INSN_L_FF1
, OR1K_INSN_L_FL1
, OR1K_INSN_L_ANDI
, OR1K_INSN_L_ORI
51 , OR1K_INSN_L_XORI
, OR1K_INSN_L_ADDI
, OR1K_INSN_L_ADDIC
, OR1K_INSN_L_MULI
52 , OR1K_INSN_L_EXTHS
, OR1K_INSN_L_EXTBS
, OR1K_INSN_L_EXTHZ
, OR1K_INSN_L_EXTBZ
53 , OR1K_INSN_L_EXTWS
, OR1K_INSN_L_EXTWZ
, OR1K_INSN_L_CMOV
, OR1K_INSN_L_SFGTS
54 , OR1K_INSN_L_SFGTSI
, OR1K_INSN_L_SFGTU
, OR1K_INSN_L_SFGTUI
, OR1K_INSN_L_SFGES
55 , OR1K_INSN_L_SFGESI
, OR1K_INSN_L_SFGEU
, OR1K_INSN_L_SFGEUI
, OR1K_INSN_L_SFLTS
56 , OR1K_INSN_L_SFLTSI
, OR1K_INSN_L_SFLTU
, OR1K_INSN_L_SFLTUI
, OR1K_INSN_L_SFLES
57 , OR1K_INSN_L_SFLESI
, OR1K_INSN_L_SFLEU
, OR1K_INSN_L_SFLEUI
, OR1K_INSN_L_SFEQ
58 , OR1K_INSN_L_SFEQI
, OR1K_INSN_L_SFNE
, OR1K_INSN_L_SFNEI
, OR1K_INSN_L_MAC
59 , OR1K_INSN_L_MSB
, OR1K_INSN_L_MACI
, OR1K_INSN_L_CUST1
, OR1K_INSN_L_CUST2
60 , OR1K_INSN_L_CUST3
, OR1K_INSN_L_CUST4
, OR1K_INSN_L_CUST5
, OR1K_INSN_L_CUST6
61 , OR1K_INSN_L_CUST7
, OR1K_INSN_L_CUST8
, OR1K_INSN_LF_ADD_S
, OR1K_INSN_LF_ADD_D
62 , OR1K_INSN_LF_SUB_S
, OR1K_INSN_LF_SUB_D
, OR1K_INSN_LF_MUL_S
, OR1K_INSN_LF_MUL_D
63 , OR1K_INSN_LF_DIV_S
, OR1K_INSN_LF_DIV_D
, OR1K_INSN_LF_REM_S
, OR1K_INSN_LF_REM_D
64 , OR1K_INSN_LF_ITOF_S
, OR1K_INSN_LF_ITOF_D
, OR1K_INSN_LF_FTOI_S
, OR1K_INSN_LF_FTOI_D
65 , OR1K_INSN_LF_EQ_S
, OR1K_INSN_LF_EQ_D
, OR1K_INSN_LF_NE_S
, OR1K_INSN_LF_NE_D
66 , OR1K_INSN_LF_GE_S
, OR1K_INSN_LF_GE_D
, OR1K_INSN_LF_GT_S
, OR1K_INSN_LF_GT_D
67 , OR1K_INSN_LF_LT_S
, OR1K_INSN_LF_LT_D
, OR1K_INSN_LF_LE_S
, OR1K_INSN_LF_LE_D
68 , OR1K_INSN_LF_MADD_S
, OR1K_INSN_LF_MADD_D
, OR1K_INSN_LF_CUST1_S
, OR1K_INSN_LF_CUST1_D
71 /* Index of `invalid' insn place holder. */
72 #define CGEN_INSN_INVALID OR1K_INSN_INVALID
74 /* Total number of insns in table. */
75 #define MAX_INSNS ((int) OR1K_INSN_LF_CUST1_D + 1)
77 /* This struct records data prior to insertion or after extraction. */
121 #define CGEN_INIT_PARSE(od) \
124 #define CGEN_INIT_INSERT(od) \
127 #define CGEN_INIT_EXTRACT(od) \
130 #define CGEN_INIT_PRINT(od) \
135 #endif /* OR1K_OPC_H */
This page took 0.03219 seconds and 4 git commands to generate.