1dc268d07Schristos /* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
2a1ba9ba4Schristos /* Semantic operand instances for lm32.
3a1ba9ba4Schristos
4a1ba9ba4Schristos THIS FILE IS MACHINE GENERATED WITH CGEN.
5a1ba9ba4Schristos
6*184b2d41Schristos Copyright (C) 1996-2020 Free Software Foundation, Inc.
7a1ba9ba4Schristos
8a1ba9ba4Schristos This file is part of the GNU Binutils and/or GDB, the GNU debugger.
9a1ba9ba4Schristos
10a1ba9ba4Schristos This file is free software; you can redistribute it and/or modify
11a1ba9ba4Schristos it under the terms of the GNU General Public License as published by
12a1ba9ba4Schristos the Free Software Foundation; either version 3, or (at your option)
13a1ba9ba4Schristos any later version.
14a1ba9ba4Schristos
15a1ba9ba4Schristos It is distributed in the hope that it will be useful, but WITHOUT
16a1ba9ba4Schristos ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17a1ba9ba4Schristos or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18a1ba9ba4Schristos License for more details.
19a1ba9ba4Schristos
20a1ba9ba4Schristos You should have received a copy of the GNU General Public License along
21a1ba9ba4Schristos with this program; if not, write to the Free Software Foundation, Inc.,
22a1ba9ba4Schristos 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
23a1ba9ba4Schristos
24a1ba9ba4Schristos */
25a1ba9ba4Schristos
26a1ba9ba4Schristos #include "sysdep.h"
27a1ba9ba4Schristos #include "ansidecl.h"
28a1ba9ba4Schristos #include "bfd.h"
29a1ba9ba4Schristos #include "symcat.h"
30a1ba9ba4Schristos #include "lm32-desc.h"
31a1ba9ba4Schristos #include "lm32-opc.h"
32a1ba9ba4Schristos
33a1ba9ba4Schristos /* Operand references. */
34a1ba9ba4Schristos
35a1ba9ba4Schristos #define OP_ENT(op) LM32_OPERAND_##op
36a1ba9ba4Schristos #define INPUT CGEN_OPINST_INPUT
37a1ba9ba4Schristos #define OUTPUT CGEN_OPINST_OUTPUT
38a1ba9ba4Schristos #define END CGEN_OPINST_END
39a1ba9ba4Schristos #define COND_REF CGEN_OPINST_COND_REF
40a1ba9ba4Schristos
41a1ba9ba4Schristos static const CGEN_OPINST sfmt_empty_ops[] ATTRIBUTE_UNUSED = {
42a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
43a1ba9ba4Schristos };
44a1ba9ba4Schristos
45a1ba9ba4Schristos static const CGEN_OPINST sfmt_add_ops[] ATTRIBUTE_UNUSED = {
46a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
47a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
48a1ba9ba4Schristos { OUTPUT, "r2", HW_H_GR, CGEN_MODE_SI, OP_ENT (R2), 0, 0 },
49a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
50a1ba9ba4Schristos };
51a1ba9ba4Schristos
52a1ba9ba4Schristos static const CGEN_OPINST sfmt_addi_ops[] ATTRIBUTE_UNUSED = {
53a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
54a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
55a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
56a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
57a1ba9ba4Schristos };
58a1ba9ba4Schristos
59a1ba9ba4Schristos static const CGEN_OPINST sfmt_andi_ops[] ATTRIBUTE_UNUSED = {
60a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
61a1ba9ba4Schristos { INPUT, "uimm", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (UIMM), 0, 0 },
62a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
63a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
64a1ba9ba4Schristos };
65a1ba9ba4Schristos
66a1ba9ba4Schristos static const CGEN_OPINST sfmt_andhii_ops[] ATTRIBUTE_UNUSED = {
67a1ba9ba4Schristos { INPUT, "hi16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (HI16), 0, 0 },
68a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
69a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
70a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
71a1ba9ba4Schristos };
72a1ba9ba4Schristos
73a1ba9ba4Schristos static const CGEN_OPINST sfmt_b_ops[] ATTRIBUTE_UNUSED = {
74a1ba9ba4Schristos { INPUT, "f_r0", HW_H_UINT, CGEN_MODE_UINT, 0, 0, 0 },
75a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
76a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
77a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
78a1ba9ba4Schristos };
79a1ba9ba4Schristos
80a1ba9ba4Schristos static const CGEN_OPINST sfmt_bi_ops[] ATTRIBUTE_UNUSED = {
81a1ba9ba4Schristos { INPUT, "call", HW_H_IADDR, CGEN_MODE_USI, OP_ENT (CALL), 0, 0 },
82a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
83a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
84a1ba9ba4Schristos };
85a1ba9ba4Schristos
86a1ba9ba4Schristos static const CGEN_OPINST sfmt_be_ops[] ATTRIBUTE_UNUSED = {
87a1ba9ba4Schristos { INPUT, "branch", HW_H_IADDR, CGEN_MODE_USI, OP_ENT (BRANCH), 0, COND_REF },
88a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
89a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
90a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, COND_REF },
91a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
92a1ba9ba4Schristos };
93a1ba9ba4Schristos
94a1ba9ba4Schristos static const CGEN_OPINST sfmt_call_ops[] ATTRIBUTE_UNUSED = {
95a1ba9ba4Schristos { INPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
96a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
97a1ba9ba4Schristos { OUTPUT, "h_gr_SI_29", HW_H_GR, CGEN_MODE_SI, 0, 29, 0 },
98a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
99a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
100a1ba9ba4Schristos };
101a1ba9ba4Schristos
102a1ba9ba4Schristos static const CGEN_OPINST sfmt_calli_ops[] ATTRIBUTE_UNUSED = {
103a1ba9ba4Schristos { INPUT, "call", HW_H_IADDR, CGEN_MODE_USI, OP_ENT (CALL), 0, 0 },
104a1ba9ba4Schristos { INPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
105a1ba9ba4Schristos { OUTPUT, "h_gr_SI_29", HW_H_GR, CGEN_MODE_SI, 0, 29, 0 },
106a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
107a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
108a1ba9ba4Schristos };
109a1ba9ba4Schristos
110a1ba9ba4Schristos static const CGEN_OPINST sfmt_divu_ops[] ATTRIBUTE_UNUSED = {
111a1ba9ba4Schristos { INPUT, "f_r0", HW_H_UINT, CGEN_MODE_UINT, 0, 0, 0 },
112a1ba9ba4Schristos { INPUT, "f_r1", HW_H_UINT, CGEN_MODE_UINT, 0, 0, 0 },
113a1ba9ba4Schristos { INPUT, "f_r2", HW_H_UINT, CGEN_MODE_UINT, 0, 0, 0 },
114a1ba9ba4Schristos { INPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
115a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
116a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
117a1ba9ba4Schristos };
118a1ba9ba4Schristos
119a1ba9ba4Schristos static const CGEN_OPINST sfmt_lb_ops[] ATTRIBUTE_UNUSED = {
120a1ba9ba4Schristos { INPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
121a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
122a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
123a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
124a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
125a1ba9ba4Schristos };
126a1ba9ba4Schristos
127a1ba9ba4Schristos static const CGEN_OPINST sfmt_lh_ops[] ATTRIBUTE_UNUSED = {
128a1ba9ba4Schristos { INPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
129a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
130a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
131a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
132a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
133a1ba9ba4Schristos };
134a1ba9ba4Schristos
135a1ba9ba4Schristos static const CGEN_OPINST sfmt_lw_ops[] ATTRIBUTE_UNUSED = {
136a1ba9ba4Schristos { INPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
137a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
138a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
139a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
140a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
141a1ba9ba4Schristos };
142a1ba9ba4Schristos
143a1ba9ba4Schristos static const CGEN_OPINST sfmt_ori_ops[] ATTRIBUTE_UNUSED = {
144a1ba9ba4Schristos { INPUT, "lo16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (LO16), 0, 0 },
145a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
146a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
147a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
148a1ba9ba4Schristos };
149a1ba9ba4Schristos
150a1ba9ba4Schristos static const CGEN_OPINST sfmt_rcsr_ops[] ATTRIBUTE_UNUSED = {
151a1ba9ba4Schristos { INPUT, "csr", HW_H_CSR, CGEN_MODE_SI, OP_ENT (CSR), 0, 0 },
152a1ba9ba4Schristos { OUTPUT, "r2", HW_H_GR, CGEN_MODE_SI, OP_ENT (R2), 0, 0 },
153a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
154a1ba9ba4Schristos };
155a1ba9ba4Schristos
156a1ba9ba4Schristos static const CGEN_OPINST sfmt_sb_ops[] ATTRIBUTE_UNUSED = {
157a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
158a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
159a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
160a1ba9ba4Schristos { OUTPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
161a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
162a1ba9ba4Schristos };
163a1ba9ba4Schristos
164a1ba9ba4Schristos static const CGEN_OPINST sfmt_sextb_ops[] ATTRIBUTE_UNUSED = {
165a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
166a1ba9ba4Schristos { OUTPUT, "r2", HW_H_GR, CGEN_MODE_SI, OP_ENT (R2), 0, 0 },
167a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
168a1ba9ba4Schristos };
169a1ba9ba4Schristos
170a1ba9ba4Schristos static const CGEN_OPINST sfmt_sh_ops[] ATTRIBUTE_UNUSED = {
171a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
172a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
173a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
174a1ba9ba4Schristos { OUTPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
175a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
176a1ba9ba4Schristos };
177a1ba9ba4Schristos
178a1ba9ba4Schristos static const CGEN_OPINST sfmt_sw_ops[] ATTRIBUTE_UNUSED = {
179a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
180a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
181a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
182a1ba9ba4Schristos { OUTPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_imm", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
183a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
184a1ba9ba4Schristos };
185a1ba9ba4Schristos
186a1ba9ba4Schristos static const CGEN_OPINST sfmt_user_ops[] ATTRIBUTE_UNUSED = {
187a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
188a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
189a1ba9ba4Schristos { INPUT, "user", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (USER), 0, 0 },
190a1ba9ba4Schristos { OUTPUT, "r2", HW_H_GR, CGEN_MODE_SI, OP_ENT (R2), 0, 0 },
191a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
192a1ba9ba4Schristos };
193a1ba9ba4Schristos
194a1ba9ba4Schristos static const CGEN_OPINST sfmt_wcsr_ops[] ATTRIBUTE_UNUSED = {
195a1ba9ba4Schristos { INPUT, "f_csr", HW_H_UINT, CGEN_MODE_UINT, 0, 0, 0 },
196a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
197a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
198a1ba9ba4Schristos };
199a1ba9ba4Schristos
200a1ba9ba4Schristos static const CGEN_OPINST sfmt_break_ops[] ATTRIBUTE_UNUSED = {
201a1ba9ba4Schristos { INPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
202a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
203a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
204a1ba9ba4Schristos };
205a1ba9ba4Schristos
206a1ba9ba4Schristos static const CGEN_OPINST sfmt_bret_ops[] ATTRIBUTE_UNUSED = {
207a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
208a1ba9ba4Schristos { OUTPUT, "pc", HW_H_PC, CGEN_MODE_USI, 0, 0, 0 },
209a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
210a1ba9ba4Schristos };
211a1ba9ba4Schristos
212a1ba9ba4Schristos static const CGEN_OPINST sfmt_mvi_ops[] ATTRIBUTE_UNUSED = {
213a1ba9ba4Schristos { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 },
214a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
215a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
216a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
217a1ba9ba4Schristos };
218a1ba9ba4Schristos
219a1ba9ba4Schristos static const CGEN_OPINST sfmt_mvui_ops[] ATTRIBUTE_UNUSED = {
220a1ba9ba4Schristos { INPUT, "lo16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (LO16), 0, 0 },
221a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
222a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
223a1ba9ba4Schristos };
224a1ba9ba4Schristos
225a1ba9ba4Schristos static const CGEN_OPINST sfmt_mvhi_ops[] ATTRIBUTE_UNUSED = {
226a1ba9ba4Schristos { INPUT, "hi16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (HI16), 0, 0 },
227a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
228a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
229a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
230a1ba9ba4Schristos };
231a1ba9ba4Schristos
232a1ba9ba4Schristos static const CGEN_OPINST sfmt_mva_ops[] ATTRIBUTE_UNUSED = {
233a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
234a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
235a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
236a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
237a1ba9ba4Schristos };
238a1ba9ba4Schristos
239a1ba9ba4Schristos static const CGEN_OPINST sfmt_nop_ops[] ATTRIBUTE_UNUSED = {
240a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
241a1ba9ba4Schristos { OUTPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
242a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
243a1ba9ba4Schristos };
244a1ba9ba4Schristos
245a1ba9ba4Schristos static const CGEN_OPINST sfmt_lbgprel_ops[] ATTRIBUTE_UNUSED = {
246a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
247a1ba9ba4Schristos { INPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
248a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
249a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
250a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
251a1ba9ba4Schristos };
252a1ba9ba4Schristos
253a1ba9ba4Schristos static const CGEN_OPINST sfmt_lhgprel_ops[] ATTRIBUTE_UNUSED = {
254a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
255a1ba9ba4Schristos { INPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
256a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
257a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
258a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
259a1ba9ba4Schristos };
260a1ba9ba4Schristos
261a1ba9ba4Schristos static const CGEN_OPINST sfmt_lwgprel_ops[] ATTRIBUTE_UNUSED = {
262a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
263a1ba9ba4Schristos { INPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
264a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
265a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
266a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
267a1ba9ba4Schristos };
268a1ba9ba4Schristos
269a1ba9ba4Schristos static const CGEN_OPINST sfmt_sbgprel_ops[] ATTRIBUTE_UNUSED = {
270a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
271a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
272a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
273a1ba9ba4Schristos { OUTPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
274a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
275a1ba9ba4Schristos };
276a1ba9ba4Schristos
277a1ba9ba4Schristos static const CGEN_OPINST sfmt_shgprel_ops[] ATTRIBUTE_UNUSED = {
278a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
279a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
280a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
281a1ba9ba4Schristos { OUTPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
282a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
283a1ba9ba4Schristos };
284a1ba9ba4Schristos
285a1ba9ba4Schristos static const CGEN_OPINST sfmt_swgprel_ops[] ATTRIBUTE_UNUSED = {
286a1ba9ba4Schristos { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 },
287a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
288a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
289a1ba9ba4Schristos { OUTPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_gp16", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
290a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
291a1ba9ba4Schristos };
292a1ba9ba4Schristos
293a1ba9ba4Schristos static const CGEN_OPINST sfmt_lwgotrel_ops[] ATTRIBUTE_UNUSED = {
294a1ba9ba4Schristos { INPUT, "got16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOT16), 0, 0 },
295a1ba9ba4Schristos { INPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_got16", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
296a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
297a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
298a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
299a1ba9ba4Schristos };
300a1ba9ba4Schristos
301a1ba9ba4Schristos static const CGEN_OPINST sfmt_orhigotoffi_ops[] ATTRIBUTE_UNUSED = {
302a1ba9ba4Schristos { INPUT, "gotoffhi16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFHI16), 0, 0 },
303a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
304a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
305a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
306a1ba9ba4Schristos };
307a1ba9ba4Schristos
308a1ba9ba4Schristos static const CGEN_OPINST sfmt_addgotoff_ops[] ATTRIBUTE_UNUSED = {
309a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
310a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
311a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
312a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
313a1ba9ba4Schristos };
314a1ba9ba4Schristos
315a1ba9ba4Schristos static const CGEN_OPINST sfmt_swgotoff_ops[] ATTRIBUTE_UNUSED = {
316a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
317a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
318a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
319a1ba9ba4Schristos { OUTPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
320a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
321a1ba9ba4Schristos };
322a1ba9ba4Schristos
323a1ba9ba4Schristos static const CGEN_OPINST sfmt_lwgotoff_ops[] ATTRIBUTE_UNUSED = {
324a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
325a1ba9ba4Schristos { INPUT, "h_memory_SI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_SI, 0, 0, 0 },
326a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
327a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
328a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
329a1ba9ba4Schristos };
330a1ba9ba4Schristos
331a1ba9ba4Schristos static const CGEN_OPINST sfmt_shgotoff_ops[] ATTRIBUTE_UNUSED = {
332a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
333a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
334a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
335a1ba9ba4Schristos { OUTPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
336a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
337a1ba9ba4Schristos };
338a1ba9ba4Schristos
339a1ba9ba4Schristos static const CGEN_OPINST sfmt_lhgotoff_ops[] ATTRIBUTE_UNUSED = {
340a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
341a1ba9ba4Schristos { INPUT, "h_memory_HI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_HI, 0, 0, 0 },
342a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
343a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
344a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
345a1ba9ba4Schristos };
346a1ba9ba4Schristos
347a1ba9ba4Schristos static const CGEN_OPINST sfmt_sbgotoff_ops[] ATTRIBUTE_UNUSED = {
348a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
349a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
350a1ba9ba4Schristos { INPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
351a1ba9ba4Schristos { OUTPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
352a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
353a1ba9ba4Schristos };
354a1ba9ba4Schristos
355a1ba9ba4Schristos static const CGEN_OPINST sfmt_lbgotoff_ops[] ATTRIBUTE_UNUSED = {
356a1ba9ba4Schristos { INPUT, "gotofflo16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GOTOFFLO16), 0, 0 },
357a1ba9ba4Schristos { INPUT, "h_memory_QI_add__SI_r0_ext__SI_trunc__HI_gotofflo16", HW_H_MEMORY, CGEN_MODE_QI, 0, 0, 0 },
358a1ba9ba4Schristos { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 },
359a1ba9ba4Schristos { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 },
360a1ba9ba4Schristos { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
361a1ba9ba4Schristos };
362a1ba9ba4Schristos
363a1ba9ba4Schristos #undef OP_ENT
364a1ba9ba4Schristos #undef INPUT
365a1ba9ba4Schristos #undef OUTPUT
366a1ba9ba4Schristos #undef END
367a1ba9ba4Schristos #undef COND_REF
368a1ba9ba4Schristos
369a1ba9ba4Schristos /* Operand instance lookup table. */
370a1ba9ba4Schristos
371a1ba9ba4Schristos static const CGEN_OPINST *lm32_cgen_opinst_table[MAX_INSNS] = {
372a1ba9ba4Schristos 0,
373a1ba9ba4Schristos & sfmt_add_ops[0],
374a1ba9ba4Schristos & sfmt_addi_ops[0],
375a1ba9ba4Schristos & sfmt_add_ops[0],
376a1ba9ba4Schristos & sfmt_andi_ops[0],
377a1ba9ba4Schristos & sfmt_andhii_ops[0],
378a1ba9ba4Schristos & sfmt_b_ops[0],
379a1ba9ba4Schristos & sfmt_bi_ops[0],
380a1ba9ba4Schristos & sfmt_be_ops[0],
381a1ba9ba4Schristos & sfmt_be_ops[0],
382a1ba9ba4Schristos & sfmt_be_ops[0],
383a1ba9ba4Schristos & sfmt_be_ops[0],
384a1ba9ba4Schristos & sfmt_be_ops[0],
385a1ba9ba4Schristos & sfmt_be_ops[0],
386a1ba9ba4Schristos & sfmt_call_ops[0],
387a1ba9ba4Schristos & sfmt_calli_ops[0],
388a1ba9ba4Schristos & sfmt_add_ops[0],
389a1ba9ba4Schristos & sfmt_addi_ops[0],
390a1ba9ba4Schristos & sfmt_add_ops[0],
391a1ba9ba4Schristos & sfmt_addi_ops[0],
392a1ba9ba4Schristos & sfmt_add_ops[0],
393a1ba9ba4Schristos & sfmt_addi_ops[0],
394a1ba9ba4Schristos & sfmt_add_ops[0],
395a1ba9ba4Schristos & sfmt_andi_ops[0],
396a1ba9ba4Schristos & sfmt_add_ops[0],
397a1ba9ba4Schristos & sfmt_andi_ops[0],
398a1ba9ba4Schristos & sfmt_add_ops[0],
399a1ba9ba4Schristos & sfmt_addi_ops[0],
400a1ba9ba4Schristos & sfmt_divu_ops[0],
401a1ba9ba4Schristos & sfmt_lb_ops[0],
402a1ba9ba4Schristos & sfmt_lb_ops[0],
403a1ba9ba4Schristos & sfmt_lh_ops[0],
404a1ba9ba4Schristos & sfmt_lh_ops[0],
405a1ba9ba4Schristos & sfmt_lw_ops[0],
406a1ba9ba4Schristos & sfmt_divu_ops[0],
407a1ba9ba4Schristos & sfmt_add_ops[0],
408a1ba9ba4Schristos & sfmt_addi_ops[0],
409a1ba9ba4Schristos & sfmt_add_ops[0],
410a1ba9ba4Schristos & sfmt_andi_ops[0],
411a1ba9ba4Schristos & sfmt_add_ops[0],
412a1ba9ba4Schristos & sfmt_ori_ops[0],
413a1ba9ba4Schristos & sfmt_andhii_ops[0],
414a1ba9ba4Schristos & sfmt_rcsr_ops[0],
415a1ba9ba4Schristos & sfmt_sb_ops[0],
416a1ba9ba4Schristos & sfmt_sextb_ops[0],
417a1ba9ba4Schristos & sfmt_sextb_ops[0],
418a1ba9ba4Schristos & sfmt_sh_ops[0],
419a1ba9ba4Schristos & sfmt_add_ops[0],
420a1ba9ba4Schristos & sfmt_addi_ops[0],
421a1ba9ba4Schristos & sfmt_add_ops[0],
422a1ba9ba4Schristos & sfmt_addi_ops[0],
423a1ba9ba4Schristos & sfmt_add_ops[0],
424a1ba9ba4Schristos & sfmt_addi_ops[0],
425a1ba9ba4Schristos & sfmt_add_ops[0],
426a1ba9ba4Schristos & sfmt_sw_ops[0],
427a1ba9ba4Schristos & sfmt_user_ops[0],
428a1ba9ba4Schristos & sfmt_wcsr_ops[0],
429a1ba9ba4Schristos & sfmt_add_ops[0],
430a1ba9ba4Schristos & sfmt_andi_ops[0],
431a1ba9ba4Schristos & sfmt_add_ops[0],
432a1ba9ba4Schristos & sfmt_andi_ops[0],
433a1ba9ba4Schristos & sfmt_break_ops[0],
434a1ba9ba4Schristos & sfmt_break_ops[0],
435a1ba9ba4Schristos & sfmt_bret_ops[0],
436a1ba9ba4Schristos & sfmt_bret_ops[0],
437a1ba9ba4Schristos & sfmt_bret_ops[0],
438a1ba9ba4Schristos & sfmt_sextb_ops[0],
439a1ba9ba4Schristos & sfmt_mvi_ops[0],
440a1ba9ba4Schristos & sfmt_mvui_ops[0],
441a1ba9ba4Schristos & sfmt_mvhi_ops[0],
442a1ba9ba4Schristos & sfmt_mva_ops[0],
443a1ba9ba4Schristos & sfmt_sextb_ops[0],
444a1ba9ba4Schristos & sfmt_nop_ops[0],
445a1ba9ba4Schristos & sfmt_lbgprel_ops[0],
446a1ba9ba4Schristos & sfmt_lbgprel_ops[0],
447a1ba9ba4Schristos & sfmt_lhgprel_ops[0],
448a1ba9ba4Schristos & sfmt_lhgprel_ops[0],
449a1ba9ba4Schristos & sfmt_lwgprel_ops[0],
450a1ba9ba4Schristos & sfmt_sbgprel_ops[0],
451a1ba9ba4Schristos & sfmt_shgprel_ops[0],
452a1ba9ba4Schristos & sfmt_swgprel_ops[0],
453a1ba9ba4Schristos & sfmt_lwgotrel_ops[0],
454a1ba9ba4Schristos & sfmt_orhigotoffi_ops[0],
455a1ba9ba4Schristos & sfmt_addgotoff_ops[0],
456a1ba9ba4Schristos & sfmt_swgotoff_ops[0],
457a1ba9ba4Schristos & sfmt_lwgotoff_ops[0],
458a1ba9ba4Schristos & sfmt_shgotoff_ops[0],
459a1ba9ba4Schristos & sfmt_lhgotoff_ops[0],
460a1ba9ba4Schristos & sfmt_lhgotoff_ops[0],
461a1ba9ba4Schristos & sfmt_sbgotoff_ops[0],
462a1ba9ba4Schristos & sfmt_lbgotoff_ops[0],
463a1ba9ba4Schristos & sfmt_lbgotoff_ops[0],
464a1ba9ba4Schristos };
465a1ba9ba4Schristos
466a1ba9ba4Schristos /* Function to call before using the operand instance table. */
467a1ba9ba4Schristos
468a1ba9ba4Schristos void
lm32_cgen_init_opinst_table(CGEN_CPU_DESC cd)469b2396a7bSchristos lm32_cgen_init_opinst_table (CGEN_CPU_DESC cd)
470a1ba9ba4Schristos {
471a1ba9ba4Schristos int i;
472a1ba9ba4Schristos const CGEN_OPINST **oi = & lm32_cgen_opinst_table[0];
473a1ba9ba4Schristos CGEN_INSN *insns = (CGEN_INSN *) cd->insn_table.init_entries;
474a1ba9ba4Schristos for (i = 0; i < MAX_INSNS; ++i)
475a1ba9ba4Schristos insns[i].opinst = oi[i];
476a1ba9ba4Schristos }
477