1 /* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
4 THIS FILE IS MACHINE GENERATED WITH CGEN.
6 Copyright (C) 1996-2019 Free Software Foundation, Inc.
8 This file is part of the GNU Binutils and/or GDB, the GNU debugger.
10 This file is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3, or (at your option)
15 It is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 License for more details.
20 You should have received a copy of the GNU General Public License along
21 with this program; if not, write to the Free Software Foundation, Inc.,
22 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
32 #include "xc16x-desc.h"
33 #include "xc16x-opc.h"
35 #include "libiberty.h"
40 static const CGEN_ATTR_ENTRY bool_attr
[] =
47 static const CGEN_ATTR_ENTRY MACH_attr
[] ATTRIBUTE_UNUSED
=
49 { "base", MACH_BASE
},
50 { "xc16x", MACH_XC16X
},
55 static const CGEN_ATTR_ENTRY ISA_attr
[] ATTRIBUTE_UNUSED
=
57 { "xc16x", ISA_XC16X
},
62 static const CGEN_ATTR_ENTRY PIPE_attr
[] ATTRIBUTE_UNUSED
=
64 { "NONE", PIPE_NONE
},
69 const CGEN_ATTR_TABLE xc16x_cgen_ifield_attr_table
[] =
71 { "MACH", & MACH_attr
[0], & MACH_attr
[0] },
72 { "VIRTUAL", &bool_attr
[0], &bool_attr
[0] },
73 { "PCREL-ADDR", &bool_attr
[0], &bool_attr
[0] },
74 { "ABS-ADDR", &bool_attr
[0], &bool_attr
[0] },
75 { "RESERVED", &bool_attr
[0], &bool_attr
[0] },
76 { "SIGN-OPT", &bool_attr
[0], &bool_attr
[0] },
77 { "SIGNED", &bool_attr
[0], &bool_attr
[0] },
78 { "RELOC", &bool_attr
[0], &bool_attr
[0] },
82 const CGEN_ATTR_TABLE xc16x_cgen_hardware_attr_table
[] =
84 { "MACH", & MACH_attr
[0], & MACH_attr
[0] },
85 { "VIRTUAL", &bool_attr
[0], &bool_attr
[0] },
86 { "CACHE-ADDR", &bool_attr
[0], &bool_attr
[0] },
87 { "PC", &bool_attr
[0], &bool_attr
[0] },
88 { "PROFILE", &bool_attr
[0], &bool_attr
[0] },
92 const CGEN_ATTR_TABLE xc16x_cgen_operand_attr_table
[] =
94 { "MACH", & MACH_attr
[0], & MACH_attr
[0] },
95 { "VIRTUAL", &bool_attr
[0], &bool_attr
[0] },
96 { "PCREL-ADDR", &bool_attr
[0], &bool_attr
[0] },
97 { "ABS-ADDR", &bool_attr
[0], &bool_attr
[0] },
98 { "SIGN-OPT", &bool_attr
[0], &bool_attr
[0] },
99 { "SIGNED", &bool_attr
[0], &bool_attr
[0] },
100 { "NEGATIVE", &bool_attr
[0], &bool_attr
[0] },
101 { "RELAX", &bool_attr
[0], &bool_attr
[0] },
102 { "SEM-ONLY", &bool_attr
[0], &bool_attr
[0] },
103 { "RELOC", &bool_attr
[0], &bool_attr
[0] },
104 { "HASH-PREFIX", &bool_attr
[0], &bool_attr
[0] },
105 { "DOT-PREFIX", &bool_attr
[0], &bool_attr
[0] },
106 { "POF-PREFIX", &bool_attr
[0], &bool_attr
[0] },
107 { "PAG-PREFIX", &bool_attr
[0], &bool_attr
[0] },
108 { "SOF-PREFIX", &bool_attr
[0], &bool_attr
[0] },
109 { "SEG-PREFIX", &bool_attr
[0], &bool_attr
[0] },
113 const CGEN_ATTR_TABLE xc16x_cgen_insn_attr_table
[] =
115 { "MACH", & MACH_attr
[0], & MACH_attr
[0] },
116 { "PIPE", & PIPE_attr
[0], & PIPE_attr
[0] },
117 { "ALIAS", &bool_attr
[0], &bool_attr
[0] },
118 { "VIRTUAL", &bool_attr
[0], &bool_attr
[0] },
119 { "UNCOND-CTI", &bool_attr
[0], &bool_attr
[0] },
120 { "COND-CTI", &bool_attr
[0], &bool_attr
[0] },
121 { "SKIP-CTI", &bool_attr
[0], &bool_attr
[0] },
122 { "DELAY-SLOT", &bool_attr
[0], &bool_attr
[0] },
123 { "RELAXABLE", &bool_attr
[0], &bool_attr
[0] },
124 { "RELAXED", &bool_attr
[0], &bool_attr
[0] },
125 { "NO-DIS", &bool_attr
[0], &bool_attr
[0] },
126 { "PBB", &bool_attr
[0], &bool_attr
[0] },
130 /* Instruction set variants. */
132 static const CGEN_ISA xc16x_cgen_isa_table
[] = {
133 { "xc16x", 16, 32, 16, 32 },
137 /* Machine variants. */
139 static const CGEN_MACH xc16x_cgen_mach_table
[] = {
140 { "xc16x", "xc16x", MACH_XC16X
, 32 },
144 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_gr_names_entries
[] =
146 { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
147 { "r1", 1, {0, {{{0, 0}}}}, 0, 0 },
148 { "r2", 2, {0, {{{0, 0}}}}, 0, 0 },
149 { "r3", 3, {0, {{{0, 0}}}}, 0, 0 },
150 { "r4", 4, {0, {{{0, 0}}}}, 0, 0 },
151 { "r5", 5, {0, {{{0, 0}}}}, 0, 0 },
152 { "r6", 6, {0, {{{0, 0}}}}, 0, 0 },
153 { "r7", 7, {0, {{{0, 0}}}}, 0, 0 },
154 { "r8", 8, {0, {{{0, 0}}}}, 0, 0 },
155 { "r9", 9, {0, {{{0, 0}}}}, 0, 0 },
156 { "r10", 10, {0, {{{0, 0}}}}, 0, 0 },
157 { "r11", 11, {0, {{{0, 0}}}}, 0, 0 },
158 { "r12", 12, {0, {{{0, 0}}}}, 0, 0 },
159 { "r13", 13, {0, {{{0, 0}}}}, 0, 0 },
160 { "r14", 14, {0, {{{0, 0}}}}, 0, 0 },
161 { "r15", 15, {0, {{{0, 0}}}}, 0, 0 }
164 CGEN_KEYWORD xc16x_cgen_opval_gr_names
=
166 & xc16x_cgen_opval_gr_names_entries
[0],
171 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_ext_names_entries
[] =
173 { "0x1", 0, {0, {{{0, 0}}}}, 0, 0 },
174 { "0x2", 1, {0, {{{0, 0}}}}, 0, 0 },
175 { "0x3", 2, {0, {{{0, 0}}}}, 0, 0 },
176 { "0x4", 3, {0, {{{0, 0}}}}, 0, 0 },
177 { "1", 0, {0, {{{0, 0}}}}, 0, 0 },
178 { "2", 1, {0, {{{0, 0}}}}, 0, 0 },
179 { "3", 2, {0, {{{0, 0}}}}, 0, 0 },
180 { "4", 3, {0, {{{0, 0}}}}, 0, 0 }
183 CGEN_KEYWORD xc16x_cgen_opval_ext_names
=
185 & xc16x_cgen_opval_ext_names_entries
[0],
190 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_psw_names_entries
[] =
192 { "IEN", 136, {0, {{{0, 0}}}}, 0, 0 },
193 { "r0.11", 240, {0, {{{0, 0}}}}, 0, 0 },
194 { "r1.11", 241, {0, {{{0, 0}}}}, 0, 0 },
195 { "r2.11", 242, {0, {{{0, 0}}}}, 0, 0 },
196 { "r3.11", 243, {0, {{{0, 0}}}}, 0, 0 },
197 { "r4.11", 244, {0, {{{0, 0}}}}, 0, 0 },
198 { "r5.11", 245, {0, {{{0, 0}}}}, 0, 0 },
199 { "r6.11", 246, {0, {{{0, 0}}}}, 0, 0 },
200 { "r7.11", 247, {0, {{{0, 0}}}}, 0, 0 },
201 { "r8.11", 248, {0, {{{0, 0}}}}, 0, 0 },
202 { "r9.11", 249, {0, {{{0, 0}}}}, 0, 0 },
203 { "r10.11", 250, {0, {{{0, 0}}}}, 0, 0 },
204 { "r11.11", 251, {0, {{{0, 0}}}}, 0, 0 },
205 { "r12.11", 252, {0, {{{0, 0}}}}, 0, 0 },
206 { "r13.11", 253, {0, {{{0, 0}}}}, 0, 0 },
207 { "r14.11", 254, {0, {{{0, 0}}}}, 0, 0 },
208 { "r15.11", 255, {0, {{{0, 0}}}}, 0, 0 }
211 CGEN_KEYWORD xc16x_cgen_opval_psw_names
=
213 & xc16x_cgen_opval_psw_names_entries
[0],
218 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_grb_names_entries
[] =
220 { "rl0", 0, {0, {{{0, 0}}}}, 0, 0 },
221 { "rh0", 1, {0, {{{0, 0}}}}, 0, 0 },
222 { "rl1", 2, {0, {{{0, 0}}}}, 0, 0 },
223 { "rh1", 3, {0, {{{0, 0}}}}, 0, 0 },
224 { "rl2", 4, {0, {{{0, 0}}}}, 0, 0 },
225 { "rh2", 5, {0, {{{0, 0}}}}, 0, 0 },
226 { "rl3", 6, {0, {{{0, 0}}}}, 0, 0 },
227 { "rh3", 7, {0, {{{0, 0}}}}, 0, 0 },
228 { "rl4", 8, {0, {{{0, 0}}}}, 0, 0 },
229 { "rh4", 9, {0, {{{0, 0}}}}, 0, 0 },
230 { "rl5", 10, {0, {{{0, 0}}}}, 0, 0 },
231 { "rh5", 11, {0, {{{0, 0}}}}, 0, 0 },
232 { "rl6", 12, {0, {{{0, 0}}}}, 0, 0 },
233 { "rh6", 13, {0, {{{0, 0}}}}, 0, 0 },
234 { "rl7", 14, {0, {{{0, 0}}}}, 0, 0 },
235 { "rh7", 15, {0, {{{0, 0}}}}, 0, 0 }
238 CGEN_KEYWORD xc16x_cgen_opval_grb_names
=
240 & xc16x_cgen_opval_grb_names_entries
[0],
245 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_conditioncode_names_entries
[] =
247 { "cc_UC", 0, {0, {{{0, 0}}}}, 0, 0 },
248 { "cc_NET", 1, {0, {{{0, 0}}}}, 0, 0 },
249 { "cc_Z", 2, {0, {{{0, 0}}}}, 0, 0 },
250 { "cc_EQ", 2, {0, {{{0, 0}}}}, 0, 0 },
251 { "cc_NZ", 3, {0, {{{0, 0}}}}, 0, 0 },
252 { "cc_NE", 3, {0, {{{0, 0}}}}, 0, 0 },
253 { "cc_V", 4, {0, {{{0, 0}}}}, 0, 0 },
254 { "cc_NV", 5, {0, {{{0, 0}}}}, 0, 0 },
255 { "cc_N", 6, {0, {{{0, 0}}}}, 0, 0 },
256 { "cc_NN", 7, {0, {{{0, 0}}}}, 0, 0 },
257 { "cc_ULT", 8, {0, {{{0, 0}}}}, 0, 0 },
258 { "cc_UGE", 9, {0, {{{0, 0}}}}, 0, 0 },
259 { "cc_C", 8, {0, {{{0, 0}}}}, 0, 0 },
260 { "cc_NC", 9, {0, {{{0, 0}}}}, 0, 0 },
261 { "cc_SGT", 10, {0, {{{0, 0}}}}, 0, 0 },
262 { "cc_SLE", 11, {0, {{{0, 0}}}}, 0, 0 },
263 { "cc_SLT", 12, {0, {{{0, 0}}}}, 0, 0 },
264 { "cc_SGE", 13, {0, {{{0, 0}}}}, 0, 0 },
265 { "cc_UGT", 14, {0, {{{0, 0}}}}, 0, 0 },
266 { "cc_ULE", 15, {0, {{{0, 0}}}}, 0, 0 }
269 CGEN_KEYWORD xc16x_cgen_opval_conditioncode_names
=
271 & xc16x_cgen_opval_conditioncode_names_entries
[0],
276 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_extconditioncode_names_entries
[] =
278 { "cc_UC", 0, {0, {{{0, 0}}}}, 0, 0 },
279 { "cc_NET", 2, {0, {{{0, 0}}}}, 0, 0 },
280 { "cc_Z", 4, {0, {{{0, 0}}}}, 0, 0 },
281 { "cc_EQ", 4, {0, {{{0, 0}}}}, 0, 0 },
282 { "cc_NZ", 6, {0, {{{0, 0}}}}, 0, 0 },
283 { "cc_NE", 6, {0, {{{0, 0}}}}, 0, 0 },
284 { "cc_V", 8, {0, {{{0, 0}}}}, 0, 0 },
285 { "cc_NV", 10, {0, {{{0, 0}}}}, 0, 0 },
286 { "cc_N", 12, {0, {{{0, 0}}}}, 0, 0 },
287 { "cc_NN", 14, {0, {{{0, 0}}}}, 0, 0 },
288 { "cc_ULT", 16, {0, {{{0, 0}}}}, 0, 0 },
289 { "cc_UGE", 18, {0, {{{0, 0}}}}, 0, 0 },
290 { "cc_C", 16, {0, {{{0, 0}}}}, 0, 0 },
291 { "cc_NC", 18, {0, {{{0, 0}}}}, 0, 0 },
292 { "cc_SGT", 20, {0, {{{0, 0}}}}, 0, 0 },
293 { "cc_SLE", 22, {0, {{{0, 0}}}}, 0, 0 },
294 { "cc_SLT", 24, {0, {{{0, 0}}}}, 0, 0 },
295 { "cc_SGE", 26, {0, {{{0, 0}}}}, 0, 0 },
296 { "cc_UGT", 28, {0, {{{0, 0}}}}, 0, 0 },
297 { "cc_ULE", 30, {0, {{{0, 0}}}}, 0, 0 },
298 { "cc_nusr0", 1, {0, {{{0, 0}}}}, 0, 0 },
299 { "cc_nusr1", 3, {0, {{{0, 0}}}}, 0, 0 },
300 { "cc_usr0", 5, {0, {{{0, 0}}}}, 0, 0 },
301 { "cc_usr1", 7, {0, {{{0, 0}}}}, 0, 0 }
304 CGEN_KEYWORD xc16x_cgen_opval_extconditioncode_names
=
306 & xc16x_cgen_opval_extconditioncode_names_entries
[0],
311 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_grb8_names_entries
[] =
313 { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
314 { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
315 { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
316 { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
317 { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
318 { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
319 { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
320 { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
321 { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
322 { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
323 { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
324 { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
325 { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
326 { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
327 { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
328 { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
329 { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
330 { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
331 { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
332 { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
333 { "rl0", 240, {0, {{{0, 0}}}}, 0, 0 },
334 { "rh0", 241, {0, {{{0, 0}}}}, 0, 0 },
335 { "rl1", 242, {0, {{{0, 0}}}}, 0, 0 },
336 { "rh1", 243, {0, {{{0, 0}}}}, 0, 0 },
337 { "rl2", 244, {0, {{{0, 0}}}}, 0, 0 },
338 { "rh2", 245, {0, {{{0, 0}}}}, 0, 0 },
339 { "rl3", 246, {0, {{{0, 0}}}}, 0, 0 },
340 { "rh3", 247, {0, {{{0, 0}}}}, 0, 0 },
341 { "rl4", 248, {0, {{{0, 0}}}}, 0, 0 },
342 { "rh4", 249, {0, {{{0, 0}}}}, 0, 0 },
343 { "rl5", 250, {0, {{{0, 0}}}}, 0, 0 },
344 { "rh5", 251, {0, {{{0, 0}}}}, 0, 0 },
345 { "rl6", 252, {0, {{{0, 0}}}}, 0, 0 },
346 { "rh6", 253, {0, {{{0, 0}}}}, 0, 0 },
347 { "rl7", 254, {0, {{{0, 0}}}}, 0, 0 },
348 { "rh7", 255, {0, {{{0, 0}}}}, 0, 0 }
351 CGEN_KEYWORD xc16x_cgen_opval_grb8_names
=
353 & xc16x_cgen_opval_grb8_names_entries
[0],
358 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_r8_names_entries
[] =
360 { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
361 { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
362 { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
363 { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
364 { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
365 { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
366 { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
367 { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
368 { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
369 { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
370 { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
371 { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
372 { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
373 { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
374 { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
375 { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
376 { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
377 { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
378 { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
379 { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
380 { "r0", 240, {0, {{{0, 0}}}}, 0, 0 },
381 { "r1", 241, {0, {{{0, 0}}}}, 0, 0 },
382 { "r2", 242, {0, {{{0, 0}}}}, 0, 0 },
383 { "r3", 243, {0, {{{0, 0}}}}, 0, 0 },
384 { "r4", 244, {0, {{{0, 0}}}}, 0, 0 },
385 { "r5", 245, {0, {{{0, 0}}}}, 0, 0 },
386 { "r6", 246, {0, {{{0, 0}}}}, 0, 0 },
387 { "r7", 247, {0, {{{0, 0}}}}, 0, 0 },
388 { "r8", 248, {0, {{{0, 0}}}}, 0, 0 },
389 { "r9", 249, {0, {{{0, 0}}}}, 0, 0 },
390 { "r10", 250, {0, {{{0, 0}}}}, 0, 0 },
391 { "r11", 251, {0, {{{0, 0}}}}, 0, 0 },
392 { "r12", 252, {0, {{{0, 0}}}}, 0, 0 },
393 { "r13", 253, {0, {{{0, 0}}}}, 0, 0 },
394 { "r14", 254, {0, {{{0, 0}}}}, 0, 0 },
395 { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
398 CGEN_KEYWORD xc16x_cgen_opval_r8_names
=
400 & xc16x_cgen_opval_r8_names_entries
[0],
405 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regmem8_names_entries
[] =
407 { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
408 { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
409 { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
410 { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
411 { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
412 { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
413 { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
414 { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
415 { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
416 { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
417 { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
418 { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
419 { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
420 { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
421 { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
422 { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
423 { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
424 { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
425 { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
426 { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
427 { "r0", 240, {0, {{{0, 0}}}}, 0, 0 },
428 { "r1", 241, {0, {{{0, 0}}}}, 0, 0 },
429 { "r2", 242, {0, {{{0, 0}}}}, 0, 0 },
430 { "r3", 243, {0, {{{0, 0}}}}, 0, 0 },
431 { "r4", 244, {0, {{{0, 0}}}}, 0, 0 },
432 { "r5", 245, {0, {{{0, 0}}}}, 0, 0 },
433 { "r6", 246, {0, {{{0, 0}}}}, 0, 0 },
434 { "r7", 247, {0, {{{0, 0}}}}, 0, 0 },
435 { "r8", 248, {0, {{{0, 0}}}}, 0, 0 },
436 { "r9", 249, {0, {{{0, 0}}}}, 0, 0 },
437 { "r10", 250, {0, {{{0, 0}}}}, 0, 0 },
438 { "r11", 251, {0, {{{0, 0}}}}, 0, 0 },
439 { "r12", 252, {0, {{{0, 0}}}}, 0, 0 },
440 { "r13", 253, {0, {{{0, 0}}}}, 0, 0 },
441 { "r14", 254, {0, {{{0, 0}}}}, 0, 0 },
442 { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
445 CGEN_KEYWORD xc16x_cgen_opval_regmem8_names
=
447 & xc16x_cgen_opval_regmem8_names_entries
[0],
452 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regdiv8_names_entries
[] =
454 { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
455 { "r1", 17, {0, {{{0, 0}}}}, 0, 0 },
456 { "r2", 34, {0, {{{0, 0}}}}, 0, 0 },
457 { "r3", 51, {0, {{{0, 0}}}}, 0, 0 },
458 { "r4", 68, {0, {{{0, 0}}}}, 0, 0 },
459 { "r5", 85, {0, {{{0, 0}}}}, 0, 0 },
460 { "r6", 102, {0, {{{0, 0}}}}, 0, 0 },
461 { "r7", 119, {0, {{{0, 0}}}}, 0, 0 },
462 { "r8", 136, {0, {{{0, 0}}}}, 0, 0 },
463 { "r9", 153, {0, {{{0, 0}}}}, 0, 0 },
464 { "r10", 170, {0, {{{0, 0}}}}, 0, 0 },
465 { "r11", 187, {0, {{{0, 0}}}}, 0, 0 },
466 { "r12", 204, {0, {{{0, 0}}}}, 0, 0 },
467 { "r13", 221, {0, {{{0, 0}}}}, 0, 0 },
468 { "r14", 238, {0, {{{0, 0}}}}, 0, 0 },
469 { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
472 CGEN_KEYWORD xc16x_cgen_opval_regdiv8_names
=
474 & xc16x_cgen_opval_regdiv8_names_entries
[0],
479 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_reg0_name_entries
[] =
481 { "0x1", 1, {0, {{{0, 0}}}}, 0, 0 },
482 { "0x2", 2, {0, {{{0, 0}}}}, 0, 0 },
483 { "0x3", 3, {0, {{{0, 0}}}}, 0, 0 },
484 { "0x4", 4, {0, {{{0, 0}}}}, 0, 0 },
485 { "0x5", 5, {0, {{{0, 0}}}}, 0, 0 },
486 { "0x6", 6, {0, {{{0, 0}}}}, 0, 0 },
487 { "0x7", 7, {0, {{{0, 0}}}}, 0, 0 },
488 { "0x8", 8, {0, {{{0, 0}}}}, 0, 0 },
489 { "0x9", 9, {0, {{{0, 0}}}}, 0, 0 },
490 { "0xa", 10, {0, {{{0, 0}}}}, 0, 0 },
491 { "0xb", 11, {0, {{{0, 0}}}}, 0, 0 },
492 { "0xc", 12, {0, {{{0, 0}}}}, 0, 0 },
493 { "0xd", 13, {0, {{{0, 0}}}}, 0, 0 },
494 { "0xe", 14, {0, {{{0, 0}}}}, 0, 0 },
495 { "0xf", 15, {0, {{{0, 0}}}}, 0, 0 },
496 { "1", 1, {0, {{{0, 0}}}}, 0, 0 },
497 { "2", 2, {0, {{{0, 0}}}}, 0, 0 },
498 { "3", 3, {0, {{{0, 0}}}}, 0, 0 },
499 { "4", 4, {0, {{{0, 0}}}}, 0, 0 },
500 { "5", 5, {0, {{{0, 0}}}}, 0, 0 },
501 { "6", 6, {0, {{{0, 0}}}}, 0, 0 },
502 { "7", 7, {0, {{{0, 0}}}}, 0, 0 },
503 { "8", 8, {0, {{{0, 0}}}}, 0, 0 },
504 { "9", 9, {0, {{{0, 0}}}}, 0, 0 },
505 { "10", 10, {0, {{{0, 0}}}}, 0, 0 },
506 { "11", 11, {0, {{{0, 0}}}}, 0, 0 },
507 { "12", 12, {0, {{{0, 0}}}}, 0, 0 },
508 { "13", 13, {0, {{{0, 0}}}}, 0, 0 },
509 { "14", 14, {0, {{{0, 0}}}}, 0, 0 },
510 { "15", 15, {0, {{{0, 0}}}}, 0, 0 }
513 CGEN_KEYWORD xc16x_cgen_opval_reg0_name
=
515 & xc16x_cgen_opval_reg0_name_entries
[0],
520 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_reg0_name1_entries
[] =
522 { "0x1", 1, {0, {{{0, 0}}}}, 0, 0 },
523 { "0x2", 2, {0, {{{0, 0}}}}, 0, 0 },
524 { "0x3", 3, {0, {{{0, 0}}}}, 0, 0 },
525 { "0x4", 4, {0, {{{0, 0}}}}, 0, 0 },
526 { "0x5", 5, {0, {{{0, 0}}}}, 0, 0 },
527 { "0x6", 6, {0, {{{0, 0}}}}, 0, 0 },
528 { "0x7", 7, {0, {{{0, 0}}}}, 0, 0 },
529 { "1", 1, {0, {{{0, 0}}}}, 0, 0 },
530 { "2", 2, {0, {{{0, 0}}}}, 0, 0 },
531 { "3", 3, {0, {{{0, 0}}}}, 0, 0 },
532 { "4", 4, {0, {{{0, 0}}}}, 0, 0 },
533 { "5", 5, {0, {{{0, 0}}}}, 0, 0 },
534 { "6", 6, {0, {{{0, 0}}}}, 0, 0 },
535 { "7", 7, {0, {{{0, 0}}}}, 0, 0 }
538 CGEN_KEYWORD xc16x_cgen_opval_reg0_name1
=
540 & xc16x_cgen_opval_reg0_name1_entries
[0],
545 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regbmem8_names_entries
[] =
547 { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
548 { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
549 { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
550 { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
551 { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
552 { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
553 { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
554 { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
555 { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
556 { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
557 { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
558 { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
559 { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
560 { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
561 { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
562 { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
563 { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
564 { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
565 { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
566 { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
567 { "rl0", 240, {0, {{{0, 0}}}}, 0, 0 },
568 { "rh0", 241, {0, {{{0, 0}}}}, 0, 0 },
569 { "rl1", 242, {0, {{{0, 0}}}}, 0, 0 },
570 { "rh1", 243, {0, {{{0, 0}}}}, 0, 0 },
571 { "rl2", 244, {0, {{{0, 0}}}}, 0, 0 },
572 { "rh2", 245, {0, {{{0, 0}}}}, 0, 0 },
573 { "rl3", 246, {0, {{{0, 0}}}}, 0, 0 },
574 { "rh3", 247, {0, {{{0, 0}}}}, 0, 0 },
575 { "rl4", 248, {0, {{{0, 0}}}}, 0, 0 },
576 { "rh4", 249, {0, {{{0, 0}}}}, 0, 0 },
577 { "rl5", 250, {0, {{{0, 0}}}}, 0, 0 },
578 { "rh5", 251, {0, {{{0, 0}}}}, 0, 0 },
579 { "rl6", 252, {0, {{{0, 0}}}}, 0, 0 },
580 { "rh6", 253, {0, {{{0, 0}}}}, 0, 0 },
581 { "rl7", 254, {0, {{{0, 0}}}}, 0, 0 },
582 { "rh7", 255, {0, {{{0, 0}}}}, 0, 0 }
585 CGEN_KEYWORD xc16x_cgen_opval_regbmem8_names
=
587 & xc16x_cgen_opval_regbmem8_names_entries
[0],
592 static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_memgr8_names_entries
[] =
594 { "dpp0", 65024, {0, {{{0, 0}}}}, 0, 0 },
595 { "dpp1", 65026, {0, {{{0, 0}}}}, 0, 0 },
596 { "dpp2", 65028, {0, {{{0, 0}}}}, 0, 0 },
597 { "dpp3", 65030, {0, {{{0, 0}}}}, 0, 0 },
598 { "psw", 65296, {0, {{{0, 0}}}}, 0, 0 },
599 { "cp", 65040, {0, {{{0, 0}}}}, 0, 0 },
600 { "mdl", 65038, {0, {{{0, 0}}}}, 0, 0 },
601 { "mdh", 65036, {0, {{{0, 0}}}}, 0, 0 },
602 { "mdc", 65294, {0, {{{0, 0}}}}, 0, 0 },
603 { "sp", 65042, {0, {{{0, 0}}}}, 0, 0 },
604 { "csp", 65032, {0, {{{0, 0}}}}, 0, 0 },
605 { "vecseg", 65298, {0, {{{0, 0}}}}, 0, 0 },
606 { "stkov", 65044, {0, {{{0, 0}}}}, 0, 0 },
607 { "stkun", 65046, {0, {{{0, 0}}}}, 0, 0 },
608 { "cpucon1", 65048, {0, {{{0, 0}}}}, 0, 0 },
609 { "cpucon2", 65050, {0, {{{0, 0}}}}, 0, 0 },
610 { "zeros", 65308, {0, {{{0, 0}}}}, 0, 0 },
611 { "ones", 65310, {0, {{{0, 0}}}}, 0, 0 },
612 { "spseg", 65292, {0, {{{0, 0}}}}, 0, 0 },
613 { "tfr", 65452, {0, {{{0, 0}}}}, 0, 0 }
616 CGEN_KEYWORD xc16x_cgen_opval_memgr8_names
=
618 & xc16x_cgen_opval_memgr8_names_entries
[0],
624 /* The hardware table. */
626 #define A(a) (1 << CGEN_HW_##a)
628 const CGEN_HW_ENTRY xc16x_cgen_hw_table
[] =
630 { "h-memory", HW_H_MEMORY
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
631 { "h-sint", HW_H_SINT
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
632 { "h-uint", HW_H_UINT
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
633 { "h-addr", HW_H_ADDR
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
634 { "h-iaddr", HW_H_IADDR
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
635 { "h-pc", HW_H_PC
, CGEN_ASM_NONE
, 0, { 0|A(PC
), { { { (1<<MACH_BASE
), 0 } } } } },
636 { "h-gr", HW_H_GR
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_gr_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
637 { "h-cr", HW_H_CR
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_gr_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
638 { "h-ext", HW_H_EXT
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_ext_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
639 { "h-psw", HW_H_PSW
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_psw_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
640 { "h-grb", HW_H_GRB
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_grb_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
641 { "h-cc", HW_H_CC
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_conditioncode_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
642 { "h-ecc", HW_H_ECC
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_extconditioncode_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
643 { "h-grb8", HW_H_GRB8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_grb8_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
644 { "h-r8", HW_H_R8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_r8_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
645 { "h-regmem8", HW_H_REGMEM8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_regmem8_names
, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
646 { "h-regdiv8", HW_H_REGDIV8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_regdiv8_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
647 { "h-r0", HW_H_R0
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_reg0_name
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
648 { "h-r01", HW_H_R01
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_reg0_name1
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
649 { "h-regbmem8", HW_H_REGBMEM8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_regbmem8_names
, { 0|A(CACHE_ADDR
)|A(PROFILE
), { { { (1<<MACH_BASE
), 0 } } } } },
650 { "h-memgr8", HW_H_MEMGR8
, CGEN_ASM_KEYWORD
, (PTR
) & xc16x_cgen_opval_memgr8_names
, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
651 { "h-cond", HW_H_COND
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
652 { "h-cbit", HW_H_CBIT
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
653 { "h-sgtdis", HW_H_SGTDIS
, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
654 { 0, 0, CGEN_ASM_NONE
, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } }
660 /* The instruction field table. */
662 #define A(a) (1 << CGEN_IFLD_##a)
664 const CGEN_IFLD xc16x_cgen_ifld_table
[] =
666 { XC16X_F_NIL
, "f-nil", 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
667 { XC16X_F_ANYOF
, "f-anyof", 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
668 { XC16X_F_OP1
, "f-op1", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
669 { XC16X_F_OP2
, "f-op2", 0, 32, 3, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
670 { XC16X_F_CONDCODE
, "f-condcode", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
671 { XC16X_F_ICONDCODE
, "f-icondcode", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
672 { XC16X_F_RCOND
, "f-rcond", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
673 { XC16X_F_QCOND
, "f-qcond", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
674 { XC16X_F_EXTCCODE
, "f-extccode", 0, 32, 15, 5, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
675 { XC16X_F_R0
, "f-r0", 0, 32, 9, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
676 { XC16X_F_R1
, "f-r1", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
677 { XC16X_F_R2
, "f-r2", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
678 { XC16X_F_R3
, "f-r3", 0, 32, 12, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
679 { XC16X_F_R4
, "f-r4", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
680 { XC16X_F_UIMM2
, "f-uimm2", 0, 32, 13, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
681 { XC16X_F_UIMM3
, "f-uimm3", 0, 32, 10, 3, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
682 { XC16X_F_UIMM4
, "f-uimm4", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
683 { XC16X_F_UIMM7
, "f-uimm7", 0, 32, 15, 7, { 0|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
684 { XC16X_F_UIMM8
, "f-uimm8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
685 { XC16X_F_UIMM16
, "f-uimm16", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
686 { XC16X_F_MEMORY
, "f-memory", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
687 { XC16X_F_MEMGR8
, "f-memgr8", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
688 { XC16X_F_REL8
, "f-rel8", 0, 32, 15, 8, { 0|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
689 { XC16X_F_RELHI8
, "f-relhi8", 0, 32, 23, 8, { 0|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
690 { XC16X_F_REG8
, "f-reg8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
691 { XC16X_F_REGMEM8
, "f-regmem8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
692 { XC16X_F_REGOFF8
, "f-regoff8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
693 { XC16X_F_REGHI8
, "f-reghi8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
694 { XC16X_F_REGB8
, "f-regb8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
695 { XC16X_F_SEG8
, "f-seg8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
696 { XC16X_F_SEGNUM8
, "f-segnum8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
697 { XC16X_F_MASK8
, "f-mask8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
698 { XC16X_F_PAGENUM
, "f-pagenum", 0, 32, 25, 10, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
699 { XC16X_F_DATAHI8
, "f-datahi8", 0, 32, 31, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
700 { XC16X_F_DATA8
, "f-data8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
701 { XC16X_F_OFFSET16
, "f-offset16", 0, 32, 31, 16, { 0|A(RELOC
)|A(ABS_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
702 { XC16X_F_OP_BIT1
, "f-op-bit1", 0, 32, 11, 1, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
703 { XC16X_F_OP_BIT2
, "f-op-bit2", 0, 32, 11, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
704 { XC16X_F_OP_BIT4
, "f-op-bit4", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
705 { XC16X_F_OP_BIT3
, "f-op-bit3", 0, 32, 10, 3, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
706 { XC16X_F_OP_2BIT
, "f-op-2bit", 0, 32, 10, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
707 { XC16X_F_OP_BITONE
, "f-op-bitone", 0, 32, 10, 1, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
708 { XC16X_F_OP_ONEBIT
, "f-op-onebit", 0, 32, 9, 1, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
709 { XC16X_F_OP_1BIT
, "f-op-1bit", 0, 32, 8, 1, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
710 { XC16X_F_OP_LBIT4
, "f-op-lbit4", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
711 { XC16X_F_OP_LBIT2
, "f-op-lbit2", 0, 32, 15, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
712 { XC16X_F_OP_BIT8
, "f-op-bit8", 0, 32, 31, 8, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
713 { XC16X_F_OP_BIT16
, "f-op-bit16", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
714 { XC16X_F_QBIT
, "f-qbit", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
715 { XC16X_F_QLOBIT
, "f-qlobit", 0, 32, 31, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
716 { XC16X_F_QHIBIT
, "f-qhibit", 0, 32, 27, 4, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
717 { XC16X_F_QLOBIT2
, "f-qlobit2", 0, 32, 27, 2, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
718 { XC16X_F_POF
, "f-pof", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE
), 0 } } } } },
719 { 0, 0, 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE
), 0 } } } } }
726 /* multi ifield declarations */
730 /* multi ifield definitions */
733 /* The operand table. */
735 #define A(a) (1 << CGEN_OPERAND_##a)
736 #define OPERAND(op) XC16X_OPERAND_##op
738 const CGEN_OPERAND xc16x_cgen_operand_table
[] =
740 /* pc: program counter */
741 { "pc", XC16X_OPERAND_PC
, HW_H_PC
, 0, 0,
742 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_NIL
] } },
743 { 0|A(SEM_ONLY
), { { { (1<<MACH_BASE
), 0 } } } } },
744 /* sr: source register */
745 { "sr", XC16X_OPERAND_SR
, HW_H_GR
, 11, 4,
746 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R2
] } },
747 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
748 /* dr: destination register */
749 { "dr", XC16X_OPERAND_DR
, HW_H_GR
, 15, 4,
750 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R1
] } },
751 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
752 /* dri: destination register */
753 { "dri", XC16X_OPERAND_DRI
, HW_H_GR
, 11, 4,
754 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R4
] } },
755 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
756 /* srb: source register */
757 { "srb", XC16X_OPERAND_SRB
, HW_H_GRB
, 11, 4,
758 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R2
] } },
759 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
760 /* drb: destination register */
761 { "drb", XC16X_OPERAND_DRB
, HW_H_GRB
, 15, 4,
762 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R1
] } },
763 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
764 /* sr2: 2 bit source register */
765 { "sr2", XC16X_OPERAND_SR2
, HW_H_GR
, 9, 2,
766 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R0
] } },
767 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
768 /* src1: source register 1 */
769 { "src1", XC16X_OPERAND_SRC1
, HW_H_GR
, 15, 4,
770 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R1
] } },
771 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
772 /* src2: source register 2 */
773 { "src2", XC16X_OPERAND_SRC2
, HW_H_GR
, 11, 4,
774 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_R2
] } },
775 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
776 /* srdiv: source register 2 */
777 { "srdiv", XC16X_OPERAND_SRDIV
, HW_H_REGDIV8
, 15, 8,
778 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REG8
] } },
779 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
780 /* RegNam: PSW bits */
781 { "RegNam", XC16X_OPERAND_REGNAM
, HW_H_PSW
, 15, 8,
782 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REG8
] } },
783 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
784 /* uimm2: 2 bit unsigned number */
785 { "uimm2", XC16X_OPERAND_UIMM2
, HW_H_EXT
, 13, 2,
786 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM2
] } },
787 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
788 /* uimm3: 3 bit unsigned number */
789 { "uimm3", XC16X_OPERAND_UIMM3
, HW_H_R01
, 10, 3,
790 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM3
] } },
791 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
792 /* uimm4: 4 bit unsigned number */
793 { "uimm4", XC16X_OPERAND_UIMM4
, HW_H_UINT
, 15, 4,
794 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM4
] } },
795 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
796 /* uimm7: 7 bit trap number */
797 { "uimm7", XC16X_OPERAND_UIMM7
, HW_H_UINT
, 15, 7,
798 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM7
] } },
799 { 0|A(HASH_PREFIX
)|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
800 /* uimm8: 8 bit unsigned immediate */
801 { "uimm8", XC16X_OPERAND_UIMM8
, HW_H_UINT
, 23, 8,
802 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM8
] } },
803 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
804 /* uimm16: 16 bit unsigned immediate */
805 { "uimm16", XC16X_OPERAND_UIMM16
, HW_H_UINT
, 31, 16,
806 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM16
] } },
807 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
808 /* upof16: 16 bit unsigned immediate */
809 { "upof16", XC16X_OPERAND_UPOF16
, HW_H_ADDR
, 31, 16,
810 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_MEMORY
] } },
811 { 0|A(POF_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
812 /* reg8: 8 bit word register number */
813 { "reg8", XC16X_OPERAND_REG8
, HW_H_R8
, 15, 8,
814 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REG8
] } },
815 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
816 /* regmem8: 8 bit word register number */
817 { "regmem8", XC16X_OPERAND_REGMEM8
, HW_H_REGMEM8
, 15, 8,
818 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGMEM8
] } },
819 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
820 /* regbmem8: 8 bit byte register number */
821 { "regbmem8", XC16X_OPERAND_REGBMEM8
, HW_H_REGBMEM8
, 15, 8,
822 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGMEM8
] } },
823 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
824 /* regoff8: 8 bit word register number */
825 { "regoff8", XC16X_OPERAND_REGOFF8
, HW_H_R8
, 15, 8,
826 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGOFF8
] } },
827 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
828 /* reghi8: 8 bit word register number */
829 { "reghi8", XC16X_OPERAND_REGHI8
, HW_H_R8
, 23, 8,
830 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGHI8
] } },
831 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
832 /* regb8: 8 bit byte register number */
833 { "regb8", XC16X_OPERAND_REGB8
, HW_H_GRB8
, 15, 8,
834 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGB8
] } },
835 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
836 /* genreg: 8 bit word register number */
837 { "genreg", XC16X_OPERAND_GENREG
, HW_H_R8
, 15, 8,
838 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REGB8
] } },
839 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
840 /* seg: 8 bit segment number */
841 { "seg", XC16X_OPERAND_SEG
, HW_H_UINT
, 15, 8,
842 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_SEG8
] } },
843 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
844 /* seghi8: 8 bit hi segment number */
845 { "seghi8", XC16X_OPERAND_SEGHI8
, HW_H_UINT
, 23, 8,
846 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_SEGNUM8
] } },
847 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
848 /* caddr: 16 bit address offset */
849 { "caddr", XC16X_OPERAND_CADDR
, HW_H_ADDR
, 31, 16,
850 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OFFSET16
] } },
851 { 0|A(RELOC
)|A(ABS_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
852 /* rel: 8 bit signed relative offset */
853 { "rel", XC16X_OPERAND_REL
, HW_H_SINT
, 15, 8,
854 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_REL8
] } },
855 { 0|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
856 /* relhi: hi 8 bit signed relative offset */
857 { "relhi", XC16X_OPERAND_RELHI
, HW_H_SINT
, 23, 8,
858 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_RELHI8
] } },
859 { 0|A(RELOC
)|A(PCREL_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
860 /* condbit: condition bit */
861 { "condbit", XC16X_OPERAND_CONDBIT
, HW_H_COND
, 0, 0,
862 { 0, { (const PTR
) 0 } },
863 { 0|A(SEM_ONLY
), { { { (1<<MACH_BASE
), 0 } } } } },
864 /* bit1: gap of 1 bit */
865 { "bit1", XC16X_OPERAND_BIT1
, HW_H_UINT
, 11, 1,
866 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_BIT1
] } },
867 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
868 /* bit2: gap of 2 bits */
869 { "bit2", XC16X_OPERAND_BIT2
, HW_H_UINT
, 11, 2,
870 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_BIT2
] } },
871 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
872 /* bit4: gap of 4 bits */
873 { "bit4", XC16X_OPERAND_BIT4
, HW_H_UINT
, 11, 4,
874 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_BIT4
] } },
875 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
876 /* lbit4: gap of 4 bits */
877 { "lbit4", XC16X_OPERAND_LBIT4
, HW_H_UINT
, 15, 4,
878 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_LBIT4
] } },
879 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
880 /* lbit2: gap of 2 bits */
881 { "lbit2", XC16X_OPERAND_LBIT2
, HW_H_UINT
, 15, 2,
882 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_LBIT2
] } },
883 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
884 /* bit8: gap of 8 bits */
885 { "bit8", XC16X_OPERAND_BIT8
, HW_H_UINT
, 31, 8,
886 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_BIT8
] } },
887 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
888 /* u4: gap of 4 bits */
889 { "u4", XC16X_OPERAND_U4
, HW_H_R0
, 15, 4,
890 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM4
] } },
891 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
892 /* bitone: field of 1 bit */
893 { "bitone", XC16X_OPERAND_BITONE
, HW_H_UINT
, 9, 1,
894 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_ONEBIT
] } },
895 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
896 /* bit01: field of 1 bit */
897 { "bit01", XC16X_OPERAND_BIT01
, HW_H_UINT
, 8, 1,
898 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OP_1BIT
] } },
899 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
900 /* cond: condition code */
901 { "cond", XC16X_OPERAND_COND
, HW_H_CC
, 7, 4,
902 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_CONDCODE
] } },
903 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
904 /* icond: indirect condition code */
905 { "icond", XC16X_OPERAND_ICOND
, HW_H_CC
, 15, 4,
906 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_ICONDCODE
] } },
907 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
908 /* extcond: extended condition code */
909 { "extcond", XC16X_OPERAND_EXTCOND
, HW_H_ECC
, 15, 5,
910 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_EXTCCODE
] } },
911 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
912 /* memory: 16 bit memory */
913 { "memory", XC16X_OPERAND_MEMORY
, HW_H_ADDR
, 31, 16,
914 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_MEMORY
] } },
915 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
916 /* memgr8: 16 bit memory */
917 { "memgr8", XC16X_OPERAND_MEMGR8
, HW_H_MEMGR8
, 31, 16,
918 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_MEMGR8
] } },
919 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
920 /* cbit: carry bit */
921 { "cbit", XC16X_OPERAND_CBIT
, HW_H_CBIT
, 0, 0,
922 { 0, { (const PTR
) 0 } },
923 { 0|A(SEM_ONLY
), { { { (1<<MACH_BASE
), 0 } } } } },
925 { "qbit", XC16X_OPERAND_QBIT
, HW_H_UINT
, 7, 4,
926 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_QBIT
] } },
927 { 0|A(DOT_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
928 /* qlobit: bit addr */
929 { "qlobit", XC16X_OPERAND_QLOBIT
, HW_H_UINT
, 31, 4,
930 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_QLOBIT
] } },
931 { 0|A(DOT_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
932 /* qhibit: bit addr */
933 { "qhibit", XC16X_OPERAND_QHIBIT
, HW_H_UINT
, 27, 4,
934 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_QHIBIT
] } },
935 { 0|A(DOT_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
936 /* mask8: 8 bit mask */
937 { "mask8", XC16X_OPERAND_MASK8
, HW_H_UINT
, 23, 8,
938 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_MASK8
] } },
939 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
940 /* masklo8: 8 bit mask */
941 { "masklo8", XC16X_OPERAND_MASKLO8
, HW_H_UINT
, 31, 8,
942 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_DATAHI8
] } },
943 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
944 /* pagenum: 10 bit page number */
945 { "pagenum", XC16X_OPERAND_PAGENUM
, HW_H_UINT
, 25, 10,
946 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_PAGENUM
] } },
947 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
948 /* data8: 8 bit data */
949 { "data8", XC16X_OPERAND_DATA8
, HW_H_UINT
, 23, 8,
950 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_DATA8
] } },
951 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
952 /* datahi8: 8 bit data */
953 { "datahi8", XC16X_OPERAND_DATAHI8
, HW_H_UINT
, 31, 8,
954 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_DATAHI8
] } },
955 { 0|A(HASH_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
956 /* sgtdisbit: segmentation enable bit */
957 { "sgtdisbit", XC16X_OPERAND_SGTDISBIT
, HW_H_SGTDIS
, 0, 0,
958 { 0, { (const PTR
) 0 } },
959 { 0|A(SEM_ONLY
), { { { (1<<MACH_BASE
), 0 } } } } },
960 /* upag16: 16 bit unsigned immediate */
961 { "upag16", XC16X_OPERAND_UPAG16
, HW_H_UINT
, 31, 16,
962 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_UIMM16
] } },
963 { 0|A(PAG_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
964 /* useg8: 8 bit segment */
965 { "useg8", XC16X_OPERAND_USEG8
, HW_H_UINT
, 15, 8,
966 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_SEG8
] } },
967 { 0|A(SEG_PREFIX
), { { { (1<<MACH_BASE
), 0 } } } } },
968 /* useg16: 16 bit address offset */
969 { "useg16", XC16X_OPERAND_USEG16
, HW_H_UINT
, 31, 16,
970 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OFFSET16
] } },
971 { 0|A(SEG_PREFIX
)|A(RELOC
)|A(ABS_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
972 /* usof16: 16 bit address offset */
973 { "usof16", XC16X_OPERAND_USOF16
, HW_H_UINT
, 31, 16,
974 { 0, { (const PTR
) &xc16x_cgen_ifld_table
[XC16X_F_OFFSET16
] } },
975 { 0|A(SOF_PREFIX
)|A(RELOC
)|A(ABS_ADDR
), { { { (1<<MACH_BASE
), 0 } } } } },
977 { "hash", XC16X_OPERAND_HASH
, HW_H_SINT
, 0, 0,
978 { 0, { (const PTR
) 0 } },
979 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
981 { "dot", XC16X_OPERAND_DOT
, HW_H_SINT
, 0, 0,
982 { 0, { (const PTR
) 0 } },
983 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
984 /* pof: pof: prefix */
985 { "pof", XC16X_OPERAND_POF
, HW_H_SINT
, 0, 0,
986 { 0, { (const PTR
) 0 } },
987 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
988 /* pag: pag: prefix */
989 { "pag", XC16X_OPERAND_PAG
, HW_H_SINT
, 0, 0,
990 { 0, { (const PTR
) 0 } },
991 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
992 /* sof: sof: prefix */
993 { "sof", XC16X_OPERAND_SOF
, HW_H_SINT
, 0, 0,
994 { 0, { (const PTR
) 0 } },
995 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
996 /* segm: seg: prefix */
997 { "segm", XC16X_OPERAND_SEGM
, HW_H_SINT
, 0, 0,
998 { 0, { (const PTR
) 0 } },
999 { 0, { { { (1<<MACH_BASE
), 0 } } } } },
1002 { 0, { (const PTR
) 0 } },
1003 { 0, { { { (1<<MACH_BASE
), 0 } } } } }
1009 /* The instruction table. */
1011 #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
1012 #define A(a) (1 << CGEN_INSN_##a)
1014 static const CGEN_IBASE xc16x_cgen_insn_table
[MAX_INSNS
] =
1016 /* Special null first entry.
1017 A `num' value of zero is thus invalid.
1018 Also, the special `invalid' insn resides here. */
1019 { 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_NONE
, 0 } } } } },
1020 /* add $reg8,$pof$upof16 */
1022 XC16X_INSN_ADDRPOF
, "addrpof", "add", 32,
1023 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1025 /* sub $reg8,$pof$upof16 */
1027 XC16X_INSN_SUBRPOF
, "subrpof", "sub", 32,
1028 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1030 /* addb $regb8,$pof$upof16 */
1032 XC16X_INSN_ADDBRPOF
, "addbrpof", "addb", 32,
1033 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1035 /* subb $regb8,$pof$upof16 */
1037 XC16X_INSN_SUBBRPOF
, "subbrpof", "subb", 32,
1038 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1040 /* add $reg8,$pag$upag16 */
1042 XC16X_INSN_ADDRPAG
, "addrpag", "add", 32,
1043 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1045 /* sub $reg8,$pag$upag16 */
1047 XC16X_INSN_SUBRPAG
, "subrpag", "sub", 32,
1048 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1050 /* addb $regb8,$pag$upag16 */
1052 XC16X_INSN_ADDBRPAG
, "addbrpag", "addb", 32,
1053 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1055 /* subb $regb8,$pag$upag16 */
1057 XC16X_INSN_SUBBRPAG
, "subbrpag", "subb", 32,
1058 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1060 /* addc $reg8,$pof$upof16 */
1062 XC16X_INSN_ADDCRPOF
, "addcrpof", "addc", 32,
1063 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1065 /* subc $reg8,$pof$upof16 */
1067 XC16X_INSN_SUBCRPOF
, "subcrpof", "subc", 32,
1068 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1070 /* addcb $regb8,$pof$upof16 */
1072 XC16X_INSN_ADDCBRPOF
, "addcbrpof", "addcb", 32,
1073 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1075 /* subcb $regb8,$pof$upof16 */
1077 XC16X_INSN_SUBCBRPOF
, "subcbrpof", "subcb", 32,
1078 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1080 /* addc $reg8,$pag$upag16 */
1082 XC16X_INSN_ADDCRPAG
, "addcrpag", "addc", 32,
1083 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1085 /* subc $reg8,$pag$upag16 */
1087 XC16X_INSN_SUBCRPAG
, "subcrpag", "subc", 32,
1088 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1090 /* addcb $regb8,$pag$upag16 */
1092 XC16X_INSN_ADDCBRPAG
, "addcbrpag", "addcb", 32,
1093 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1095 /* subcb $regb8,$pag$upag16 */
1097 XC16X_INSN_SUBCBRPAG
, "subcbrpag", "subcb", 32,
1098 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1100 /* add $pof$upof16,$reg8 */
1102 XC16X_INSN_ADDRPOFR
, "addrpofr", "add", 32,
1103 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1105 /* sub $pof$upof16,$reg8 */
1107 XC16X_INSN_SUBRPOFR
, "subrpofr", "sub", 32,
1108 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1110 /* addb $pof$upof16,$regb8 */
1112 XC16X_INSN_ADDBRPOFR
, "addbrpofr", "addb", 32,
1113 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1115 /* subb $pof$upof16,$regb8 */
1117 XC16X_INSN_SUBBRPOFR
, "subbrpofr", "subb", 32,
1118 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1120 /* addc $pof$upof16,$reg8 */
1122 XC16X_INSN_ADDCRPOFR
, "addcrpofr", "addc", 32,
1123 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1125 /* subc $pof$upof16,$reg8 */
1127 XC16X_INSN_SUBCRPOFR
, "subcrpofr", "subc", 32,
1128 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1130 /* addcb $pof$upof16,$regb8 */
1132 XC16X_INSN_ADDCBRPOFR
, "addcbrpofr", "addcb", 32,
1133 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1135 /* subcb $pof$upof16,$regb8 */
1137 XC16X_INSN_SUBCBRPOFR
, "subcbrpofr", "subcb", 32,
1138 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1140 /* add $reg8,$hash$pof$uimm16 */
1142 XC16X_INSN_ADDRHPOF
, "addrhpof", "add", 32,
1143 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1145 /* sub $reg8,$hash$pof$uimm16 */
1147 XC16X_INSN_SUBRHPOF
, "subrhpof", "sub", 32,
1148 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1150 /* add $reg8,$hash$pag$uimm16 */
1152 XC16X_INSN_ADDBRHPOF
, "addbrhpof", "add", 32,
1153 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1155 /* sub $reg8,$hash$pag$uimm16 */
1157 XC16X_INSN_SUBBRHPOF
, "subbrhpof", "sub", 32,
1158 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1160 /* add $dr,$hash$pof$uimm3 */
1162 XC16X_INSN_ADDRHPOF3
, "addrhpof3", "add", 16,
1163 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1165 /* sub $dr,$hash$pof$uimm3 */
1167 XC16X_INSN_SUBRHPOF3
, "subrhpof3", "sub", 16,
1168 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1170 /* addb $drb,$hash$pag$uimm3 */
1172 XC16X_INSN_ADDBRHPAG3
, "addbrhpag3", "addb", 16,
1173 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1175 /* subb $drb,$hash$pag$uimm3 */
1177 XC16X_INSN_SUBBRHPAG3
, "subbrhpag3", "subb", 16,
1178 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1180 /* add $dr,$hash$pag$uimm3 */
1182 XC16X_INSN_ADDRHPAG3
, "addrhpag3", "add", 16,
1183 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1185 /* sub $dr,$hash$pag$uimm3 */
1187 XC16X_INSN_SUBRHPAG3
, "subrhpag3", "sub", 16,
1188 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1190 /* addb $drb,$hash$pof$uimm3 */
1192 XC16X_INSN_ADDBRHPOF3
, "addbrhpof3", "addb", 16,
1193 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1195 /* subb $drb,$hash$pof$uimm3 */
1197 XC16X_INSN_SUBBRHPOF3
, "subbrhpof3", "subb", 16,
1198 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1200 /* addb $regb8,$hash$pof$uimm8 */
1202 XC16X_INSN_ADDRBHPOF
, "addrbhpof", "addb", 32,
1203 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1205 /* subb $regb8,$hash$pof$uimm8 */
1207 XC16X_INSN_SUBRBHPOF
, "subrbhpof", "subb", 32,
1208 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1210 /* addb $regb8,$hash$pag$uimm8 */
1212 XC16X_INSN_ADDBRHPAG
, "addbrhpag", "addb", 32,
1213 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1215 /* subb $regb8,$hash$pag$uimm8 */
1217 XC16X_INSN_SUBBRHPAG
, "subbrhpag", "subb", 32,
1218 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1220 /* addc $reg8,$hash$pof$uimm16 */
1222 XC16X_INSN_ADDCRHPOF
, "addcrhpof", "addc", 32,
1223 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1225 /* subc $reg8,$hash$pof$uimm16 */
1227 XC16X_INSN_SUBCRHPOF
, "subcrhpof", "subc", 32,
1228 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1230 /* addc $reg8,$hash$pag$uimm16 */
1232 XC16X_INSN_ADDCBRHPOF
, "addcbrhpof", "addc", 32,
1233 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1235 /* subc $reg8,$hash$pag$uimm16 */
1237 XC16X_INSN_SUBCBRHPOF
, "subcbrhpof", "subc", 32,
1238 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1240 /* addc $dr,$hash$pof$uimm3 */
1242 XC16X_INSN_ADDCRHPOF3
, "addcrhpof3", "addc", 16,
1243 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1245 /* subc $dr,$hash$pof$uimm3 */
1247 XC16X_INSN_SUBCRHPOF3
, "subcrhpof3", "subc", 16,
1248 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1250 /* addcb $drb,$hash$pag$uimm3 */
1252 XC16X_INSN_ADDCBRHPAG3
, "addcbrhpag3", "addcb", 16,
1253 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1255 /* subcb $drb,$hash$pag$uimm3 */
1257 XC16X_INSN_SUBCBRHPAG3
, "subcbrhpag3", "subcb", 16,
1258 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1260 /* addc $dr,$hash$pag$uimm3 */
1262 XC16X_INSN_ADDCRHPAG3
, "addcrhpag3", "addc", 16,
1263 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1265 /* subc $dr,$hash$pag$uimm3 */
1267 XC16X_INSN_SUBCRHPAG3
, "subcrhpag3", "subc", 16,
1268 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1270 /* addcb $drb,$hash$pof$uimm3 */
1272 XC16X_INSN_ADDCBRHPOF3
, "addcbrhpof3", "addcb", 16,
1273 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1275 /* subcb $drb,$hash$pof$uimm3 */
1277 XC16X_INSN_SUBCBRHPOF3
, "subcbrhpof3", "subcb", 16,
1278 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1280 /* addcb $regb8,$hash$pof$uimm8 */
1282 XC16X_INSN_ADDCRBHPOF
, "addcrbhpof", "addcb", 32,
1283 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1285 /* subcb $regb8,$hash$pof$uimm8 */
1287 XC16X_INSN_SUBCRBHPOF
, "subcrbhpof", "subcb", 32,
1288 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1290 /* addcb $regb8,$hash$pag$uimm8 */
1292 XC16X_INSN_ADDCBRHPAG
, "addcbrhpag", "addcb", 32,
1293 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1295 /* subcb $regb8,$hash$pag$uimm8 */
1297 XC16X_INSN_SUBCBRHPAG
, "subcbrhpag", "subcb", 32,
1298 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1300 /* add $dr,$hash$uimm3 */
1302 XC16X_INSN_ADDRI
, "addri", "add", 16,
1303 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1305 /* sub $dr,$hash$uimm3 */
1307 XC16X_INSN_SUBRI
, "subri", "sub", 16,
1308 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1310 /* addb $drb,$hash$uimm3 */
1312 XC16X_INSN_ADDBRI
, "addbri", "addb", 16,
1313 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1315 /* subb $drb,$hash$uimm3 */
1317 XC16X_INSN_SUBBRI
, "subbri", "subb", 16,
1318 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1320 /* add $reg8,$hash$uimm16 */
1322 XC16X_INSN_ADDRIM
, "addrim", "add", 32,
1323 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1325 /* sub $reg8,$hash$uimm16 */
1327 XC16X_INSN_SUBRIM
, "subrim", "sub", 32,
1328 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1330 /* addb $regb8,$hash$uimm8 */
1332 XC16X_INSN_ADDBRIM
, "addbrim", "addb", 32,
1333 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1335 /* subb $regb8,$hash$uimm8 */
1337 XC16X_INSN_SUBBRIM
, "subbrim", "subb", 32,
1338 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1340 /* addc $dr,$hash$uimm3 */
1342 XC16X_INSN_ADDCRI
, "addcri", "addc", 16,
1343 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1345 /* subc $dr,$hash$uimm3 */
1347 XC16X_INSN_SUBCRI
, "subcri", "subc", 16,
1348 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1350 /* addcb $drb,$hash$uimm3 */
1352 XC16X_INSN_ADDCBRI
, "addcbri", "addcb", 16,
1353 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1355 /* subcb $drb,$hash$uimm3 */
1357 XC16X_INSN_SUBCBRI
, "subcbri", "subcb", 16,
1358 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1360 /* addc $reg8,$hash$uimm16 */
1362 XC16X_INSN_ADDCRIM
, "addcrim", "addc", 32,
1363 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1365 /* subc $reg8,$hash$uimm16 */
1367 XC16X_INSN_SUBCRIM
, "subcrim", "subc", 32,
1368 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1370 /* addcb $regb8,$hash$uimm8 */
1372 XC16X_INSN_ADDCBRIM
, "addcbrim", "addcb", 32,
1373 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1375 /* subcb $regb8,$hash$uimm8 */
1377 XC16X_INSN_SUBCBRIM
, "subcbrim", "subcb", 32,
1378 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1382 XC16X_INSN_ADDR
, "addr", "add", 16,
1383 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1387 XC16X_INSN_SUBR
, "subr", "sub", 16,
1388 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1390 /* addb $drb,$srb */
1392 XC16X_INSN_ADDBR
, "addbr", "addb", 16,
1393 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1395 /* subb $drb,$srb */
1397 XC16X_INSN_SUBBR
, "subbr", "subb", 16,
1398 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1400 /* add $dr,[$sr2] */
1402 XC16X_INSN_ADD2
, "add2", "add", 16,
1403 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1405 /* sub $dr,[$sr2] */
1407 XC16X_INSN_SUB2
, "sub2", "sub", 16,
1408 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1410 /* addb $drb,[$sr2] */
1412 XC16X_INSN_ADDB2
, "addb2", "addb", 16,
1413 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1415 /* subb $drb,[$sr2] */
1417 XC16X_INSN_SUBB2
, "subb2", "subb", 16,
1418 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1420 /* add $dr,[$sr2+] */
1422 XC16X_INSN_ADD2I
, "add2i", "add", 16,
1423 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1425 /* sub $dr,[$sr2+] */
1427 XC16X_INSN_SUB2I
, "sub2i", "sub", 16,
1428 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1430 /* addb $drb,[$sr2+] */
1432 XC16X_INSN_ADDB2I
, "addb2i", "addb", 16,
1433 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1435 /* subb $drb,[$sr2+] */
1437 XC16X_INSN_SUBB2I
, "subb2i", "subb", 16,
1438 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1442 XC16X_INSN_ADDCR
, "addcr", "addc", 16,
1443 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1447 XC16X_INSN_SUBCR
, "subcr", "subc", 16,
1448 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1450 /* addcb $drb,$srb */
1452 XC16X_INSN_ADDBCR
, "addbcr", "addcb", 16,
1453 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1455 /* subcb $drb,$srb */
1457 XC16X_INSN_SUBBCR
, "subbcr", "subcb", 16,
1458 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1460 /* addc $dr,[$sr2] */
1462 XC16X_INSN_ADDCR2
, "addcr2", "addc", 16,
1463 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1465 /* subc $dr,[$sr2] */
1467 XC16X_INSN_SUBCR2
, "subcr2", "subc", 16,
1468 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1470 /* addcb $drb,[$sr2] */
1472 XC16X_INSN_ADDBCR2
, "addbcr2", "addcb", 16,
1473 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1475 /* subcb $drb,[$sr2] */
1477 XC16X_INSN_SUBBCR2
, "subbcr2", "subcb", 16,
1478 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1480 /* addc $dr,[$sr2+] */
1482 XC16X_INSN_ADDCR2I
, "addcr2i", "addc", 16,
1483 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1485 /* subc $dr,[$sr2+] */
1487 XC16X_INSN_SUBCR2I
, "subcr2i", "subc", 16,
1488 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1490 /* addcb $drb,[$sr2+] */
1492 XC16X_INSN_ADDBCR2I
, "addbcr2i", "addcb", 16,
1493 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1495 /* subcb $drb,[$sr2+] */
1497 XC16X_INSN_SUBBCR2I
, "subbcr2i", "subcb", 16,
1498 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1500 /* add $regmem8,$memgr8 */
1502 XC16X_INSN_ADDRM2
, "addrm2", "add", 32,
1503 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1505 /* add $memgr8,$regmem8 */
1507 XC16X_INSN_ADDRM3
, "addrm3", "add", 32,
1508 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1510 /* add $reg8,$memory */
1512 XC16X_INSN_ADDRM
, "addrm", "add", 32,
1513 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1515 /* add $memory,$reg8 */
1517 XC16X_INSN_ADDRM1
, "addrm1", "add", 32,
1518 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1520 /* sub $regmem8,$memgr8 */
1522 XC16X_INSN_SUBRM3
, "subrm3", "sub", 32,
1523 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1525 /* sub $memgr8,$regmem8 */
1527 XC16X_INSN_SUBRM2
, "subrm2", "sub", 32,
1528 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1530 /* sub $reg8,$memory */
1532 XC16X_INSN_SUBRM1
, "subrm1", "sub", 32,
1533 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1535 /* sub $memory,$reg8 */
1537 XC16X_INSN_SUBRM
, "subrm", "sub", 32,
1538 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1540 /* addb $regbmem8,$memgr8 */
1542 XC16X_INSN_ADDBRM2
, "addbrm2", "addb", 32,
1543 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1545 /* addb $memgr8,$regbmem8 */
1547 XC16X_INSN_ADDBRM3
, "addbrm3", "addb", 32,
1548 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1550 /* addb $regb8,$memory */
1552 XC16X_INSN_ADDBRM
, "addbrm", "addb", 32,
1553 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1555 /* addb $memory,$regb8 */
1557 XC16X_INSN_ADDBRM1
, "addbrm1", "addb", 32,
1558 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1560 /* subb $regbmem8,$memgr8 */
1562 XC16X_INSN_SUBBRM3
, "subbrm3", "subb", 32,
1563 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1565 /* subb $memgr8,$regbmem8 */
1567 XC16X_INSN_SUBBRM2
, "subbrm2", "subb", 32,
1568 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1570 /* subb $regb8,$memory */
1572 XC16X_INSN_SUBBRM1
, "subbrm1", "subb", 32,
1573 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1575 /* subb $memory,$regb8 */
1577 XC16X_INSN_SUBBRM
, "subbrm", "subb", 32,
1578 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1580 /* addc $regmem8,$memgr8 */
1582 XC16X_INSN_ADDCRM2
, "addcrm2", "addc", 32,
1583 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1585 /* addc $memgr8,$regmem8 */
1587 XC16X_INSN_ADDCRM3
, "addcrm3", "addc", 32,
1588 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1590 /* addc $reg8,$memory */
1592 XC16X_INSN_ADDCRM
, "addcrm", "addc", 32,
1593 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1595 /* addc $memory,$reg8 */
1597 XC16X_INSN_ADDCRM1
, "addcrm1", "addc", 32,
1598 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1600 /* subc $regmem8,$memgr8 */
1602 XC16X_INSN_SUBCRM3
, "subcrm3", "subc", 32,
1603 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1605 /* subc $memgr8,$regmem8 */
1607 XC16X_INSN_SUBCRM2
, "subcrm2", "subc", 32,
1608 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1610 /* subc $reg8,$memory */
1612 XC16X_INSN_SUBCRM1
, "subcrm1", "subc", 32,
1613 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1615 /* subc $memory,$reg8 */
1617 XC16X_INSN_SUBCRM
, "subcrm", "subc", 32,
1618 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1620 /* addcb $regbmem8,$memgr8 */
1622 XC16X_INSN_ADDCBRM2
, "addcbrm2", "addcb", 32,
1623 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1625 /* addcb $memgr8,$regbmem8 */
1627 XC16X_INSN_ADDCBRM3
, "addcbrm3", "addcb", 32,
1628 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1630 /* addcb $regb8,$memory */
1632 XC16X_INSN_ADDCBRM
, "addcbrm", "addcb", 32,
1633 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1635 /* addcb $memory,$regb8 */
1637 XC16X_INSN_ADDCBRM1
, "addcbrm1", "addcb", 32,
1638 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1640 /* subcb $regbmem8,$memgr8 */
1642 XC16X_INSN_SUBCBRM3
, "subcbrm3", "subcb", 32,
1643 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1645 /* subcb $memgr8,$regbmem8 */
1647 XC16X_INSN_SUBCBRM2
, "subcbrm2", "subcb", 32,
1648 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1650 /* subcb $regb8,$memory */
1652 XC16X_INSN_SUBCBRM1
, "subcbrm1", "subcb", 32,
1653 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1655 /* subcb $memory,$regb8 */
1657 XC16X_INSN_SUBCBRM
, "subcbrm", "subcb", 32,
1658 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1660 /* mul $src1,$src2 */
1662 XC16X_INSN_MULS
, "muls", "mul", 16,
1663 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1665 /* mulu $src1,$src2 */
1667 XC16X_INSN_MULU
, "mulu", "mulu", 16,
1668 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1672 XC16X_INSN_DIV
, "div", "div", 16,
1673 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1677 XC16X_INSN_DIVL
, "divl", "divl", 16,
1678 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1682 XC16X_INSN_DIVLU
, "divlu", "divlu", 16,
1683 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1687 XC16X_INSN_DIVU
, "divu", "divu", 16,
1688 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1692 XC16X_INSN_CPL
, "cpl", "cpl", 16,
1693 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1697 XC16X_INSN_CPLB
, "cplb", "cplb", 16,
1698 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1702 XC16X_INSN_NEG
, "neg", "neg", 16,
1703 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1707 XC16X_INSN_NEGB
, "negb", "negb", 16,
1708 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1712 XC16X_INSN_ANDR
, "andr", "and", 16,
1713 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1717 XC16X_INSN_ORR
, "orr", "or", 16,
1718 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1722 XC16X_INSN_XORR
, "xorr", "xor", 16,
1723 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1725 /* andb $drb,$srb */
1727 XC16X_INSN_ANDBR
, "andbr", "andb", 16,
1728 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1732 XC16X_INSN_ORBR
, "orbr", "orb", 16,
1733 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1735 /* xorb $drb,$srb */
1737 XC16X_INSN_XORBR
, "xorbr", "xorb", 16,
1738 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1740 /* and $dr,$hash$uimm3 */
1742 XC16X_INSN_ANDRI
, "andri", "and", 16,
1743 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1745 /* or $dr,$hash$uimm3 */
1747 XC16X_INSN_ORRI
, "orri", "or", 16,
1748 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1750 /* xor $dr,$hash$uimm3 */
1752 XC16X_INSN_XORRI
, "xorri", "xor", 16,
1753 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1755 /* andb $drb,$hash$uimm3 */
1757 XC16X_INSN_ANDBRI
, "andbri", "andb", 16,
1758 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1760 /* orb $drb,$hash$uimm3 */
1762 XC16X_INSN_ORBRI
, "orbri", "orb", 16,
1763 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1765 /* xorb $drb,$hash$uimm3 */
1767 XC16X_INSN_XORBRI
, "xorbri", "xorb", 16,
1768 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1770 /* and $reg8,$hash$uimm16 */
1772 XC16X_INSN_ANDRIM
, "andrim", "and", 32,
1773 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1775 /* or $reg8,$hash$uimm16 */
1777 XC16X_INSN_ORRIM
, "orrim", "or", 32,
1778 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1780 /* xor $reg8,$hash$uimm16 */
1782 XC16X_INSN_XORRIM
, "xorrim", "xor", 32,
1783 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1785 /* andb $regb8,$hash$uimm8 */
1787 XC16X_INSN_ANDBRIM
, "andbrim", "andb", 32,
1788 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1790 /* orb $regb8,$hash$uimm8 */
1792 XC16X_INSN_ORBRIM
, "orbrim", "orb", 32,
1793 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1795 /* xorb $regb8,$hash$uimm8 */
1797 XC16X_INSN_XORBRIM
, "xorbrim", "xorb", 32,
1798 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1800 /* and $dr,[$sr2] */
1802 XC16X_INSN_AND2
, "and2", "and", 16,
1803 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1807 XC16X_INSN_OR2
, "or2", "or", 16,
1808 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1810 /* xor $dr,[$sr2] */
1812 XC16X_INSN_XOR2
, "xor2", "xor", 16,
1813 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1815 /* andb $drb,[$sr2] */
1817 XC16X_INSN_ANDB2
, "andb2", "andb", 16,
1818 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1820 /* orb $drb,[$sr2] */
1822 XC16X_INSN_ORB2
, "orb2", "orb", 16,
1823 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1825 /* xorb $drb,[$sr2] */
1827 XC16X_INSN_XORB2
, "xorb2", "xorb", 16,
1828 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1830 /* and $dr,[$sr2+] */
1832 XC16X_INSN_AND2I
, "and2i", "and", 16,
1833 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1835 /* or $dr,[$sr2+] */
1837 XC16X_INSN_OR2I
, "or2i", "or", 16,
1838 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1840 /* xor $dr,[$sr2+] */
1842 XC16X_INSN_XOR2I
, "xor2i", "xor", 16,
1843 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1845 /* andb $drb,[$sr2+] */
1847 XC16X_INSN_ANDB2I
, "andb2i", "andb", 16,
1848 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1850 /* orb $drb,[$sr2+] */
1852 XC16X_INSN_ORB2I
, "orb2i", "orb", 16,
1853 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1855 /* xorb $drb,[$sr2+] */
1857 XC16X_INSN_XORB2I
, "xorb2i", "xorb", 16,
1858 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1860 /* and $pof$reg8,$upof16 */
1862 XC16X_INSN_ANDPOFR
, "andpofr", "and", 32,
1863 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1865 /* or $pof$reg8,$upof16 */
1867 XC16X_INSN_ORPOFR
, "orpofr", "or", 32,
1868 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1870 /* xor $pof$reg8,$upof16 */
1872 XC16X_INSN_XORPOFR
, "xorpofr", "xor", 32,
1873 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1875 /* andb $pof$regb8,$upof16 */
1877 XC16X_INSN_ANDBPOFR
, "andbpofr", "andb", 32,
1878 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1880 /* orb $pof$regb8,$upof16 */
1882 XC16X_INSN_ORBPOFR
, "orbpofr", "orb", 32,
1883 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1885 /* xorb $pof$regb8,$upof16 */
1887 XC16X_INSN_XORBPOFR
, "xorbpofr", "xorb", 32,
1888 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1890 /* and $pof$upof16,$reg8 */
1892 XC16X_INSN_ANDRPOFR
, "andrpofr", "and", 32,
1893 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1895 /* or $pof$upof16,$reg8 */
1897 XC16X_INSN_ORRPOFR
, "orrpofr", "or", 32,
1898 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1900 /* xor $pof$upof16,$reg8 */
1902 XC16X_INSN_XORRPOFR
, "xorrpofr", "xor", 32,
1903 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1905 /* andb $pof$upof16,$regb8 */
1907 XC16X_INSN_ANDBRPOFR
, "andbrpofr", "andb", 32,
1908 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1910 /* orb $pof$upof16,$regb8 */
1912 XC16X_INSN_ORBRPOFR
, "orbrpofr", "orb", 32,
1913 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1915 /* xorb $pof$upof16,$regb8 */
1917 XC16X_INSN_XORBRPOFR
, "xorbrpofr", "xorb", 32,
1918 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1920 /* and $regmem8,$memgr8 */
1922 XC16X_INSN_ANDRM2
, "andrm2", "and", 32,
1923 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1925 /* and $memgr8,$regmem8 */
1927 XC16X_INSN_ANDRM3
, "andrm3", "and", 32,
1928 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1930 /* and $reg8,$memory */
1932 XC16X_INSN_ANDRM
, "andrm", "and", 32,
1933 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1935 /* and $memory,$reg8 */
1937 XC16X_INSN_ANDRM1
, "andrm1", "and", 32,
1938 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1940 /* or $regmem8,$memgr8 */
1942 XC16X_INSN_ORRM3
, "orrm3", "or", 32,
1943 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1945 /* or $memgr8,$regmem8 */
1947 XC16X_INSN_ORRM2
, "orrm2", "or", 32,
1948 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1950 /* or $reg8,$memory */
1952 XC16X_INSN_ORRM1
, "orrm1", "or", 32,
1953 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1955 /* or $memory,$reg8 */
1957 XC16X_INSN_ORRM
, "orrm", "or", 32,
1958 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1960 /* xor $regmem8,$memgr8 */
1962 XC16X_INSN_XORRM3
, "xorrm3", "xor", 32,
1963 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1965 /* xor $memgr8,$regmem8 */
1967 XC16X_INSN_XORRM2
, "xorrm2", "xor", 32,
1968 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1970 /* xor $reg8,$memory */
1972 XC16X_INSN_XORRM1
, "xorrm1", "xor", 32,
1973 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1975 /* xor $memory,$reg8 */
1977 XC16X_INSN_XORRM
, "xorrm", "xor", 32,
1978 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1980 /* andb $regbmem8,$memgr8 */
1982 XC16X_INSN_ANDBRM2
, "andbrm2", "andb", 32,
1983 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1985 /* andb $memgr8,$regbmem8 */
1987 XC16X_INSN_ANDBRM3
, "andbrm3", "andb", 32,
1988 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1990 /* andb $regb8,$memory */
1992 XC16X_INSN_ANDBRM
, "andbrm", "andb", 32,
1993 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
1995 /* andb $memory,$regb8 */
1997 XC16X_INSN_ANDBRM1
, "andbrm1", "andb", 32,
1998 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2000 /* orb $regbmem8,$memgr8 */
2002 XC16X_INSN_ORBRM3
, "orbrm3", "orb", 32,
2003 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2005 /* orb $memgr8,$regbmem8 */
2007 XC16X_INSN_ORBRM2
, "orbrm2", "orb", 32,
2008 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2010 /* orb $regb8,$memory */
2012 XC16X_INSN_ORBRM1
, "orbrm1", "orb", 32,
2013 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2015 /* orb $memory,$regb8 */
2017 XC16X_INSN_ORBRM
, "orbrm", "orb", 32,
2018 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2020 /* xorb $regbmem8,$memgr8 */
2022 XC16X_INSN_XORBRM3
, "xorbrm3", "xorb", 32,
2023 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2025 /* xorb $memgr8,$regbmem8 */
2027 XC16X_INSN_XORBRM2
, "xorbrm2", "xorb", 32,
2028 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2030 /* xorb $regb8,$memory */
2032 XC16X_INSN_XORBRM1
, "xorbrm1", "xorb", 32,
2033 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2035 /* xorb $memory,$regb8 */
2037 XC16X_INSN_XORBRM
, "xorbrm", "xorb", 32,
2038 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2042 XC16X_INSN_MOVR
, "movr", "mov", 16,
2043 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2045 /* movb $drb,$srb */
2047 XC16X_INSN_MOVRB
, "movrb", "movb", 16,
2048 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2050 /* mov $dri,$hash$u4 */
2052 XC16X_INSN_MOVRI
, "movri", "mov", 16,
2053 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2055 /* movb $srb,$hash$u4 */
2057 XC16X_INSN_MOVBRI
, "movbri", "movb", 16,
2058 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2060 /* mov $reg8,$hash$uimm16 */
2062 XC16X_INSN_MOVI
, "movi", "mov", 32,
2063 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2065 /* movb $regb8,$hash$uimm8 */
2067 XC16X_INSN_MOVBI
, "movbi", "movb", 32,
2068 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2072 XC16X_INSN_MOVR2
, "movr2", "mov", 16,
2073 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2075 /* movb $drb,[$sr] */
2077 XC16X_INSN_MOVBR2
, "movbr2", "movb", 16,
2078 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2082 XC16X_INSN_MOVRI2
, "movri2", "mov", 16,
2083 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2085 /* movb [$sr],$drb */
2087 XC16X_INSN_MOVBRI2
, "movbri2", "movb", 16,
2088 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2090 /* mov [-$sr],$dr */
2092 XC16X_INSN_MOVRI3
, "movri3", "mov", 16,
2093 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2095 /* movb [-$sr],$drb */
2097 XC16X_INSN_MOVBRI3
, "movbri3", "movb", 16,
2098 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2100 /* mov $dr,[$sr+] */
2102 XC16X_INSN_MOV2I
, "mov2i", "mov", 16,
2103 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2105 /* movb $drb,[$sr+] */
2107 XC16X_INSN_MOVB2I
, "movb2i", "movb", 16,
2108 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2110 /* mov [$dr],[$sr] */
2112 XC16X_INSN_MOV6I
, "mov6i", "mov", 16,
2113 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2115 /* movb [$dr],[$sr] */
2117 XC16X_INSN_MOVB6I
, "movb6i", "movb", 16,
2118 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2120 /* mov [$dr+],[$sr] */
2122 XC16X_INSN_MOV7I
, "mov7i", "mov", 16,
2123 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2125 /* movb [$dr+],[$sr] */
2127 XC16X_INSN_MOVB7I
, "movb7i", "movb", 16,
2128 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2130 /* mov [$dr],[$sr+] */
2132 XC16X_INSN_MOV8I
, "mov8i", "mov", 16,
2133 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2135 /* movb [$dr],[$sr+] */
2137 XC16X_INSN_MOVB8I
, "movb8i", "movb", 16,
2138 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2140 /* mov $dr,[$sr+$hash$uimm16] */
2142 XC16X_INSN_MOV9I
, "mov9i", "mov", 32,
2143 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2145 /* movb $drb,[$sr+$hash$uimm16] */
2147 XC16X_INSN_MOVB9I
, "movb9i", "movb", 32,
2148 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2150 /* mov [$sr+$hash$uimm16],$dr */
2152 XC16X_INSN_MOV10I
, "mov10i", "mov", 32,
2153 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2155 /* movb [$sr+$hash$uimm16],$drb */
2157 XC16X_INSN_MOVB10I
, "movb10i", "movb", 32,
2158 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2160 /* mov [$src2],$memory */
2162 XC16X_INSN_MOVRI11
, "movri11", "mov", 32,
2163 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2165 /* movb [$src2],$memory */
2167 XC16X_INSN_MOVBRI11
, "movbri11", "movb", 32,
2168 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2170 /* mov $memory,[$src2] */
2172 XC16X_INSN_MOVRI12
, "movri12", "mov", 32,
2173 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2175 /* movb $memory,[$src2] */
2177 XC16X_INSN_MOVBRI12
, "movbri12", "movb", 32,
2178 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2180 /* mov $regoff8,$hash$pof$upof16 */
2182 XC16X_INSN_MOVEHM5
, "movehm5", "mov", 32,
2183 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2185 /* mov $regoff8,$hash$pag$upag16 */
2187 XC16X_INSN_MOVEHM6
, "movehm6", "mov", 32,
2188 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2190 /* mov $regoff8,$hash$segm$useg16 */
2192 XC16X_INSN_MOVEHM7
, "movehm7", "mov", 32,
2193 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2195 /* mov $regoff8,$hash$sof$usof16 */
2197 XC16X_INSN_MOVEHM8
, "movehm8", "mov", 32,
2198 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2200 /* movb $regb8,$hash$pof$uimm8 */
2202 XC16X_INSN_MOVEHM9
, "movehm9", "movb", 32,
2203 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2205 /* movb $regoff8,$hash$pag$uimm8 */
2207 XC16X_INSN_MOVEHM10
, "movehm10", "movb", 32,
2208 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2210 /* mov $regoff8,$pof$upof16 */
2212 XC16X_INSN_MOVRMP
, "movrmp", "mov", 32,
2213 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2215 /* movb $regb8,$pof$upof16 */
2217 XC16X_INSN_MOVRMP1
, "movrmp1", "movb", 32,
2218 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2220 /* mov $regoff8,$pag$upag16 */
2222 XC16X_INSN_MOVRMP2
, "movrmp2", "mov", 32,
2223 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2225 /* movb $regb8,$pag$upag16 */
2227 XC16X_INSN_MOVRMP3
, "movrmp3", "movb", 32,
2228 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2230 /* mov $pof$upof16,$regoff8 */
2232 XC16X_INSN_MOVRMP4
, "movrmp4", "mov", 32,
2233 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2235 /* movb $pof$upof16,$regb8 */
2237 XC16X_INSN_MOVRMP5
, "movrmp5", "movb", 32,
2238 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2240 /* mov $dri,$hash$pof$u4 */
2242 XC16X_INSN_MOVEHM1
, "movehm1", "mov", 16,
2243 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2245 /* movb $srb,$hash$pof$u4 */
2247 XC16X_INSN_MOVEHM2
, "movehm2", "movb", 16,
2248 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2250 /* mov $dri,$hash$pag$u4 */
2252 XC16X_INSN_MOVEHM3
, "movehm3", "mov", 16,
2253 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2255 /* movb $srb,$hash$pag$u4 */
2257 XC16X_INSN_MOVEHM4
, "movehm4", "movb", 16,
2258 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2260 /* mov $regmem8,$memgr8 */
2262 XC16X_INSN_MVE12
, "mve12", "mov", 32,
2263 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2265 /* mov $memgr8,$regmem8 */
2267 XC16X_INSN_MVE13
, "mve13", "mov", 32,
2268 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2270 /* mov $reg8,$memory */
2272 XC16X_INSN_MOVER12
, "mover12", "mov", 32,
2273 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2275 /* mov $memory,$reg8 */
2277 XC16X_INSN_MVR13
, "mvr13", "mov", 32,
2278 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2280 /* movb $regbmem8,$memgr8 */
2282 XC16X_INSN_MVER12
, "mver12", "movb", 32,
2283 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2285 /* movb $memgr8,$regbmem8 */
2287 XC16X_INSN_MVER13
, "mver13", "movb", 32,
2288 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2290 /* movb $regb8,$memory */
2292 XC16X_INSN_MOVR12
, "movr12", "movb", 32,
2293 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2295 /* movb $memory,$regb8 */
2297 XC16X_INSN_MOVR13
, "movr13", "movb", 32,
2298 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2300 /* movbs $sr,$drb */
2302 XC16X_INSN_MOVBSRR
, "movbsrr", "movbs", 16,
2303 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2305 /* movbz $sr,$drb */
2307 XC16X_INSN_MOVBZRR
, "movbzrr", "movbz", 16,
2308 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2310 /* movbs $regmem8,$pof$upof16 */
2312 XC16X_INSN_MOVBSRPOFM
, "movbsrpofm", "movbs", 32,
2313 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2315 /* movbs $pof$upof16,$regbmem8 */
2317 XC16X_INSN_MOVBSPOFMR
, "movbspofmr", "movbs", 32,
2318 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2320 /* movbz $reg8,$pof$upof16 */
2322 XC16X_INSN_MOVBZRPOFM
, "movbzrpofm", "movbz", 32,
2323 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2325 /* movbz $pof$upof16,$regb8 */
2327 XC16X_INSN_MOVBZPOFMR
, "movbzpofmr", "movbz", 32,
2328 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2330 /* movbs $regmem8,$memgr8 */
2332 XC16X_INSN_MOVEBS14
, "movebs14", "movbs", 32,
2333 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2335 /* movbs $memgr8,$regbmem8 */
2337 XC16X_INSN_MOVEBS15
, "movebs15", "movbs", 32,
2338 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2340 /* movbs $reg8,$memory */
2342 XC16X_INSN_MOVERBS14
, "moverbs14", "movbs", 32,
2343 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2345 /* movbs $memory,$regb8 */
2347 XC16X_INSN_MOVRBS15
, "movrbs15", "movbs", 32,
2348 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2350 /* movbz $regmem8,$memgr8 */
2352 XC16X_INSN_MOVEBZ14
, "movebz14", "movbz", 32,
2353 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2355 /* movbz $memgr8,$regbmem8 */
2357 XC16X_INSN_MOVEBZ15
, "movebz15", "movbz", 32,
2358 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2360 /* movbz $reg8,$memory */
2362 XC16X_INSN_MOVERBZ14
, "moverbz14", "movbz", 32,
2363 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2365 /* movbz $memory,$regb8 */
2367 XC16X_INSN_MOVRBZ15
, "movrbz15", "movbz", 32,
2368 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2370 /* movbs $sr,$drb */
2372 XC16X_INSN_MOVRBS
, "movrbs", "movbs", 16,
2373 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2375 /* movbz $sr,$drb */
2377 XC16X_INSN_MOVRBZ
, "movrbz", "movbz", 16,
2378 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2380 /* jmpa+ $extcond,$caddr */
2382 XC16X_INSN_JMPA0
, "jmpa0", "jmpa+", 32,
2383 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2385 /* jmpa $extcond,$caddr */
2387 XC16X_INSN_JMPA1
, "jmpa1", "jmpa", 32,
2388 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2390 /* jmpa- $extcond,$caddr */
2392 XC16X_INSN_JMPA_
, "jmpa-", "jmpa-", 32,
2393 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2395 /* jmpi $icond,[$sr] */
2397 XC16X_INSN_JMPI
, "jmpi", "jmpi", 16,
2398 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2400 /* jmpr $cond,$rel */
2402 XC16X_INSN_JMPR_NENZ
, "jmpr_nenz", "jmpr", 16,
2403 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2405 /* jmpr $cond,$rel */
2407 XC16X_INSN_JMPR_SGT
, "jmpr_sgt", "jmpr", 16,
2408 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2410 /* jmpr $cond,$rel */
2412 XC16X_INSN_JMPR_Z
, "jmpr_z", "jmpr", 16,
2413 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2415 /* jmpr $cond,$rel */
2417 XC16X_INSN_JMPR_V
, "jmpr_v", "jmpr", 16,
2418 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2420 /* jmpr $cond,$rel */
2422 XC16X_INSN_JMPR_NV
, "jmpr_nv", "jmpr", 16,
2423 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2425 /* jmpr $cond,$rel */
2427 XC16X_INSN_JMPR_N
, "jmpr_n", "jmpr", 16,
2428 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2430 /* jmpr $cond,$rel */
2432 XC16X_INSN_JMPR_NN
, "jmpr_nn", "jmpr", 16,
2433 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2435 /* jmpr $cond,$rel */
2437 XC16X_INSN_JMPR_C
, "jmpr_c", "jmpr", 16,
2438 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2440 /* jmpr $cond,$rel */
2442 XC16X_INSN_JMPR_NC
, "jmpr_nc", "jmpr", 16,
2443 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2445 /* jmpr $cond,$rel */
2447 XC16X_INSN_JMPR_EQ
, "jmpr_eq", "jmpr", 16,
2448 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2450 /* jmpr $cond,$rel */
2452 XC16X_INSN_JMPR_NE
, "jmpr_ne", "jmpr", 16,
2453 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2455 /* jmpr $cond,$rel */
2457 XC16X_INSN_JMPR_ULT
, "jmpr_ult", "jmpr", 16,
2458 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2460 /* jmpr $cond,$rel */
2462 XC16X_INSN_JMPR_ULE
, "jmpr_ule", "jmpr", 16,
2463 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2465 /* jmpr $cond,$rel */
2467 XC16X_INSN_JMPR_UGE
, "jmpr_uge", "jmpr", 16,
2468 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2470 /* jmpr $cond,$rel */
2472 XC16X_INSN_JMPR_UGT
, "jmpr_ugt", "jmpr", 16,
2473 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2475 /* jmpr $cond,$rel */
2477 XC16X_INSN_JMPR_SLE
, "jmpr_sle", "jmpr", 16,
2478 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2480 /* jmpr $cond,$rel */
2482 XC16X_INSN_JMPR_SGE
, "jmpr_sge", "jmpr", 16,
2483 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2485 /* jmpr $cond,$rel */
2487 XC16X_INSN_JMPR_NET
, "jmpr_net", "jmpr", 16,
2488 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2490 /* jmpr $cond,$rel */
2492 XC16X_INSN_JMPR_UC
, "jmpr_uc", "jmpr", 16,
2493 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2495 /* jmpr $cond,$rel */
2497 XC16X_INSN_JMPR_SLT
, "jmpr_slt", "jmpr", 16,
2498 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2500 /* jmps $hash$segm$useg8,$hash$sof$usof16 */
2502 XC16X_INSN_JMPSEG
, "jmpseg", "jmps", 32,
2503 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2505 /* jmps $seg,$caddr */
2507 XC16X_INSN_JMPS
, "jmps", "jmps", 32,
2508 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2510 /* jb $genreg$dot$qlobit,$relhi */
2512 XC16X_INSN_JB
, "jb", "jb", 32,
2513 { 0|A(UNCOND_CTI
)|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2515 /* jbc $genreg$dot$qlobit,$relhi */
2517 XC16X_INSN_JBC
, "jbc", "jbc", 32,
2518 { 0|A(UNCOND_CTI
)|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2520 /* jnb $genreg$dot$qlobit,$relhi */
2522 XC16X_INSN_JNB
, "jnb", "jnb", 32,
2523 { 0|A(UNCOND_CTI
)|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2525 /* jnbs $genreg$dot$qlobit,$relhi */
2527 XC16X_INSN_JNBS
, "jnbs", "jnbs", 32,
2528 { 0|A(UNCOND_CTI
)|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2530 /* calla+ $extcond,$caddr */
2532 XC16X_INSN_CALLA0
, "calla0", "calla+", 32,
2533 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2535 /* calla $extcond,$caddr */
2537 XC16X_INSN_CALLA1
, "calla1", "calla", 32,
2538 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2540 /* calla- $extcond,$caddr */
2542 XC16X_INSN_CALLA_
, "calla-", "calla-", 32,
2543 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2545 /* calli $icond,[$sr] */
2547 XC16X_INSN_CALLI
, "calli", "calli", 16,
2548 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2552 XC16X_INSN_CALLR
, "callr", "callr", 16,
2553 { 0|A(COND_CTI
)|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2555 /* calls $hash$segm$useg8,$hash$sof$usof16 */
2557 XC16X_INSN_CALLSEG
, "callseg", "calls", 32,
2558 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2560 /* calls $seg,$caddr */
2562 XC16X_INSN_CALLS
, "calls", "calls", 32,
2563 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2565 /* pcall $reg8,$caddr */
2567 XC16X_INSN_PCALL
, "pcall", "pcall", 32,
2568 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2570 /* trap $hash$uimm7 */
2572 XC16X_INSN_TRAP
, "trap", "trap", 16,
2573 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2577 XC16X_INSN_RET
, "ret", "ret", 16,
2578 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2582 XC16X_INSN_RETS
, "rets", "rets", 16,
2583 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2587 XC16X_INSN_RETP
, "retp", "retp", 16,
2588 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2592 XC16X_INSN_RETI
, "reti", "reti", 16,
2593 { 0|A(UNCOND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2597 XC16X_INSN_POP
, "pop", "pop", 16,
2598 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2602 XC16X_INSN_PUSH
, "push", "push", 16,
2603 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2605 /* scxt $reg8,$hash$uimm16 */
2607 XC16X_INSN_SCXTI
, "scxti", "scxt", 32,
2608 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2610 /* scxt $reg8,$pof$upof16 */
2612 XC16X_INSN_SCXTRPOFM
, "scxtrpofm", "scxt", 32,
2613 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2615 /* scxt $regmem8,$memgr8 */
2617 XC16X_INSN_SCXTMG
, "scxtmg", "scxt", 32,
2618 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2620 /* scxt $reg8,$memory */
2622 XC16X_INSN_SCXTM
, "scxtm", "scxt", 32,
2623 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2627 XC16X_INSN_NOP
, "nop", "nop", 16,
2628 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2632 XC16X_INSN_SRSTM
, "srstm", "srst", 32,
2633 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2637 XC16X_INSN_IDLEM
, "idlem", "idle", 32,
2638 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2642 XC16X_INSN_PWRDNM
, "pwrdnm", "pwrdn", 32,
2643 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2647 XC16X_INSN_DISWDTM
, "diswdtm", "diswdt", 32,
2648 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2652 XC16X_INSN_ENWDTM
, "enwdtm", "enwdt", 32,
2653 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2657 XC16X_INSN_EINITM
, "einitm", "einit", 32,
2658 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2662 XC16X_INSN_SRVWDTM
, "srvwdtm", "srvwdt", 32,
2663 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2667 XC16X_INSN_SBRK
, "sbrk", "sbrk", 16,
2668 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2670 /* atomic $hash$uimm2 */
2672 XC16X_INSN_ATOMIC
, "atomic", "atomic", 16,
2673 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2675 /* extr $hash$uimm2 */
2677 XC16X_INSN_EXTR
, "extr", "extr", 16,
2678 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2680 /* extp $sr,$hash$uimm2 */
2682 XC16X_INSN_EXTP
, "extp", "extp", 16,
2683 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2685 /* extp $hash$pagenum,$hash$uimm2 */
2687 XC16X_INSN_EXTP1
, "extp1", "extp", 32,
2688 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2690 /* extp $hash$pag$upag16,$hash$uimm2 */
2692 XC16X_INSN_EXTPG1
, "extpg1", "extp", 32,
2693 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2695 /* extpr $sr,$hash$uimm2 */
2697 XC16X_INSN_EXTPR
, "extpr", "extpr", 16,
2698 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2700 /* extpr $hash$pagenum,$hash$uimm2 */
2702 XC16X_INSN_EXTPR1
, "extpr1", "extpr", 32,
2703 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2705 /* exts $sr,$hash$uimm2 */
2707 XC16X_INSN_EXTS
, "exts", "exts", 16,
2708 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2710 /* exts $hash$seghi8,$hash$uimm2 */
2712 XC16X_INSN_EXTS1
, "exts1", "exts", 32,
2713 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2715 /* extsr $sr,$hash$uimm2 */
2717 XC16X_INSN_EXTSR
, "extsr", "extsr", 16,
2718 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2720 /* extsr $hash$seghi8,$hash$uimm2 */
2722 XC16X_INSN_EXTSR1
, "extsr1", "extsr", 32,
2723 { 0|A(COND_CTI
), { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2727 XC16X_INSN_PRIOR
, "prior", "prior", 16,
2728 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2732 XC16X_INSN_BCLR18
, "bclr18", "bclr", 16,
2733 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2735 /* bclr $reg8$dot$qbit */
2737 XC16X_INSN_BCLR0
, "bclr0", "bclr", 16,
2738 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2740 /* bclr $reg8$dot$qbit */
2742 XC16X_INSN_BCLR1
, "bclr1", "bclr", 16,
2743 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2745 /* bclr $reg8$dot$qbit */
2747 XC16X_INSN_BCLR2
, "bclr2", "bclr", 16,
2748 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2750 /* bclr $reg8$dot$qbit */
2752 XC16X_INSN_BCLR3
, "bclr3", "bclr", 16,
2753 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2755 /* bclr $reg8$dot$qbit */
2757 XC16X_INSN_BCLR4
, "bclr4", "bclr", 16,
2758 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2760 /* bclr $reg8$dot$qbit */
2762 XC16X_INSN_BCLR5
, "bclr5", "bclr", 16,
2763 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2765 /* bclr $reg8$dot$qbit */
2767 XC16X_INSN_BCLR6
, "bclr6", "bclr", 16,
2768 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2770 /* bclr $reg8$dot$qbit */
2772 XC16X_INSN_BCLR7
, "bclr7", "bclr", 16,
2773 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2775 /* bclr $reg8$dot$qbit */
2777 XC16X_INSN_BCLR8
, "bclr8", "bclr", 16,
2778 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2780 /* bclr $reg8$dot$qbit */
2782 XC16X_INSN_BCLR9
, "bclr9", "bclr", 16,
2783 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2785 /* bclr $reg8$dot$qbit */
2787 XC16X_INSN_BCLR10
, "bclr10", "bclr", 16,
2788 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2790 /* bclr $reg8$dot$qbit */
2792 XC16X_INSN_BCLR11
, "bclr11", "bclr", 16,
2793 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2795 /* bclr $reg8$dot$qbit */
2797 XC16X_INSN_BCLR12
, "bclr12", "bclr", 16,
2798 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2800 /* bclr $reg8$dot$qbit */
2802 XC16X_INSN_BCLR13
, "bclr13", "bclr", 16,
2803 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2805 /* bclr $reg8$dot$qbit */
2807 XC16X_INSN_BCLR14
, "bclr14", "bclr", 16,
2808 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2810 /* bclr $reg8$dot$qbit */
2812 XC16X_INSN_BCLR15
, "bclr15", "bclr", 16,
2813 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2817 XC16X_INSN_BSET19
, "bset19", "bset", 16,
2818 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2820 /* bset $reg8$dot$qbit */
2822 XC16X_INSN_BSET0
, "bset0", "bset", 16,
2823 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2825 /* bset $reg8$dot$qbit */
2827 XC16X_INSN_BSET1
, "bset1", "bset", 16,
2828 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2830 /* bset $reg8$dot$qbit */
2832 XC16X_INSN_BSET2
, "bset2", "bset", 16,
2833 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2835 /* bset $reg8$dot$qbit */
2837 XC16X_INSN_BSET3
, "bset3", "bset", 16,
2838 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2840 /* bset $reg8$dot$qbit */
2842 XC16X_INSN_BSET4
, "bset4", "bset", 16,
2843 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2845 /* bset $reg8$dot$qbit */
2847 XC16X_INSN_BSET5
, "bset5", "bset", 16,
2848 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2850 /* bset $reg8$dot$qbit */
2852 XC16X_INSN_BSET6
, "bset6", "bset", 16,
2853 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2855 /* bset $reg8$dot$qbit */
2857 XC16X_INSN_BSET7
, "bset7", "bset", 16,
2858 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2860 /* bset $reg8$dot$qbit */
2862 XC16X_INSN_BSET8
, "bset8", "bset", 16,
2863 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2865 /* bset $reg8$dot$qbit */
2867 XC16X_INSN_BSET9
, "bset9", "bset", 16,
2868 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2870 /* bset $reg8$dot$qbit */
2872 XC16X_INSN_BSET10
, "bset10", "bset", 16,
2873 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2875 /* bset $reg8$dot$qbit */
2877 XC16X_INSN_BSET11
, "bset11", "bset", 16,
2878 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2880 /* bset $reg8$dot$qbit */
2882 XC16X_INSN_BSET12
, "bset12", "bset", 16,
2883 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2885 /* bset $reg8$dot$qbit */
2887 XC16X_INSN_BSET13
, "bset13", "bset", 16,
2888 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2890 /* bset $reg8$dot$qbit */
2892 XC16X_INSN_BSET14
, "bset14", "bset", 16,
2893 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2895 /* bset $reg8$dot$qbit */
2897 XC16X_INSN_BSET15
, "bset15", "bset", 16,
2898 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2900 /* bmov $reghi8$dot$qhibit,$reg8$dot$qlobit */
2902 XC16X_INSN_BMOV
, "bmov", "bmov", 32,
2903 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2905 /* bmovn $reghi8$dot$qhibit,$reg8$dot$qlobit */
2907 XC16X_INSN_BMOVN
, "bmovn", "bmovn", 32,
2908 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2910 /* band $reghi8$dot$qhibit,$reg8$dot$qlobit */
2912 XC16X_INSN_BAND
, "band", "band", 32,
2913 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2915 /* bor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2917 XC16X_INSN_BOR
, "bor", "bor", 32,
2918 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2920 /* bxor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2922 XC16X_INSN_BXOR
, "bxor", "bxor", 32,
2923 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2925 /* bcmp $reghi8$dot$qhibit,$reg8$dot$qlobit */
2927 XC16X_INSN_BCMP
, "bcmp", "bcmp", 32,
2928 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2930 /* bfldl $reg8,$hash$mask8,$hash$datahi8 */
2932 XC16X_INSN_BFLDL
, "bfldl", "bfldl", 32,
2933 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2935 /* bfldh $reg8,$hash$masklo8,$hash$data8 */
2937 XC16X_INSN_BFLDH
, "bfldh", "bfldh", 32,
2938 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2940 /* cmp $src1,$src2 */
2942 XC16X_INSN_CMPR
, "cmpr", "cmp", 16,
2943 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2945 /* cmpb $drb,$srb */
2947 XC16X_INSN_CMPBR
, "cmpbr", "cmpb", 16,
2948 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2950 /* cmp $src1,$hash$uimm3 */
2952 XC16X_INSN_CMPRI
, "cmpri", "cmp", 16,
2953 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2955 /* cmpb $drb,$hash$uimm3 */
2957 XC16X_INSN_CMPBRI
, "cmpbri", "cmpb", 16,
2958 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2960 /* cmp $reg8,$hash$uimm16 */
2962 XC16X_INSN_CMPI
, "cmpi", "cmp", 32,
2963 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2965 /* cmpb $regb8,$hash$uimm8 */
2967 XC16X_INSN_CMPBI
, "cmpbi", "cmpb", 32,
2968 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2970 /* cmp $dr,[$sr2] */
2972 XC16X_INSN_CMPR2
, "cmpr2", "cmp", 16,
2973 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2975 /* cmpb $drb,[$sr2] */
2977 XC16X_INSN_CMPBR2
, "cmpbr2", "cmpb", 16,
2978 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2980 /* cmp $dr,[$sr2+] */
2982 XC16X_INSN_CMP2I
, "cmp2i", "cmp", 16,
2983 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2985 /* cmpb $drb,[$sr2+] */
2987 XC16X_INSN_CMPB2I
, "cmpb2i", "cmpb", 16,
2988 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2990 /* cmp $reg8,$pof$upof16 */
2992 XC16X_INSN_CMP04
, "cmp04", "cmp", 32,
2993 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
2995 /* cmpb $regb8,$pof$upof16 */
2997 XC16X_INSN_CMPB4
, "cmpb4", "cmpb", 32,
2998 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3000 /* cmp $regmem8,$memgr8 */
3002 XC16X_INSN_CMP004
, "cmp004", "cmp", 32,
3003 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3005 /* cmp $reg8,$memory */
3007 XC16X_INSN_CMP0004
, "cmp0004", "cmp", 32,
3008 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3010 /* cmpb $regbmem8,$memgr8 */
3012 XC16X_INSN_CMPB04
, "cmpb04", "cmpb", 32,
3013 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3015 /* cmpb $regb8,$memory */
3017 XC16X_INSN_CMPB004
, "cmpb004", "cmpb", 32,
3018 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3020 /* cmpd1 $sr,$hash$uimm4 */
3022 XC16X_INSN_CMPD1RI
, "cmpd1ri", "cmpd1", 16,
3023 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3025 /* cmpd2 $sr,$hash$uimm4 */
3027 XC16X_INSN_CMPD2RI
, "cmpd2ri", "cmpd2", 16,
3028 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3030 /* cmpi1 $sr,$hash$uimm4 */
3032 XC16X_INSN_CMPI1RI
, "cmpi1ri", "cmpi1", 16,
3033 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3035 /* cmpi2 $sr,$hash$uimm4 */
3037 XC16X_INSN_CMPI2RI
, "cmpi2ri", "cmpi2", 16,
3038 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3040 /* cmpd1 $reg8,$hash$uimm16 */
3042 XC16X_INSN_CMPD1RIM
, "cmpd1rim", "cmpd1", 32,
3043 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3045 /* cmpd2 $reg8,$hash$uimm16 */
3047 XC16X_INSN_CMPD2RIM
, "cmpd2rim", "cmpd2", 32,
3048 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3050 /* cmpi1 $reg8,$hash$uimm16 */
3052 XC16X_INSN_CMPI1RIM
, "cmpi1rim", "cmpi1", 32,
3053 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3055 /* cmpi2 $reg8,$hash$uimm16 */
3057 XC16X_INSN_CMPI2RIM
, "cmpi2rim", "cmpi2", 32,
3058 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3060 /* cmpd1 $reg8,$pof$upof16 */
3062 XC16X_INSN_CMPD1RP
, "cmpd1rp", "cmpd1", 32,
3063 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3065 /* cmpd2 $reg8,$pof$upof16 */
3067 XC16X_INSN_CMPD2RP
, "cmpd2rp", "cmpd2", 32,
3068 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3070 /* cmpi1 $reg8,$pof$upof16 */
3072 XC16X_INSN_CMPI1RP
, "cmpi1rp", "cmpi1", 32,
3073 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3075 /* cmpi2 $reg8,$pof$upof16 */
3077 XC16X_INSN_CMPI2RP
, "cmpi2rp", "cmpi2", 32,
3078 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3080 /* cmpd1 $regmem8,$memgr8 */
3082 XC16X_INSN_CMPD1RM
, "cmpd1rm", "cmpd1", 32,
3083 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3085 /* cmpd2 $regmem8,$memgr8 */
3087 XC16X_INSN_CMPD2RM
, "cmpd2rm", "cmpd2", 32,
3088 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3090 /* cmpi1 $regmem8,$memgr8 */
3092 XC16X_INSN_CMPI1RM
, "cmpi1rm", "cmpi1", 32,
3093 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3095 /* cmpi2 $regmem8,$memgr8 */
3097 XC16X_INSN_CMPI2RM
, "cmpi2rm", "cmpi2", 32,
3098 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3100 /* cmpd1 $reg8,$memory */
3102 XC16X_INSN_CMPD1RMI
, "cmpd1rmi", "cmpd1", 32,
3103 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3105 /* cmpd2 $reg8,$memory */
3107 XC16X_INSN_CMPD2RMI
, "cmpd2rmi", "cmpd2", 32,
3108 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3110 /* cmpi1 $reg8,$memory */
3112 XC16X_INSN_CMPI1RMI
, "cmpi1rmi", "cmpi1", 32,
3113 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3115 /* cmpi2 $reg8,$memory */
3117 XC16X_INSN_CMPI2RMI
, "cmpi2rmi", "cmpi2", 32,
3118 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3122 XC16X_INSN_SHLR
, "shlr", "shl", 16,
3123 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3127 XC16X_INSN_SHRR
, "shrr", "shr", 16,
3128 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3132 XC16X_INSN_ROLR
, "rolr", "rol", 16,
3133 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3137 XC16X_INSN_RORR
, "rorr", "ror", 16,
3138 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3142 XC16X_INSN_ASHRR
, "ashrr", "ashr", 16,
3143 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3145 /* shl $sr,$hash$uimm4 */
3147 XC16X_INSN_SHLRI
, "shlri", "shl", 16,
3148 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3150 /* shr $sr,$hash$uimm4 */
3152 XC16X_INSN_SHRRI
, "shrri", "shr", 16,
3153 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3155 /* rol $sr,$hash$uimm4 */
3157 XC16X_INSN_ROLRI
, "rolri", "rol", 16,
3158 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3160 /* ror $sr,$hash$uimm4 */
3162 XC16X_INSN_RORRI
, "rorri", "ror", 16,
3163 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3165 /* ashr $sr,$hash$uimm4 */
3167 XC16X_INSN_ASHRRI
, "ashrri", "ashr", 16,
3168 { 0, { { { (1<<MACH_BASE
), 0 } }, { { PIPE_OS
, 0 } } } }
3175 /* Initialize anything needed to be done once, before any cpu_open call. */
3182 #ifndef opcodes_error_handler
3183 #define opcodes_error_handler(...) \
3184 fprintf (stderr, __VA_ARGS__); fputc ('\n', stderr)
3187 static const CGEN_MACH
* lookup_mach_via_bfd_name (const CGEN_MACH
*, const char *);
3188 static void build_hw_table (CGEN_CPU_TABLE
*);
3189 static void build_ifield_table (CGEN_CPU_TABLE
*);
3190 static void build_operand_table (CGEN_CPU_TABLE
*);
3191 static void build_insn_table (CGEN_CPU_TABLE
*);
3192 static void xc16x_cgen_rebuild_tables (CGEN_CPU_TABLE
*);
3194 /* Subroutine of xc16x_cgen_cpu_open to look up a mach via its bfd name. */
3196 static const CGEN_MACH
*
3197 lookup_mach_via_bfd_name (const CGEN_MACH
*table
, const char *name
)
3201 if (strcmp (name
, table
->bfd_name
) == 0)
3208 /* Subroutine of xc16x_cgen_cpu_open to build the hardware table. */
3211 build_hw_table (CGEN_CPU_TABLE
*cd
)
3214 int machs
= cd
->machs
;
3215 const CGEN_HW_ENTRY
*init
= & xc16x_cgen_hw_table
[0];
3216 /* MAX_HW is only an upper bound on the number of selected entries.
3217 However each entry is indexed by it's enum so there can be holes in
3219 const CGEN_HW_ENTRY
**selected
=
3220 (const CGEN_HW_ENTRY
**) xmalloc (MAX_HW
* sizeof (CGEN_HW_ENTRY
*));
3222 cd
->hw_table
.init_entries
= init
;
3223 cd
->hw_table
.entry_size
= sizeof (CGEN_HW_ENTRY
);
3224 memset (selected
, 0, MAX_HW
* sizeof (CGEN_HW_ENTRY
*));
3225 /* ??? For now we just use machs to determine which ones we want. */
3226 for (i
= 0; init
[i
].name
!= NULL
; ++i
)
3227 if (CGEN_HW_ATTR_VALUE (&init
[i
], CGEN_HW_MACH
)
3229 selected
[init
[i
].type
] = &init
[i
];
3230 cd
->hw_table
.entries
= selected
;
3231 cd
->hw_table
.num_entries
= MAX_HW
;
3234 /* Subroutine of xc16x_cgen_cpu_open to build the hardware table. */
3237 build_ifield_table (CGEN_CPU_TABLE
*cd
)
3239 cd
->ifld_table
= & xc16x_cgen_ifld_table
[0];
3242 /* Subroutine of xc16x_cgen_cpu_open to build the hardware table. */
3245 build_operand_table (CGEN_CPU_TABLE
*cd
)
3248 int machs
= cd
->machs
;
3249 const CGEN_OPERAND
*init
= & xc16x_cgen_operand_table
[0];
3250 /* MAX_OPERANDS is only an upper bound on the number of selected entries.
3251 However each entry is indexed by it's enum so there can be holes in
3253 const CGEN_OPERAND
**selected
= xmalloc (MAX_OPERANDS
* sizeof (* selected
));
3255 cd
->operand_table
.init_entries
= init
;
3256 cd
->operand_table
.entry_size
= sizeof (CGEN_OPERAND
);
3257 memset (selected
, 0, MAX_OPERANDS
* sizeof (CGEN_OPERAND
*));
3258 /* ??? For now we just use mach to determine which ones we want. */
3259 for (i
= 0; init
[i
].name
!= NULL
; ++i
)
3260 if (CGEN_OPERAND_ATTR_VALUE (&init
[i
], CGEN_OPERAND_MACH
)
3262 selected
[init
[i
].type
] = &init
[i
];
3263 cd
->operand_table
.entries
= selected
;
3264 cd
->operand_table
.num_entries
= MAX_OPERANDS
;
3267 /* Subroutine of xc16x_cgen_cpu_open to build the hardware table.
3268 ??? This could leave out insns not supported by the specified mach/isa,
3269 but that would cause errors like "foo only supported by bar" to become
3270 "unknown insn", so for now we include all insns and require the app to
3271 do the checking later.
3272 ??? On the other hand, parsing of such insns may require their hardware or
3273 operand elements to be in the table [which they mightn't be]. */
3276 build_insn_table (CGEN_CPU_TABLE
*cd
)
3279 const CGEN_IBASE
*ib
= & xc16x_cgen_insn_table
[0];
3280 CGEN_INSN
*insns
= xmalloc (MAX_INSNS
* sizeof (CGEN_INSN
));
3282 memset (insns
, 0, MAX_INSNS
* sizeof (CGEN_INSN
));
3283 for (i
= 0; i
< MAX_INSNS
; ++i
)
3284 insns
[i
].base
= &ib
[i
];
3285 cd
->insn_table
.init_entries
= insns
;
3286 cd
->insn_table
.entry_size
= sizeof (CGEN_IBASE
);
3287 cd
->insn_table
.num_init_entries
= MAX_INSNS
;
3290 /* Subroutine of xc16x_cgen_cpu_open to rebuild the tables. */
3293 xc16x_cgen_rebuild_tables (CGEN_CPU_TABLE
*cd
)
3296 CGEN_BITSET
*isas
= cd
->isas
;
3297 unsigned int machs
= cd
->machs
;
3299 cd
->int_insn_p
= CGEN_INT_INSN_P
;
3301 /* Data derived from the isa spec. */
3302 #define UNSET (CGEN_SIZE_UNKNOWN + 1)
3303 cd
->default_insn_bitsize
= UNSET
;
3304 cd
->base_insn_bitsize
= UNSET
;
3305 cd
->min_insn_bitsize
= 65535; /* Some ridiculously big number. */
3306 cd
->max_insn_bitsize
= 0;
3307 for (i
= 0; i
< MAX_ISAS
; ++i
)
3308 if (cgen_bitset_contains (isas
, i
))
3310 const CGEN_ISA
*isa
= & xc16x_cgen_isa_table
[i
];
3312 /* Default insn sizes of all selected isas must be
3313 equal or we set the result to 0, meaning "unknown". */
3314 if (cd
->default_insn_bitsize
== UNSET
)
3315 cd
->default_insn_bitsize
= isa
->default_insn_bitsize
;
3316 else if (isa
->default_insn_bitsize
== cd
->default_insn_bitsize
)
3319 cd
->default_insn_bitsize
= CGEN_SIZE_UNKNOWN
;
3321 /* Base insn sizes of all selected isas must be equal
3322 or we set the result to 0, meaning "unknown". */
3323 if (cd
->base_insn_bitsize
== UNSET
)
3324 cd
->base_insn_bitsize
= isa
->base_insn_bitsize
;
3325 else if (isa
->base_insn_bitsize
== cd
->base_insn_bitsize
)
3328 cd
->base_insn_bitsize
= CGEN_SIZE_UNKNOWN
;
3330 /* Set min,max insn sizes. */
3331 if (isa
->min_insn_bitsize
< cd
->min_insn_bitsize
)
3332 cd
->min_insn_bitsize
= isa
->min_insn_bitsize
;
3333 if (isa
->max_insn_bitsize
> cd
->max_insn_bitsize
)
3334 cd
->max_insn_bitsize
= isa
->max_insn_bitsize
;
3337 /* Data derived from the mach spec. */
3338 for (i
= 0; i
< MAX_MACHS
; ++i
)
3339 if (((1 << i
) & machs
) != 0)
3341 const CGEN_MACH
*mach
= & xc16x_cgen_mach_table
[i
];
3343 if (mach
->insn_chunk_bitsize
!= 0)
3345 if (cd
->insn_chunk_bitsize
!= 0 && cd
->insn_chunk_bitsize
!= mach
->insn_chunk_bitsize
)
3347 opcodes_error_handler
3348 (/* xgettext:c-format */
3349 _("internal error: xc16x_cgen_rebuild_tables: "
3350 "conflicting insn-chunk-bitsize values: `%d' vs. `%d'"),
3351 cd
->insn_chunk_bitsize
, mach
->insn_chunk_bitsize
);
3355 cd
->insn_chunk_bitsize
= mach
->insn_chunk_bitsize
;
3359 /* Determine which hw elements are used by MACH. */
3360 build_hw_table (cd
);
3362 /* Build the ifield table. */
3363 build_ifield_table (cd
);
3365 /* Determine which operands are used by MACH/ISA. */
3366 build_operand_table (cd
);
3368 /* Build the instruction table. */
3369 build_insn_table (cd
);
3372 /* Initialize a cpu table and return a descriptor.
3373 It's much like opening a file, and must be the first function called.
3374 The arguments are a set of (type/value) pairs, terminated with
3377 Currently supported values:
3378 CGEN_CPU_OPEN_ISAS: bitmap of values in enum isa_attr
3379 CGEN_CPU_OPEN_MACHS: bitmap of values in enum mach_attr
3380 CGEN_CPU_OPEN_BFDMACH: specify 1 mach using bfd name
3381 CGEN_CPU_OPEN_ENDIAN: specify endian choice
3382 CGEN_CPU_OPEN_END: terminates arguments
3384 ??? Simultaneous multiple isas might not make sense, but it's not (yet)
3388 xc16x_cgen_cpu_open (enum cgen_cpu_open_arg arg_type
, ...)
3390 CGEN_CPU_TABLE
*cd
= (CGEN_CPU_TABLE
*) xmalloc (sizeof (CGEN_CPU_TABLE
));
3392 CGEN_BITSET
*isas
= 0; /* 0 = "unspecified" */
3393 unsigned int machs
= 0; /* 0 = "unspecified" */
3394 enum cgen_endian endian
= CGEN_ENDIAN_UNKNOWN
;
3403 memset (cd
, 0, sizeof (*cd
));
3405 va_start (ap
, arg_type
);
3406 while (arg_type
!= CGEN_CPU_OPEN_END
)
3410 case CGEN_CPU_OPEN_ISAS
:
3411 isas
= va_arg (ap
, CGEN_BITSET
*);
3413 case CGEN_CPU_OPEN_MACHS
:
3414 machs
= va_arg (ap
, unsigned int);
3416 case CGEN_CPU_OPEN_BFDMACH
:
3418 const char *name
= va_arg (ap
, const char *);
3419 const CGEN_MACH
*mach
=
3420 lookup_mach_via_bfd_name (xc16x_cgen_mach_table
, name
);
3423 machs
|= 1 << mach
->num
;
3426 case CGEN_CPU_OPEN_ENDIAN
:
3427 endian
= va_arg (ap
, enum cgen_endian
);
3430 opcodes_error_handler
3431 (/* xgettext:c-format */
3432 _("internal error: xc16x_cgen_cpu_open: "
3433 "unsupported argument `%d'"),
3435 abort (); /* ??? return NULL? */
3437 arg_type
= va_arg (ap
, enum cgen_cpu_open_arg
);
3441 /* Mach unspecified means "all". */
3443 machs
= (1 << MAX_MACHS
) - 1;
3444 /* Base mach is always selected. */
3446 if (endian
== CGEN_ENDIAN_UNKNOWN
)
3448 /* ??? If target has only one, could have a default. */
3449 opcodes_error_handler
3450 (/* xgettext:c-format */
3451 _("internal error: xc16x_cgen_cpu_open: no endianness specified"));
3455 cd
->isas
= cgen_bitset_copy (isas
);
3457 cd
->endian
= endian
;
3458 /* FIXME: for the sparc case we can determine insn-endianness statically.
3459 The worry here is where both data and insn endian can be independently
3460 chosen, in which case this function will need another argument.
3461 Actually, will want to allow for more arguments in the future anyway. */
3462 cd
->insn_endian
= endian
;
3464 /* Table (re)builder. */
3465 cd
->rebuild_tables
= xc16x_cgen_rebuild_tables
;
3466 xc16x_cgen_rebuild_tables (cd
);
3468 /* Default to not allowing signed overflow. */
3469 cd
->signed_overflow_ok_p
= 0;
3471 return (CGEN_CPU_DESC
) cd
;
3474 /* Cover fn to xc16x_cgen_cpu_open to handle the simple case of 1 isa, 1 mach.
3475 MACH_NAME is the bfd name of the mach. */
3478 xc16x_cgen_cpu_open_1 (const char *mach_name
, enum cgen_endian endian
)
3480 return xc16x_cgen_cpu_open (CGEN_CPU_OPEN_BFDMACH
, mach_name
,
3481 CGEN_CPU_OPEN_ENDIAN
, endian
,
3485 /* Close a cpu table.
3486 ??? This can live in a machine independent file, but there's currently
3487 no place to put this file (there's no libcgen). libopcodes is the wrong
3488 place as some simulator ports use this but they don't use libopcodes. */
3491 xc16x_cgen_cpu_close (CGEN_CPU_DESC cd
)
3494 const CGEN_INSN
*insns
;
3496 if (cd
->macro_insn_table
.init_entries
)
3498 insns
= cd
->macro_insn_table
.init_entries
;
3499 for (i
= 0; i
< cd
->macro_insn_table
.num_init_entries
; ++i
, ++insns
)
3500 if (CGEN_INSN_RX ((insns
)))
3501 regfree (CGEN_INSN_RX (insns
));
3504 if (cd
->insn_table
.init_entries
)
3506 insns
= cd
->insn_table
.init_entries
;
3507 for (i
= 0; i
< cd
->insn_table
.num_init_entries
; ++i
, ++insns
)
3508 if (CGEN_INSN_RX (insns
))
3509 regfree (CGEN_INSN_RX (insns
));
3512 if (cd
->macro_insn_table
.init_entries
)
3513 free ((CGEN_INSN
*) cd
->macro_insn_table
.init_entries
);
3515 if (cd
->insn_table
.init_entries
)
3516 free ((CGEN_INSN
*) cd
->insn_table
.init_entries
);
3518 if (cd
->hw_table
.entries
)
3519 free ((CGEN_HW_ENTRY
*) cd
->hw_table
.entries
);
3521 if (cd
->operand_table
.entries
)
3522 free ((CGEN_HW_ENTRY
*) cd
->operand_table
.entries
);