1 /* Semantic operand instances for m32r.
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.
29 #include "m32r-desc.h"
32 /* Operand references. */
34 #define INPUT CGEN_OPINST_INPUT
35 #define OUTPUT CGEN_OPINST_OUTPUT
36 #define END CGEN_OPINST_END
37 #define COND_REF CGEN_OPINST_COND_REF
38 #define OP_ENT(op) CONCAT2 (M32R_OPERAND_,op)
40 static const CGEN_OPINST sfmt_empty_ops
[] = {
44 static const CGEN_OPINST sfmt_add_ops
[] = {
45 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
46 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
47 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
51 static const CGEN_OPINST sfmt_add3_ops
[] = {
52 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
53 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
54 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
58 static const CGEN_OPINST sfmt_and3_ops
[] = {
59 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
60 { INPUT
, "uimm16", HW_H_UINT
, CGEN_MODE_UINT
, OP_ENT (UIMM16
), 0, 0 },
61 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
65 static const CGEN_OPINST sfmt_or3_ops
[] = {
66 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
67 { INPUT
, "ulo16", HW_H_ULO16
, CGEN_MODE_UINT
, OP_ENT (ULO16
), 0, 0 },
68 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
72 static const CGEN_OPINST sfmt_addi_ops
[] = {
73 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
74 { INPUT
, "simm8", HW_H_SINT
, CGEN_MODE_INT
, OP_ENT (SIMM8
), 0, 0 },
75 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
79 static const CGEN_OPINST sfmt_addv_ops
[] = {
80 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
81 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
82 { OUTPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
83 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
87 static const CGEN_OPINST sfmt_addv3_ops
[] = {
88 { INPUT
, "simm16", HW_H_SINT
, CGEN_MODE_INT
, OP_ENT (SIMM16
), 0, 0 },
89 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
90 { OUTPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
91 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
95 static const CGEN_OPINST sfmt_addx_ops
[] = {
96 { INPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
97 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
98 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
99 { OUTPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
100 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
104 static const CGEN_OPINST sfmt_bc8_ops
[] = {
105 { INPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
106 { INPUT
, "disp8", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP8
), 0, COND_REF
},
107 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, COND_REF
},
111 static const CGEN_OPINST sfmt_bc24_ops
[] = {
112 { INPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
113 { INPUT
, "disp24", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP24
), 0, COND_REF
},
114 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, COND_REF
},
118 static const CGEN_OPINST sfmt_beq_ops
[] = {
119 { INPUT
, "disp16", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP16
), 0, COND_REF
},
120 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
121 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
122 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, COND_REF
},
126 static const CGEN_OPINST sfmt_beqz_ops
[] = {
127 { INPUT
, "disp16", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP16
), 0, COND_REF
},
128 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
129 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, COND_REF
},
133 static const CGEN_OPINST sfmt_bl8_ops
[] = {
134 { INPUT
, "disp8", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP8
), 0, 0 },
135 { INPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
136 { OUTPUT
, "h_gr_14", HW_H_GR
, CGEN_MODE_SI
, 0, 14, 0 },
137 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
141 static const CGEN_OPINST sfmt_bl24_ops
[] = {
142 { INPUT
, "disp24", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP24
), 0, 0 },
143 { INPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
144 { OUTPUT
, "h_gr_14", HW_H_GR
, CGEN_MODE_SI
, 0, 14, 0 },
145 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
149 static const CGEN_OPINST sfmt_bra8_ops
[] = {
150 { INPUT
, "disp8", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP8
), 0, 0 },
151 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
155 static const CGEN_OPINST sfmt_bra24_ops
[] = {
156 { INPUT
, "disp24", HW_H_IADDR
, CGEN_MODE_USI
, OP_ENT (DISP24
), 0, 0 },
157 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
161 static const CGEN_OPINST sfmt_cmp_ops
[] = {
162 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
163 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
164 { OUTPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
168 static const CGEN_OPINST sfmt_cmpi_ops
[] = {
169 { INPUT
, "simm16", HW_H_SINT
, CGEN_MODE_INT
, OP_ENT (SIMM16
), 0, 0 },
170 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
171 { OUTPUT
, "condbit", HW_H_COND
, CGEN_MODE_BI
, 0, 0, 0 },
175 static const CGEN_OPINST sfmt_div_ops
[] = {
176 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, COND_REF
},
177 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
178 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, COND_REF
},
182 static const CGEN_OPINST sfmt_jl_ops
[] = {
183 { INPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
184 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
185 { OUTPUT
, "h_gr_14", HW_H_GR
, CGEN_MODE_SI
, 0, 14, 0 },
186 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
190 static const CGEN_OPINST sfmt_jmp_ops
[] = {
191 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
192 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
196 static const CGEN_OPINST sfmt_ld_ops
[] = {
197 { INPUT
, "h_memory_sr", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
198 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SR
), 0, 0 },
199 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
203 static const CGEN_OPINST sfmt_ld_d_ops
[] = {
204 { INPUT
, "h_memory_add__DFLT_sr_slo16", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
205 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
206 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
207 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
211 static const CGEN_OPINST sfmt_ld_plus_ops
[] = {
212 { INPUT
, "h_memory_sr", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
213 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SR
), 0, 0 },
214 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
215 { OUTPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
219 static const CGEN_OPINST sfmt_ld24_ops
[] = {
220 { INPUT
, "uimm24", HW_H_ADDR
, CGEN_MODE_USI
, OP_ENT (UIMM24
), 0, 0 },
221 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
225 static const CGEN_OPINST sfmt_ldi8_ops
[] = {
226 { INPUT
, "simm8", HW_H_SINT
, CGEN_MODE_INT
, OP_ENT (SIMM8
), 0, 0 },
227 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
231 static const CGEN_OPINST sfmt_ldi16_ops
[] = {
232 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
233 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
237 static const CGEN_OPINST sfmt_lock_ops
[] = {
238 { INPUT
, "h_memory_sr", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
239 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SR
), 0, 0 },
240 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
241 { OUTPUT
, "h_lock", HW_H_LOCK
, CGEN_MODE_BI
, 0, 0, 0 },
245 static const CGEN_OPINST sfmt_machi_ops
[] = {
246 { INPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
247 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
248 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
249 { OUTPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
253 static const CGEN_OPINST sfmt_mulhi_ops
[] = {
254 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
255 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
256 { OUTPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
260 static const CGEN_OPINST sfmt_mv_ops
[] = {
261 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
262 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
266 static const CGEN_OPINST sfmt_mvfachi_ops
[] = {
267 { INPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
268 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
272 static const CGEN_OPINST sfmt_mvfc_ops
[] = {
273 { INPUT
, "scr", HW_H_CR
, CGEN_MODE_USI
, OP_ENT (SCR
), 0, 0 },
274 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
278 static const CGEN_OPINST sfmt_mvtachi_ops
[] = {
279 { INPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
280 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
281 { OUTPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
285 static const CGEN_OPINST sfmt_mvtc_ops
[] = {
286 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
287 { OUTPUT
, "dcr", HW_H_CR
, CGEN_MODE_USI
, OP_ENT (DCR
), 0, 0 },
291 static const CGEN_OPINST sfmt_nop_ops
[] = {
295 static const CGEN_OPINST sfmt_rac_ops
[] = {
296 { INPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
297 { OUTPUT
, "accum", HW_H_ACCUM
, CGEN_MODE_DI
, 0, 0, 0 },
301 static const CGEN_OPINST sfmt_rte_ops
[] = {
302 { INPUT
, "h_bbpsw", HW_H_BBPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
303 { INPUT
, "h_bpsw", HW_H_BPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
304 { INPUT
, "h_cr_14", HW_H_CR
, CGEN_MODE_USI
, 0, 14, 0 },
305 { INPUT
, "h_cr_6", HW_H_CR
, CGEN_MODE_USI
, 0, 6, 0 },
306 { OUTPUT
, "h_bpsw", HW_H_BPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
307 { OUTPUT
, "h_cr_6", HW_H_CR
, CGEN_MODE_USI
, 0, 6, 0 },
308 { OUTPUT
, "h_psw", HW_H_PSW
, CGEN_MODE_UQI
, 0, 0, 0 },
309 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
313 static const CGEN_OPINST sfmt_seth_ops
[] = {
314 { INPUT
, "hi16", HW_H_HI16
, CGEN_MODE_SI
, OP_ENT (HI16
), 0, 0 },
315 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
319 static const CGEN_OPINST sfmt_sll3_ops
[] = {
320 { INPUT
, "simm16", HW_H_SINT
, CGEN_MODE_SI
, OP_ENT (SIMM16
), 0, 0 },
321 { INPUT
, "sr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SR
), 0, 0 },
322 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
326 static const CGEN_OPINST sfmt_slli_ops
[] = {
327 { INPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
328 { INPUT
, "uimm5", HW_H_UINT
, CGEN_MODE_INT
, OP_ENT (UIMM5
), 0, 0 },
329 { OUTPUT
, "dr", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (DR
), 0, 0 },
333 static const CGEN_OPINST sfmt_st_ops
[] = {
334 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
335 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SRC2
), 0, 0 },
336 { OUTPUT
, "h_memory_src2", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
340 static const CGEN_OPINST sfmt_st_d_ops
[] = {
341 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
342 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
343 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
344 { OUTPUT
, "h_memory_add__DFLT_src2_slo16", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
348 static const CGEN_OPINST sfmt_stb_ops
[] = {
349 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_QI
, OP_ENT (SRC1
), 0, 0 },
350 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SRC2
), 0, 0 },
351 { OUTPUT
, "h_memory_src2", HW_H_MEMORY
, CGEN_MODE_QI
, 0, 0, 0 },
355 static const CGEN_OPINST sfmt_stb_d_ops
[] = {
356 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
357 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_QI
, OP_ENT (SRC1
), 0, 0 },
358 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
359 { OUTPUT
, "h_memory_add__DFLT_src2_slo16", HW_H_MEMORY
, CGEN_MODE_QI
, 0, 0, 0 },
363 static const CGEN_OPINST sfmt_sth_ops
[] = {
364 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_HI
, OP_ENT (SRC1
), 0, 0 },
365 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SRC2
), 0, 0 },
366 { OUTPUT
, "h_memory_src2", HW_H_MEMORY
, CGEN_MODE_HI
, 0, 0, 0 },
370 static const CGEN_OPINST sfmt_sth_d_ops
[] = {
371 { INPUT
, "slo16", HW_H_SLO16
, CGEN_MODE_INT
, OP_ENT (SLO16
), 0, 0 },
372 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_HI
, OP_ENT (SRC1
), 0, 0 },
373 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
374 { OUTPUT
, "h_memory_add__DFLT_src2_slo16", HW_H_MEMORY
, CGEN_MODE_HI
, 0, 0, 0 },
378 static const CGEN_OPINST sfmt_st_plus_ops
[] = {
379 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, 0 },
380 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
381 { OUTPUT
, "h_memory_new_src2", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, 0 },
382 { OUTPUT
, "src2", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC2
), 0, 0 },
386 static const CGEN_OPINST sfmt_trap_ops
[] = {
387 { INPUT
, "h_bpsw", HW_H_BPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
388 { INPUT
, "h_cr_6", HW_H_CR
, CGEN_MODE_USI
, 0, 6, 0 },
389 { INPUT
, "h_psw", HW_H_PSW
, CGEN_MODE_UQI
, 0, 0, 0 },
390 { INPUT
, "pc", HW_H_PC
, CGEN_MODE_USI
, 0, 0, 0 },
391 { INPUT
, "uimm4", HW_H_UINT
, CGEN_MODE_UINT
, OP_ENT (UIMM4
), 0, 0 },
392 { OUTPUT
, "h_bbpsw", HW_H_BBPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
393 { OUTPUT
, "h_bpsw", HW_H_BPSW
, CGEN_MODE_UQI
, 0, 0, 0 },
394 { OUTPUT
, "h_cr_14", HW_H_CR
, CGEN_MODE_USI
, 0, 14, 0 },
395 { OUTPUT
, "h_cr_6", HW_H_CR
, CGEN_MODE_USI
, 0, 6, 0 },
396 { OUTPUT
, "h_psw", HW_H_PSW
, CGEN_MODE_UQI
, 0, 0, 0 },
397 { OUTPUT
, "pc", HW_H_PC
, CGEN_MODE_SI
, 0, 0, 0 },
401 static const CGEN_OPINST sfmt_unlock_ops
[] = {
402 { INPUT
, "h_lock", HW_H_LOCK
, CGEN_MODE_BI
, 0, 0, 0 },
403 { INPUT
, "src1", HW_H_GR
, CGEN_MODE_SI
, OP_ENT (SRC1
), 0, COND_REF
},
404 { INPUT
, "src2", HW_H_GR
, CGEN_MODE_USI
, OP_ENT (SRC2
), 0, COND_REF
},
405 { OUTPUT
, "h_lock", HW_H_LOCK
, CGEN_MODE_BI
, 0, 0, 0 },
406 { OUTPUT
, "h_memory_src2", HW_H_MEMORY
, CGEN_MODE_SI
, 0, 0, COND_REF
},
416 /* Operand instance lookup table. */
418 static const CGEN_OPINST
*m32r_cgen_opinst_table
[MAX_INSNS
] = {
468 & sfmt_ld_plus_ops
[0],
483 & sfmt_mvfachi_ops
[0],
484 & sfmt_mvfachi_ops
[0],
485 & sfmt_mvfachi_ops
[0],
487 & sfmt_mvtachi_ops
[0],
488 & sfmt_mvtachi_ops
[0],
512 & sfmt_st_plus_ops
[0],
513 & sfmt_st_plus_ops
[0],
518 & sfmt_unlock_ops
[0],
521 /* Function to call before using the operand instance table. */
524 m32r_cgen_init_opinst_table (cd
)
528 const CGEN_OPINST
**oi
= & m32r_cgen_opinst_table
[0];
529 CGEN_INSN
*insns
= (CGEN_INSN
*) cd
->insn_table
.init_entries
;
530 for (i
= 0; i
< MAX_INSNS
; ++i
)
531 insns
[i
].opinst
= oi
[i
];