1*3d8817e4Smiod /* CPU data for xc16x.
2*3d8817e4Smiod 
3*3d8817e4Smiod THIS FILE IS MACHINE GENERATED WITH CGEN.
4*3d8817e4Smiod 
5*3d8817e4Smiod Copyright 1996-2005 Free Software Foundation, Inc.
6*3d8817e4Smiod 
7*3d8817e4Smiod This file is part of the GNU Binutils and/or GDB, the GNU debugger.
8*3d8817e4Smiod 
9*3d8817e4Smiod This program is free software; you can redistribute it and/or modify
10*3d8817e4Smiod it under the terms of the GNU General Public License as published by
11*3d8817e4Smiod the Free Software Foundation; either version 2, or (at your option)
12*3d8817e4Smiod any later version.
13*3d8817e4Smiod 
14*3d8817e4Smiod This program is distributed in the hope that it will be useful,
15*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of
16*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*3d8817e4Smiod GNU General Public License for more details.
18*3d8817e4Smiod 
19*3d8817e4Smiod You should have received a copy of the GNU General Public License along
20*3d8817e4Smiod with this program; if not, write to the Free Software Foundation, Inc.,
21*3d8817e4Smiod 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
22*3d8817e4Smiod 
23*3d8817e4Smiod */
24*3d8817e4Smiod 
25*3d8817e4Smiod #include "sysdep.h"
26*3d8817e4Smiod #include <stdio.h>
27*3d8817e4Smiod #include <stdarg.h>
28*3d8817e4Smiod #include "ansidecl.h"
29*3d8817e4Smiod #include "bfd.h"
30*3d8817e4Smiod #include "symcat.h"
31*3d8817e4Smiod #include "xc16x-desc.h"
32*3d8817e4Smiod #include "xc16x-opc.h"
33*3d8817e4Smiod #include "opintl.h"
34*3d8817e4Smiod #include "libiberty.h"
35*3d8817e4Smiod #include "xregex.h"
36*3d8817e4Smiod 
37*3d8817e4Smiod /* Attributes.  */
38*3d8817e4Smiod 
39*3d8817e4Smiod static const CGEN_ATTR_ENTRY bool_attr[] =
40*3d8817e4Smiod {
41*3d8817e4Smiod   { "#f", 0 },
42*3d8817e4Smiod   { "#t", 1 },
43*3d8817e4Smiod   { 0, 0 }
44*3d8817e4Smiod };
45*3d8817e4Smiod 
46*3d8817e4Smiod static const CGEN_ATTR_ENTRY MACH_attr[] ATTRIBUTE_UNUSED =
47*3d8817e4Smiod {
48*3d8817e4Smiod   { "base", MACH_BASE },
49*3d8817e4Smiod   { "xc16x", MACH_XC16X },
50*3d8817e4Smiod   { "max", MACH_MAX },
51*3d8817e4Smiod   { 0, 0 }
52*3d8817e4Smiod };
53*3d8817e4Smiod 
54*3d8817e4Smiod static const CGEN_ATTR_ENTRY ISA_attr[] ATTRIBUTE_UNUSED =
55*3d8817e4Smiod {
56*3d8817e4Smiod   { "xc16x", ISA_XC16X },
57*3d8817e4Smiod   { "max", ISA_MAX },
58*3d8817e4Smiod   { 0, 0 }
59*3d8817e4Smiod };
60*3d8817e4Smiod 
61*3d8817e4Smiod static const CGEN_ATTR_ENTRY PIPE_attr[] ATTRIBUTE_UNUSED =
62*3d8817e4Smiod {
63*3d8817e4Smiod   { "NONE", PIPE_NONE },
64*3d8817e4Smiod   { "OS", PIPE_OS },
65*3d8817e4Smiod   { 0, 0 }
66*3d8817e4Smiod };
67*3d8817e4Smiod 
68*3d8817e4Smiod const CGEN_ATTR_TABLE xc16x_cgen_ifield_attr_table[] =
69*3d8817e4Smiod {
70*3d8817e4Smiod   { "MACH", & MACH_attr[0], & MACH_attr[0] },
71*3d8817e4Smiod   { "VIRTUAL", &bool_attr[0], &bool_attr[0] },
72*3d8817e4Smiod   { "PCREL-ADDR", &bool_attr[0], &bool_attr[0] },
73*3d8817e4Smiod   { "ABS-ADDR", &bool_attr[0], &bool_attr[0] },
74*3d8817e4Smiod   { "RESERVED", &bool_attr[0], &bool_attr[0] },
75*3d8817e4Smiod   { "SIGN-OPT", &bool_attr[0], &bool_attr[0] },
76*3d8817e4Smiod   { "SIGNED", &bool_attr[0], &bool_attr[0] },
77*3d8817e4Smiod   { "RELOC", &bool_attr[0], &bool_attr[0] },
78*3d8817e4Smiod   { 0, 0, 0 }
79*3d8817e4Smiod };
80*3d8817e4Smiod 
81*3d8817e4Smiod const CGEN_ATTR_TABLE xc16x_cgen_hardware_attr_table[] =
82*3d8817e4Smiod {
83*3d8817e4Smiod   { "MACH", & MACH_attr[0], & MACH_attr[0] },
84*3d8817e4Smiod   { "VIRTUAL", &bool_attr[0], &bool_attr[0] },
85*3d8817e4Smiod   { "CACHE-ADDR", &bool_attr[0], &bool_attr[0] },
86*3d8817e4Smiod   { "PC", &bool_attr[0], &bool_attr[0] },
87*3d8817e4Smiod   { "PROFILE", &bool_attr[0], &bool_attr[0] },
88*3d8817e4Smiod   { 0, 0, 0 }
89*3d8817e4Smiod };
90*3d8817e4Smiod 
91*3d8817e4Smiod const CGEN_ATTR_TABLE xc16x_cgen_operand_attr_table[] =
92*3d8817e4Smiod {
93*3d8817e4Smiod   { "MACH", & MACH_attr[0], & MACH_attr[0] },
94*3d8817e4Smiod   { "VIRTUAL", &bool_attr[0], &bool_attr[0] },
95*3d8817e4Smiod   { "PCREL-ADDR", &bool_attr[0], &bool_attr[0] },
96*3d8817e4Smiod   { "ABS-ADDR", &bool_attr[0], &bool_attr[0] },
97*3d8817e4Smiod   { "SIGN-OPT", &bool_attr[0], &bool_attr[0] },
98*3d8817e4Smiod   { "SIGNED", &bool_attr[0], &bool_attr[0] },
99*3d8817e4Smiod   { "NEGATIVE", &bool_attr[0], &bool_attr[0] },
100*3d8817e4Smiod   { "RELAX", &bool_attr[0], &bool_attr[0] },
101*3d8817e4Smiod   { "SEM-ONLY", &bool_attr[0], &bool_attr[0] },
102*3d8817e4Smiod   { "RELOC", &bool_attr[0], &bool_attr[0] },
103*3d8817e4Smiod   { "HASH-PREFIX", &bool_attr[0], &bool_attr[0] },
104*3d8817e4Smiod   { "DOT-PREFIX", &bool_attr[0], &bool_attr[0] },
105*3d8817e4Smiod   { "POF-PREFIX", &bool_attr[0], &bool_attr[0] },
106*3d8817e4Smiod   { "PAG-PREFIX", &bool_attr[0], &bool_attr[0] },
107*3d8817e4Smiod   { "SOF-PREFIX", &bool_attr[0], &bool_attr[0] },
108*3d8817e4Smiod   { "SEG-PREFIX", &bool_attr[0], &bool_attr[0] },
109*3d8817e4Smiod   { 0, 0, 0 }
110*3d8817e4Smiod };
111*3d8817e4Smiod 
112*3d8817e4Smiod const CGEN_ATTR_TABLE xc16x_cgen_insn_attr_table[] =
113*3d8817e4Smiod {
114*3d8817e4Smiod   { "MACH", & MACH_attr[0], & MACH_attr[0] },
115*3d8817e4Smiod   { "PIPE", & PIPE_attr[0], & PIPE_attr[0] },
116*3d8817e4Smiod   { "ALIAS", &bool_attr[0], &bool_attr[0] },
117*3d8817e4Smiod   { "VIRTUAL", &bool_attr[0], &bool_attr[0] },
118*3d8817e4Smiod   { "UNCOND-CTI", &bool_attr[0], &bool_attr[0] },
119*3d8817e4Smiod   { "COND-CTI", &bool_attr[0], &bool_attr[0] },
120*3d8817e4Smiod   { "SKIP-CTI", &bool_attr[0], &bool_attr[0] },
121*3d8817e4Smiod   { "DELAY-SLOT", &bool_attr[0], &bool_attr[0] },
122*3d8817e4Smiod   { "RELAXABLE", &bool_attr[0], &bool_attr[0] },
123*3d8817e4Smiod   { "RELAXED", &bool_attr[0], &bool_attr[0] },
124*3d8817e4Smiod   { "NO-DIS", &bool_attr[0], &bool_attr[0] },
125*3d8817e4Smiod   { "PBB", &bool_attr[0], &bool_attr[0] },
126*3d8817e4Smiod   { 0, 0, 0 }
127*3d8817e4Smiod };
128*3d8817e4Smiod 
129*3d8817e4Smiod /* Instruction set variants.  */
130*3d8817e4Smiod 
131*3d8817e4Smiod static const CGEN_ISA xc16x_cgen_isa_table[] = {
132*3d8817e4Smiod   { "xc16x", 16, 32, 16, 32 },
133*3d8817e4Smiod   { 0, 0, 0, 0, 0 }
134*3d8817e4Smiod };
135*3d8817e4Smiod 
136*3d8817e4Smiod /* Machine variants.  */
137*3d8817e4Smiod 
138*3d8817e4Smiod static const CGEN_MACH xc16x_cgen_mach_table[] = {
139*3d8817e4Smiod   { "xc16x", "xc16x", MACH_XC16X, 32 },
140*3d8817e4Smiod   { 0, 0, 0, 0 }
141*3d8817e4Smiod };
142*3d8817e4Smiod 
143*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_gr_names_entries[] =
144*3d8817e4Smiod {
145*3d8817e4Smiod   { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
146*3d8817e4Smiod   { "r1", 1, {0, {{{0, 0}}}}, 0, 0 },
147*3d8817e4Smiod   { "r2", 2, {0, {{{0, 0}}}}, 0, 0 },
148*3d8817e4Smiod   { "r3", 3, {0, {{{0, 0}}}}, 0, 0 },
149*3d8817e4Smiod   { "r4", 4, {0, {{{0, 0}}}}, 0, 0 },
150*3d8817e4Smiod   { "r5", 5, {0, {{{0, 0}}}}, 0, 0 },
151*3d8817e4Smiod   { "r6", 6, {0, {{{0, 0}}}}, 0, 0 },
152*3d8817e4Smiod   { "r7", 7, {0, {{{0, 0}}}}, 0, 0 },
153*3d8817e4Smiod   { "r8", 8, {0, {{{0, 0}}}}, 0, 0 },
154*3d8817e4Smiod   { "r9", 9, {0, {{{0, 0}}}}, 0, 0 },
155*3d8817e4Smiod   { "r10", 10, {0, {{{0, 0}}}}, 0, 0 },
156*3d8817e4Smiod   { "r11", 11, {0, {{{0, 0}}}}, 0, 0 },
157*3d8817e4Smiod   { "r12", 12, {0, {{{0, 0}}}}, 0, 0 },
158*3d8817e4Smiod   { "r13", 13, {0, {{{0, 0}}}}, 0, 0 },
159*3d8817e4Smiod   { "r14", 14, {0, {{{0, 0}}}}, 0, 0 },
160*3d8817e4Smiod   { "r15", 15, {0, {{{0, 0}}}}, 0, 0 }
161*3d8817e4Smiod };
162*3d8817e4Smiod 
163*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_gr_names =
164*3d8817e4Smiod {
165*3d8817e4Smiod   & xc16x_cgen_opval_gr_names_entries[0],
166*3d8817e4Smiod   16,
167*3d8817e4Smiod   0, 0, 0, 0, ""
168*3d8817e4Smiod };
169*3d8817e4Smiod 
170*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_ext_names_entries[] =
171*3d8817e4Smiod {
172*3d8817e4Smiod   { "0x1", 0, {0, {{{0, 0}}}}, 0, 0 },
173*3d8817e4Smiod   { "0x2", 1, {0, {{{0, 0}}}}, 0, 0 },
174*3d8817e4Smiod   { "0x3", 2, {0, {{{0, 0}}}}, 0, 0 },
175*3d8817e4Smiod   { "0x4", 3, {0, {{{0, 0}}}}, 0, 0 },
176*3d8817e4Smiod   { "1", 0, {0, {{{0, 0}}}}, 0, 0 },
177*3d8817e4Smiod   { "2", 1, {0, {{{0, 0}}}}, 0, 0 },
178*3d8817e4Smiod   { "3", 2, {0, {{{0, 0}}}}, 0, 0 },
179*3d8817e4Smiod   { "4", 3, {0, {{{0, 0}}}}, 0, 0 }
180*3d8817e4Smiod };
181*3d8817e4Smiod 
182*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_ext_names =
183*3d8817e4Smiod {
184*3d8817e4Smiod   & xc16x_cgen_opval_ext_names_entries[0],
185*3d8817e4Smiod   8,
186*3d8817e4Smiod   0, 0, 0, 0, ""
187*3d8817e4Smiod };
188*3d8817e4Smiod 
189*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_psw_names_entries[] =
190*3d8817e4Smiod {
191*3d8817e4Smiod   { "IEN", 136, {0, {{{0, 0}}}}, 0, 0 },
192*3d8817e4Smiod   { "r0.11", 240, {0, {{{0, 0}}}}, 0, 0 },
193*3d8817e4Smiod   { "r1.11", 241, {0, {{{0, 0}}}}, 0, 0 },
194*3d8817e4Smiod   { "r2.11", 242, {0, {{{0, 0}}}}, 0, 0 },
195*3d8817e4Smiod   { "r3.11", 243, {0, {{{0, 0}}}}, 0, 0 },
196*3d8817e4Smiod   { "r4.11", 244, {0, {{{0, 0}}}}, 0, 0 },
197*3d8817e4Smiod   { "r5.11", 245, {0, {{{0, 0}}}}, 0, 0 },
198*3d8817e4Smiod   { "r6.11", 246, {0, {{{0, 0}}}}, 0, 0 },
199*3d8817e4Smiod   { "r7.11", 247, {0, {{{0, 0}}}}, 0, 0 },
200*3d8817e4Smiod   { "r8.11", 248, {0, {{{0, 0}}}}, 0, 0 },
201*3d8817e4Smiod   { "r9.11", 249, {0, {{{0, 0}}}}, 0, 0 },
202*3d8817e4Smiod   { "r10.11", 250, {0, {{{0, 0}}}}, 0, 0 },
203*3d8817e4Smiod   { "r11.11", 251, {0, {{{0, 0}}}}, 0, 0 },
204*3d8817e4Smiod   { "r12.11", 252, {0, {{{0, 0}}}}, 0, 0 },
205*3d8817e4Smiod   { "r13.11", 253, {0, {{{0, 0}}}}, 0, 0 },
206*3d8817e4Smiod   { "r14.11", 254, {0, {{{0, 0}}}}, 0, 0 },
207*3d8817e4Smiod   { "r15.11", 255, {0, {{{0, 0}}}}, 0, 0 }
208*3d8817e4Smiod };
209*3d8817e4Smiod 
210*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_psw_names =
211*3d8817e4Smiod {
212*3d8817e4Smiod   & xc16x_cgen_opval_psw_names_entries[0],
213*3d8817e4Smiod   17,
214*3d8817e4Smiod   0, 0, 0, 0, ""
215*3d8817e4Smiod };
216*3d8817e4Smiod 
217*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_grb_names_entries[] =
218*3d8817e4Smiod {
219*3d8817e4Smiod   { "rl0", 0, {0, {{{0, 0}}}}, 0, 0 },
220*3d8817e4Smiod   { "rh0", 1, {0, {{{0, 0}}}}, 0, 0 },
221*3d8817e4Smiod   { "rl1", 2, {0, {{{0, 0}}}}, 0, 0 },
222*3d8817e4Smiod   { "rh1", 3, {0, {{{0, 0}}}}, 0, 0 },
223*3d8817e4Smiod   { "rl2", 4, {0, {{{0, 0}}}}, 0, 0 },
224*3d8817e4Smiod   { "rh2", 5, {0, {{{0, 0}}}}, 0, 0 },
225*3d8817e4Smiod   { "rl3", 6, {0, {{{0, 0}}}}, 0, 0 },
226*3d8817e4Smiod   { "rh3", 7, {0, {{{0, 0}}}}, 0, 0 },
227*3d8817e4Smiod   { "rl4", 8, {0, {{{0, 0}}}}, 0, 0 },
228*3d8817e4Smiod   { "rh4", 9, {0, {{{0, 0}}}}, 0, 0 },
229*3d8817e4Smiod   { "rl5", 10, {0, {{{0, 0}}}}, 0, 0 },
230*3d8817e4Smiod   { "rh5", 11, {0, {{{0, 0}}}}, 0, 0 },
231*3d8817e4Smiod   { "rl6", 12, {0, {{{0, 0}}}}, 0, 0 },
232*3d8817e4Smiod   { "rh6", 13, {0, {{{0, 0}}}}, 0, 0 },
233*3d8817e4Smiod   { "rl7", 14, {0, {{{0, 0}}}}, 0, 0 },
234*3d8817e4Smiod   { "rh7", 15, {0, {{{0, 0}}}}, 0, 0 }
235*3d8817e4Smiod };
236*3d8817e4Smiod 
237*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_grb_names =
238*3d8817e4Smiod {
239*3d8817e4Smiod   & xc16x_cgen_opval_grb_names_entries[0],
240*3d8817e4Smiod   16,
241*3d8817e4Smiod   0, 0, 0, 0, ""
242*3d8817e4Smiod };
243*3d8817e4Smiod 
244*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_conditioncode_names_entries[] =
245*3d8817e4Smiod {
246*3d8817e4Smiod   { "cc_UC", 0, {0, {{{0, 0}}}}, 0, 0 },
247*3d8817e4Smiod   { "cc_NET", 1, {0, {{{0, 0}}}}, 0, 0 },
248*3d8817e4Smiod   { "cc_Z", 2, {0, {{{0, 0}}}}, 0, 0 },
249*3d8817e4Smiod   { "cc_EQ", 2, {0, {{{0, 0}}}}, 0, 0 },
250*3d8817e4Smiod   { "cc_NZ", 3, {0, {{{0, 0}}}}, 0, 0 },
251*3d8817e4Smiod   { "cc_NE", 3, {0, {{{0, 0}}}}, 0, 0 },
252*3d8817e4Smiod   { "cc_V", 4, {0, {{{0, 0}}}}, 0, 0 },
253*3d8817e4Smiod   { "cc_NV", 5, {0, {{{0, 0}}}}, 0, 0 },
254*3d8817e4Smiod   { "cc_N", 6, {0, {{{0, 0}}}}, 0, 0 },
255*3d8817e4Smiod   { "cc_NN", 7, {0, {{{0, 0}}}}, 0, 0 },
256*3d8817e4Smiod   { "cc_ULT", 8, {0, {{{0, 0}}}}, 0, 0 },
257*3d8817e4Smiod   { "cc_UGE", 9, {0, {{{0, 0}}}}, 0, 0 },
258*3d8817e4Smiod   { "cc_C", 8, {0, {{{0, 0}}}}, 0, 0 },
259*3d8817e4Smiod   { "cc_NC", 9, {0, {{{0, 0}}}}, 0, 0 },
260*3d8817e4Smiod   { "cc_SGT", 10, {0, {{{0, 0}}}}, 0, 0 },
261*3d8817e4Smiod   { "cc_SLE", 11, {0, {{{0, 0}}}}, 0, 0 },
262*3d8817e4Smiod   { "cc_SLT", 12, {0, {{{0, 0}}}}, 0, 0 },
263*3d8817e4Smiod   { "cc_SGE", 13, {0, {{{0, 0}}}}, 0, 0 },
264*3d8817e4Smiod   { "cc_UGT", 14, {0, {{{0, 0}}}}, 0, 0 },
265*3d8817e4Smiod   { "cc_ULE", 15, {0, {{{0, 0}}}}, 0, 0 }
266*3d8817e4Smiod };
267*3d8817e4Smiod 
268*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_conditioncode_names =
269*3d8817e4Smiod {
270*3d8817e4Smiod   & xc16x_cgen_opval_conditioncode_names_entries[0],
271*3d8817e4Smiod   20,
272*3d8817e4Smiod   0, 0, 0, 0, ""
273*3d8817e4Smiod };
274*3d8817e4Smiod 
275*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_extconditioncode_names_entries[] =
276*3d8817e4Smiod {
277*3d8817e4Smiod   { "cc_UC", 0, {0, {{{0, 0}}}}, 0, 0 },
278*3d8817e4Smiod   { "cc_NET", 2, {0, {{{0, 0}}}}, 0, 0 },
279*3d8817e4Smiod   { "cc_Z", 4, {0, {{{0, 0}}}}, 0, 0 },
280*3d8817e4Smiod   { "cc_EQ", 4, {0, {{{0, 0}}}}, 0, 0 },
281*3d8817e4Smiod   { "cc_NZ", 6, {0, {{{0, 0}}}}, 0, 0 },
282*3d8817e4Smiod   { "cc_NE", 6, {0, {{{0, 0}}}}, 0, 0 },
283*3d8817e4Smiod   { "cc_V", 8, {0, {{{0, 0}}}}, 0, 0 },
284*3d8817e4Smiod   { "cc_NV", 10, {0, {{{0, 0}}}}, 0, 0 },
285*3d8817e4Smiod   { "cc_N", 12, {0, {{{0, 0}}}}, 0, 0 },
286*3d8817e4Smiod   { "cc_NN", 14, {0, {{{0, 0}}}}, 0, 0 },
287*3d8817e4Smiod   { "cc_ULT", 16, {0, {{{0, 0}}}}, 0, 0 },
288*3d8817e4Smiod   { "cc_UGE", 18, {0, {{{0, 0}}}}, 0, 0 },
289*3d8817e4Smiod   { "cc_C", 16, {0, {{{0, 0}}}}, 0, 0 },
290*3d8817e4Smiod   { "cc_NC", 18, {0, {{{0, 0}}}}, 0, 0 },
291*3d8817e4Smiod   { "cc_SGT", 20, {0, {{{0, 0}}}}, 0, 0 },
292*3d8817e4Smiod   { "cc_SLE", 22, {0, {{{0, 0}}}}, 0, 0 },
293*3d8817e4Smiod   { "cc_SLT", 24, {0, {{{0, 0}}}}, 0, 0 },
294*3d8817e4Smiod   { "cc_SGE", 26, {0, {{{0, 0}}}}, 0, 0 },
295*3d8817e4Smiod   { "cc_UGT", 28, {0, {{{0, 0}}}}, 0, 0 },
296*3d8817e4Smiod   { "cc_ULE", 30, {0, {{{0, 0}}}}, 0, 0 },
297*3d8817e4Smiod   { "cc_nusr0", 1, {0, {{{0, 0}}}}, 0, 0 },
298*3d8817e4Smiod   { "cc_nusr1", 3, {0, {{{0, 0}}}}, 0, 0 },
299*3d8817e4Smiod   { "cc_usr0", 5, {0, {{{0, 0}}}}, 0, 0 },
300*3d8817e4Smiod   { "cc_usr1", 7, {0, {{{0, 0}}}}, 0, 0 }
301*3d8817e4Smiod };
302*3d8817e4Smiod 
303*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_extconditioncode_names =
304*3d8817e4Smiod {
305*3d8817e4Smiod   & xc16x_cgen_opval_extconditioncode_names_entries[0],
306*3d8817e4Smiod   24,
307*3d8817e4Smiod   0, 0, 0, 0, ""
308*3d8817e4Smiod };
309*3d8817e4Smiod 
310*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_grb8_names_entries[] =
311*3d8817e4Smiod {
312*3d8817e4Smiod   { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
313*3d8817e4Smiod   { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
314*3d8817e4Smiod   { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
315*3d8817e4Smiod   { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
316*3d8817e4Smiod   { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
317*3d8817e4Smiod   { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
318*3d8817e4Smiod   { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
319*3d8817e4Smiod   { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
320*3d8817e4Smiod   { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
321*3d8817e4Smiod   { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
322*3d8817e4Smiod   { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
323*3d8817e4Smiod   { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
324*3d8817e4Smiod   { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
325*3d8817e4Smiod   { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
326*3d8817e4Smiod   { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
327*3d8817e4Smiod   { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
328*3d8817e4Smiod   { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
329*3d8817e4Smiod   { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
330*3d8817e4Smiod   { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
331*3d8817e4Smiod   { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
332*3d8817e4Smiod   { "rl0", 240, {0, {{{0, 0}}}}, 0, 0 },
333*3d8817e4Smiod   { "rh0", 241, {0, {{{0, 0}}}}, 0, 0 },
334*3d8817e4Smiod   { "rl1", 242, {0, {{{0, 0}}}}, 0, 0 },
335*3d8817e4Smiod   { "rh1", 243, {0, {{{0, 0}}}}, 0, 0 },
336*3d8817e4Smiod   { "rl2", 244, {0, {{{0, 0}}}}, 0, 0 },
337*3d8817e4Smiod   { "rh2", 245, {0, {{{0, 0}}}}, 0, 0 },
338*3d8817e4Smiod   { "rl3", 246, {0, {{{0, 0}}}}, 0, 0 },
339*3d8817e4Smiod   { "rh3", 247, {0, {{{0, 0}}}}, 0, 0 },
340*3d8817e4Smiod   { "rl4", 248, {0, {{{0, 0}}}}, 0, 0 },
341*3d8817e4Smiod   { "rh4", 249, {0, {{{0, 0}}}}, 0, 0 },
342*3d8817e4Smiod   { "rl5", 250, {0, {{{0, 0}}}}, 0, 0 },
343*3d8817e4Smiod   { "rh5", 251, {0, {{{0, 0}}}}, 0, 0 },
344*3d8817e4Smiod   { "rl6", 252, {0, {{{0, 0}}}}, 0, 0 },
345*3d8817e4Smiod   { "rh6", 253, {0, {{{0, 0}}}}, 0, 0 },
346*3d8817e4Smiod   { "rl7", 254, {0, {{{0, 0}}}}, 0, 0 },
347*3d8817e4Smiod   { "rh7", 255, {0, {{{0, 0}}}}, 0, 0 }
348*3d8817e4Smiod };
349*3d8817e4Smiod 
350*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_grb8_names =
351*3d8817e4Smiod {
352*3d8817e4Smiod   & xc16x_cgen_opval_grb8_names_entries[0],
353*3d8817e4Smiod   36,
354*3d8817e4Smiod   0, 0, 0, 0, ""
355*3d8817e4Smiod };
356*3d8817e4Smiod 
357*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_r8_names_entries[] =
358*3d8817e4Smiod {
359*3d8817e4Smiod   { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
360*3d8817e4Smiod   { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
361*3d8817e4Smiod   { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
362*3d8817e4Smiod   { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
363*3d8817e4Smiod   { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
364*3d8817e4Smiod   { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
365*3d8817e4Smiod   { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
366*3d8817e4Smiod   { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
367*3d8817e4Smiod   { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
368*3d8817e4Smiod   { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
369*3d8817e4Smiod   { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
370*3d8817e4Smiod   { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
371*3d8817e4Smiod   { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
372*3d8817e4Smiod   { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
373*3d8817e4Smiod   { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
374*3d8817e4Smiod   { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
375*3d8817e4Smiod   { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
376*3d8817e4Smiod   { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
377*3d8817e4Smiod   { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
378*3d8817e4Smiod   { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
379*3d8817e4Smiod   { "r0", 240, {0, {{{0, 0}}}}, 0, 0 },
380*3d8817e4Smiod   { "r1", 241, {0, {{{0, 0}}}}, 0, 0 },
381*3d8817e4Smiod   { "r2", 242, {0, {{{0, 0}}}}, 0, 0 },
382*3d8817e4Smiod   { "r3", 243, {0, {{{0, 0}}}}, 0, 0 },
383*3d8817e4Smiod   { "r4", 244, {0, {{{0, 0}}}}, 0, 0 },
384*3d8817e4Smiod   { "r5", 245, {0, {{{0, 0}}}}, 0, 0 },
385*3d8817e4Smiod   { "r6", 246, {0, {{{0, 0}}}}, 0, 0 },
386*3d8817e4Smiod   { "r7", 247, {0, {{{0, 0}}}}, 0, 0 },
387*3d8817e4Smiod   { "r8", 248, {0, {{{0, 0}}}}, 0, 0 },
388*3d8817e4Smiod   { "r9", 249, {0, {{{0, 0}}}}, 0, 0 },
389*3d8817e4Smiod   { "r10", 250, {0, {{{0, 0}}}}, 0, 0 },
390*3d8817e4Smiod   { "r11", 251, {0, {{{0, 0}}}}, 0, 0 },
391*3d8817e4Smiod   { "r12", 252, {0, {{{0, 0}}}}, 0, 0 },
392*3d8817e4Smiod   { "r13", 253, {0, {{{0, 0}}}}, 0, 0 },
393*3d8817e4Smiod   { "r14", 254, {0, {{{0, 0}}}}, 0, 0 },
394*3d8817e4Smiod   { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
395*3d8817e4Smiod };
396*3d8817e4Smiod 
397*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_r8_names =
398*3d8817e4Smiod {
399*3d8817e4Smiod   & xc16x_cgen_opval_r8_names_entries[0],
400*3d8817e4Smiod   36,
401*3d8817e4Smiod   0, 0, 0, 0, ""
402*3d8817e4Smiod };
403*3d8817e4Smiod 
404*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regmem8_names_entries[] =
405*3d8817e4Smiod {
406*3d8817e4Smiod   { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
407*3d8817e4Smiod   { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
408*3d8817e4Smiod   { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
409*3d8817e4Smiod   { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
410*3d8817e4Smiod   { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
411*3d8817e4Smiod   { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
412*3d8817e4Smiod   { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
413*3d8817e4Smiod   { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
414*3d8817e4Smiod   { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
415*3d8817e4Smiod   { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
416*3d8817e4Smiod   { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
417*3d8817e4Smiod   { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
418*3d8817e4Smiod   { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
419*3d8817e4Smiod   { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
420*3d8817e4Smiod   { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
421*3d8817e4Smiod   { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
422*3d8817e4Smiod   { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
423*3d8817e4Smiod   { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
424*3d8817e4Smiod   { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
425*3d8817e4Smiod   { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
426*3d8817e4Smiod   { "r0", 240, {0, {{{0, 0}}}}, 0, 0 },
427*3d8817e4Smiod   { "r1", 241, {0, {{{0, 0}}}}, 0, 0 },
428*3d8817e4Smiod   { "r2", 242, {0, {{{0, 0}}}}, 0, 0 },
429*3d8817e4Smiod   { "r3", 243, {0, {{{0, 0}}}}, 0, 0 },
430*3d8817e4Smiod   { "r4", 244, {0, {{{0, 0}}}}, 0, 0 },
431*3d8817e4Smiod   { "r5", 245, {0, {{{0, 0}}}}, 0, 0 },
432*3d8817e4Smiod   { "r6", 246, {0, {{{0, 0}}}}, 0, 0 },
433*3d8817e4Smiod   { "r7", 247, {0, {{{0, 0}}}}, 0, 0 },
434*3d8817e4Smiod   { "r8", 248, {0, {{{0, 0}}}}, 0, 0 },
435*3d8817e4Smiod   { "r9", 249, {0, {{{0, 0}}}}, 0, 0 },
436*3d8817e4Smiod   { "r10", 250, {0, {{{0, 0}}}}, 0, 0 },
437*3d8817e4Smiod   { "r11", 251, {0, {{{0, 0}}}}, 0, 0 },
438*3d8817e4Smiod   { "r12", 252, {0, {{{0, 0}}}}, 0, 0 },
439*3d8817e4Smiod   { "r13", 253, {0, {{{0, 0}}}}, 0, 0 },
440*3d8817e4Smiod   { "r14", 254, {0, {{{0, 0}}}}, 0, 0 },
441*3d8817e4Smiod   { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
442*3d8817e4Smiod };
443*3d8817e4Smiod 
444*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_regmem8_names =
445*3d8817e4Smiod {
446*3d8817e4Smiod   & xc16x_cgen_opval_regmem8_names_entries[0],
447*3d8817e4Smiod   36,
448*3d8817e4Smiod   0, 0, 0, 0, ""
449*3d8817e4Smiod };
450*3d8817e4Smiod 
451*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regdiv8_names_entries[] =
452*3d8817e4Smiod {
453*3d8817e4Smiod   { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
454*3d8817e4Smiod   { "r1", 17, {0, {{{0, 0}}}}, 0, 0 },
455*3d8817e4Smiod   { "r2", 34, {0, {{{0, 0}}}}, 0, 0 },
456*3d8817e4Smiod   { "r3", 51, {0, {{{0, 0}}}}, 0, 0 },
457*3d8817e4Smiod   { "r4", 68, {0, {{{0, 0}}}}, 0, 0 },
458*3d8817e4Smiod   { "r5", 85, {0, {{{0, 0}}}}, 0, 0 },
459*3d8817e4Smiod   { "r6", 102, {0, {{{0, 0}}}}, 0, 0 },
460*3d8817e4Smiod   { "r7", 119, {0, {{{0, 0}}}}, 0, 0 },
461*3d8817e4Smiod   { "r8", 136, {0, {{{0, 0}}}}, 0, 0 },
462*3d8817e4Smiod   { "r9", 153, {0, {{{0, 0}}}}, 0, 0 },
463*3d8817e4Smiod   { "r10", 170, {0, {{{0, 0}}}}, 0, 0 },
464*3d8817e4Smiod   { "r11", 187, {0, {{{0, 0}}}}, 0, 0 },
465*3d8817e4Smiod   { "r12", 204, {0, {{{0, 0}}}}, 0, 0 },
466*3d8817e4Smiod   { "r13", 221, {0, {{{0, 0}}}}, 0, 0 },
467*3d8817e4Smiod   { "r14", 238, {0, {{{0, 0}}}}, 0, 0 },
468*3d8817e4Smiod   { "r15", 255, {0, {{{0, 0}}}}, 0, 0 }
469*3d8817e4Smiod };
470*3d8817e4Smiod 
471*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_regdiv8_names =
472*3d8817e4Smiod {
473*3d8817e4Smiod   & xc16x_cgen_opval_regdiv8_names_entries[0],
474*3d8817e4Smiod   16,
475*3d8817e4Smiod   0, 0, 0, 0, ""
476*3d8817e4Smiod };
477*3d8817e4Smiod 
478*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_reg0_name_entries[] =
479*3d8817e4Smiod {
480*3d8817e4Smiod   { "0x1", 1, {0, {{{0, 0}}}}, 0, 0 },
481*3d8817e4Smiod   { "0x2", 2, {0, {{{0, 0}}}}, 0, 0 },
482*3d8817e4Smiod   { "0x3", 3, {0, {{{0, 0}}}}, 0, 0 },
483*3d8817e4Smiod   { "0x4", 4, {0, {{{0, 0}}}}, 0, 0 },
484*3d8817e4Smiod   { "0x5", 5, {0, {{{0, 0}}}}, 0, 0 },
485*3d8817e4Smiod   { "0x6", 6, {0, {{{0, 0}}}}, 0, 0 },
486*3d8817e4Smiod   { "0x7", 7, {0, {{{0, 0}}}}, 0, 0 },
487*3d8817e4Smiod   { "0x8", 8, {0, {{{0, 0}}}}, 0, 0 },
488*3d8817e4Smiod   { "0x9", 9, {0, {{{0, 0}}}}, 0, 0 },
489*3d8817e4Smiod   { "0xa", 10, {0, {{{0, 0}}}}, 0, 0 },
490*3d8817e4Smiod   { "0xb", 11, {0, {{{0, 0}}}}, 0, 0 },
491*3d8817e4Smiod   { "0xc", 12, {0, {{{0, 0}}}}, 0, 0 },
492*3d8817e4Smiod   { "0xd", 13, {0, {{{0, 0}}}}, 0, 0 },
493*3d8817e4Smiod   { "0xe", 14, {0, {{{0, 0}}}}, 0, 0 },
494*3d8817e4Smiod   { "0xf", 15, {0, {{{0, 0}}}}, 0, 0 },
495*3d8817e4Smiod   { "1", 1, {0, {{{0, 0}}}}, 0, 0 },
496*3d8817e4Smiod   { "2", 2, {0, {{{0, 0}}}}, 0, 0 },
497*3d8817e4Smiod   { "3", 3, {0, {{{0, 0}}}}, 0, 0 },
498*3d8817e4Smiod   { "4", 4, {0, {{{0, 0}}}}, 0, 0 },
499*3d8817e4Smiod   { "5", 5, {0, {{{0, 0}}}}, 0, 0 },
500*3d8817e4Smiod   { "6", 6, {0, {{{0, 0}}}}, 0, 0 },
501*3d8817e4Smiod   { "7", 7, {0, {{{0, 0}}}}, 0, 0 },
502*3d8817e4Smiod   { "8", 8, {0, {{{0, 0}}}}, 0, 0 },
503*3d8817e4Smiod   { "9", 9, {0, {{{0, 0}}}}, 0, 0 },
504*3d8817e4Smiod   { "10", 10, {0, {{{0, 0}}}}, 0, 0 },
505*3d8817e4Smiod   { "11", 11, {0, {{{0, 0}}}}, 0, 0 },
506*3d8817e4Smiod   { "12", 12, {0, {{{0, 0}}}}, 0, 0 },
507*3d8817e4Smiod   { "13", 13, {0, {{{0, 0}}}}, 0, 0 },
508*3d8817e4Smiod   { "14", 14, {0, {{{0, 0}}}}, 0, 0 },
509*3d8817e4Smiod   { "15", 15, {0, {{{0, 0}}}}, 0, 0 }
510*3d8817e4Smiod };
511*3d8817e4Smiod 
512*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_reg0_name =
513*3d8817e4Smiod {
514*3d8817e4Smiod   & xc16x_cgen_opval_reg0_name_entries[0],
515*3d8817e4Smiod   30,
516*3d8817e4Smiod   0, 0, 0, 0, ""
517*3d8817e4Smiod };
518*3d8817e4Smiod 
519*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_reg0_name1_entries[] =
520*3d8817e4Smiod {
521*3d8817e4Smiod   { "0x1", 1, {0, {{{0, 0}}}}, 0, 0 },
522*3d8817e4Smiod   { "0x2", 2, {0, {{{0, 0}}}}, 0, 0 },
523*3d8817e4Smiod   { "0x3", 3, {0, {{{0, 0}}}}, 0, 0 },
524*3d8817e4Smiod   { "0x4", 4, {0, {{{0, 0}}}}, 0, 0 },
525*3d8817e4Smiod   { "0x5", 5, {0, {{{0, 0}}}}, 0, 0 },
526*3d8817e4Smiod   { "0x6", 6, {0, {{{0, 0}}}}, 0, 0 },
527*3d8817e4Smiod   { "0x7", 7, {0, {{{0, 0}}}}, 0, 0 },
528*3d8817e4Smiod   { "1", 1, {0, {{{0, 0}}}}, 0, 0 },
529*3d8817e4Smiod   { "2", 2, {0, {{{0, 0}}}}, 0, 0 },
530*3d8817e4Smiod   { "3", 3, {0, {{{0, 0}}}}, 0, 0 },
531*3d8817e4Smiod   { "4", 4, {0, {{{0, 0}}}}, 0, 0 },
532*3d8817e4Smiod   { "5", 5, {0, {{{0, 0}}}}, 0, 0 },
533*3d8817e4Smiod   { "6", 6, {0, {{{0, 0}}}}, 0, 0 },
534*3d8817e4Smiod   { "7", 7, {0, {{{0, 0}}}}, 0, 0 }
535*3d8817e4Smiod };
536*3d8817e4Smiod 
537*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_reg0_name1 =
538*3d8817e4Smiod {
539*3d8817e4Smiod   & xc16x_cgen_opval_reg0_name1_entries[0],
540*3d8817e4Smiod   14,
541*3d8817e4Smiod   0, 0, 0, 0, ""
542*3d8817e4Smiod };
543*3d8817e4Smiod 
544*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_regbmem8_names_entries[] =
545*3d8817e4Smiod {
546*3d8817e4Smiod   { "dpp0", 0, {0, {{{0, 0}}}}, 0, 0 },
547*3d8817e4Smiod   { "dpp1", 1, {0, {{{0, 0}}}}, 0, 0 },
548*3d8817e4Smiod   { "dpp2", 2, {0, {{{0, 0}}}}, 0, 0 },
549*3d8817e4Smiod   { "dpp3", 3, {0, {{{0, 0}}}}, 0, 0 },
550*3d8817e4Smiod   { "psw", 136, {0, {{{0, 0}}}}, 0, 0 },
551*3d8817e4Smiod   { "cp", 8, {0, {{{0, 0}}}}, 0, 0 },
552*3d8817e4Smiod   { "mdl", 7, {0, {{{0, 0}}}}, 0, 0 },
553*3d8817e4Smiod   { "mdh", 6, {0, {{{0, 0}}}}, 0, 0 },
554*3d8817e4Smiod   { "mdc", 135, {0, {{{0, 0}}}}, 0, 0 },
555*3d8817e4Smiod   { "sp", 9, {0, {{{0, 0}}}}, 0, 0 },
556*3d8817e4Smiod   { "csp", 4, {0, {{{0, 0}}}}, 0, 0 },
557*3d8817e4Smiod   { "vecseg", 137, {0, {{{0, 0}}}}, 0, 0 },
558*3d8817e4Smiod   { "stkov", 10, {0, {{{0, 0}}}}, 0, 0 },
559*3d8817e4Smiod   { "stkun", 11, {0, {{{0, 0}}}}, 0, 0 },
560*3d8817e4Smiod   { "cpucon1", 12, {0, {{{0, 0}}}}, 0, 0 },
561*3d8817e4Smiod   { "cpucon2", 13, {0, {{{0, 0}}}}, 0, 0 },
562*3d8817e4Smiod   { "zeros", 142, {0, {{{0, 0}}}}, 0, 0 },
563*3d8817e4Smiod   { "ones", 143, {0, {{{0, 0}}}}, 0, 0 },
564*3d8817e4Smiod   { "spseg", 134, {0, {{{0, 0}}}}, 0, 0 },
565*3d8817e4Smiod   { "tfr", 214, {0, {{{0, 0}}}}, 0, 0 },
566*3d8817e4Smiod   { "rl0", 240, {0, {{{0, 0}}}}, 0, 0 },
567*3d8817e4Smiod   { "rh0", 241, {0, {{{0, 0}}}}, 0, 0 },
568*3d8817e4Smiod   { "rl1", 242, {0, {{{0, 0}}}}, 0, 0 },
569*3d8817e4Smiod   { "rh1", 243, {0, {{{0, 0}}}}, 0, 0 },
570*3d8817e4Smiod   { "rl2", 244, {0, {{{0, 0}}}}, 0, 0 },
571*3d8817e4Smiod   { "rh2", 245, {0, {{{0, 0}}}}, 0, 0 },
572*3d8817e4Smiod   { "rl3", 246, {0, {{{0, 0}}}}, 0, 0 },
573*3d8817e4Smiod   { "rh3", 247, {0, {{{0, 0}}}}, 0, 0 },
574*3d8817e4Smiod   { "rl4", 248, {0, {{{0, 0}}}}, 0, 0 },
575*3d8817e4Smiod   { "rh4", 249, {0, {{{0, 0}}}}, 0, 0 },
576*3d8817e4Smiod   { "rl5", 250, {0, {{{0, 0}}}}, 0, 0 },
577*3d8817e4Smiod   { "rh5", 251, {0, {{{0, 0}}}}, 0, 0 },
578*3d8817e4Smiod   { "rl6", 252, {0, {{{0, 0}}}}, 0, 0 },
579*3d8817e4Smiod   { "rh6", 253, {0, {{{0, 0}}}}, 0, 0 },
580*3d8817e4Smiod   { "rl7", 254, {0, {{{0, 0}}}}, 0, 0 },
581*3d8817e4Smiod   { "rh7", 255, {0, {{{0, 0}}}}, 0, 0 }
582*3d8817e4Smiod };
583*3d8817e4Smiod 
584*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_regbmem8_names =
585*3d8817e4Smiod {
586*3d8817e4Smiod   & xc16x_cgen_opval_regbmem8_names_entries[0],
587*3d8817e4Smiod   36,
588*3d8817e4Smiod   0, 0, 0, 0, ""
589*3d8817e4Smiod };
590*3d8817e4Smiod 
591*3d8817e4Smiod static CGEN_KEYWORD_ENTRY xc16x_cgen_opval_memgr8_names_entries[] =
592*3d8817e4Smiod {
593*3d8817e4Smiod   { "dpp0", 65024, {0, {{{0, 0}}}}, 0, 0 },
594*3d8817e4Smiod   { "dpp1", 65026, {0, {{{0, 0}}}}, 0, 0 },
595*3d8817e4Smiod   { "dpp2", 65028, {0, {{{0, 0}}}}, 0, 0 },
596*3d8817e4Smiod   { "dpp3", 65030, {0, {{{0, 0}}}}, 0, 0 },
597*3d8817e4Smiod   { "psw", 65296, {0, {{{0, 0}}}}, 0, 0 },
598*3d8817e4Smiod   { "cp", 65040, {0, {{{0, 0}}}}, 0, 0 },
599*3d8817e4Smiod   { "mdl", 65038, {0, {{{0, 0}}}}, 0, 0 },
600*3d8817e4Smiod   { "mdh", 65036, {0, {{{0, 0}}}}, 0, 0 },
601*3d8817e4Smiod   { "mdc", 65294, {0, {{{0, 0}}}}, 0, 0 },
602*3d8817e4Smiod   { "sp", 65042, {0, {{{0, 0}}}}, 0, 0 },
603*3d8817e4Smiod   { "csp", 65032, {0, {{{0, 0}}}}, 0, 0 },
604*3d8817e4Smiod   { "vecseg", 65298, {0, {{{0, 0}}}}, 0, 0 },
605*3d8817e4Smiod   { "stkov", 65044, {0, {{{0, 0}}}}, 0, 0 },
606*3d8817e4Smiod   { "stkun", 65046, {0, {{{0, 0}}}}, 0, 0 },
607*3d8817e4Smiod   { "cpucon1", 65048, {0, {{{0, 0}}}}, 0, 0 },
608*3d8817e4Smiod   { "cpucon2", 65050, {0, {{{0, 0}}}}, 0, 0 },
609*3d8817e4Smiod   { "zeros", 65308, {0, {{{0, 0}}}}, 0, 0 },
610*3d8817e4Smiod   { "ones", 65310, {0, {{{0, 0}}}}, 0, 0 },
611*3d8817e4Smiod   { "spseg", 65292, {0, {{{0, 0}}}}, 0, 0 },
612*3d8817e4Smiod   { "tfr", 65452, {0, {{{0, 0}}}}, 0, 0 }
613*3d8817e4Smiod };
614*3d8817e4Smiod 
615*3d8817e4Smiod CGEN_KEYWORD xc16x_cgen_opval_memgr8_names =
616*3d8817e4Smiod {
617*3d8817e4Smiod   & xc16x_cgen_opval_memgr8_names_entries[0],
618*3d8817e4Smiod   20,
619*3d8817e4Smiod   0, 0, 0, 0, ""
620*3d8817e4Smiod };
621*3d8817e4Smiod 
622*3d8817e4Smiod 
623*3d8817e4Smiod /* The hardware table.  */
624*3d8817e4Smiod 
625*3d8817e4Smiod #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
626*3d8817e4Smiod #define A(a) (1 << CGEN_HW_##a)
627*3d8817e4Smiod #else
628*3d8817e4Smiod #define A(a) (1 << CGEN_HW_/**/a)
629*3d8817e4Smiod #endif
630*3d8817e4Smiod 
631*3d8817e4Smiod const CGEN_HW_ENTRY xc16x_cgen_hw_table[] =
632*3d8817e4Smiod {
633*3d8817e4Smiod   { "h-memory", HW_H_MEMORY, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
634*3d8817e4Smiod   { "h-sint", HW_H_SINT, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
635*3d8817e4Smiod   { "h-uint", HW_H_UINT, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
636*3d8817e4Smiod   { "h-addr", HW_H_ADDR, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
637*3d8817e4Smiod   { "h-iaddr", HW_H_IADDR, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
638*3d8817e4Smiod   { "h-pc", HW_H_PC, CGEN_ASM_NONE, 0, { 0|A(PC), { { { (1<<MACH_BASE), 0 } } } } },
639*3d8817e4Smiod   { "h-gr", HW_H_GR, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_gr_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
640*3d8817e4Smiod   { "h-ext", HW_H_EXT, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_ext_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
641*3d8817e4Smiod   { "h-psw", HW_H_PSW, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_psw_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
642*3d8817e4Smiod   { "h-grb", HW_H_GRB, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_grb_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
643*3d8817e4Smiod   { "h-cc", HW_H_CC, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_conditioncode_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
644*3d8817e4Smiod   { "h-ecc", HW_H_ECC, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_extconditioncode_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
645*3d8817e4Smiod   { "h-grb8", HW_H_GRB8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_grb8_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
646*3d8817e4Smiod   { "h-r8", HW_H_R8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_r8_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
647*3d8817e4Smiod   { "h-regmem8", HW_H_REGMEM8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_regmem8_names, { 0, { { { (1<<MACH_BASE), 0 } } } } },
648*3d8817e4Smiod   { "h-regdiv8", HW_H_REGDIV8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_regdiv8_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
649*3d8817e4Smiod   { "h-r0", HW_H_R0, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_reg0_name, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
650*3d8817e4Smiod   { "h-r01", HW_H_R01, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_reg0_name1, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
651*3d8817e4Smiod   { "h-regbmem8", HW_H_REGBMEM8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_regbmem8_names, { 0|A(CACHE_ADDR)|A(PROFILE), { { { (1<<MACH_BASE), 0 } } } } },
652*3d8817e4Smiod   { "h-memgr8", HW_H_MEMGR8, CGEN_ASM_KEYWORD, (PTR) & xc16x_cgen_opval_memgr8_names, { 0, { { { (1<<MACH_BASE), 0 } } } } },
653*3d8817e4Smiod   { "h-cond", HW_H_COND, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
654*3d8817e4Smiod   { "h-cbit", HW_H_CBIT, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
655*3d8817e4Smiod   { "h-sgtdis", HW_H_SGTDIS, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } },
656*3d8817e4Smiod   { 0, 0, CGEN_ASM_NONE, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } }
657*3d8817e4Smiod };
658*3d8817e4Smiod 
659*3d8817e4Smiod #undef A
660*3d8817e4Smiod 
661*3d8817e4Smiod 
662*3d8817e4Smiod /* The instruction field table.  */
663*3d8817e4Smiod 
664*3d8817e4Smiod #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
665*3d8817e4Smiod #define A(a) (1 << CGEN_IFLD_##a)
666*3d8817e4Smiod #else
667*3d8817e4Smiod #define A(a) (1 << CGEN_IFLD_/**/a)
668*3d8817e4Smiod #endif
669*3d8817e4Smiod 
670*3d8817e4Smiod const CGEN_IFLD xc16x_cgen_ifld_table[] =
671*3d8817e4Smiod {
672*3d8817e4Smiod   { XC16X_F_NIL, "f-nil", 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
673*3d8817e4Smiod   { XC16X_F_ANYOF, "f-anyof", 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
674*3d8817e4Smiod   { XC16X_F_OP1, "f-op1", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
675*3d8817e4Smiod   { XC16X_F_OP2, "f-op2", 0, 32, 3, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
676*3d8817e4Smiod   { XC16X_F_CONDCODE, "f-condcode", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
677*3d8817e4Smiod   { XC16X_F_ICONDCODE, "f-icondcode", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
678*3d8817e4Smiod   { XC16X_F_RCOND, "f-rcond", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
679*3d8817e4Smiod   { XC16X_F_QCOND, "f-qcond", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
680*3d8817e4Smiod   { XC16X_F_EXTCCODE, "f-extccode", 0, 32, 15, 5, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
681*3d8817e4Smiod   { XC16X_F_R0, "f-r0", 0, 32, 9, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
682*3d8817e4Smiod   { XC16X_F_R1, "f-r1", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
683*3d8817e4Smiod   { XC16X_F_R2, "f-r2", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
684*3d8817e4Smiod   { XC16X_F_R3, "f-r3", 0, 32, 12, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
685*3d8817e4Smiod   { XC16X_F_R4, "f-r4", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
686*3d8817e4Smiod   { XC16X_F_UIMM2, "f-uimm2", 0, 32, 13, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
687*3d8817e4Smiod   { XC16X_F_UIMM3, "f-uimm3", 0, 32, 10, 3, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
688*3d8817e4Smiod   { XC16X_F_UIMM4, "f-uimm4", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
689*3d8817e4Smiod   { XC16X_F_UIMM7, "f-uimm7", 0, 32, 15, 7, { 0|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
690*3d8817e4Smiod   { XC16X_F_UIMM8, "f-uimm8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
691*3d8817e4Smiod   { XC16X_F_UIMM16, "f-uimm16", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
692*3d8817e4Smiod   { XC16X_F_MEMORY, "f-memory", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
693*3d8817e4Smiod   { XC16X_F_MEMGR8, "f-memgr8", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
694*3d8817e4Smiod   { XC16X_F_REL8, "f-rel8", 0, 32, 15, 8, { 0|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
695*3d8817e4Smiod   { XC16X_F_RELHI8, "f-relhi8", 0, 32, 23, 8, { 0|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
696*3d8817e4Smiod   { XC16X_F_REG8, "f-reg8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
697*3d8817e4Smiod   { XC16X_F_REGMEM8, "f-regmem8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
698*3d8817e4Smiod   { XC16X_F_REGOFF8, "f-regoff8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
699*3d8817e4Smiod   { XC16X_F_REGHI8, "f-reghi8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
700*3d8817e4Smiod   { XC16X_F_REGB8, "f-regb8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
701*3d8817e4Smiod   { XC16X_F_SEG8, "f-seg8", 0, 32, 15, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
702*3d8817e4Smiod   { XC16X_F_SEGNUM8, "f-segnum8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
703*3d8817e4Smiod   { XC16X_F_MASK8, "f-mask8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
704*3d8817e4Smiod   { XC16X_F_PAGENUM, "f-pagenum", 0, 32, 25, 10, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
705*3d8817e4Smiod   { XC16X_F_DATAHI8, "f-datahi8", 0, 32, 31, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
706*3d8817e4Smiod   { XC16X_F_DATA8, "f-data8", 0, 32, 23, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
707*3d8817e4Smiod   { XC16X_F_OFFSET16, "f-offset16", 0, 32, 31, 16, { 0|A(RELOC)|A(ABS_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
708*3d8817e4Smiod   { XC16X_F_OP_BIT1, "f-op-bit1", 0, 32, 11, 1, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
709*3d8817e4Smiod   { XC16X_F_OP_BIT2, "f-op-bit2", 0, 32, 11, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
710*3d8817e4Smiod   { XC16X_F_OP_BIT4, "f-op-bit4", 0, 32, 11, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
711*3d8817e4Smiod   { XC16X_F_OP_BIT3, "f-op-bit3", 0, 32, 10, 3, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
712*3d8817e4Smiod   { XC16X_F_OP_2BIT, "f-op-2bit", 0, 32, 10, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
713*3d8817e4Smiod   { XC16X_F_OP_BITONE, "f-op-bitone", 0, 32, 10, 1, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
714*3d8817e4Smiod   { XC16X_F_OP_ONEBIT, "f-op-onebit", 0, 32, 9, 1, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
715*3d8817e4Smiod   { XC16X_F_OP_1BIT, "f-op-1bit", 0, 32, 8, 1, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
716*3d8817e4Smiod   { XC16X_F_OP_LBIT4, "f-op-lbit4", 0, 32, 15, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
717*3d8817e4Smiod   { XC16X_F_OP_LBIT2, "f-op-lbit2", 0, 32, 15, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
718*3d8817e4Smiod   { XC16X_F_OP_BIT8, "f-op-bit8", 0, 32, 31, 8, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
719*3d8817e4Smiod   { XC16X_F_OP_BIT16, "f-op-bit16", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
720*3d8817e4Smiod   { XC16X_F_QBIT, "f-qbit", 0, 32, 7, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
721*3d8817e4Smiod   { XC16X_F_QLOBIT, "f-qlobit", 0, 32, 31, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
722*3d8817e4Smiod   { XC16X_F_QHIBIT, "f-qhibit", 0, 32, 27, 4, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
723*3d8817e4Smiod   { XC16X_F_QLOBIT2, "f-qlobit2", 0, 32, 27, 2, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
724*3d8817e4Smiod   { XC16X_F_POF, "f-pof", 0, 32, 31, 16, { 0, { { { (1<<MACH_BASE), 0 } } } }  },
725*3d8817e4Smiod   { 0, 0, 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE), 0 } } } } }
726*3d8817e4Smiod };
727*3d8817e4Smiod 
728*3d8817e4Smiod #undef A
729*3d8817e4Smiod 
730*3d8817e4Smiod 
731*3d8817e4Smiod 
732*3d8817e4Smiod /* multi ifield declarations */
733*3d8817e4Smiod 
734*3d8817e4Smiod 
735*3d8817e4Smiod 
736*3d8817e4Smiod /* multi ifield definitions */
737*3d8817e4Smiod 
738*3d8817e4Smiod 
739*3d8817e4Smiod /* The operand table.  */
740*3d8817e4Smiod 
741*3d8817e4Smiod #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
742*3d8817e4Smiod #define A(a) (1 << CGEN_OPERAND_##a)
743*3d8817e4Smiod #else
744*3d8817e4Smiod #define A(a) (1 << CGEN_OPERAND_/**/a)
745*3d8817e4Smiod #endif
746*3d8817e4Smiod #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
747*3d8817e4Smiod #define OPERAND(op) XC16X_OPERAND_##op
748*3d8817e4Smiod #else
749*3d8817e4Smiod #define OPERAND(op) XC16X_OPERAND_/**/op
750*3d8817e4Smiod #endif
751*3d8817e4Smiod 
752*3d8817e4Smiod const CGEN_OPERAND xc16x_cgen_operand_table[] =
753*3d8817e4Smiod {
754*3d8817e4Smiod /* pc: program counter */
755*3d8817e4Smiod   { "pc", XC16X_OPERAND_PC, HW_H_PC, 0, 0,
756*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_NIL] } },
757*3d8817e4Smiod     { 0|A(SEM_ONLY), { { { (1<<MACH_BASE), 0 } } } }  },
758*3d8817e4Smiod /* sr: source register */
759*3d8817e4Smiod   { "sr", XC16X_OPERAND_SR, HW_H_GR, 11, 4,
760*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R2] } },
761*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
762*3d8817e4Smiod /* dr: destination register */
763*3d8817e4Smiod   { "dr", XC16X_OPERAND_DR, HW_H_GR, 15, 4,
764*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R1] } },
765*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
766*3d8817e4Smiod /* dri: destination register */
767*3d8817e4Smiod   { "dri", XC16X_OPERAND_DRI, HW_H_GR, 11, 4,
768*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R4] } },
769*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
770*3d8817e4Smiod /* srb: source register */
771*3d8817e4Smiod   { "srb", XC16X_OPERAND_SRB, HW_H_GRB, 11, 4,
772*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R2] } },
773*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
774*3d8817e4Smiod /* drb: destination register */
775*3d8817e4Smiod   { "drb", XC16X_OPERAND_DRB, HW_H_GRB, 15, 4,
776*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R1] } },
777*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
778*3d8817e4Smiod /* sr2: 2 bit source register */
779*3d8817e4Smiod   { "sr2", XC16X_OPERAND_SR2, HW_H_GR, 9, 2,
780*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R0] } },
781*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
782*3d8817e4Smiod /* src1: source register 1 */
783*3d8817e4Smiod   { "src1", XC16X_OPERAND_SRC1, HW_H_GR, 15, 4,
784*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R1] } },
785*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
786*3d8817e4Smiod /* src2: source register 2 */
787*3d8817e4Smiod   { "src2", XC16X_OPERAND_SRC2, HW_H_GR, 11, 4,
788*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_R2] } },
789*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
790*3d8817e4Smiod /* srdiv: source register 2 */
791*3d8817e4Smiod   { "srdiv", XC16X_OPERAND_SRDIV, HW_H_REGDIV8, 15, 8,
792*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REG8] } },
793*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
794*3d8817e4Smiod /* RegNam: PSW bits */
795*3d8817e4Smiod   { "RegNam", XC16X_OPERAND_REGNAM, HW_H_PSW, 15, 8,
796*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REG8] } },
797*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
798*3d8817e4Smiod /* uimm2: 2 bit unsigned number */
799*3d8817e4Smiod   { "uimm2", XC16X_OPERAND_UIMM2, HW_H_EXT, 13, 2,
800*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM2] } },
801*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
802*3d8817e4Smiod /* uimm3: 3 bit unsigned number */
803*3d8817e4Smiod   { "uimm3", XC16X_OPERAND_UIMM3, HW_H_R01, 10, 3,
804*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM3] } },
805*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
806*3d8817e4Smiod /* uimm4: 4 bit unsigned number */
807*3d8817e4Smiod   { "uimm4", XC16X_OPERAND_UIMM4, HW_H_UINT, 15, 4,
808*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM4] } },
809*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
810*3d8817e4Smiod /* uimm7: 7 bit trap number */
811*3d8817e4Smiod   { "uimm7", XC16X_OPERAND_UIMM7, HW_H_UINT, 15, 7,
812*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM7] } },
813*3d8817e4Smiod     { 0|A(HASH_PREFIX)|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
814*3d8817e4Smiod /* uimm8: 8 bit unsigned immediate */
815*3d8817e4Smiod   { "uimm8", XC16X_OPERAND_UIMM8, HW_H_UINT, 23, 8,
816*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM8] } },
817*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
818*3d8817e4Smiod /* uimm16: 16 bit unsigned immediate */
819*3d8817e4Smiod   { "uimm16", XC16X_OPERAND_UIMM16, HW_H_UINT, 31, 16,
820*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM16] } },
821*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
822*3d8817e4Smiod /* upof16: 16 bit unsigned immediate */
823*3d8817e4Smiod   { "upof16", XC16X_OPERAND_UPOF16, HW_H_ADDR, 31, 16,
824*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_MEMORY] } },
825*3d8817e4Smiod     { 0|A(POF_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
826*3d8817e4Smiod /* reg8: 8 bit word register number */
827*3d8817e4Smiod   { "reg8", XC16X_OPERAND_REG8, HW_H_R8, 15, 8,
828*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REG8] } },
829*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
830*3d8817e4Smiod /* regmem8: 8 bit word register number */
831*3d8817e4Smiod   { "regmem8", XC16X_OPERAND_REGMEM8, HW_H_REGMEM8, 15, 8,
832*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGMEM8] } },
833*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
834*3d8817e4Smiod /* regbmem8: 8 bit byte register number */
835*3d8817e4Smiod   { "regbmem8", XC16X_OPERAND_REGBMEM8, HW_H_REGBMEM8, 15, 8,
836*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGMEM8] } },
837*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
838*3d8817e4Smiod /* regoff8: 8 bit word register number */
839*3d8817e4Smiod   { "regoff8", XC16X_OPERAND_REGOFF8, HW_H_R8, 15, 8,
840*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGOFF8] } },
841*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
842*3d8817e4Smiod /* reghi8: 8 bit word register number */
843*3d8817e4Smiod   { "reghi8", XC16X_OPERAND_REGHI8, HW_H_R8, 23, 8,
844*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGHI8] } },
845*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
846*3d8817e4Smiod /* regb8: 8 bit byte register number */
847*3d8817e4Smiod   { "regb8", XC16X_OPERAND_REGB8, HW_H_GRB8, 15, 8,
848*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGB8] } },
849*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
850*3d8817e4Smiod /* genreg: 8 bit word register number */
851*3d8817e4Smiod   { "genreg", XC16X_OPERAND_GENREG, HW_H_R8, 15, 8,
852*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REGB8] } },
853*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
854*3d8817e4Smiod /* seg: 8 bit segment number */
855*3d8817e4Smiod   { "seg", XC16X_OPERAND_SEG, HW_H_UINT, 15, 8,
856*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_SEG8] } },
857*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
858*3d8817e4Smiod /* seghi8: 8 bit hi segment number */
859*3d8817e4Smiod   { "seghi8", XC16X_OPERAND_SEGHI8, HW_H_UINT, 23, 8,
860*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_SEGNUM8] } },
861*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
862*3d8817e4Smiod /* caddr: 16 bit address offset */
863*3d8817e4Smiod   { "caddr", XC16X_OPERAND_CADDR, HW_H_ADDR, 31, 16,
864*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OFFSET16] } },
865*3d8817e4Smiod     { 0|A(RELOC)|A(ABS_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
866*3d8817e4Smiod /* rel: 8 bit signed relative offset */
867*3d8817e4Smiod   { "rel", XC16X_OPERAND_REL, HW_H_SINT, 15, 8,
868*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_REL8] } },
869*3d8817e4Smiod     { 0|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
870*3d8817e4Smiod /* relhi: hi 8 bit signed relative offset */
871*3d8817e4Smiod   { "relhi", XC16X_OPERAND_RELHI, HW_H_SINT, 23, 8,
872*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_RELHI8] } },
873*3d8817e4Smiod     { 0|A(RELOC)|A(PCREL_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
874*3d8817e4Smiod /* condbit: condition bit */
875*3d8817e4Smiod   { "condbit", XC16X_OPERAND_CONDBIT, HW_H_COND, 0, 0,
876*3d8817e4Smiod     { 0, { (const PTR) 0 } },
877*3d8817e4Smiod     { 0|A(SEM_ONLY), { { { (1<<MACH_BASE), 0 } } } }  },
878*3d8817e4Smiod /* bit1: gap of 1 bit */
879*3d8817e4Smiod   { "bit1", XC16X_OPERAND_BIT1, HW_H_UINT, 11, 1,
880*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_BIT1] } },
881*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
882*3d8817e4Smiod /* bit2: gap of 2 bits */
883*3d8817e4Smiod   { "bit2", XC16X_OPERAND_BIT2, HW_H_UINT, 11, 2,
884*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_BIT2] } },
885*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
886*3d8817e4Smiod /* bit4: gap of 4 bits */
887*3d8817e4Smiod   { "bit4", XC16X_OPERAND_BIT4, HW_H_UINT, 11, 4,
888*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_BIT4] } },
889*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
890*3d8817e4Smiod /* lbit4: gap of 4 bits */
891*3d8817e4Smiod   { "lbit4", XC16X_OPERAND_LBIT4, HW_H_UINT, 15, 4,
892*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_LBIT4] } },
893*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
894*3d8817e4Smiod /* lbit2: gap of 2 bits */
895*3d8817e4Smiod   { "lbit2", XC16X_OPERAND_LBIT2, HW_H_UINT, 15, 2,
896*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_LBIT2] } },
897*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
898*3d8817e4Smiod /* bit8: gap of 8 bits */
899*3d8817e4Smiod   { "bit8", XC16X_OPERAND_BIT8, HW_H_UINT, 31, 8,
900*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_BIT8] } },
901*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
902*3d8817e4Smiod /* u4: gap of 4 bits */
903*3d8817e4Smiod   { "u4", XC16X_OPERAND_U4, HW_H_R0, 15, 4,
904*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM4] } },
905*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
906*3d8817e4Smiod /* bitone: field of 1 bit */
907*3d8817e4Smiod   { "bitone", XC16X_OPERAND_BITONE, HW_H_UINT, 9, 1,
908*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_ONEBIT] } },
909*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
910*3d8817e4Smiod /* bit01: field of 1 bit */
911*3d8817e4Smiod   { "bit01", XC16X_OPERAND_BIT01, HW_H_UINT, 8, 1,
912*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OP_1BIT] } },
913*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
914*3d8817e4Smiod /* cond: condition code */
915*3d8817e4Smiod   { "cond", XC16X_OPERAND_COND, HW_H_CC, 7, 4,
916*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_CONDCODE] } },
917*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
918*3d8817e4Smiod /* icond: indirect condition code */
919*3d8817e4Smiod   { "icond", XC16X_OPERAND_ICOND, HW_H_CC, 15, 4,
920*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_ICONDCODE] } },
921*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
922*3d8817e4Smiod /* extcond: extended condition code */
923*3d8817e4Smiod   { "extcond", XC16X_OPERAND_EXTCOND, HW_H_ECC, 15, 5,
924*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_EXTCCODE] } },
925*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
926*3d8817e4Smiod /* memory: 16 bit memory */
927*3d8817e4Smiod   { "memory", XC16X_OPERAND_MEMORY, HW_H_ADDR, 31, 16,
928*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_MEMORY] } },
929*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
930*3d8817e4Smiod /* memgr8: 16 bit memory */
931*3d8817e4Smiod   { "memgr8", XC16X_OPERAND_MEMGR8, HW_H_MEMGR8, 31, 16,
932*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_MEMGR8] } },
933*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
934*3d8817e4Smiod /* cbit: carry bit */
935*3d8817e4Smiod   { "cbit", XC16X_OPERAND_CBIT, HW_H_CBIT, 0, 0,
936*3d8817e4Smiod     { 0, { (const PTR) 0 } },
937*3d8817e4Smiod     { 0|A(SEM_ONLY), { { { (1<<MACH_BASE), 0 } } } }  },
938*3d8817e4Smiod /* qbit: bit addr */
939*3d8817e4Smiod   { "qbit", XC16X_OPERAND_QBIT, HW_H_UINT, 7, 4,
940*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_QBIT] } },
941*3d8817e4Smiod     { 0|A(DOT_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
942*3d8817e4Smiod /* qlobit: bit addr */
943*3d8817e4Smiod   { "qlobit", XC16X_OPERAND_QLOBIT, HW_H_UINT, 31, 4,
944*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_QLOBIT] } },
945*3d8817e4Smiod     { 0|A(DOT_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
946*3d8817e4Smiod /* qhibit: bit addr */
947*3d8817e4Smiod   { "qhibit", XC16X_OPERAND_QHIBIT, HW_H_UINT, 27, 4,
948*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_QHIBIT] } },
949*3d8817e4Smiod     { 0|A(DOT_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
950*3d8817e4Smiod /* mask8: 8 bit mask */
951*3d8817e4Smiod   { "mask8", XC16X_OPERAND_MASK8, HW_H_UINT, 23, 8,
952*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_MASK8] } },
953*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
954*3d8817e4Smiod /* masklo8: 8 bit mask */
955*3d8817e4Smiod   { "masklo8", XC16X_OPERAND_MASKLO8, HW_H_UINT, 31, 8,
956*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_DATAHI8] } },
957*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
958*3d8817e4Smiod /* pagenum: 10 bit page number */
959*3d8817e4Smiod   { "pagenum", XC16X_OPERAND_PAGENUM, HW_H_UINT, 25, 10,
960*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_PAGENUM] } },
961*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
962*3d8817e4Smiod /* data8: 8 bit data */
963*3d8817e4Smiod   { "data8", XC16X_OPERAND_DATA8, HW_H_UINT, 23, 8,
964*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_DATA8] } },
965*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
966*3d8817e4Smiod /* datahi8: 8 bit data */
967*3d8817e4Smiod   { "datahi8", XC16X_OPERAND_DATAHI8, HW_H_UINT, 31, 8,
968*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_DATAHI8] } },
969*3d8817e4Smiod     { 0|A(HASH_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
970*3d8817e4Smiod /* sgtdisbit: segmentation enable bit */
971*3d8817e4Smiod   { "sgtdisbit", XC16X_OPERAND_SGTDISBIT, HW_H_SGTDIS, 0, 0,
972*3d8817e4Smiod     { 0, { (const PTR) 0 } },
973*3d8817e4Smiod     { 0|A(SEM_ONLY), { { { (1<<MACH_BASE), 0 } } } }  },
974*3d8817e4Smiod /* upag16: 16 bit unsigned immediate */
975*3d8817e4Smiod   { "upag16", XC16X_OPERAND_UPAG16, HW_H_UINT, 31, 16,
976*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_UIMM16] } },
977*3d8817e4Smiod     { 0|A(PAG_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
978*3d8817e4Smiod /* useg8: 8 bit segment  */
979*3d8817e4Smiod   { "useg8", XC16X_OPERAND_USEG8, HW_H_UINT, 15, 8,
980*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_SEG8] } },
981*3d8817e4Smiod     { 0|A(SEG_PREFIX), { { { (1<<MACH_BASE), 0 } } } }  },
982*3d8817e4Smiod /* useg16: 16 bit address offset */
983*3d8817e4Smiod   { "useg16", XC16X_OPERAND_USEG16, HW_H_UINT, 31, 16,
984*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OFFSET16] } },
985*3d8817e4Smiod     { 0|A(SEG_PREFIX)|A(RELOC)|A(ABS_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
986*3d8817e4Smiod /* usof16: 16 bit address offset */
987*3d8817e4Smiod   { "usof16", XC16X_OPERAND_USOF16, HW_H_UINT, 31, 16,
988*3d8817e4Smiod     { 0, { (const PTR) &xc16x_cgen_ifld_table[XC16X_F_OFFSET16] } },
989*3d8817e4Smiod     { 0|A(SOF_PREFIX)|A(RELOC)|A(ABS_ADDR), { { { (1<<MACH_BASE), 0 } } } }  },
990*3d8817e4Smiod /* hash: # prefix */
991*3d8817e4Smiod   { "hash", XC16X_OPERAND_HASH, HW_H_SINT, 0, 0,
992*3d8817e4Smiod     { 0, { (const PTR) 0 } },
993*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
994*3d8817e4Smiod /* dot: . prefix */
995*3d8817e4Smiod   { "dot", XC16X_OPERAND_DOT, HW_H_SINT, 0, 0,
996*3d8817e4Smiod     { 0, { (const PTR) 0 } },
997*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
998*3d8817e4Smiod /* pof: pof: prefix */
999*3d8817e4Smiod   { "pof", XC16X_OPERAND_POF, HW_H_SINT, 0, 0,
1000*3d8817e4Smiod     { 0, { (const PTR) 0 } },
1001*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
1002*3d8817e4Smiod /* pag: pag: prefix */
1003*3d8817e4Smiod   { "pag", XC16X_OPERAND_PAG, HW_H_SINT, 0, 0,
1004*3d8817e4Smiod     { 0, { (const PTR) 0 } },
1005*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
1006*3d8817e4Smiod /* sof: sof: prefix */
1007*3d8817e4Smiod   { "sof", XC16X_OPERAND_SOF, HW_H_SINT, 0, 0,
1008*3d8817e4Smiod     { 0, { (const PTR) 0 } },
1009*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
1010*3d8817e4Smiod /* segm: seg: prefix */
1011*3d8817e4Smiod   { "segm", XC16X_OPERAND_SEGM, HW_H_SINT, 0, 0,
1012*3d8817e4Smiod     { 0, { (const PTR) 0 } },
1013*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } }  },
1014*3d8817e4Smiod /* sentinel */
1015*3d8817e4Smiod   { 0, 0, 0, 0, 0,
1016*3d8817e4Smiod     { 0, { (const PTR) 0 } },
1017*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } } } } }
1018*3d8817e4Smiod };
1019*3d8817e4Smiod 
1020*3d8817e4Smiod #undef A
1021*3d8817e4Smiod 
1022*3d8817e4Smiod 
1023*3d8817e4Smiod /* The instruction table.  */
1024*3d8817e4Smiod 
1025*3d8817e4Smiod #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
1026*3d8817e4Smiod #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
1027*3d8817e4Smiod #define A(a) (1 << CGEN_INSN_##a)
1028*3d8817e4Smiod #else
1029*3d8817e4Smiod #define A(a) (1 << CGEN_INSN_/**/a)
1030*3d8817e4Smiod #endif
1031*3d8817e4Smiod 
1032*3d8817e4Smiod static const CGEN_IBASE xc16x_cgen_insn_table[MAX_INSNS] =
1033*3d8817e4Smiod {
1034*3d8817e4Smiod   /* Special null first entry.
1035*3d8817e4Smiod      A `num' value of zero is thus invalid.
1036*3d8817e4Smiod      Also, the special `invalid' insn resides here.  */
1037*3d8817e4Smiod   { 0, 0, 0, 0, { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_NONE, 0 } } } } },
1038*3d8817e4Smiod /* add $reg8,$pof$upof16 */
1039*3d8817e4Smiod   {
1040*3d8817e4Smiod     XC16X_INSN_ADDRPOF, "addrpof", "add", 32,
1041*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1042*3d8817e4Smiod   },
1043*3d8817e4Smiod /* sub $reg8,$pof$upof16 */
1044*3d8817e4Smiod   {
1045*3d8817e4Smiod     XC16X_INSN_SUBRPOF, "subrpof", "sub", 32,
1046*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1047*3d8817e4Smiod   },
1048*3d8817e4Smiod /* addb $regb8,$pof$upof16 */
1049*3d8817e4Smiod   {
1050*3d8817e4Smiod     XC16X_INSN_ADDBRPOF, "addbrpof", "addb", 32,
1051*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1052*3d8817e4Smiod   },
1053*3d8817e4Smiod /* subb $regb8,$pof$upof16 */
1054*3d8817e4Smiod   {
1055*3d8817e4Smiod     XC16X_INSN_SUBBRPOF, "subbrpof", "subb", 32,
1056*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1057*3d8817e4Smiod   },
1058*3d8817e4Smiod /* add $reg8,$pag$upag16 */
1059*3d8817e4Smiod   {
1060*3d8817e4Smiod     XC16X_INSN_ADDRPAG, "addrpag", "add", 32,
1061*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1062*3d8817e4Smiod   },
1063*3d8817e4Smiod /* sub $reg8,$pag$upag16 */
1064*3d8817e4Smiod   {
1065*3d8817e4Smiod     XC16X_INSN_SUBRPAG, "subrpag", "sub", 32,
1066*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1067*3d8817e4Smiod   },
1068*3d8817e4Smiod /* addb $regb8,$pag$upag16 */
1069*3d8817e4Smiod   {
1070*3d8817e4Smiod     XC16X_INSN_ADDBRPAG, "addbrpag", "addb", 32,
1071*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1072*3d8817e4Smiod   },
1073*3d8817e4Smiod /* subb $regb8,$pag$upag16 */
1074*3d8817e4Smiod   {
1075*3d8817e4Smiod     XC16X_INSN_SUBBRPAG, "subbrpag", "subb", 32,
1076*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1077*3d8817e4Smiod   },
1078*3d8817e4Smiod /* addc $reg8,$pof$upof16 */
1079*3d8817e4Smiod   {
1080*3d8817e4Smiod     XC16X_INSN_ADDCRPOF, "addcrpof", "addc", 32,
1081*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1082*3d8817e4Smiod   },
1083*3d8817e4Smiod /* subc $reg8,$pof$upof16 */
1084*3d8817e4Smiod   {
1085*3d8817e4Smiod     XC16X_INSN_SUBCRPOF, "subcrpof", "subc", 32,
1086*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1087*3d8817e4Smiod   },
1088*3d8817e4Smiod /* addcb $regb8,$pof$upof16 */
1089*3d8817e4Smiod   {
1090*3d8817e4Smiod     XC16X_INSN_ADDCBRPOF, "addcbrpof", "addcb", 32,
1091*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1092*3d8817e4Smiod   },
1093*3d8817e4Smiod /* subcb $regb8,$pof$upof16 */
1094*3d8817e4Smiod   {
1095*3d8817e4Smiod     XC16X_INSN_SUBCBRPOF, "subcbrpof", "subcb", 32,
1096*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1097*3d8817e4Smiod   },
1098*3d8817e4Smiod /* addc $reg8,$pag$upag16 */
1099*3d8817e4Smiod   {
1100*3d8817e4Smiod     XC16X_INSN_ADDCRPAG, "addcrpag", "addc", 32,
1101*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1102*3d8817e4Smiod   },
1103*3d8817e4Smiod /* subc $reg8,$pag$upag16 */
1104*3d8817e4Smiod   {
1105*3d8817e4Smiod     XC16X_INSN_SUBCRPAG, "subcrpag", "subc", 32,
1106*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1107*3d8817e4Smiod   },
1108*3d8817e4Smiod /* addcb $regb8,$pag$upag16 */
1109*3d8817e4Smiod   {
1110*3d8817e4Smiod     XC16X_INSN_ADDCBRPAG, "addcbrpag", "addcb", 32,
1111*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1112*3d8817e4Smiod   },
1113*3d8817e4Smiod /* subcb $regb8,$pag$upag16 */
1114*3d8817e4Smiod   {
1115*3d8817e4Smiod     XC16X_INSN_SUBCBRPAG, "subcbrpag", "subcb", 32,
1116*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1117*3d8817e4Smiod   },
1118*3d8817e4Smiod /* add $pof$upof16,$reg8 */
1119*3d8817e4Smiod   {
1120*3d8817e4Smiod     XC16X_INSN_ADDRPOFR, "addrpofr", "add", 32,
1121*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1122*3d8817e4Smiod   },
1123*3d8817e4Smiod /* sub $pof$upof16,$reg8 */
1124*3d8817e4Smiod   {
1125*3d8817e4Smiod     XC16X_INSN_SUBRPOFR, "subrpofr", "sub", 32,
1126*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1127*3d8817e4Smiod   },
1128*3d8817e4Smiod /* addb $pof$upof16,$regb8 */
1129*3d8817e4Smiod   {
1130*3d8817e4Smiod     XC16X_INSN_ADDBRPOFR, "addbrpofr", "addb", 32,
1131*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1132*3d8817e4Smiod   },
1133*3d8817e4Smiod /* subb $pof$upof16,$regb8 */
1134*3d8817e4Smiod   {
1135*3d8817e4Smiod     XC16X_INSN_SUBBRPOFR, "subbrpofr", "subb", 32,
1136*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1137*3d8817e4Smiod   },
1138*3d8817e4Smiod /* addc $pof$upof16,$reg8 */
1139*3d8817e4Smiod   {
1140*3d8817e4Smiod     XC16X_INSN_ADDCRPOFR, "addcrpofr", "addc", 32,
1141*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1142*3d8817e4Smiod   },
1143*3d8817e4Smiod /* subc $pof$upof16,$reg8 */
1144*3d8817e4Smiod   {
1145*3d8817e4Smiod     XC16X_INSN_SUBCRPOFR, "subcrpofr", "subc", 32,
1146*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1147*3d8817e4Smiod   },
1148*3d8817e4Smiod /* addcb $pof$upof16,$regb8 */
1149*3d8817e4Smiod   {
1150*3d8817e4Smiod     XC16X_INSN_ADDCBRPOFR, "addcbrpofr", "addcb", 32,
1151*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1152*3d8817e4Smiod   },
1153*3d8817e4Smiod /* subcb $pof$upof16,$regb8 */
1154*3d8817e4Smiod   {
1155*3d8817e4Smiod     XC16X_INSN_SUBCBRPOFR, "subcbrpofr", "subcb", 32,
1156*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1157*3d8817e4Smiod   },
1158*3d8817e4Smiod /* add $reg8,$hash$pof$uimm16 */
1159*3d8817e4Smiod   {
1160*3d8817e4Smiod     XC16X_INSN_ADDRHPOF, "addrhpof", "add", 32,
1161*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1162*3d8817e4Smiod   },
1163*3d8817e4Smiod /* sub $reg8,$hash$pof$uimm16 */
1164*3d8817e4Smiod   {
1165*3d8817e4Smiod     XC16X_INSN_SUBRHPOF, "subrhpof", "sub", 32,
1166*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1167*3d8817e4Smiod   },
1168*3d8817e4Smiod /* add $reg8,$hash$pag$uimm16 */
1169*3d8817e4Smiod   {
1170*3d8817e4Smiod     XC16X_INSN_ADDBRHPOF, "addbrhpof", "add", 32,
1171*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1172*3d8817e4Smiod   },
1173*3d8817e4Smiod /* sub $reg8,$hash$pag$uimm16 */
1174*3d8817e4Smiod   {
1175*3d8817e4Smiod     XC16X_INSN_SUBBRHPOF, "subbrhpof", "sub", 32,
1176*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1177*3d8817e4Smiod   },
1178*3d8817e4Smiod /* add $dr,$hash$pof$uimm3 */
1179*3d8817e4Smiod   {
1180*3d8817e4Smiod     XC16X_INSN_ADDRHPOF3, "addrhpof3", "add", 16,
1181*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1182*3d8817e4Smiod   },
1183*3d8817e4Smiod /* sub $dr,$hash$pof$uimm3 */
1184*3d8817e4Smiod   {
1185*3d8817e4Smiod     XC16X_INSN_SUBRHPOF3, "subrhpof3", "sub", 16,
1186*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1187*3d8817e4Smiod   },
1188*3d8817e4Smiod /* addb $drb,$hash$pag$uimm3 */
1189*3d8817e4Smiod   {
1190*3d8817e4Smiod     XC16X_INSN_ADDBRHPAG3, "addbrhpag3", "addb", 16,
1191*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1192*3d8817e4Smiod   },
1193*3d8817e4Smiod /* subb $drb,$hash$pag$uimm3 */
1194*3d8817e4Smiod   {
1195*3d8817e4Smiod     XC16X_INSN_SUBBRHPAG3, "subbrhpag3", "subb", 16,
1196*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1197*3d8817e4Smiod   },
1198*3d8817e4Smiod /* add $dr,$hash$pag$uimm3 */
1199*3d8817e4Smiod   {
1200*3d8817e4Smiod     XC16X_INSN_ADDRHPAG3, "addrhpag3", "add", 16,
1201*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1202*3d8817e4Smiod   },
1203*3d8817e4Smiod /* sub $dr,$hash$pag$uimm3 */
1204*3d8817e4Smiod   {
1205*3d8817e4Smiod     XC16X_INSN_SUBRHPAG3, "subrhpag3", "sub", 16,
1206*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1207*3d8817e4Smiod   },
1208*3d8817e4Smiod /* addb $drb,$hash$pof$uimm3 */
1209*3d8817e4Smiod   {
1210*3d8817e4Smiod     XC16X_INSN_ADDBRHPOF3, "addbrhpof3", "addb", 16,
1211*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1212*3d8817e4Smiod   },
1213*3d8817e4Smiod /* subb $drb,$hash$pof$uimm3 */
1214*3d8817e4Smiod   {
1215*3d8817e4Smiod     XC16X_INSN_SUBBRHPOF3, "subbrhpof3", "subb", 16,
1216*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1217*3d8817e4Smiod   },
1218*3d8817e4Smiod /* addb $regb8,$hash$pof$uimm8 */
1219*3d8817e4Smiod   {
1220*3d8817e4Smiod     XC16X_INSN_ADDRBHPOF, "addrbhpof", "addb", 32,
1221*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1222*3d8817e4Smiod   },
1223*3d8817e4Smiod /* subb $regb8,$hash$pof$uimm8 */
1224*3d8817e4Smiod   {
1225*3d8817e4Smiod     XC16X_INSN_SUBRBHPOF, "subrbhpof", "subb", 32,
1226*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1227*3d8817e4Smiod   },
1228*3d8817e4Smiod /* addb $regb8,$hash$pag$uimm8 */
1229*3d8817e4Smiod   {
1230*3d8817e4Smiod     XC16X_INSN_ADDBRHPAG, "addbrhpag", "addb", 32,
1231*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1232*3d8817e4Smiod   },
1233*3d8817e4Smiod /* subb $regb8,$hash$pag$uimm8 */
1234*3d8817e4Smiod   {
1235*3d8817e4Smiod     XC16X_INSN_SUBBRHPAG, "subbrhpag", "subb", 32,
1236*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1237*3d8817e4Smiod   },
1238*3d8817e4Smiod /* addc $reg8,$hash$pof$uimm16 */
1239*3d8817e4Smiod   {
1240*3d8817e4Smiod     XC16X_INSN_ADDCRHPOF, "addcrhpof", "addc", 32,
1241*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1242*3d8817e4Smiod   },
1243*3d8817e4Smiod /* subc $reg8,$hash$pof$uimm16 */
1244*3d8817e4Smiod   {
1245*3d8817e4Smiod     XC16X_INSN_SUBCRHPOF, "subcrhpof", "subc", 32,
1246*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1247*3d8817e4Smiod   },
1248*3d8817e4Smiod /* addc $reg8,$hash$pag$uimm16 */
1249*3d8817e4Smiod   {
1250*3d8817e4Smiod     XC16X_INSN_ADDCBRHPOF, "addcbrhpof", "addc", 32,
1251*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1252*3d8817e4Smiod   },
1253*3d8817e4Smiod /* subc $reg8,$hash$pag$uimm16 */
1254*3d8817e4Smiod   {
1255*3d8817e4Smiod     XC16X_INSN_SUBCBRHPOF, "subcbrhpof", "subc", 32,
1256*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1257*3d8817e4Smiod   },
1258*3d8817e4Smiod /* addc $dr,$hash$pof$uimm3 */
1259*3d8817e4Smiod   {
1260*3d8817e4Smiod     XC16X_INSN_ADDCRHPOF3, "addcrhpof3", "addc", 16,
1261*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1262*3d8817e4Smiod   },
1263*3d8817e4Smiod /* subc $dr,$hash$pof$uimm3 */
1264*3d8817e4Smiod   {
1265*3d8817e4Smiod     XC16X_INSN_SUBCRHPOF3, "subcrhpof3", "subc", 16,
1266*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1267*3d8817e4Smiod   },
1268*3d8817e4Smiod /* addcb $drb,$hash$pag$uimm3 */
1269*3d8817e4Smiod   {
1270*3d8817e4Smiod     XC16X_INSN_ADDCBRHPAG3, "addcbrhpag3", "addcb", 16,
1271*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1272*3d8817e4Smiod   },
1273*3d8817e4Smiod /* subcb $drb,$hash$pag$uimm3 */
1274*3d8817e4Smiod   {
1275*3d8817e4Smiod     XC16X_INSN_SUBCBRHPAG3, "subcbrhpag3", "subcb", 16,
1276*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1277*3d8817e4Smiod   },
1278*3d8817e4Smiod /* addc $dr,$hash$pag$uimm3 */
1279*3d8817e4Smiod   {
1280*3d8817e4Smiod     XC16X_INSN_ADDCRHPAG3, "addcrhpag3", "addc", 16,
1281*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1282*3d8817e4Smiod   },
1283*3d8817e4Smiod /* subc $dr,$hash$pag$uimm3 */
1284*3d8817e4Smiod   {
1285*3d8817e4Smiod     XC16X_INSN_SUBCRHPAG3, "subcrhpag3", "subc", 16,
1286*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1287*3d8817e4Smiod   },
1288*3d8817e4Smiod /* addcb $drb,$hash$pof$uimm3 */
1289*3d8817e4Smiod   {
1290*3d8817e4Smiod     XC16X_INSN_ADDCBRHPOF3, "addcbrhpof3", "addcb", 16,
1291*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1292*3d8817e4Smiod   },
1293*3d8817e4Smiod /* subcb $drb,$hash$pof$uimm3 */
1294*3d8817e4Smiod   {
1295*3d8817e4Smiod     XC16X_INSN_SUBCBRHPOF3, "subcbrhpof3", "subcb", 16,
1296*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1297*3d8817e4Smiod   },
1298*3d8817e4Smiod /* addcb $regb8,$hash$pof$uimm8 */
1299*3d8817e4Smiod   {
1300*3d8817e4Smiod     XC16X_INSN_ADDCRBHPOF, "addcrbhpof", "addcb", 32,
1301*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1302*3d8817e4Smiod   },
1303*3d8817e4Smiod /* subcb $regb8,$hash$pof$uimm8 */
1304*3d8817e4Smiod   {
1305*3d8817e4Smiod     XC16X_INSN_SUBCRBHPOF, "subcrbhpof", "subcb", 32,
1306*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1307*3d8817e4Smiod   },
1308*3d8817e4Smiod /* addcb $regb8,$hash$pag$uimm8 */
1309*3d8817e4Smiod   {
1310*3d8817e4Smiod     XC16X_INSN_ADDCBRHPAG, "addcbrhpag", "addcb", 32,
1311*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1312*3d8817e4Smiod   },
1313*3d8817e4Smiod /* subcb $regb8,$hash$pag$uimm8 */
1314*3d8817e4Smiod   {
1315*3d8817e4Smiod     XC16X_INSN_SUBCBRHPAG, "subcbrhpag", "subcb", 32,
1316*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1317*3d8817e4Smiod   },
1318*3d8817e4Smiod /* add $dr,$hash$uimm3 */
1319*3d8817e4Smiod   {
1320*3d8817e4Smiod     XC16X_INSN_ADDRI, "addri", "add", 16,
1321*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1322*3d8817e4Smiod   },
1323*3d8817e4Smiod /* sub $dr,$hash$uimm3 */
1324*3d8817e4Smiod   {
1325*3d8817e4Smiod     XC16X_INSN_SUBRI, "subri", "sub", 16,
1326*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1327*3d8817e4Smiod   },
1328*3d8817e4Smiod /* addb $drb,$hash$uimm3 */
1329*3d8817e4Smiod   {
1330*3d8817e4Smiod     XC16X_INSN_ADDBRI, "addbri", "addb", 16,
1331*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1332*3d8817e4Smiod   },
1333*3d8817e4Smiod /* subb $drb,$hash$uimm3 */
1334*3d8817e4Smiod   {
1335*3d8817e4Smiod     XC16X_INSN_SUBBRI, "subbri", "subb", 16,
1336*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1337*3d8817e4Smiod   },
1338*3d8817e4Smiod /* add $reg8,$hash$uimm16 */
1339*3d8817e4Smiod   {
1340*3d8817e4Smiod     XC16X_INSN_ADDRIM, "addrim", "add", 32,
1341*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1342*3d8817e4Smiod   },
1343*3d8817e4Smiod /* sub $reg8,$hash$uimm16 */
1344*3d8817e4Smiod   {
1345*3d8817e4Smiod     XC16X_INSN_SUBRIM, "subrim", "sub", 32,
1346*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1347*3d8817e4Smiod   },
1348*3d8817e4Smiod /* addb $regb8,$hash$uimm8 */
1349*3d8817e4Smiod   {
1350*3d8817e4Smiod     XC16X_INSN_ADDBRIM, "addbrim", "addb", 32,
1351*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1352*3d8817e4Smiod   },
1353*3d8817e4Smiod /* subb $regb8,$hash$uimm8 */
1354*3d8817e4Smiod   {
1355*3d8817e4Smiod     XC16X_INSN_SUBBRIM, "subbrim", "subb", 32,
1356*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1357*3d8817e4Smiod   },
1358*3d8817e4Smiod /* addc $dr,$hash$uimm3 */
1359*3d8817e4Smiod   {
1360*3d8817e4Smiod     XC16X_INSN_ADDCRI, "addcri", "addc", 16,
1361*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1362*3d8817e4Smiod   },
1363*3d8817e4Smiod /* subc $dr,$hash$uimm3 */
1364*3d8817e4Smiod   {
1365*3d8817e4Smiod     XC16X_INSN_SUBCRI, "subcri", "subc", 16,
1366*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1367*3d8817e4Smiod   },
1368*3d8817e4Smiod /* addcb $drb,$hash$uimm3 */
1369*3d8817e4Smiod   {
1370*3d8817e4Smiod     XC16X_INSN_ADDCBRI, "addcbri", "addcb", 16,
1371*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1372*3d8817e4Smiod   },
1373*3d8817e4Smiod /* subcb $drb,$hash$uimm3 */
1374*3d8817e4Smiod   {
1375*3d8817e4Smiod     XC16X_INSN_SUBCBRI, "subcbri", "subcb", 16,
1376*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1377*3d8817e4Smiod   },
1378*3d8817e4Smiod /* addc $reg8,$hash$uimm16 */
1379*3d8817e4Smiod   {
1380*3d8817e4Smiod     XC16X_INSN_ADDCRIM, "addcrim", "addc", 32,
1381*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1382*3d8817e4Smiod   },
1383*3d8817e4Smiod /* subc $reg8,$hash$uimm16 */
1384*3d8817e4Smiod   {
1385*3d8817e4Smiod     XC16X_INSN_SUBCRIM, "subcrim", "subc", 32,
1386*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1387*3d8817e4Smiod   },
1388*3d8817e4Smiod /* addcb $regb8,$hash$uimm8 */
1389*3d8817e4Smiod   {
1390*3d8817e4Smiod     XC16X_INSN_ADDCBRIM, "addcbrim", "addcb", 32,
1391*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1392*3d8817e4Smiod   },
1393*3d8817e4Smiod /* subcb $regb8,$hash$uimm8 */
1394*3d8817e4Smiod   {
1395*3d8817e4Smiod     XC16X_INSN_SUBCBRIM, "subcbrim", "subcb", 32,
1396*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1397*3d8817e4Smiod   },
1398*3d8817e4Smiod /* add $dr,$sr */
1399*3d8817e4Smiod   {
1400*3d8817e4Smiod     XC16X_INSN_ADDR, "addr", "add", 16,
1401*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1402*3d8817e4Smiod   },
1403*3d8817e4Smiod /* sub $dr,$sr */
1404*3d8817e4Smiod   {
1405*3d8817e4Smiod     XC16X_INSN_SUBR, "subr", "sub", 16,
1406*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1407*3d8817e4Smiod   },
1408*3d8817e4Smiod /* addb $drb,$srb */
1409*3d8817e4Smiod   {
1410*3d8817e4Smiod     XC16X_INSN_ADDBR, "addbr", "addb", 16,
1411*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1412*3d8817e4Smiod   },
1413*3d8817e4Smiod /* subb $drb,$srb */
1414*3d8817e4Smiod   {
1415*3d8817e4Smiod     XC16X_INSN_SUBBR, "subbr", "subb", 16,
1416*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1417*3d8817e4Smiod   },
1418*3d8817e4Smiod /* add $dr,[$sr2] */
1419*3d8817e4Smiod   {
1420*3d8817e4Smiod     XC16X_INSN_ADD2, "add2", "add", 16,
1421*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1422*3d8817e4Smiod   },
1423*3d8817e4Smiod /* sub $dr,[$sr2] */
1424*3d8817e4Smiod   {
1425*3d8817e4Smiod     XC16X_INSN_SUB2, "sub2", "sub", 16,
1426*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1427*3d8817e4Smiod   },
1428*3d8817e4Smiod /* addb $drb,[$sr2] */
1429*3d8817e4Smiod   {
1430*3d8817e4Smiod     XC16X_INSN_ADDB2, "addb2", "addb", 16,
1431*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1432*3d8817e4Smiod   },
1433*3d8817e4Smiod /* subb $drb,[$sr2] */
1434*3d8817e4Smiod   {
1435*3d8817e4Smiod     XC16X_INSN_SUBB2, "subb2", "subb", 16,
1436*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1437*3d8817e4Smiod   },
1438*3d8817e4Smiod /* add $dr,[$sr2+] */
1439*3d8817e4Smiod   {
1440*3d8817e4Smiod     XC16X_INSN_ADD2I, "add2i", "add", 16,
1441*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1442*3d8817e4Smiod   },
1443*3d8817e4Smiod /* sub $dr,[$sr2+] */
1444*3d8817e4Smiod   {
1445*3d8817e4Smiod     XC16X_INSN_SUB2I, "sub2i", "sub", 16,
1446*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1447*3d8817e4Smiod   },
1448*3d8817e4Smiod /* addb $drb,[$sr2+] */
1449*3d8817e4Smiod   {
1450*3d8817e4Smiod     XC16X_INSN_ADDB2I, "addb2i", "addb", 16,
1451*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1452*3d8817e4Smiod   },
1453*3d8817e4Smiod /* subb $drb,[$sr2+] */
1454*3d8817e4Smiod   {
1455*3d8817e4Smiod     XC16X_INSN_SUBB2I, "subb2i", "subb", 16,
1456*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1457*3d8817e4Smiod   },
1458*3d8817e4Smiod /* addc $dr,$sr */
1459*3d8817e4Smiod   {
1460*3d8817e4Smiod     XC16X_INSN_ADDCR, "addcr", "addc", 16,
1461*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1462*3d8817e4Smiod   },
1463*3d8817e4Smiod /* subc $dr,$sr */
1464*3d8817e4Smiod   {
1465*3d8817e4Smiod     XC16X_INSN_SUBCR, "subcr", "subc", 16,
1466*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1467*3d8817e4Smiod   },
1468*3d8817e4Smiod /* addcb $drb,$srb */
1469*3d8817e4Smiod   {
1470*3d8817e4Smiod     XC16X_INSN_ADDBCR, "addbcr", "addcb", 16,
1471*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1472*3d8817e4Smiod   },
1473*3d8817e4Smiod /* subcb $drb,$srb */
1474*3d8817e4Smiod   {
1475*3d8817e4Smiod     XC16X_INSN_SUBBCR, "subbcr", "subcb", 16,
1476*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1477*3d8817e4Smiod   },
1478*3d8817e4Smiod /* addc $dr,[$sr2] */
1479*3d8817e4Smiod   {
1480*3d8817e4Smiod     XC16X_INSN_ADDCR2, "addcr2", "addc", 16,
1481*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1482*3d8817e4Smiod   },
1483*3d8817e4Smiod /* subc $dr,[$sr2] */
1484*3d8817e4Smiod   {
1485*3d8817e4Smiod     XC16X_INSN_SUBCR2, "subcr2", "subc", 16,
1486*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1487*3d8817e4Smiod   },
1488*3d8817e4Smiod /* addcb $drb,[$sr2] */
1489*3d8817e4Smiod   {
1490*3d8817e4Smiod     XC16X_INSN_ADDBCR2, "addbcr2", "addcb", 16,
1491*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1492*3d8817e4Smiod   },
1493*3d8817e4Smiod /* subcb $drb,[$sr2] */
1494*3d8817e4Smiod   {
1495*3d8817e4Smiod     XC16X_INSN_SUBBCR2, "subbcr2", "subcb", 16,
1496*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1497*3d8817e4Smiod   },
1498*3d8817e4Smiod /* addc $dr,[$sr2+] */
1499*3d8817e4Smiod   {
1500*3d8817e4Smiod     XC16X_INSN_ADDCR2I, "addcr2i", "addc", 16,
1501*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1502*3d8817e4Smiod   },
1503*3d8817e4Smiod /* subc $dr,[$sr2+] */
1504*3d8817e4Smiod   {
1505*3d8817e4Smiod     XC16X_INSN_SUBCR2I, "subcr2i", "subc", 16,
1506*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1507*3d8817e4Smiod   },
1508*3d8817e4Smiod /* addcb $drb,[$sr2+] */
1509*3d8817e4Smiod   {
1510*3d8817e4Smiod     XC16X_INSN_ADDBCR2I, "addbcr2i", "addcb", 16,
1511*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1512*3d8817e4Smiod   },
1513*3d8817e4Smiod /* subcb $drb,[$sr2+] */
1514*3d8817e4Smiod   {
1515*3d8817e4Smiod     XC16X_INSN_SUBBCR2I, "subbcr2i", "subcb", 16,
1516*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1517*3d8817e4Smiod   },
1518*3d8817e4Smiod /* add $regmem8,$memgr8 */
1519*3d8817e4Smiod   {
1520*3d8817e4Smiod     XC16X_INSN_ADDRM2, "addrm2", "add", 32,
1521*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1522*3d8817e4Smiod   },
1523*3d8817e4Smiod /* add $memgr8,$regmem8 */
1524*3d8817e4Smiod   {
1525*3d8817e4Smiod     XC16X_INSN_ADDRM3, "addrm3", "add", 32,
1526*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1527*3d8817e4Smiod   },
1528*3d8817e4Smiod /* add $reg8,$memory */
1529*3d8817e4Smiod   {
1530*3d8817e4Smiod     XC16X_INSN_ADDRM, "addrm", "add", 32,
1531*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1532*3d8817e4Smiod   },
1533*3d8817e4Smiod /* add $memory,$reg8 */
1534*3d8817e4Smiod   {
1535*3d8817e4Smiod     XC16X_INSN_ADDRM1, "addrm1", "add", 32,
1536*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1537*3d8817e4Smiod   },
1538*3d8817e4Smiod /* sub $regmem8,$memgr8 */
1539*3d8817e4Smiod   {
1540*3d8817e4Smiod     XC16X_INSN_SUBRM3, "subrm3", "sub", 32,
1541*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1542*3d8817e4Smiod   },
1543*3d8817e4Smiod /* sub $memgr8,$regmem8 */
1544*3d8817e4Smiod   {
1545*3d8817e4Smiod     XC16X_INSN_SUBRM2, "subrm2", "sub", 32,
1546*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1547*3d8817e4Smiod   },
1548*3d8817e4Smiod /* sub $reg8,$memory */
1549*3d8817e4Smiod   {
1550*3d8817e4Smiod     XC16X_INSN_SUBRM1, "subrm1", "sub", 32,
1551*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1552*3d8817e4Smiod   },
1553*3d8817e4Smiod /* sub $memory,$reg8 */
1554*3d8817e4Smiod   {
1555*3d8817e4Smiod     XC16X_INSN_SUBRM, "subrm", "sub", 32,
1556*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1557*3d8817e4Smiod   },
1558*3d8817e4Smiod /* addb $regbmem8,$memgr8 */
1559*3d8817e4Smiod   {
1560*3d8817e4Smiod     XC16X_INSN_ADDBRM2, "addbrm2", "addb", 32,
1561*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1562*3d8817e4Smiod   },
1563*3d8817e4Smiod /* addb $memgr8,$regbmem8 */
1564*3d8817e4Smiod   {
1565*3d8817e4Smiod     XC16X_INSN_ADDBRM3, "addbrm3", "addb", 32,
1566*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1567*3d8817e4Smiod   },
1568*3d8817e4Smiod /* addb $regb8,$memory */
1569*3d8817e4Smiod   {
1570*3d8817e4Smiod     XC16X_INSN_ADDBRM, "addbrm", "addb", 32,
1571*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1572*3d8817e4Smiod   },
1573*3d8817e4Smiod /* addb $memory,$regb8 */
1574*3d8817e4Smiod   {
1575*3d8817e4Smiod     XC16X_INSN_ADDBRM1, "addbrm1", "addb", 32,
1576*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1577*3d8817e4Smiod   },
1578*3d8817e4Smiod /* subb $regbmem8,$memgr8 */
1579*3d8817e4Smiod   {
1580*3d8817e4Smiod     XC16X_INSN_SUBBRM3, "subbrm3", "subb", 32,
1581*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1582*3d8817e4Smiod   },
1583*3d8817e4Smiod /* subb $memgr8,$regbmem8 */
1584*3d8817e4Smiod   {
1585*3d8817e4Smiod     XC16X_INSN_SUBBRM2, "subbrm2", "subb", 32,
1586*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1587*3d8817e4Smiod   },
1588*3d8817e4Smiod /* subb $regb8,$memory */
1589*3d8817e4Smiod   {
1590*3d8817e4Smiod     XC16X_INSN_SUBBRM1, "subbrm1", "subb", 32,
1591*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1592*3d8817e4Smiod   },
1593*3d8817e4Smiod /* subb $memory,$regb8 */
1594*3d8817e4Smiod   {
1595*3d8817e4Smiod     XC16X_INSN_SUBBRM, "subbrm", "subb", 32,
1596*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1597*3d8817e4Smiod   },
1598*3d8817e4Smiod /* addc $regmem8,$memgr8 */
1599*3d8817e4Smiod   {
1600*3d8817e4Smiod     XC16X_INSN_ADDCRM2, "addcrm2", "addc", 32,
1601*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1602*3d8817e4Smiod   },
1603*3d8817e4Smiod /* addc $memgr8,$regmem8 */
1604*3d8817e4Smiod   {
1605*3d8817e4Smiod     XC16X_INSN_ADDCRM3, "addcrm3", "addc", 32,
1606*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1607*3d8817e4Smiod   },
1608*3d8817e4Smiod /* addc $reg8,$memory */
1609*3d8817e4Smiod   {
1610*3d8817e4Smiod     XC16X_INSN_ADDCRM, "addcrm", "addc", 32,
1611*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1612*3d8817e4Smiod   },
1613*3d8817e4Smiod /* addc $memory,$reg8 */
1614*3d8817e4Smiod   {
1615*3d8817e4Smiod     XC16X_INSN_ADDCRM1, "addcrm1", "addc", 32,
1616*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1617*3d8817e4Smiod   },
1618*3d8817e4Smiod /* subc $regmem8,$memgr8 */
1619*3d8817e4Smiod   {
1620*3d8817e4Smiod     XC16X_INSN_SUBCRM3, "subcrm3", "subc", 32,
1621*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1622*3d8817e4Smiod   },
1623*3d8817e4Smiod /* subc $memgr8,$regmem8 */
1624*3d8817e4Smiod   {
1625*3d8817e4Smiod     XC16X_INSN_SUBCRM2, "subcrm2", "subc", 32,
1626*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1627*3d8817e4Smiod   },
1628*3d8817e4Smiod /* subc $reg8,$memory */
1629*3d8817e4Smiod   {
1630*3d8817e4Smiod     XC16X_INSN_SUBCRM1, "subcrm1", "subc", 32,
1631*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1632*3d8817e4Smiod   },
1633*3d8817e4Smiod /* subc $memory,$reg8 */
1634*3d8817e4Smiod   {
1635*3d8817e4Smiod     XC16X_INSN_SUBCRM, "subcrm", "subc", 32,
1636*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1637*3d8817e4Smiod   },
1638*3d8817e4Smiod /* addcb $regbmem8,$memgr8 */
1639*3d8817e4Smiod   {
1640*3d8817e4Smiod     XC16X_INSN_ADDCBRM2, "addcbrm2", "addcb", 32,
1641*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1642*3d8817e4Smiod   },
1643*3d8817e4Smiod /* addcb $memgr8,$regbmem8 */
1644*3d8817e4Smiod   {
1645*3d8817e4Smiod     XC16X_INSN_ADDCBRM3, "addcbrm3", "addcb", 32,
1646*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1647*3d8817e4Smiod   },
1648*3d8817e4Smiod /* addcb $regb8,$memory */
1649*3d8817e4Smiod   {
1650*3d8817e4Smiod     XC16X_INSN_ADDCBRM, "addcbrm", "addcb", 32,
1651*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1652*3d8817e4Smiod   },
1653*3d8817e4Smiod /* addcb $memory,$regb8 */
1654*3d8817e4Smiod   {
1655*3d8817e4Smiod     XC16X_INSN_ADDCBRM1, "addcbrm1", "addcb", 32,
1656*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1657*3d8817e4Smiod   },
1658*3d8817e4Smiod /* subcb $regbmem8,$memgr8 */
1659*3d8817e4Smiod   {
1660*3d8817e4Smiod     XC16X_INSN_SUBCBRM3, "subcbrm3", "subcb", 32,
1661*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1662*3d8817e4Smiod   },
1663*3d8817e4Smiod /* subcb $memgr8,$regbmem8 */
1664*3d8817e4Smiod   {
1665*3d8817e4Smiod     XC16X_INSN_SUBCBRM2, "subcbrm2", "subcb", 32,
1666*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1667*3d8817e4Smiod   },
1668*3d8817e4Smiod /* subcb $regb8,$memory */
1669*3d8817e4Smiod   {
1670*3d8817e4Smiod     XC16X_INSN_SUBCBRM1, "subcbrm1", "subcb", 32,
1671*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1672*3d8817e4Smiod   },
1673*3d8817e4Smiod /* subcb $memory,$regb8 */
1674*3d8817e4Smiod   {
1675*3d8817e4Smiod     XC16X_INSN_SUBCBRM, "subcbrm", "subcb", 32,
1676*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1677*3d8817e4Smiod   },
1678*3d8817e4Smiod /* mul $src1,$src2 */
1679*3d8817e4Smiod   {
1680*3d8817e4Smiod     XC16X_INSN_MULS, "muls", "mul", 16,
1681*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1682*3d8817e4Smiod   },
1683*3d8817e4Smiod /* mulu $src1,$src2 */
1684*3d8817e4Smiod   {
1685*3d8817e4Smiod     XC16X_INSN_MULU, "mulu", "mulu", 16,
1686*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1687*3d8817e4Smiod   },
1688*3d8817e4Smiod /* div $srdiv */
1689*3d8817e4Smiod   {
1690*3d8817e4Smiod     XC16X_INSN_DIV, "div", "div", 16,
1691*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1692*3d8817e4Smiod   },
1693*3d8817e4Smiod /* divl $srdiv */
1694*3d8817e4Smiod   {
1695*3d8817e4Smiod     XC16X_INSN_DIVL, "divl", "divl", 16,
1696*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1697*3d8817e4Smiod   },
1698*3d8817e4Smiod /* divlu $srdiv */
1699*3d8817e4Smiod   {
1700*3d8817e4Smiod     XC16X_INSN_DIVLU, "divlu", "divlu", 16,
1701*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1702*3d8817e4Smiod   },
1703*3d8817e4Smiod /* divu $srdiv */
1704*3d8817e4Smiod   {
1705*3d8817e4Smiod     XC16X_INSN_DIVU, "divu", "divu", 16,
1706*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1707*3d8817e4Smiod   },
1708*3d8817e4Smiod /* cpl $dr */
1709*3d8817e4Smiod   {
1710*3d8817e4Smiod     XC16X_INSN_CPL, "cpl", "cpl", 16,
1711*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1712*3d8817e4Smiod   },
1713*3d8817e4Smiod /* cplb $drb */
1714*3d8817e4Smiod   {
1715*3d8817e4Smiod     XC16X_INSN_CPLB, "cplb", "cplb", 16,
1716*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1717*3d8817e4Smiod   },
1718*3d8817e4Smiod /* neg $dr */
1719*3d8817e4Smiod   {
1720*3d8817e4Smiod     XC16X_INSN_NEG, "neg", "neg", 16,
1721*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1722*3d8817e4Smiod   },
1723*3d8817e4Smiod /* negb $drb */
1724*3d8817e4Smiod   {
1725*3d8817e4Smiod     XC16X_INSN_NEGB, "negb", "negb", 16,
1726*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1727*3d8817e4Smiod   },
1728*3d8817e4Smiod /* and $dr,$sr */
1729*3d8817e4Smiod   {
1730*3d8817e4Smiod     XC16X_INSN_ANDR, "andr", "and", 16,
1731*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1732*3d8817e4Smiod   },
1733*3d8817e4Smiod /* or $dr,$sr */
1734*3d8817e4Smiod   {
1735*3d8817e4Smiod     XC16X_INSN_ORR, "orr", "or", 16,
1736*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1737*3d8817e4Smiod   },
1738*3d8817e4Smiod /* xor $dr,$sr */
1739*3d8817e4Smiod   {
1740*3d8817e4Smiod     XC16X_INSN_XORR, "xorr", "xor", 16,
1741*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1742*3d8817e4Smiod   },
1743*3d8817e4Smiod /* andb $drb,$srb */
1744*3d8817e4Smiod   {
1745*3d8817e4Smiod     XC16X_INSN_ANDBR, "andbr", "andb", 16,
1746*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1747*3d8817e4Smiod   },
1748*3d8817e4Smiod /* orb $drb,$srb */
1749*3d8817e4Smiod   {
1750*3d8817e4Smiod     XC16X_INSN_ORBR, "orbr", "orb", 16,
1751*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1752*3d8817e4Smiod   },
1753*3d8817e4Smiod /* xorb $drb,$srb */
1754*3d8817e4Smiod   {
1755*3d8817e4Smiod     XC16X_INSN_XORBR, "xorbr", "xorb", 16,
1756*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1757*3d8817e4Smiod   },
1758*3d8817e4Smiod /* and $dr,$hash$uimm3 */
1759*3d8817e4Smiod   {
1760*3d8817e4Smiod     XC16X_INSN_ANDRI, "andri", "and", 16,
1761*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1762*3d8817e4Smiod   },
1763*3d8817e4Smiod /* or $dr,$hash$uimm3 */
1764*3d8817e4Smiod   {
1765*3d8817e4Smiod     XC16X_INSN_ORRI, "orri", "or", 16,
1766*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1767*3d8817e4Smiod   },
1768*3d8817e4Smiod /* xor $dr,$hash$uimm3 */
1769*3d8817e4Smiod   {
1770*3d8817e4Smiod     XC16X_INSN_XORRI, "xorri", "xor", 16,
1771*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1772*3d8817e4Smiod   },
1773*3d8817e4Smiod /* andb $drb,$hash$uimm3 */
1774*3d8817e4Smiod   {
1775*3d8817e4Smiod     XC16X_INSN_ANDBRI, "andbri", "andb", 16,
1776*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1777*3d8817e4Smiod   },
1778*3d8817e4Smiod /* orb $drb,$hash$uimm3 */
1779*3d8817e4Smiod   {
1780*3d8817e4Smiod     XC16X_INSN_ORBRI, "orbri", "orb", 16,
1781*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1782*3d8817e4Smiod   },
1783*3d8817e4Smiod /* xorb $drb,$hash$uimm3 */
1784*3d8817e4Smiod   {
1785*3d8817e4Smiod     XC16X_INSN_XORBRI, "xorbri", "xorb", 16,
1786*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1787*3d8817e4Smiod   },
1788*3d8817e4Smiod /* and $reg8,$hash$uimm16 */
1789*3d8817e4Smiod   {
1790*3d8817e4Smiod     XC16X_INSN_ANDRIM, "andrim", "and", 32,
1791*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1792*3d8817e4Smiod   },
1793*3d8817e4Smiod /* or $reg8,$hash$uimm16 */
1794*3d8817e4Smiod   {
1795*3d8817e4Smiod     XC16X_INSN_ORRIM, "orrim", "or", 32,
1796*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1797*3d8817e4Smiod   },
1798*3d8817e4Smiod /* xor $reg8,$hash$uimm16 */
1799*3d8817e4Smiod   {
1800*3d8817e4Smiod     XC16X_INSN_XORRIM, "xorrim", "xor", 32,
1801*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1802*3d8817e4Smiod   },
1803*3d8817e4Smiod /* andb $regb8,$hash$uimm8 */
1804*3d8817e4Smiod   {
1805*3d8817e4Smiod     XC16X_INSN_ANDBRIM, "andbrim", "andb", 32,
1806*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1807*3d8817e4Smiod   },
1808*3d8817e4Smiod /* orb $regb8,$hash$uimm8 */
1809*3d8817e4Smiod   {
1810*3d8817e4Smiod     XC16X_INSN_ORBRIM, "orbrim", "orb", 32,
1811*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1812*3d8817e4Smiod   },
1813*3d8817e4Smiod /* xorb $regb8,$hash$uimm8 */
1814*3d8817e4Smiod   {
1815*3d8817e4Smiod     XC16X_INSN_XORBRIM, "xorbrim", "xorb", 32,
1816*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1817*3d8817e4Smiod   },
1818*3d8817e4Smiod /* and $dr,[$sr2] */
1819*3d8817e4Smiod   {
1820*3d8817e4Smiod     XC16X_INSN_AND2, "and2", "and", 16,
1821*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1822*3d8817e4Smiod   },
1823*3d8817e4Smiod /* or $dr,[$sr2] */
1824*3d8817e4Smiod   {
1825*3d8817e4Smiod     XC16X_INSN_OR2, "or2", "or", 16,
1826*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1827*3d8817e4Smiod   },
1828*3d8817e4Smiod /* xor $dr,[$sr2] */
1829*3d8817e4Smiod   {
1830*3d8817e4Smiod     XC16X_INSN_XOR2, "xor2", "xor", 16,
1831*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1832*3d8817e4Smiod   },
1833*3d8817e4Smiod /* andb $drb,[$sr2] */
1834*3d8817e4Smiod   {
1835*3d8817e4Smiod     XC16X_INSN_ANDB2, "andb2", "andb", 16,
1836*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1837*3d8817e4Smiod   },
1838*3d8817e4Smiod /* orb $drb,[$sr2] */
1839*3d8817e4Smiod   {
1840*3d8817e4Smiod     XC16X_INSN_ORB2, "orb2", "orb", 16,
1841*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1842*3d8817e4Smiod   },
1843*3d8817e4Smiod /* xorb $drb,[$sr2] */
1844*3d8817e4Smiod   {
1845*3d8817e4Smiod     XC16X_INSN_XORB2, "xorb2", "xorb", 16,
1846*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1847*3d8817e4Smiod   },
1848*3d8817e4Smiod /* and $dr,[$sr2+] */
1849*3d8817e4Smiod   {
1850*3d8817e4Smiod     XC16X_INSN_AND2I, "and2i", "and", 16,
1851*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1852*3d8817e4Smiod   },
1853*3d8817e4Smiod /* or $dr,[$sr2+] */
1854*3d8817e4Smiod   {
1855*3d8817e4Smiod     XC16X_INSN_OR2I, "or2i", "or", 16,
1856*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1857*3d8817e4Smiod   },
1858*3d8817e4Smiod /* xor $dr,[$sr2+] */
1859*3d8817e4Smiod   {
1860*3d8817e4Smiod     XC16X_INSN_XOR2I, "xor2i", "xor", 16,
1861*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1862*3d8817e4Smiod   },
1863*3d8817e4Smiod /* andb $drb,[$sr2+] */
1864*3d8817e4Smiod   {
1865*3d8817e4Smiod     XC16X_INSN_ANDB2I, "andb2i", "andb", 16,
1866*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1867*3d8817e4Smiod   },
1868*3d8817e4Smiod /* orb $drb,[$sr2+] */
1869*3d8817e4Smiod   {
1870*3d8817e4Smiod     XC16X_INSN_ORB2I, "orb2i", "orb", 16,
1871*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1872*3d8817e4Smiod   },
1873*3d8817e4Smiod /* xorb $drb,[$sr2+] */
1874*3d8817e4Smiod   {
1875*3d8817e4Smiod     XC16X_INSN_XORB2I, "xorb2i", "xorb", 16,
1876*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1877*3d8817e4Smiod   },
1878*3d8817e4Smiod /* and $pof$reg8,$upof16 */
1879*3d8817e4Smiod   {
1880*3d8817e4Smiod     XC16X_INSN_ANDPOFR, "andpofr", "and", 32,
1881*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1882*3d8817e4Smiod   },
1883*3d8817e4Smiod /* or $pof$reg8,$upof16 */
1884*3d8817e4Smiod   {
1885*3d8817e4Smiod     XC16X_INSN_ORPOFR, "orpofr", "or", 32,
1886*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1887*3d8817e4Smiod   },
1888*3d8817e4Smiod /* xor $pof$reg8,$upof16 */
1889*3d8817e4Smiod   {
1890*3d8817e4Smiod     XC16X_INSN_XORPOFR, "xorpofr", "xor", 32,
1891*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1892*3d8817e4Smiod   },
1893*3d8817e4Smiod /* andb $pof$regb8,$upof16 */
1894*3d8817e4Smiod   {
1895*3d8817e4Smiod     XC16X_INSN_ANDBPOFR, "andbpofr", "andb", 32,
1896*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1897*3d8817e4Smiod   },
1898*3d8817e4Smiod /* orb $pof$regb8,$upof16 */
1899*3d8817e4Smiod   {
1900*3d8817e4Smiod     XC16X_INSN_ORBPOFR, "orbpofr", "orb", 32,
1901*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1902*3d8817e4Smiod   },
1903*3d8817e4Smiod /* xorb $pof$regb8,$upof16 */
1904*3d8817e4Smiod   {
1905*3d8817e4Smiod     XC16X_INSN_XORBPOFR, "xorbpofr", "xorb", 32,
1906*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1907*3d8817e4Smiod   },
1908*3d8817e4Smiod /* and $pof$upof16,$reg8 */
1909*3d8817e4Smiod   {
1910*3d8817e4Smiod     XC16X_INSN_ANDRPOFR, "andrpofr", "and", 32,
1911*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1912*3d8817e4Smiod   },
1913*3d8817e4Smiod /* or $pof$upof16,$reg8 */
1914*3d8817e4Smiod   {
1915*3d8817e4Smiod     XC16X_INSN_ORRPOFR, "orrpofr", "or", 32,
1916*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1917*3d8817e4Smiod   },
1918*3d8817e4Smiod /* xor $pof$upof16,$reg8 */
1919*3d8817e4Smiod   {
1920*3d8817e4Smiod     XC16X_INSN_XORRPOFR, "xorrpofr", "xor", 32,
1921*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1922*3d8817e4Smiod   },
1923*3d8817e4Smiod /* andb $pof$upof16,$regb8 */
1924*3d8817e4Smiod   {
1925*3d8817e4Smiod     XC16X_INSN_ANDBRPOFR, "andbrpofr", "andb", 32,
1926*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1927*3d8817e4Smiod   },
1928*3d8817e4Smiod /* orb $pof$upof16,$regb8 */
1929*3d8817e4Smiod   {
1930*3d8817e4Smiod     XC16X_INSN_ORBRPOFR, "orbrpofr", "orb", 32,
1931*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1932*3d8817e4Smiod   },
1933*3d8817e4Smiod /* xorb $pof$upof16,$regb8 */
1934*3d8817e4Smiod   {
1935*3d8817e4Smiod     XC16X_INSN_XORBRPOFR, "xorbrpofr", "xorb", 32,
1936*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1937*3d8817e4Smiod   },
1938*3d8817e4Smiod /* and $regmem8,$memgr8 */
1939*3d8817e4Smiod   {
1940*3d8817e4Smiod     XC16X_INSN_ANDRM2, "andrm2", "and", 32,
1941*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1942*3d8817e4Smiod   },
1943*3d8817e4Smiod /* and $memgr8,$regmem8 */
1944*3d8817e4Smiod   {
1945*3d8817e4Smiod     XC16X_INSN_ANDRM3, "andrm3", "and", 32,
1946*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1947*3d8817e4Smiod   },
1948*3d8817e4Smiod /* and $reg8,$memory */
1949*3d8817e4Smiod   {
1950*3d8817e4Smiod     XC16X_INSN_ANDRM, "andrm", "and", 32,
1951*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1952*3d8817e4Smiod   },
1953*3d8817e4Smiod /* and $memory,$reg8 */
1954*3d8817e4Smiod   {
1955*3d8817e4Smiod     XC16X_INSN_ANDRM1, "andrm1", "and", 32,
1956*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1957*3d8817e4Smiod   },
1958*3d8817e4Smiod /* or $regmem8,$memgr8 */
1959*3d8817e4Smiod   {
1960*3d8817e4Smiod     XC16X_INSN_ORRM3, "orrm3", "or", 32,
1961*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1962*3d8817e4Smiod   },
1963*3d8817e4Smiod /* or $memgr8,$regmem8 */
1964*3d8817e4Smiod   {
1965*3d8817e4Smiod     XC16X_INSN_ORRM2, "orrm2", "or", 32,
1966*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1967*3d8817e4Smiod   },
1968*3d8817e4Smiod /* or $reg8,$memory */
1969*3d8817e4Smiod   {
1970*3d8817e4Smiod     XC16X_INSN_ORRM1, "orrm1", "or", 32,
1971*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1972*3d8817e4Smiod   },
1973*3d8817e4Smiod /* or $memory,$reg8 */
1974*3d8817e4Smiod   {
1975*3d8817e4Smiod     XC16X_INSN_ORRM, "orrm", "or", 32,
1976*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1977*3d8817e4Smiod   },
1978*3d8817e4Smiod /* xor $regmem8,$memgr8 */
1979*3d8817e4Smiod   {
1980*3d8817e4Smiod     XC16X_INSN_XORRM3, "xorrm3", "xor", 32,
1981*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1982*3d8817e4Smiod   },
1983*3d8817e4Smiod /* xor $memgr8,$regmem8 */
1984*3d8817e4Smiod   {
1985*3d8817e4Smiod     XC16X_INSN_XORRM2, "xorrm2", "xor", 32,
1986*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1987*3d8817e4Smiod   },
1988*3d8817e4Smiod /* xor $reg8,$memory */
1989*3d8817e4Smiod   {
1990*3d8817e4Smiod     XC16X_INSN_XORRM1, "xorrm1", "xor", 32,
1991*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1992*3d8817e4Smiod   },
1993*3d8817e4Smiod /* xor $memory,$reg8 */
1994*3d8817e4Smiod   {
1995*3d8817e4Smiod     XC16X_INSN_XORRM, "xorrm", "xor", 32,
1996*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
1997*3d8817e4Smiod   },
1998*3d8817e4Smiod /* andb $regbmem8,$memgr8 */
1999*3d8817e4Smiod   {
2000*3d8817e4Smiod     XC16X_INSN_ANDBRM2, "andbrm2", "andb", 32,
2001*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2002*3d8817e4Smiod   },
2003*3d8817e4Smiod /* andb $memgr8,$regbmem8 */
2004*3d8817e4Smiod   {
2005*3d8817e4Smiod     XC16X_INSN_ANDBRM3, "andbrm3", "andb", 32,
2006*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2007*3d8817e4Smiod   },
2008*3d8817e4Smiod /* andb $regb8,$memory */
2009*3d8817e4Smiod   {
2010*3d8817e4Smiod     XC16X_INSN_ANDBRM, "andbrm", "andb", 32,
2011*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2012*3d8817e4Smiod   },
2013*3d8817e4Smiod /* andb $memory,$regb8 */
2014*3d8817e4Smiod   {
2015*3d8817e4Smiod     XC16X_INSN_ANDBRM1, "andbrm1", "andb", 32,
2016*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2017*3d8817e4Smiod   },
2018*3d8817e4Smiod /* orb $regbmem8,$memgr8 */
2019*3d8817e4Smiod   {
2020*3d8817e4Smiod     XC16X_INSN_ORBRM3, "orbrm3", "orb", 32,
2021*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2022*3d8817e4Smiod   },
2023*3d8817e4Smiod /* orb $memgr8,$regbmem8 */
2024*3d8817e4Smiod   {
2025*3d8817e4Smiod     XC16X_INSN_ORBRM2, "orbrm2", "orb", 32,
2026*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2027*3d8817e4Smiod   },
2028*3d8817e4Smiod /* orb $regb8,$memory */
2029*3d8817e4Smiod   {
2030*3d8817e4Smiod     XC16X_INSN_ORBRM1, "orbrm1", "orb", 32,
2031*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2032*3d8817e4Smiod   },
2033*3d8817e4Smiod /* orb $memory,$regb8 */
2034*3d8817e4Smiod   {
2035*3d8817e4Smiod     XC16X_INSN_ORBRM, "orbrm", "orb", 32,
2036*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2037*3d8817e4Smiod   },
2038*3d8817e4Smiod /* xorb $regbmem8,$memgr8 */
2039*3d8817e4Smiod   {
2040*3d8817e4Smiod     XC16X_INSN_XORBRM3, "xorbrm3", "xorb", 32,
2041*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2042*3d8817e4Smiod   },
2043*3d8817e4Smiod /* xorb $memgr8,$regbmem8 */
2044*3d8817e4Smiod   {
2045*3d8817e4Smiod     XC16X_INSN_XORBRM2, "xorbrm2", "xorb", 32,
2046*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2047*3d8817e4Smiod   },
2048*3d8817e4Smiod /* xorb $regb8,$memory */
2049*3d8817e4Smiod   {
2050*3d8817e4Smiod     XC16X_INSN_XORBRM1, "xorbrm1", "xorb", 32,
2051*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2052*3d8817e4Smiod   },
2053*3d8817e4Smiod /* xorb $memory,$regb8 */
2054*3d8817e4Smiod   {
2055*3d8817e4Smiod     XC16X_INSN_XORBRM, "xorbrm", "xorb", 32,
2056*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2057*3d8817e4Smiod   },
2058*3d8817e4Smiod /* mov $dr,$sr */
2059*3d8817e4Smiod   {
2060*3d8817e4Smiod     XC16X_INSN_MOVR, "movr", "mov", 16,
2061*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2062*3d8817e4Smiod   },
2063*3d8817e4Smiod /* movb $drb,$srb */
2064*3d8817e4Smiod   {
2065*3d8817e4Smiod     XC16X_INSN_MOVRB, "movrb", "movb", 16,
2066*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2067*3d8817e4Smiod   },
2068*3d8817e4Smiod /* mov $dri,$hash$u4 */
2069*3d8817e4Smiod   {
2070*3d8817e4Smiod     XC16X_INSN_MOVRI, "movri", "mov", 16,
2071*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2072*3d8817e4Smiod   },
2073*3d8817e4Smiod /* movb $srb,$hash$u4 */
2074*3d8817e4Smiod   {
2075*3d8817e4Smiod     XC16X_INSN_MOVBRI, "movbri", "movb", 16,
2076*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2077*3d8817e4Smiod   },
2078*3d8817e4Smiod /* mov $reg8,$hash$uimm16 */
2079*3d8817e4Smiod   {
2080*3d8817e4Smiod     XC16X_INSN_MOVI, "movi", "mov", 32,
2081*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2082*3d8817e4Smiod   },
2083*3d8817e4Smiod /* movb $regb8,$hash$uimm8 */
2084*3d8817e4Smiod   {
2085*3d8817e4Smiod     XC16X_INSN_MOVBI, "movbi", "movb", 32,
2086*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2087*3d8817e4Smiod   },
2088*3d8817e4Smiod /* mov $dr,[$sr] */
2089*3d8817e4Smiod   {
2090*3d8817e4Smiod     XC16X_INSN_MOVR2, "movr2", "mov", 16,
2091*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2092*3d8817e4Smiod   },
2093*3d8817e4Smiod /* movb $drb,[$sr] */
2094*3d8817e4Smiod   {
2095*3d8817e4Smiod     XC16X_INSN_MOVBR2, "movbr2", "movb", 16,
2096*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2097*3d8817e4Smiod   },
2098*3d8817e4Smiod /* mov [$sr],$dr */
2099*3d8817e4Smiod   {
2100*3d8817e4Smiod     XC16X_INSN_MOVRI2, "movri2", "mov", 16,
2101*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2102*3d8817e4Smiod   },
2103*3d8817e4Smiod /* movb [$sr],$drb */
2104*3d8817e4Smiod   {
2105*3d8817e4Smiod     XC16X_INSN_MOVBRI2, "movbri2", "movb", 16,
2106*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2107*3d8817e4Smiod   },
2108*3d8817e4Smiod /* mov [-$sr],$dr */
2109*3d8817e4Smiod   {
2110*3d8817e4Smiod     XC16X_INSN_MOVRI3, "movri3", "mov", 16,
2111*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2112*3d8817e4Smiod   },
2113*3d8817e4Smiod /* movb [-$sr],$drb */
2114*3d8817e4Smiod   {
2115*3d8817e4Smiod     XC16X_INSN_MOVBRI3, "movbri3", "movb", 16,
2116*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2117*3d8817e4Smiod   },
2118*3d8817e4Smiod /* mov $dr,[$sr+] */
2119*3d8817e4Smiod   {
2120*3d8817e4Smiod     XC16X_INSN_MOV2I, "mov2i", "mov", 16,
2121*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2122*3d8817e4Smiod   },
2123*3d8817e4Smiod /* movb $drb,[$sr+] */
2124*3d8817e4Smiod   {
2125*3d8817e4Smiod     XC16X_INSN_MOVB2I, "movb2i", "movb", 16,
2126*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2127*3d8817e4Smiod   },
2128*3d8817e4Smiod /* mov [$dr],[$sr] */
2129*3d8817e4Smiod   {
2130*3d8817e4Smiod     XC16X_INSN_MOV6I, "mov6i", "mov", 16,
2131*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2132*3d8817e4Smiod   },
2133*3d8817e4Smiod /* movb [$dr],[$sr] */
2134*3d8817e4Smiod   {
2135*3d8817e4Smiod     XC16X_INSN_MOVB6I, "movb6i", "movb", 16,
2136*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2137*3d8817e4Smiod   },
2138*3d8817e4Smiod /* mov [$dr+],[$sr] */
2139*3d8817e4Smiod   {
2140*3d8817e4Smiod     XC16X_INSN_MOV7I, "mov7i", "mov", 16,
2141*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2142*3d8817e4Smiod   },
2143*3d8817e4Smiod /* movb [$dr+],[$sr] */
2144*3d8817e4Smiod   {
2145*3d8817e4Smiod     XC16X_INSN_MOVB7I, "movb7i", "movb", 16,
2146*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2147*3d8817e4Smiod   },
2148*3d8817e4Smiod /* mov [$dr],[$sr+] */
2149*3d8817e4Smiod   {
2150*3d8817e4Smiod     XC16X_INSN_MOV8I, "mov8i", "mov", 16,
2151*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2152*3d8817e4Smiod   },
2153*3d8817e4Smiod /* movb [$dr],[$sr+] */
2154*3d8817e4Smiod   {
2155*3d8817e4Smiod     XC16X_INSN_MOVB8I, "movb8i", "movb", 16,
2156*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2157*3d8817e4Smiod   },
2158*3d8817e4Smiod /* mov $dr,[$sr+$hash$uimm16] */
2159*3d8817e4Smiod   {
2160*3d8817e4Smiod     XC16X_INSN_MOV9I, "mov9i", "mov", 32,
2161*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2162*3d8817e4Smiod   },
2163*3d8817e4Smiod /* movb $drb,[$sr+$hash$uimm16] */
2164*3d8817e4Smiod   {
2165*3d8817e4Smiod     XC16X_INSN_MOVB9I, "movb9i", "movb", 32,
2166*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2167*3d8817e4Smiod   },
2168*3d8817e4Smiod /* mov [$sr+$hash$uimm16],$dr */
2169*3d8817e4Smiod   {
2170*3d8817e4Smiod     XC16X_INSN_MOV10I, "mov10i", "mov", 32,
2171*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2172*3d8817e4Smiod   },
2173*3d8817e4Smiod /* movb [$sr+$hash$uimm16],$drb */
2174*3d8817e4Smiod   {
2175*3d8817e4Smiod     XC16X_INSN_MOVB10I, "movb10i", "movb", 32,
2176*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2177*3d8817e4Smiod   },
2178*3d8817e4Smiod /* mov [$src2],$memory */
2179*3d8817e4Smiod   {
2180*3d8817e4Smiod     XC16X_INSN_MOVRI11, "movri11", "mov", 32,
2181*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2182*3d8817e4Smiod   },
2183*3d8817e4Smiod /* movb [$src2],$memory */
2184*3d8817e4Smiod   {
2185*3d8817e4Smiod     XC16X_INSN_MOVBRI11, "movbri11", "movb", 32,
2186*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2187*3d8817e4Smiod   },
2188*3d8817e4Smiod /* mov $memory,[$src2] */
2189*3d8817e4Smiod   {
2190*3d8817e4Smiod     XC16X_INSN_MOVRI12, "movri12", "mov", 32,
2191*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2192*3d8817e4Smiod   },
2193*3d8817e4Smiod /* movb $memory,[$src2] */
2194*3d8817e4Smiod   {
2195*3d8817e4Smiod     XC16X_INSN_MOVBRI12, "movbri12", "movb", 32,
2196*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2197*3d8817e4Smiod   },
2198*3d8817e4Smiod /* mov $regoff8,$hash$pof$upof16 */
2199*3d8817e4Smiod   {
2200*3d8817e4Smiod     XC16X_INSN_MOVEHM5, "movehm5", "mov", 32,
2201*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2202*3d8817e4Smiod   },
2203*3d8817e4Smiod /* mov $regoff8,$hash$pag$upag16 */
2204*3d8817e4Smiod   {
2205*3d8817e4Smiod     XC16X_INSN_MOVEHM6, "movehm6", "mov", 32,
2206*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2207*3d8817e4Smiod   },
2208*3d8817e4Smiod /* mov $regoff8,$hash$segm$useg16 */
2209*3d8817e4Smiod   {
2210*3d8817e4Smiod     XC16X_INSN_MOVEHM7, "movehm7", "mov", 32,
2211*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2212*3d8817e4Smiod   },
2213*3d8817e4Smiod /* mov $regoff8,$hash$sof$usof16 */
2214*3d8817e4Smiod   {
2215*3d8817e4Smiod     XC16X_INSN_MOVEHM8, "movehm8", "mov", 32,
2216*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2217*3d8817e4Smiod   },
2218*3d8817e4Smiod /* movb $regb8,$hash$pof$uimm8 */
2219*3d8817e4Smiod   {
2220*3d8817e4Smiod     XC16X_INSN_MOVEHM9, "movehm9", "movb", 32,
2221*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2222*3d8817e4Smiod   },
2223*3d8817e4Smiod /* movb $regoff8,$hash$pag$uimm8 */
2224*3d8817e4Smiod   {
2225*3d8817e4Smiod     XC16X_INSN_MOVEHM10, "movehm10", "movb", 32,
2226*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2227*3d8817e4Smiod   },
2228*3d8817e4Smiod /* mov $regoff8,$pof$upof16 */
2229*3d8817e4Smiod   {
2230*3d8817e4Smiod     XC16X_INSN_MOVRMP, "movrmp", "mov", 32,
2231*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2232*3d8817e4Smiod   },
2233*3d8817e4Smiod /* movb $regb8,$pof$upof16 */
2234*3d8817e4Smiod   {
2235*3d8817e4Smiod     XC16X_INSN_MOVRMP1, "movrmp1", "movb", 32,
2236*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2237*3d8817e4Smiod   },
2238*3d8817e4Smiod /* mov $regoff8,$pag$upag16 */
2239*3d8817e4Smiod   {
2240*3d8817e4Smiod     XC16X_INSN_MOVRMP2, "movrmp2", "mov", 32,
2241*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2242*3d8817e4Smiod   },
2243*3d8817e4Smiod /* movb $regb8,$pag$upag16 */
2244*3d8817e4Smiod   {
2245*3d8817e4Smiod     XC16X_INSN_MOVRMP3, "movrmp3", "movb", 32,
2246*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2247*3d8817e4Smiod   },
2248*3d8817e4Smiod /* mov $pof$upof16,$regoff8 */
2249*3d8817e4Smiod   {
2250*3d8817e4Smiod     XC16X_INSN_MOVRMP4, "movrmp4", "mov", 32,
2251*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2252*3d8817e4Smiod   },
2253*3d8817e4Smiod /* movb $pof$upof16,$regb8 */
2254*3d8817e4Smiod   {
2255*3d8817e4Smiod     XC16X_INSN_MOVRMP5, "movrmp5", "movb", 32,
2256*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2257*3d8817e4Smiod   },
2258*3d8817e4Smiod /* mov $dri,$hash$pof$u4 */
2259*3d8817e4Smiod   {
2260*3d8817e4Smiod     XC16X_INSN_MOVEHM1, "movehm1", "mov", 16,
2261*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2262*3d8817e4Smiod   },
2263*3d8817e4Smiod /* movb $srb,$hash$pof$u4 */
2264*3d8817e4Smiod   {
2265*3d8817e4Smiod     XC16X_INSN_MOVEHM2, "movehm2", "movb", 16,
2266*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2267*3d8817e4Smiod   },
2268*3d8817e4Smiod /* mov $dri,$hash$pag$u4 */
2269*3d8817e4Smiod   {
2270*3d8817e4Smiod     XC16X_INSN_MOVEHM3, "movehm3", "mov", 16,
2271*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2272*3d8817e4Smiod   },
2273*3d8817e4Smiod /* movb $srb,$hash$pag$u4 */
2274*3d8817e4Smiod   {
2275*3d8817e4Smiod     XC16X_INSN_MOVEHM4, "movehm4", "movb", 16,
2276*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2277*3d8817e4Smiod   },
2278*3d8817e4Smiod /* mov $regmem8,$memgr8 */
2279*3d8817e4Smiod   {
2280*3d8817e4Smiod     XC16X_INSN_MVE12, "mve12", "mov", 32,
2281*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2282*3d8817e4Smiod   },
2283*3d8817e4Smiod /* mov $memgr8,$regmem8 */
2284*3d8817e4Smiod   {
2285*3d8817e4Smiod     XC16X_INSN_MVE13, "mve13", "mov", 32,
2286*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2287*3d8817e4Smiod   },
2288*3d8817e4Smiod /* mov $reg8,$memory */
2289*3d8817e4Smiod   {
2290*3d8817e4Smiod     XC16X_INSN_MOVER12, "mover12", "mov", 32,
2291*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2292*3d8817e4Smiod   },
2293*3d8817e4Smiod /* mov $memory,$reg8 */
2294*3d8817e4Smiod   {
2295*3d8817e4Smiod     XC16X_INSN_MVR13, "mvr13", "mov", 32,
2296*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2297*3d8817e4Smiod   },
2298*3d8817e4Smiod /* movb $regbmem8,$memgr8 */
2299*3d8817e4Smiod   {
2300*3d8817e4Smiod     XC16X_INSN_MVER12, "mver12", "movb", 32,
2301*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2302*3d8817e4Smiod   },
2303*3d8817e4Smiod /* movb $memgr8,$regbmem8 */
2304*3d8817e4Smiod   {
2305*3d8817e4Smiod     XC16X_INSN_MVER13, "mver13", "movb", 32,
2306*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2307*3d8817e4Smiod   },
2308*3d8817e4Smiod /* movb $regb8,$memory */
2309*3d8817e4Smiod   {
2310*3d8817e4Smiod     XC16X_INSN_MOVR12, "movr12", "movb", 32,
2311*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2312*3d8817e4Smiod   },
2313*3d8817e4Smiod /* movb $memory,$regb8 */
2314*3d8817e4Smiod   {
2315*3d8817e4Smiod     XC16X_INSN_MOVR13, "movr13", "movb", 32,
2316*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2317*3d8817e4Smiod   },
2318*3d8817e4Smiod /* movbs $sr,$drb */
2319*3d8817e4Smiod   {
2320*3d8817e4Smiod     XC16X_INSN_MOVBSRR, "movbsrr", "movbs", 16,
2321*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2322*3d8817e4Smiod   },
2323*3d8817e4Smiod /* movbz $sr,$drb */
2324*3d8817e4Smiod   {
2325*3d8817e4Smiod     XC16X_INSN_MOVBZRR, "movbzrr", "movbz", 16,
2326*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2327*3d8817e4Smiod   },
2328*3d8817e4Smiod /* movbs $regmem8,$pof$upof16 */
2329*3d8817e4Smiod   {
2330*3d8817e4Smiod     XC16X_INSN_MOVBSRPOFM, "movbsrpofm", "movbs", 32,
2331*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2332*3d8817e4Smiod   },
2333*3d8817e4Smiod /* movbs $pof$upof16,$regbmem8 */
2334*3d8817e4Smiod   {
2335*3d8817e4Smiod     XC16X_INSN_MOVBSPOFMR, "movbspofmr", "movbs", 32,
2336*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2337*3d8817e4Smiod   },
2338*3d8817e4Smiod /* movbz $reg8,$pof$upof16 */
2339*3d8817e4Smiod   {
2340*3d8817e4Smiod     XC16X_INSN_MOVBZRPOFM, "movbzrpofm", "movbz", 32,
2341*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2342*3d8817e4Smiod   },
2343*3d8817e4Smiod /* movbz $pof$upof16,$regb8 */
2344*3d8817e4Smiod   {
2345*3d8817e4Smiod     XC16X_INSN_MOVBZPOFMR, "movbzpofmr", "movbz", 32,
2346*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2347*3d8817e4Smiod   },
2348*3d8817e4Smiod /* movbs $regmem8,$memgr8 */
2349*3d8817e4Smiod   {
2350*3d8817e4Smiod     XC16X_INSN_MOVEBS14, "movebs14", "movbs", 32,
2351*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2352*3d8817e4Smiod   },
2353*3d8817e4Smiod /* movbs $memgr8,$regbmem8 */
2354*3d8817e4Smiod   {
2355*3d8817e4Smiod     XC16X_INSN_MOVEBS15, "movebs15", "movbs", 32,
2356*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2357*3d8817e4Smiod   },
2358*3d8817e4Smiod /* movbs $reg8,$memory */
2359*3d8817e4Smiod   {
2360*3d8817e4Smiod     XC16X_INSN_MOVERBS14, "moverbs14", "movbs", 32,
2361*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2362*3d8817e4Smiod   },
2363*3d8817e4Smiod /* movbs $memory,$regb8 */
2364*3d8817e4Smiod   {
2365*3d8817e4Smiod     XC16X_INSN_MOVRBS15, "movrbs15", "movbs", 32,
2366*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2367*3d8817e4Smiod   },
2368*3d8817e4Smiod /* movbz $regmem8,$memgr8 */
2369*3d8817e4Smiod   {
2370*3d8817e4Smiod     XC16X_INSN_MOVEBZ14, "movebz14", "movbz", 32,
2371*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2372*3d8817e4Smiod   },
2373*3d8817e4Smiod /* movbz $memgr8,$regbmem8 */
2374*3d8817e4Smiod   {
2375*3d8817e4Smiod     XC16X_INSN_MOVEBZ15, "movebz15", "movbz", 32,
2376*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2377*3d8817e4Smiod   },
2378*3d8817e4Smiod /* movbz $reg8,$memory */
2379*3d8817e4Smiod   {
2380*3d8817e4Smiod     XC16X_INSN_MOVERBZ14, "moverbz14", "movbz", 32,
2381*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2382*3d8817e4Smiod   },
2383*3d8817e4Smiod /* movbz $memory,$regb8 */
2384*3d8817e4Smiod   {
2385*3d8817e4Smiod     XC16X_INSN_MOVRBZ15, "movrbz15", "movbz", 32,
2386*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2387*3d8817e4Smiod   },
2388*3d8817e4Smiod /* movbs $sr,$drb */
2389*3d8817e4Smiod   {
2390*3d8817e4Smiod     XC16X_INSN_MOVRBS, "movrbs", "movbs", 16,
2391*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2392*3d8817e4Smiod   },
2393*3d8817e4Smiod /* movbz $sr,$drb */
2394*3d8817e4Smiod   {
2395*3d8817e4Smiod     XC16X_INSN_MOVRBZ, "movrbz", "movbz", 16,
2396*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2397*3d8817e4Smiod   },
2398*3d8817e4Smiod /* jmpa+ $extcond,$caddr */
2399*3d8817e4Smiod   {
2400*3d8817e4Smiod     XC16X_INSN_JMPA0, "jmpa0", "jmpa+", 32,
2401*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2402*3d8817e4Smiod   },
2403*3d8817e4Smiod /* jmpa $extcond,$caddr */
2404*3d8817e4Smiod   {
2405*3d8817e4Smiod     XC16X_INSN_JMPA1, "jmpa1", "jmpa", 32,
2406*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2407*3d8817e4Smiod   },
2408*3d8817e4Smiod /* jmpa- $extcond,$caddr */
2409*3d8817e4Smiod   {
2410*3d8817e4Smiod     XC16X_INSN_JMPA_, "jmpa-", "jmpa-", 32,
2411*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2412*3d8817e4Smiod   },
2413*3d8817e4Smiod /* jmpi $icond,[$sr] */
2414*3d8817e4Smiod   {
2415*3d8817e4Smiod     XC16X_INSN_JMPI, "jmpi", "jmpi", 16,
2416*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2417*3d8817e4Smiod   },
2418*3d8817e4Smiod /* jmpr $cond,$rel */
2419*3d8817e4Smiod   {
2420*3d8817e4Smiod     XC16X_INSN_JMPR_NENZ, "jmpr_nenz", "jmpr", 16,
2421*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2422*3d8817e4Smiod   },
2423*3d8817e4Smiod /* jmpr $cond,$rel */
2424*3d8817e4Smiod   {
2425*3d8817e4Smiod     XC16X_INSN_JMPR_SGT, "jmpr_sgt", "jmpr", 16,
2426*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2427*3d8817e4Smiod   },
2428*3d8817e4Smiod /* jmpr $cond,$rel */
2429*3d8817e4Smiod   {
2430*3d8817e4Smiod     XC16X_INSN_JMPR_Z, "jmpr_z", "jmpr", 16,
2431*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2432*3d8817e4Smiod   },
2433*3d8817e4Smiod /* jmpr $cond,$rel */
2434*3d8817e4Smiod   {
2435*3d8817e4Smiod     XC16X_INSN_JMPR_V, "jmpr_v", "jmpr", 16,
2436*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2437*3d8817e4Smiod   },
2438*3d8817e4Smiod /* jmpr $cond,$rel */
2439*3d8817e4Smiod   {
2440*3d8817e4Smiod     XC16X_INSN_JMPR_NV, "jmpr_nv", "jmpr", 16,
2441*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2442*3d8817e4Smiod   },
2443*3d8817e4Smiod /* jmpr $cond,$rel */
2444*3d8817e4Smiod   {
2445*3d8817e4Smiod     XC16X_INSN_JMPR_N, "jmpr_n", "jmpr", 16,
2446*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2447*3d8817e4Smiod   },
2448*3d8817e4Smiod /* jmpr $cond,$rel */
2449*3d8817e4Smiod   {
2450*3d8817e4Smiod     XC16X_INSN_JMPR_NN, "jmpr_nn", "jmpr", 16,
2451*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2452*3d8817e4Smiod   },
2453*3d8817e4Smiod /* jmpr $cond,$rel */
2454*3d8817e4Smiod   {
2455*3d8817e4Smiod     XC16X_INSN_JMPR_C, "jmpr_c", "jmpr", 16,
2456*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2457*3d8817e4Smiod   },
2458*3d8817e4Smiod /* jmpr $cond,$rel */
2459*3d8817e4Smiod   {
2460*3d8817e4Smiod     XC16X_INSN_JMPR_NC, "jmpr_nc", "jmpr", 16,
2461*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2462*3d8817e4Smiod   },
2463*3d8817e4Smiod /* jmpr $cond,$rel */
2464*3d8817e4Smiod   {
2465*3d8817e4Smiod     XC16X_INSN_JMPR_EQ, "jmpr_eq", "jmpr", 16,
2466*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2467*3d8817e4Smiod   },
2468*3d8817e4Smiod /* jmpr $cond,$rel */
2469*3d8817e4Smiod   {
2470*3d8817e4Smiod     XC16X_INSN_JMPR_NE, "jmpr_ne", "jmpr", 16,
2471*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2472*3d8817e4Smiod   },
2473*3d8817e4Smiod /* jmpr $cond,$rel */
2474*3d8817e4Smiod   {
2475*3d8817e4Smiod     XC16X_INSN_JMPR_ULT, "jmpr_ult", "jmpr", 16,
2476*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2477*3d8817e4Smiod   },
2478*3d8817e4Smiod /* jmpr $cond,$rel */
2479*3d8817e4Smiod   {
2480*3d8817e4Smiod     XC16X_INSN_JMPR_ULE, "jmpr_ule", "jmpr", 16,
2481*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2482*3d8817e4Smiod   },
2483*3d8817e4Smiod /* jmpr $cond,$rel */
2484*3d8817e4Smiod   {
2485*3d8817e4Smiod     XC16X_INSN_JMPR_UGE, "jmpr_uge", "jmpr", 16,
2486*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2487*3d8817e4Smiod   },
2488*3d8817e4Smiod /* jmpr $cond,$rel */
2489*3d8817e4Smiod   {
2490*3d8817e4Smiod     XC16X_INSN_JMPR_UGT, "jmpr_ugt", "jmpr", 16,
2491*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2492*3d8817e4Smiod   },
2493*3d8817e4Smiod /* jmpr $cond,$rel */
2494*3d8817e4Smiod   {
2495*3d8817e4Smiod     XC16X_INSN_JMPR_SLE, "jmpr_sle", "jmpr", 16,
2496*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2497*3d8817e4Smiod   },
2498*3d8817e4Smiod /* jmpr $cond,$rel */
2499*3d8817e4Smiod   {
2500*3d8817e4Smiod     XC16X_INSN_JMPR_SGE, "jmpr_sge", "jmpr", 16,
2501*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2502*3d8817e4Smiod   },
2503*3d8817e4Smiod /* jmpr $cond,$rel */
2504*3d8817e4Smiod   {
2505*3d8817e4Smiod     XC16X_INSN_JMPR_NET, "jmpr_net", "jmpr", 16,
2506*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2507*3d8817e4Smiod   },
2508*3d8817e4Smiod /* jmpr $cond,$rel */
2509*3d8817e4Smiod   {
2510*3d8817e4Smiod     XC16X_INSN_JMPR_UC, "jmpr_uc", "jmpr", 16,
2511*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2512*3d8817e4Smiod   },
2513*3d8817e4Smiod /* jmpr $cond,$rel */
2514*3d8817e4Smiod   {
2515*3d8817e4Smiod     XC16X_INSN_JMPR_SLT, "jmpr_slt", "jmpr", 16,
2516*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2517*3d8817e4Smiod   },
2518*3d8817e4Smiod /* jmps $hash$segm$useg8,$hash$sof$usof16 */
2519*3d8817e4Smiod   {
2520*3d8817e4Smiod     XC16X_INSN_JMPSEG, "jmpseg", "jmps", 32,
2521*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2522*3d8817e4Smiod   },
2523*3d8817e4Smiod /* jmps $seg,$caddr */
2524*3d8817e4Smiod   {
2525*3d8817e4Smiod     XC16X_INSN_JMPS, "jmps", "jmps", 32,
2526*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2527*3d8817e4Smiod   },
2528*3d8817e4Smiod /* jb $genreg$dot$qlobit,$relhi */
2529*3d8817e4Smiod   {
2530*3d8817e4Smiod     XC16X_INSN_JB, "jb", "jb", 32,
2531*3d8817e4Smiod     { 0|A(UNCOND_CTI)|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2532*3d8817e4Smiod   },
2533*3d8817e4Smiod /* jbc $genreg$dot$qlobit,$relhi */
2534*3d8817e4Smiod   {
2535*3d8817e4Smiod     XC16X_INSN_JBC, "jbc", "jbc", 32,
2536*3d8817e4Smiod     { 0|A(UNCOND_CTI)|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2537*3d8817e4Smiod   },
2538*3d8817e4Smiod /* jnb $genreg$dot$qlobit,$relhi */
2539*3d8817e4Smiod   {
2540*3d8817e4Smiod     XC16X_INSN_JNB, "jnb", "jnb", 32,
2541*3d8817e4Smiod     { 0|A(UNCOND_CTI)|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2542*3d8817e4Smiod   },
2543*3d8817e4Smiod /* jnbs $genreg$dot$qlobit,$relhi */
2544*3d8817e4Smiod   {
2545*3d8817e4Smiod     XC16X_INSN_JNBS, "jnbs", "jnbs", 32,
2546*3d8817e4Smiod     { 0|A(UNCOND_CTI)|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2547*3d8817e4Smiod   },
2548*3d8817e4Smiod /* calla+ $extcond,$caddr */
2549*3d8817e4Smiod   {
2550*3d8817e4Smiod     XC16X_INSN_CALLA0, "calla0", "calla+", 32,
2551*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2552*3d8817e4Smiod   },
2553*3d8817e4Smiod /* calla $extcond,$caddr */
2554*3d8817e4Smiod   {
2555*3d8817e4Smiod     XC16X_INSN_CALLA1, "calla1", "calla", 32,
2556*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2557*3d8817e4Smiod   },
2558*3d8817e4Smiod /* calla- $extcond,$caddr */
2559*3d8817e4Smiod   {
2560*3d8817e4Smiod     XC16X_INSN_CALLA_, "calla-", "calla-", 32,
2561*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2562*3d8817e4Smiod   },
2563*3d8817e4Smiod /* calli $icond,[$sr] */
2564*3d8817e4Smiod   {
2565*3d8817e4Smiod     XC16X_INSN_CALLI, "calli", "calli", 16,
2566*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2567*3d8817e4Smiod   },
2568*3d8817e4Smiod /* callr $rel */
2569*3d8817e4Smiod   {
2570*3d8817e4Smiod     XC16X_INSN_CALLR, "callr", "callr", 16,
2571*3d8817e4Smiod     { 0|A(COND_CTI)|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2572*3d8817e4Smiod   },
2573*3d8817e4Smiod /* calls $hash$segm$useg8,$hash$sof$usof16 */
2574*3d8817e4Smiod   {
2575*3d8817e4Smiod     XC16X_INSN_CALLSEG, "callseg", "calls", 32,
2576*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2577*3d8817e4Smiod   },
2578*3d8817e4Smiod /* calls $seg,$caddr */
2579*3d8817e4Smiod   {
2580*3d8817e4Smiod     XC16X_INSN_CALLS, "calls", "calls", 32,
2581*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2582*3d8817e4Smiod   },
2583*3d8817e4Smiod /* pcall $reg8,$caddr */
2584*3d8817e4Smiod   {
2585*3d8817e4Smiod     XC16X_INSN_PCALL, "pcall", "pcall", 32,
2586*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2587*3d8817e4Smiod   },
2588*3d8817e4Smiod /* trap $hash$uimm7 */
2589*3d8817e4Smiod   {
2590*3d8817e4Smiod     XC16X_INSN_TRAP, "trap", "trap", 16,
2591*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2592*3d8817e4Smiod   },
2593*3d8817e4Smiod /* ret */
2594*3d8817e4Smiod   {
2595*3d8817e4Smiod     XC16X_INSN_RET, "ret", "ret", 16,
2596*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2597*3d8817e4Smiod   },
2598*3d8817e4Smiod /* rets */
2599*3d8817e4Smiod   {
2600*3d8817e4Smiod     XC16X_INSN_RETS, "rets", "rets", 16,
2601*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2602*3d8817e4Smiod   },
2603*3d8817e4Smiod /* retp $reg8 */
2604*3d8817e4Smiod   {
2605*3d8817e4Smiod     XC16X_INSN_RETP, "retp", "retp", 16,
2606*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2607*3d8817e4Smiod   },
2608*3d8817e4Smiod /* reti */
2609*3d8817e4Smiod   {
2610*3d8817e4Smiod     XC16X_INSN_RETI, "reti", "reti", 16,
2611*3d8817e4Smiod     { 0|A(UNCOND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2612*3d8817e4Smiod   },
2613*3d8817e4Smiod /* pop $reg8 */
2614*3d8817e4Smiod   {
2615*3d8817e4Smiod     XC16X_INSN_POP, "pop", "pop", 16,
2616*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2617*3d8817e4Smiod   },
2618*3d8817e4Smiod /* push $reg8 */
2619*3d8817e4Smiod   {
2620*3d8817e4Smiod     XC16X_INSN_PUSH, "push", "push", 16,
2621*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2622*3d8817e4Smiod   },
2623*3d8817e4Smiod /* scxt $reg8,$hash$uimm16 */
2624*3d8817e4Smiod   {
2625*3d8817e4Smiod     XC16X_INSN_SCXTI, "scxti", "scxt", 32,
2626*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2627*3d8817e4Smiod   },
2628*3d8817e4Smiod /* scxt $reg8,$pof$upof16 */
2629*3d8817e4Smiod   {
2630*3d8817e4Smiod     XC16X_INSN_SCXTRPOFM, "scxtrpofm", "scxt", 32,
2631*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2632*3d8817e4Smiod   },
2633*3d8817e4Smiod /* scxt $regmem8,$memgr8 */
2634*3d8817e4Smiod   {
2635*3d8817e4Smiod     XC16X_INSN_SCXTMG, "scxtmg", "scxt", 32,
2636*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2637*3d8817e4Smiod   },
2638*3d8817e4Smiod /* scxt $reg8,$memory */
2639*3d8817e4Smiod   {
2640*3d8817e4Smiod     XC16X_INSN_SCXTM, "scxtm", "scxt", 32,
2641*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2642*3d8817e4Smiod   },
2643*3d8817e4Smiod /* nop */
2644*3d8817e4Smiod   {
2645*3d8817e4Smiod     XC16X_INSN_NOP, "nop", "nop", 16,
2646*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2647*3d8817e4Smiod   },
2648*3d8817e4Smiod /* srst */
2649*3d8817e4Smiod   {
2650*3d8817e4Smiod     XC16X_INSN_SRSTM, "srstm", "srst", 32,
2651*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2652*3d8817e4Smiod   },
2653*3d8817e4Smiod /* idle */
2654*3d8817e4Smiod   {
2655*3d8817e4Smiod     XC16X_INSN_IDLEM, "idlem", "idle", 32,
2656*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2657*3d8817e4Smiod   },
2658*3d8817e4Smiod /* pwrdn */
2659*3d8817e4Smiod   {
2660*3d8817e4Smiod     XC16X_INSN_PWRDNM, "pwrdnm", "pwrdn", 32,
2661*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2662*3d8817e4Smiod   },
2663*3d8817e4Smiod /* diswdt */
2664*3d8817e4Smiod   {
2665*3d8817e4Smiod     XC16X_INSN_DISWDTM, "diswdtm", "diswdt", 32,
2666*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2667*3d8817e4Smiod   },
2668*3d8817e4Smiod /* enwdt */
2669*3d8817e4Smiod   {
2670*3d8817e4Smiod     XC16X_INSN_ENWDTM, "enwdtm", "enwdt", 32,
2671*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2672*3d8817e4Smiod   },
2673*3d8817e4Smiod /* einit */
2674*3d8817e4Smiod   {
2675*3d8817e4Smiod     XC16X_INSN_EINITM, "einitm", "einit", 32,
2676*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2677*3d8817e4Smiod   },
2678*3d8817e4Smiod /* srvwdt */
2679*3d8817e4Smiod   {
2680*3d8817e4Smiod     XC16X_INSN_SRVWDTM, "srvwdtm", "srvwdt", 32,
2681*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2682*3d8817e4Smiod   },
2683*3d8817e4Smiod /* sbrk */
2684*3d8817e4Smiod   {
2685*3d8817e4Smiod     XC16X_INSN_SBRK, "sbrk", "sbrk", 16,
2686*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2687*3d8817e4Smiod   },
2688*3d8817e4Smiod /* atomic $hash$uimm2 */
2689*3d8817e4Smiod   {
2690*3d8817e4Smiod     XC16X_INSN_ATOMIC, "atomic", "atomic", 16,
2691*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2692*3d8817e4Smiod   },
2693*3d8817e4Smiod /* extr $hash$uimm2 */
2694*3d8817e4Smiod   {
2695*3d8817e4Smiod     XC16X_INSN_EXTR, "extr", "extr", 16,
2696*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2697*3d8817e4Smiod   },
2698*3d8817e4Smiod /* extp $sr,$hash$uimm2 */
2699*3d8817e4Smiod   {
2700*3d8817e4Smiod     XC16X_INSN_EXTP, "extp", "extp", 16,
2701*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2702*3d8817e4Smiod   },
2703*3d8817e4Smiod /* extp $hash$pagenum,$hash$uimm2 */
2704*3d8817e4Smiod   {
2705*3d8817e4Smiod     XC16X_INSN_EXTP1, "extp1", "extp", 32,
2706*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2707*3d8817e4Smiod   },
2708*3d8817e4Smiod /* extp $hash$pag$upag16,$hash$uimm2 */
2709*3d8817e4Smiod   {
2710*3d8817e4Smiod     XC16X_INSN_EXTPG1, "extpg1", "extp", 32,
2711*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2712*3d8817e4Smiod   },
2713*3d8817e4Smiod /* extpr $sr,$hash$uimm2 */
2714*3d8817e4Smiod   {
2715*3d8817e4Smiod     XC16X_INSN_EXTPR, "extpr", "extpr", 16,
2716*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2717*3d8817e4Smiod   },
2718*3d8817e4Smiod /* extpr $hash$pagenum,$hash$uimm2 */
2719*3d8817e4Smiod   {
2720*3d8817e4Smiod     XC16X_INSN_EXTPR1, "extpr1", "extpr", 32,
2721*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2722*3d8817e4Smiod   },
2723*3d8817e4Smiod /* exts $sr,$hash$uimm2 */
2724*3d8817e4Smiod   {
2725*3d8817e4Smiod     XC16X_INSN_EXTS, "exts", "exts", 16,
2726*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2727*3d8817e4Smiod   },
2728*3d8817e4Smiod /* exts $hash$seghi8,$hash$uimm2 */
2729*3d8817e4Smiod   {
2730*3d8817e4Smiod     XC16X_INSN_EXTS1, "exts1", "exts", 32,
2731*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2732*3d8817e4Smiod   },
2733*3d8817e4Smiod /* extsr $sr,$hash$uimm2 */
2734*3d8817e4Smiod   {
2735*3d8817e4Smiod     XC16X_INSN_EXTSR, "extsr", "extsr", 16,
2736*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2737*3d8817e4Smiod   },
2738*3d8817e4Smiod /* extsr $hash$seghi8,$hash$uimm2 */
2739*3d8817e4Smiod   {
2740*3d8817e4Smiod     XC16X_INSN_EXTSR1, "extsr1", "extsr", 32,
2741*3d8817e4Smiod     { 0|A(COND_CTI), { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2742*3d8817e4Smiod   },
2743*3d8817e4Smiod /* prior $dr,$sr */
2744*3d8817e4Smiod   {
2745*3d8817e4Smiod     XC16X_INSN_PRIOR, "prior", "prior", 16,
2746*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2747*3d8817e4Smiod   },
2748*3d8817e4Smiod /* bclr $RegNam */
2749*3d8817e4Smiod   {
2750*3d8817e4Smiod     XC16X_INSN_BCLR18, "bclr18", "bclr", 16,
2751*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2752*3d8817e4Smiod   },
2753*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2754*3d8817e4Smiod   {
2755*3d8817e4Smiod     XC16X_INSN_BCLR0, "bclr0", "bclr", 16,
2756*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2757*3d8817e4Smiod   },
2758*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2759*3d8817e4Smiod   {
2760*3d8817e4Smiod     XC16X_INSN_BCLR1, "bclr1", "bclr", 16,
2761*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2762*3d8817e4Smiod   },
2763*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2764*3d8817e4Smiod   {
2765*3d8817e4Smiod     XC16X_INSN_BCLR2, "bclr2", "bclr", 16,
2766*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2767*3d8817e4Smiod   },
2768*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2769*3d8817e4Smiod   {
2770*3d8817e4Smiod     XC16X_INSN_BCLR3, "bclr3", "bclr", 16,
2771*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2772*3d8817e4Smiod   },
2773*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2774*3d8817e4Smiod   {
2775*3d8817e4Smiod     XC16X_INSN_BCLR4, "bclr4", "bclr", 16,
2776*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2777*3d8817e4Smiod   },
2778*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2779*3d8817e4Smiod   {
2780*3d8817e4Smiod     XC16X_INSN_BCLR5, "bclr5", "bclr", 16,
2781*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2782*3d8817e4Smiod   },
2783*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2784*3d8817e4Smiod   {
2785*3d8817e4Smiod     XC16X_INSN_BCLR6, "bclr6", "bclr", 16,
2786*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2787*3d8817e4Smiod   },
2788*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2789*3d8817e4Smiod   {
2790*3d8817e4Smiod     XC16X_INSN_BCLR7, "bclr7", "bclr", 16,
2791*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2792*3d8817e4Smiod   },
2793*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2794*3d8817e4Smiod   {
2795*3d8817e4Smiod     XC16X_INSN_BCLR8, "bclr8", "bclr", 16,
2796*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2797*3d8817e4Smiod   },
2798*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2799*3d8817e4Smiod   {
2800*3d8817e4Smiod     XC16X_INSN_BCLR9, "bclr9", "bclr", 16,
2801*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2802*3d8817e4Smiod   },
2803*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2804*3d8817e4Smiod   {
2805*3d8817e4Smiod     XC16X_INSN_BCLR10, "bclr10", "bclr", 16,
2806*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2807*3d8817e4Smiod   },
2808*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2809*3d8817e4Smiod   {
2810*3d8817e4Smiod     XC16X_INSN_BCLR11, "bclr11", "bclr", 16,
2811*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2812*3d8817e4Smiod   },
2813*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2814*3d8817e4Smiod   {
2815*3d8817e4Smiod     XC16X_INSN_BCLR12, "bclr12", "bclr", 16,
2816*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2817*3d8817e4Smiod   },
2818*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2819*3d8817e4Smiod   {
2820*3d8817e4Smiod     XC16X_INSN_BCLR13, "bclr13", "bclr", 16,
2821*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2822*3d8817e4Smiod   },
2823*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2824*3d8817e4Smiod   {
2825*3d8817e4Smiod     XC16X_INSN_BCLR14, "bclr14", "bclr", 16,
2826*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2827*3d8817e4Smiod   },
2828*3d8817e4Smiod /* bclr $reg8$dot$qbit */
2829*3d8817e4Smiod   {
2830*3d8817e4Smiod     XC16X_INSN_BCLR15, "bclr15", "bclr", 16,
2831*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2832*3d8817e4Smiod   },
2833*3d8817e4Smiod /* bset $RegNam */
2834*3d8817e4Smiod   {
2835*3d8817e4Smiod     XC16X_INSN_BSET19, "bset19", "bset", 16,
2836*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2837*3d8817e4Smiod   },
2838*3d8817e4Smiod /* bset $reg8$dot$qbit */
2839*3d8817e4Smiod   {
2840*3d8817e4Smiod     XC16X_INSN_BSET0, "bset0", "bset", 16,
2841*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2842*3d8817e4Smiod   },
2843*3d8817e4Smiod /* bset $reg8$dot$qbit */
2844*3d8817e4Smiod   {
2845*3d8817e4Smiod     XC16X_INSN_BSET1, "bset1", "bset", 16,
2846*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2847*3d8817e4Smiod   },
2848*3d8817e4Smiod /* bset $reg8$dot$qbit */
2849*3d8817e4Smiod   {
2850*3d8817e4Smiod     XC16X_INSN_BSET2, "bset2", "bset", 16,
2851*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2852*3d8817e4Smiod   },
2853*3d8817e4Smiod /* bset $reg8$dot$qbit */
2854*3d8817e4Smiod   {
2855*3d8817e4Smiod     XC16X_INSN_BSET3, "bset3", "bset", 16,
2856*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2857*3d8817e4Smiod   },
2858*3d8817e4Smiod /* bset $reg8$dot$qbit */
2859*3d8817e4Smiod   {
2860*3d8817e4Smiod     XC16X_INSN_BSET4, "bset4", "bset", 16,
2861*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2862*3d8817e4Smiod   },
2863*3d8817e4Smiod /* bset $reg8$dot$qbit */
2864*3d8817e4Smiod   {
2865*3d8817e4Smiod     XC16X_INSN_BSET5, "bset5", "bset", 16,
2866*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2867*3d8817e4Smiod   },
2868*3d8817e4Smiod /* bset $reg8$dot$qbit */
2869*3d8817e4Smiod   {
2870*3d8817e4Smiod     XC16X_INSN_BSET6, "bset6", "bset", 16,
2871*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2872*3d8817e4Smiod   },
2873*3d8817e4Smiod /* bset $reg8$dot$qbit */
2874*3d8817e4Smiod   {
2875*3d8817e4Smiod     XC16X_INSN_BSET7, "bset7", "bset", 16,
2876*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2877*3d8817e4Smiod   },
2878*3d8817e4Smiod /* bset $reg8$dot$qbit */
2879*3d8817e4Smiod   {
2880*3d8817e4Smiod     XC16X_INSN_BSET8, "bset8", "bset", 16,
2881*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2882*3d8817e4Smiod   },
2883*3d8817e4Smiod /* bset $reg8$dot$qbit */
2884*3d8817e4Smiod   {
2885*3d8817e4Smiod     XC16X_INSN_BSET9, "bset9", "bset", 16,
2886*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2887*3d8817e4Smiod   },
2888*3d8817e4Smiod /* bset $reg8$dot$qbit */
2889*3d8817e4Smiod   {
2890*3d8817e4Smiod     XC16X_INSN_BSET10, "bset10", "bset", 16,
2891*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2892*3d8817e4Smiod   },
2893*3d8817e4Smiod /* bset $reg8$dot$qbit */
2894*3d8817e4Smiod   {
2895*3d8817e4Smiod     XC16X_INSN_BSET11, "bset11", "bset", 16,
2896*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2897*3d8817e4Smiod   },
2898*3d8817e4Smiod /* bset $reg8$dot$qbit */
2899*3d8817e4Smiod   {
2900*3d8817e4Smiod     XC16X_INSN_BSET12, "bset12", "bset", 16,
2901*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2902*3d8817e4Smiod   },
2903*3d8817e4Smiod /* bset $reg8$dot$qbit */
2904*3d8817e4Smiod   {
2905*3d8817e4Smiod     XC16X_INSN_BSET13, "bset13", "bset", 16,
2906*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2907*3d8817e4Smiod   },
2908*3d8817e4Smiod /* bset $reg8$dot$qbit */
2909*3d8817e4Smiod   {
2910*3d8817e4Smiod     XC16X_INSN_BSET14, "bset14", "bset", 16,
2911*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2912*3d8817e4Smiod   },
2913*3d8817e4Smiod /* bset $reg8$dot$qbit */
2914*3d8817e4Smiod   {
2915*3d8817e4Smiod     XC16X_INSN_BSET15, "bset15", "bset", 16,
2916*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2917*3d8817e4Smiod   },
2918*3d8817e4Smiod /* bmov $reghi8$dot$qhibit,$reg8$dot$qlobit */
2919*3d8817e4Smiod   {
2920*3d8817e4Smiod     XC16X_INSN_BMOV, "bmov", "bmov", 32,
2921*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2922*3d8817e4Smiod   },
2923*3d8817e4Smiod /* bmovn $reghi8$dot$qhibit,$reg8$dot$qlobit */
2924*3d8817e4Smiod   {
2925*3d8817e4Smiod     XC16X_INSN_BMOVN, "bmovn", "bmovn", 32,
2926*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2927*3d8817e4Smiod   },
2928*3d8817e4Smiod /* band $reghi8$dot$qhibit,$reg8$dot$qlobit */
2929*3d8817e4Smiod   {
2930*3d8817e4Smiod     XC16X_INSN_BAND, "band", "band", 32,
2931*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2932*3d8817e4Smiod   },
2933*3d8817e4Smiod /* bor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2934*3d8817e4Smiod   {
2935*3d8817e4Smiod     XC16X_INSN_BOR, "bor", "bor", 32,
2936*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2937*3d8817e4Smiod   },
2938*3d8817e4Smiod /* bxor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2939*3d8817e4Smiod   {
2940*3d8817e4Smiod     XC16X_INSN_BXOR, "bxor", "bxor", 32,
2941*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2942*3d8817e4Smiod   },
2943*3d8817e4Smiod /* bcmp $reghi8$dot$qhibit,$reg8$dot$qlobit */
2944*3d8817e4Smiod   {
2945*3d8817e4Smiod     XC16X_INSN_BCMP, "bcmp", "bcmp", 32,
2946*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2947*3d8817e4Smiod   },
2948*3d8817e4Smiod /* bfldl $reg8,$hash$mask8,$hash$datahi8 */
2949*3d8817e4Smiod   {
2950*3d8817e4Smiod     XC16X_INSN_BFLDL, "bfldl", "bfldl", 32,
2951*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2952*3d8817e4Smiod   },
2953*3d8817e4Smiod /* bfldh $reg8,$hash$masklo8,$hash$data8 */
2954*3d8817e4Smiod   {
2955*3d8817e4Smiod     XC16X_INSN_BFLDH, "bfldh", "bfldh", 32,
2956*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2957*3d8817e4Smiod   },
2958*3d8817e4Smiod /* cmp $src1,$src2 */
2959*3d8817e4Smiod   {
2960*3d8817e4Smiod     XC16X_INSN_CMPR, "cmpr", "cmp", 16,
2961*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2962*3d8817e4Smiod   },
2963*3d8817e4Smiod /* cmpb $drb,$srb */
2964*3d8817e4Smiod   {
2965*3d8817e4Smiod     XC16X_INSN_CMPBR, "cmpbr", "cmpb", 16,
2966*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2967*3d8817e4Smiod   },
2968*3d8817e4Smiod /* cmp $src1,$hash$uimm3 */
2969*3d8817e4Smiod   {
2970*3d8817e4Smiod     XC16X_INSN_CMPRI, "cmpri", "cmp", 16,
2971*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2972*3d8817e4Smiod   },
2973*3d8817e4Smiod /* cmpb $drb,$hash$uimm3 */
2974*3d8817e4Smiod   {
2975*3d8817e4Smiod     XC16X_INSN_CMPBRI, "cmpbri", "cmpb", 16,
2976*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2977*3d8817e4Smiod   },
2978*3d8817e4Smiod /* cmp $reg8,$hash$uimm16 */
2979*3d8817e4Smiod   {
2980*3d8817e4Smiod     XC16X_INSN_CMPI, "cmpi", "cmp", 32,
2981*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2982*3d8817e4Smiod   },
2983*3d8817e4Smiod /* cmpb $regb8,$hash$uimm8 */
2984*3d8817e4Smiod   {
2985*3d8817e4Smiod     XC16X_INSN_CMPBI, "cmpbi", "cmpb", 32,
2986*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2987*3d8817e4Smiod   },
2988*3d8817e4Smiod /* cmp $dr,[$sr2] */
2989*3d8817e4Smiod   {
2990*3d8817e4Smiod     XC16X_INSN_CMPR2, "cmpr2", "cmp", 16,
2991*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2992*3d8817e4Smiod   },
2993*3d8817e4Smiod /* cmpb $drb,[$sr2] */
2994*3d8817e4Smiod   {
2995*3d8817e4Smiod     XC16X_INSN_CMPBR2, "cmpbr2", "cmpb", 16,
2996*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
2997*3d8817e4Smiod   },
2998*3d8817e4Smiod /* cmp $dr,[$sr2+] */
2999*3d8817e4Smiod   {
3000*3d8817e4Smiod     XC16X_INSN_CMP2I, "cmp2i", "cmp", 16,
3001*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3002*3d8817e4Smiod   },
3003*3d8817e4Smiod /* cmpb $drb,[$sr2+] */
3004*3d8817e4Smiod   {
3005*3d8817e4Smiod     XC16X_INSN_CMPB2I, "cmpb2i", "cmpb", 16,
3006*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3007*3d8817e4Smiod   },
3008*3d8817e4Smiod /* cmp $reg8,$pof$upof16 */
3009*3d8817e4Smiod   {
3010*3d8817e4Smiod     XC16X_INSN_CMP04, "cmp04", "cmp", 32,
3011*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3012*3d8817e4Smiod   },
3013*3d8817e4Smiod /* cmpb $regb8,$pof$upof16 */
3014*3d8817e4Smiod   {
3015*3d8817e4Smiod     XC16X_INSN_CMPB4, "cmpb4", "cmpb", 32,
3016*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3017*3d8817e4Smiod   },
3018*3d8817e4Smiod /* cmp $regmem8,$memgr8 */
3019*3d8817e4Smiod   {
3020*3d8817e4Smiod     XC16X_INSN_CMP004, "cmp004", "cmp", 32,
3021*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3022*3d8817e4Smiod   },
3023*3d8817e4Smiod /* cmp $reg8,$memory */
3024*3d8817e4Smiod   {
3025*3d8817e4Smiod     XC16X_INSN_CMP0004, "cmp0004", "cmp", 32,
3026*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3027*3d8817e4Smiod   },
3028*3d8817e4Smiod /* cmpb $regbmem8,$memgr8 */
3029*3d8817e4Smiod   {
3030*3d8817e4Smiod     XC16X_INSN_CMPB04, "cmpb04", "cmpb", 32,
3031*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3032*3d8817e4Smiod   },
3033*3d8817e4Smiod /* cmpb $regb8,$memory */
3034*3d8817e4Smiod   {
3035*3d8817e4Smiod     XC16X_INSN_CMPB004, "cmpb004", "cmpb", 32,
3036*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3037*3d8817e4Smiod   },
3038*3d8817e4Smiod /* cmpd1 $sr,$hash$uimm4 */
3039*3d8817e4Smiod   {
3040*3d8817e4Smiod     XC16X_INSN_CMPD1RI, "cmpd1ri", "cmpd1", 16,
3041*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3042*3d8817e4Smiod   },
3043*3d8817e4Smiod /* cmpd2 $sr,$hash$uimm4 */
3044*3d8817e4Smiod   {
3045*3d8817e4Smiod     XC16X_INSN_CMPD2RI, "cmpd2ri", "cmpd2", 16,
3046*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3047*3d8817e4Smiod   },
3048*3d8817e4Smiod /* cmpi1 $sr,$hash$uimm4 */
3049*3d8817e4Smiod   {
3050*3d8817e4Smiod     XC16X_INSN_CMPI1RI, "cmpi1ri", "cmpi1", 16,
3051*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3052*3d8817e4Smiod   },
3053*3d8817e4Smiod /* cmpi2 $sr,$hash$uimm4 */
3054*3d8817e4Smiod   {
3055*3d8817e4Smiod     XC16X_INSN_CMPI2RI, "cmpi2ri", "cmpi2", 16,
3056*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3057*3d8817e4Smiod   },
3058*3d8817e4Smiod /* cmpd1 $reg8,$hash$uimm16 */
3059*3d8817e4Smiod   {
3060*3d8817e4Smiod     XC16X_INSN_CMPD1RIM, "cmpd1rim", "cmpd1", 32,
3061*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3062*3d8817e4Smiod   },
3063*3d8817e4Smiod /* cmpd2 $reg8,$hash$uimm16 */
3064*3d8817e4Smiod   {
3065*3d8817e4Smiod     XC16X_INSN_CMPD2RIM, "cmpd2rim", "cmpd2", 32,
3066*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3067*3d8817e4Smiod   },
3068*3d8817e4Smiod /* cmpi1 $reg8,$hash$uimm16 */
3069*3d8817e4Smiod   {
3070*3d8817e4Smiod     XC16X_INSN_CMPI1RIM, "cmpi1rim", "cmpi1", 32,
3071*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3072*3d8817e4Smiod   },
3073*3d8817e4Smiod /* cmpi2 $reg8,$hash$uimm16 */
3074*3d8817e4Smiod   {
3075*3d8817e4Smiod     XC16X_INSN_CMPI2RIM, "cmpi2rim", "cmpi2", 32,
3076*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3077*3d8817e4Smiod   },
3078*3d8817e4Smiod /* cmpd1 $reg8,$pof$upof16 */
3079*3d8817e4Smiod   {
3080*3d8817e4Smiod     XC16X_INSN_CMPD1RP, "cmpd1rp", "cmpd1", 32,
3081*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3082*3d8817e4Smiod   },
3083*3d8817e4Smiod /* cmpd2 $reg8,$pof$upof16 */
3084*3d8817e4Smiod   {
3085*3d8817e4Smiod     XC16X_INSN_CMPD2RP, "cmpd2rp", "cmpd2", 32,
3086*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3087*3d8817e4Smiod   },
3088*3d8817e4Smiod /* cmpi1 $reg8,$pof$upof16 */
3089*3d8817e4Smiod   {
3090*3d8817e4Smiod     XC16X_INSN_CMPI1RP, "cmpi1rp", "cmpi1", 32,
3091*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3092*3d8817e4Smiod   },
3093*3d8817e4Smiod /* cmpi2 $reg8,$pof$upof16 */
3094*3d8817e4Smiod   {
3095*3d8817e4Smiod     XC16X_INSN_CMPI2RP, "cmpi2rp", "cmpi2", 32,
3096*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3097*3d8817e4Smiod   },
3098*3d8817e4Smiod /* cmpd1 $regmem8,$memgr8 */
3099*3d8817e4Smiod   {
3100*3d8817e4Smiod     XC16X_INSN_CMPD1RM, "cmpd1rm", "cmpd1", 32,
3101*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3102*3d8817e4Smiod   },
3103*3d8817e4Smiod /* cmpd2 $regmem8,$memgr8 */
3104*3d8817e4Smiod   {
3105*3d8817e4Smiod     XC16X_INSN_CMPD2RM, "cmpd2rm", "cmpd2", 32,
3106*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3107*3d8817e4Smiod   },
3108*3d8817e4Smiod /* cmpi1 $regmem8,$memgr8 */
3109*3d8817e4Smiod   {
3110*3d8817e4Smiod     XC16X_INSN_CMPI1RM, "cmpi1rm", "cmpi1", 32,
3111*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3112*3d8817e4Smiod   },
3113*3d8817e4Smiod /* cmpi2 $regmem8,$memgr8 */
3114*3d8817e4Smiod   {
3115*3d8817e4Smiod     XC16X_INSN_CMPI2RM, "cmpi2rm", "cmpi2", 32,
3116*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3117*3d8817e4Smiod   },
3118*3d8817e4Smiod /* cmpd1 $reg8,$memory */
3119*3d8817e4Smiod   {
3120*3d8817e4Smiod     XC16X_INSN_CMPD1RMI, "cmpd1rmi", "cmpd1", 32,
3121*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3122*3d8817e4Smiod   },
3123*3d8817e4Smiod /* cmpd2 $reg8,$memory */
3124*3d8817e4Smiod   {
3125*3d8817e4Smiod     XC16X_INSN_CMPD2RMI, "cmpd2rmi", "cmpd2", 32,
3126*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3127*3d8817e4Smiod   },
3128*3d8817e4Smiod /* cmpi1 $reg8,$memory */
3129*3d8817e4Smiod   {
3130*3d8817e4Smiod     XC16X_INSN_CMPI1RMI, "cmpi1rmi", "cmpi1", 32,
3131*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3132*3d8817e4Smiod   },
3133*3d8817e4Smiod /* cmpi2 $reg8,$memory */
3134*3d8817e4Smiod   {
3135*3d8817e4Smiod     XC16X_INSN_CMPI2RMI, "cmpi2rmi", "cmpi2", 32,
3136*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3137*3d8817e4Smiod   },
3138*3d8817e4Smiod /* shl $dr,$sr */
3139*3d8817e4Smiod   {
3140*3d8817e4Smiod     XC16X_INSN_SHLR, "shlr", "shl", 16,
3141*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3142*3d8817e4Smiod   },
3143*3d8817e4Smiod /* shr $dr,$sr */
3144*3d8817e4Smiod   {
3145*3d8817e4Smiod     XC16X_INSN_SHRR, "shrr", "shr", 16,
3146*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3147*3d8817e4Smiod   },
3148*3d8817e4Smiod /* rol $dr,$sr */
3149*3d8817e4Smiod   {
3150*3d8817e4Smiod     XC16X_INSN_ROLR, "rolr", "rol", 16,
3151*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3152*3d8817e4Smiod   },
3153*3d8817e4Smiod /* ror $dr,$sr */
3154*3d8817e4Smiod   {
3155*3d8817e4Smiod     XC16X_INSN_RORR, "rorr", "ror", 16,
3156*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3157*3d8817e4Smiod   },
3158*3d8817e4Smiod /* ashr $dr,$sr */
3159*3d8817e4Smiod   {
3160*3d8817e4Smiod     XC16X_INSN_ASHRR, "ashrr", "ashr", 16,
3161*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3162*3d8817e4Smiod   },
3163*3d8817e4Smiod /* shl $sr,$hash$uimm4 */
3164*3d8817e4Smiod   {
3165*3d8817e4Smiod     XC16X_INSN_SHLRI, "shlri", "shl", 16,
3166*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3167*3d8817e4Smiod   },
3168*3d8817e4Smiod /* shr $sr,$hash$uimm4 */
3169*3d8817e4Smiod   {
3170*3d8817e4Smiod     XC16X_INSN_SHRRI, "shrri", "shr", 16,
3171*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3172*3d8817e4Smiod   },
3173*3d8817e4Smiod /* rol $sr,$hash$uimm4 */
3174*3d8817e4Smiod   {
3175*3d8817e4Smiod     XC16X_INSN_ROLRI, "rolri", "rol", 16,
3176*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3177*3d8817e4Smiod   },
3178*3d8817e4Smiod /* ror $sr,$hash$uimm4 */
3179*3d8817e4Smiod   {
3180*3d8817e4Smiod     XC16X_INSN_RORRI, "rorri", "ror", 16,
3181*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3182*3d8817e4Smiod   },
3183*3d8817e4Smiod /* ashr $sr,$hash$uimm4 */
3184*3d8817e4Smiod   {
3185*3d8817e4Smiod     XC16X_INSN_ASHRRI, "ashrri", "ashr", 16,
3186*3d8817e4Smiod     { 0, { { { (1<<MACH_BASE), 0 } }, { { PIPE_OS, 0 } } } }
3187*3d8817e4Smiod   },
3188*3d8817e4Smiod };
3189*3d8817e4Smiod 
3190*3d8817e4Smiod #undef OP
3191*3d8817e4Smiod #undef A
3192*3d8817e4Smiod 
3193*3d8817e4Smiod /* Initialize anything needed to be done once, before any cpu_open call.  */
3194*3d8817e4Smiod 
3195*3d8817e4Smiod static void
init_tables(void)3196*3d8817e4Smiod init_tables (void)
3197*3d8817e4Smiod {
3198*3d8817e4Smiod }
3199*3d8817e4Smiod 
3200*3d8817e4Smiod static const CGEN_MACH * lookup_mach_via_bfd_name (const CGEN_MACH *, const char *);
3201*3d8817e4Smiod static void build_hw_table      (CGEN_CPU_TABLE *);
3202*3d8817e4Smiod static void build_ifield_table  (CGEN_CPU_TABLE *);
3203*3d8817e4Smiod static void build_operand_table (CGEN_CPU_TABLE *);
3204*3d8817e4Smiod static void build_insn_table    (CGEN_CPU_TABLE *);
3205*3d8817e4Smiod static void xc16x_cgen_rebuild_tables (CGEN_CPU_TABLE *);
3206*3d8817e4Smiod 
3207*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to look up a mach via its bfd name.  */
3208*3d8817e4Smiod 
3209*3d8817e4Smiod static const CGEN_MACH *
lookup_mach_via_bfd_name(const CGEN_MACH * table,const char * name)3210*3d8817e4Smiod lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name)
3211*3d8817e4Smiod {
3212*3d8817e4Smiod   while (table->name)
3213*3d8817e4Smiod     {
3214*3d8817e4Smiod       if (strcmp (name, table->bfd_name) == 0)
3215*3d8817e4Smiod 	return table;
3216*3d8817e4Smiod       ++table;
3217*3d8817e4Smiod     }
3218*3d8817e4Smiod   abort ();
3219*3d8817e4Smiod }
3220*3d8817e4Smiod 
3221*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to build the hardware table.  */
3222*3d8817e4Smiod 
3223*3d8817e4Smiod static void
build_hw_table(CGEN_CPU_TABLE * cd)3224*3d8817e4Smiod build_hw_table (CGEN_CPU_TABLE *cd)
3225*3d8817e4Smiod {
3226*3d8817e4Smiod   int i;
3227*3d8817e4Smiod   int machs = cd->machs;
3228*3d8817e4Smiod   const CGEN_HW_ENTRY *init = & xc16x_cgen_hw_table[0];
3229*3d8817e4Smiod   /* MAX_HW is only an upper bound on the number of selected entries.
3230*3d8817e4Smiod      However each entry is indexed by it's enum so there can be holes in
3231*3d8817e4Smiod      the table.  */
3232*3d8817e4Smiod   const CGEN_HW_ENTRY **selected =
3233*3d8817e4Smiod     (const CGEN_HW_ENTRY **) xmalloc (MAX_HW * sizeof (CGEN_HW_ENTRY *));
3234*3d8817e4Smiod 
3235*3d8817e4Smiod   cd->hw_table.init_entries = init;
3236*3d8817e4Smiod   cd->hw_table.entry_size = sizeof (CGEN_HW_ENTRY);
3237*3d8817e4Smiod   memset (selected, 0, MAX_HW * sizeof (CGEN_HW_ENTRY *));
3238*3d8817e4Smiod   /* ??? For now we just use machs to determine which ones we want.  */
3239*3d8817e4Smiod   for (i = 0; init[i].name != NULL; ++i)
3240*3d8817e4Smiod     if (CGEN_HW_ATTR_VALUE (&init[i], CGEN_HW_MACH)
3241*3d8817e4Smiod 	& machs)
3242*3d8817e4Smiod       selected[init[i].type] = &init[i];
3243*3d8817e4Smiod   cd->hw_table.entries = selected;
3244*3d8817e4Smiod   cd->hw_table.num_entries = MAX_HW;
3245*3d8817e4Smiod }
3246*3d8817e4Smiod 
3247*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to build the hardware table.  */
3248*3d8817e4Smiod 
3249*3d8817e4Smiod static void
build_ifield_table(CGEN_CPU_TABLE * cd)3250*3d8817e4Smiod build_ifield_table (CGEN_CPU_TABLE *cd)
3251*3d8817e4Smiod {
3252*3d8817e4Smiod   cd->ifld_table = & xc16x_cgen_ifld_table[0];
3253*3d8817e4Smiod }
3254*3d8817e4Smiod 
3255*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to build the hardware table.  */
3256*3d8817e4Smiod 
3257*3d8817e4Smiod static void
build_operand_table(CGEN_CPU_TABLE * cd)3258*3d8817e4Smiod build_operand_table (CGEN_CPU_TABLE *cd)
3259*3d8817e4Smiod {
3260*3d8817e4Smiod   int i;
3261*3d8817e4Smiod   int machs = cd->machs;
3262*3d8817e4Smiod   const CGEN_OPERAND *init = & xc16x_cgen_operand_table[0];
3263*3d8817e4Smiod   /* MAX_OPERANDS is only an upper bound on the number of selected entries.
3264*3d8817e4Smiod      However each entry is indexed by it's enum so there can be holes in
3265*3d8817e4Smiod      the table.  */
3266*3d8817e4Smiod   const CGEN_OPERAND **selected = xmalloc (MAX_OPERANDS * sizeof (* selected));
3267*3d8817e4Smiod 
3268*3d8817e4Smiod   cd->operand_table.init_entries = init;
3269*3d8817e4Smiod   cd->operand_table.entry_size = sizeof (CGEN_OPERAND);
3270*3d8817e4Smiod   memset (selected, 0, MAX_OPERANDS * sizeof (CGEN_OPERAND *));
3271*3d8817e4Smiod   /* ??? For now we just use mach to determine which ones we want.  */
3272*3d8817e4Smiod   for (i = 0; init[i].name != NULL; ++i)
3273*3d8817e4Smiod     if (CGEN_OPERAND_ATTR_VALUE (&init[i], CGEN_OPERAND_MACH)
3274*3d8817e4Smiod 	& machs)
3275*3d8817e4Smiod       selected[init[i].type] = &init[i];
3276*3d8817e4Smiod   cd->operand_table.entries = selected;
3277*3d8817e4Smiod   cd->operand_table.num_entries = MAX_OPERANDS;
3278*3d8817e4Smiod }
3279*3d8817e4Smiod 
3280*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to build the hardware table.
3281*3d8817e4Smiod    ??? This could leave out insns not supported by the specified mach/isa,
3282*3d8817e4Smiod    but that would cause errors like "foo only supported by bar" to become
3283*3d8817e4Smiod    "unknown insn", so for now we include all insns and require the app to
3284*3d8817e4Smiod    do the checking later.
3285*3d8817e4Smiod    ??? On the other hand, parsing of such insns may require their hardware or
3286*3d8817e4Smiod    operand elements to be in the table [which they mightn't be].  */
3287*3d8817e4Smiod 
3288*3d8817e4Smiod static void
build_insn_table(CGEN_CPU_TABLE * cd)3289*3d8817e4Smiod build_insn_table (CGEN_CPU_TABLE *cd)
3290*3d8817e4Smiod {
3291*3d8817e4Smiod   int i;
3292*3d8817e4Smiod   const CGEN_IBASE *ib = & xc16x_cgen_insn_table[0];
3293*3d8817e4Smiod   CGEN_INSN *insns = xmalloc (MAX_INSNS * sizeof (CGEN_INSN));
3294*3d8817e4Smiod 
3295*3d8817e4Smiod   memset (insns, 0, MAX_INSNS * sizeof (CGEN_INSN));
3296*3d8817e4Smiod   for (i = 0; i < MAX_INSNS; ++i)
3297*3d8817e4Smiod     insns[i].base = &ib[i];
3298*3d8817e4Smiod   cd->insn_table.init_entries = insns;
3299*3d8817e4Smiod   cd->insn_table.entry_size = sizeof (CGEN_IBASE);
3300*3d8817e4Smiod   cd->insn_table.num_init_entries = MAX_INSNS;
3301*3d8817e4Smiod }
3302*3d8817e4Smiod 
3303*3d8817e4Smiod /* Subroutine of xc16x_cgen_cpu_open to rebuild the tables.  */
3304*3d8817e4Smiod 
3305*3d8817e4Smiod static void
xc16x_cgen_rebuild_tables(CGEN_CPU_TABLE * cd)3306*3d8817e4Smiod xc16x_cgen_rebuild_tables (CGEN_CPU_TABLE *cd)
3307*3d8817e4Smiod {
3308*3d8817e4Smiod   int i;
3309*3d8817e4Smiod   CGEN_BITSET *isas = cd->isas;
3310*3d8817e4Smiod   unsigned int machs = cd->machs;
3311*3d8817e4Smiod 
3312*3d8817e4Smiod   cd->int_insn_p = CGEN_INT_INSN_P;
3313*3d8817e4Smiod 
3314*3d8817e4Smiod   /* Data derived from the isa spec.  */
3315*3d8817e4Smiod #define UNSET (CGEN_SIZE_UNKNOWN + 1)
3316*3d8817e4Smiod   cd->default_insn_bitsize = UNSET;
3317*3d8817e4Smiod   cd->base_insn_bitsize = UNSET;
3318*3d8817e4Smiod   cd->min_insn_bitsize = 65535; /* Some ridiculously big number.  */
3319*3d8817e4Smiod   cd->max_insn_bitsize = 0;
3320*3d8817e4Smiod   for (i = 0; i < MAX_ISAS; ++i)
3321*3d8817e4Smiod     if (cgen_bitset_contains (isas, i))
3322*3d8817e4Smiod       {
3323*3d8817e4Smiod 	const CGEN_ISA *isa = & xc16x_cgen_isa_table[i];
3324*3d8817e4Smiod 
3325*3d8817e4Smiod 	/* Default insn sizes of all selected isas must be
3326*3d8817e4Smiod 	   equal or we set the result to 0, meaning "unknown".  */
3327*3d8817e4Smiod 	if (cd->default_insn_bitsize == UNSET)
3328*3d8817e4Smiod 	  cd->default_insn_bitsize = isa->default_insn_bitsize;
3329*3d8817e4Smiod 	else if (isa->default_insn_bitsize == cd->default_insn_bitsize)
3330*3d8817e4Smiod 	  ; /* This is ok.  */
3331*3d8817e4Smiod 	else
3332*3d8817e4Smiod 	  cd->default_insn_bitsize = CGEN_SIZE_UNKNOWN;
3333*3d8817e4Smiod 
3334*3d8817e4Smiod 	/* Base insn sizes of all selected isas must be equal
3335*3d8817e4Smiod 	   or we set the result to 0, meaning "unknown".  */
3336*3d8817e4Smiod 	if (cd->base_insn_bitsize == UNSET)
3337*3d8817e4Smiod 	  cd->base_insn_bitsize = isa->base_insn_bitsize;
3338*3d8817e4Smiod 	else if (isa->base_insn_bitsize == cd->base_insn_bitsize)
3339*3d8817e4Smiod 	  ; /* This is ok.  */
3340*3d8817e4Smiod 	else
3341*3d8817e4Smiod 	  cd->base_insn_bitsize = CGEN_SIZE_UNKNOWN;
3342*3d8817e4Smiod 
3343*3d8817e4Smiod 	/* Set min,max insn sizes.  */
3344*3d8817e4Smiod 	if (isa->min_insn_bitsize < cd->min_insn_bitsize)
3345*3d8817e4Smiod 	  cd->min_insn_bitsize = isa->min_insn_bitsize;
3346*3d8817e4Smiod 	if (isa->max_insn_bitsize > cd->max_insn_bitsize)
3347*3d8817e4Smiod 	  cd->max_insn_bitsize = isa->max_insn_bitsize;
3348*3d8817e4Smiod       }
3349*3d8817e4Smiod 
3350*3d8817e4Smiod   /* Data derived from the mach spec.  */
3351*3d8817e4Smiod   for (i = 0; i < MAX_MACHS; ++i)
3352*3d8817e4Smiod     if (((1 << i) & machs) != 0)
3353*3d8817e4Smiod       {
3354*3d8817e4Smiod 	const CGEN_MACH *mach = & xc16x_cgen_mach_table[i];
3355*3d8817e4Smiod 
3356*3d8817e4Smiod 	if (mach->insn_chunk_bitsize != 0)
3357*3d8817e4Smiod 	{
3358*3d8817e4Smiod 	  if (cd->insn_chunk_bitsize != 0 && cd->insn_chunk_bitsize != mach->insn_chunk_bitsize)
3359*3d8817e4Smiod 	    {
3360*3d8817e4Smiod 	      fprintf (stderr, "xc16x_cgen_rebuild_tables: conflicting insn-chunk-bitsize values: `%d' vs. `%d'\n",
3361*3d8817e4Smiod 		       cd->insn_chunk_bitsize, mach->insn_chunk_bitsize);
3362*3d8817e4Smiod 	      abort ();
3363*3d8817e4Smiod 	    }
3364*3d8817e4Smiod 
3365*3d8817e4Smiod  	  cd->insn_chunk_bitsize = mach->insn_chunk_bitsize;
3366*3d8817e4Smiod 	}
3367*3d8817e4Smiod       }
3368*3d8817e4Smiod 
3369*3d8817e4Smiod   /* Determine which hw elements are used by MACH.  */
3370*3d8817e4Smiod   build_hw_table (cd);
3371*3d8817e4Smiod 
3372*3d8817e4Smiod   /* Build the ifield table.  */
3373*3d8817e4Smiod   build_ifield_table (cd);
3374*3d8817e4Smiod 
3375*3d8817e4Smiod   /* Determine which operands are used by MACH/ISA.  */
3376*3d8817e4Smiod   build_operand_table (cd);
3377*3d8817e4Smiod 
3378*3d8817e4Smiod   /* Build the instruction table.  */
3379*3d8817e4Smiod   build_insn_table (cd);
3380*3d8817e4Smiod }
3381*3d8817e4Smiod 
3382*3d8817e4Smiod /* Initialize a cpu table and return a descriptor.
3383*3d8817e4Smiod    It's much like opening a file, and must be the first function called.
3384*3d8817e4Smiod    The arguments are a set of (type/value) pairs, terminated with
3385*3d8817e4Smiod    CGEN_CPU_OPEN_END.
3386*3d8817e4Smiod 
3387*3d8817e4Smiod    Currently supported values:
3388*3d8817e4Smiod    CGEN_CPU_OPEN_ISAS:    bitmap of values in enum isa_attr
3389*3d8817e4Smiod    CGEN_CPU_OPEN_MACHS:   bitmap of values in enum mach_attr
3390*3d8817e4Smiod    CGEN_CPU_OPEN_BFDMACH: specify 1 mach using bfd name
3391*3d8817e4Smiod    CGEN_CPU_OPEN_ENDIAN:  specify endian choice
3392*3d8817e4Smiod    CGEN_CPU_OPEN_END:     terminates arguments
3393*3d8817e4Smiod 
3394*3d8817e4Smiod    ??? Simultaneous multiple isas might not make sense, but it's not (yet)
3395*3d8817e4Smiod    precluded.
3396*3d8817e4Smiod 
3397*3d8817e4Smiod    ??? We only support ISO C stdargs here, not K&R.
3398*3d8817e4Smiod    Laziness, plus experiment to see if anything requires K&R - eventually
3399*3d8817e4Smiod    K&R will no longer be supported - e.g. GDB is currently trying this.  */
3400*3d8817e4Smiod 
3401*3d8817e4Smiod CGEN_CPU_DESC
xc16x_cgen_cpu_open(enum cgen_cpu_open_arg arg_type,...)3402*3d8817e4Smiod xc16x_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...)
3403*3d8817e4Smiod {
3404*3d8817e4Smiod   CGEN_CPU_TABLE *cd = (CGEN_CPU_TABLE *) xmalloc (sizeof (CGEN_CPU_TABLE));
3405*3d8817e4Smiod   static int init_p;
3406*3d8817e4Smiod   CGEN_BITSET *isas = 0;  /* 0 = "unspecified" */
3407*3d8817e4Smiod   unsigned int machs = 0; /* 0 = "unspecified" */
3408*3d8817e4Smiod   enum cgen_endian endian = CGEN_ENDIAN_UNKNOWN;
3409*3d8817e4Smiod   va_list ap;
3410*3d8817e4Smiod 
3411*3d8817e4Smiod   if (! init_p)
3412*3d8817e4Smiod     {
3413*3d8817e4Smiod       init_tables ();
3414*3d8817e4Smiod       init_p = 1;
3415*3d8817e4Smiod     }
3416*3d8817e4Smiod 
3417*3d8817e4Smiod   memset (cd, 0, sizeof (*cd));
3418*3d8817e4Smiod 
3419*3d8817e4Smiod   va_start (ap, arg_type);
3420*3d8817e4Smiod   while (arg_type != CGEN_CPU_OPEN_END)
3421*3d8817e4Smiod     {
3422*3d8817e4Smiod       switch (arg_type)
3423*3d8817e4Smiod 	{
3424*3d8817e4Smiod 	case CGEN_CPU_OPEN_ISAS :
3425*3d8817e4Smiod 	  isas = va_arg (ap, CGEN_BITSET *);
3426*3d8817e4Smiod 	  break;
3427*3d8817e4Smiod 	case CGEN_CPU_OPEN_MACHS :
3428*3d8817e4Smiod 	  machs = va_arg (ap, unsigned int);
3429*3d8817e4Smiod 	  break;
3430*3d8817e4Smiod 	case CGEN_CPU_OPEN_BFDMACH :
3431*3d8817e4Smiod 	  {
3432*3d8817e4Smiod 	    const char *name = va_arg (ap, const char *);
3433*3d8817e4Smiod 	    const CGEN_MACH *mach =
3434*3d8817e4Smiod 	      lookup_mach_via_bfd_name (xc16x_cgen_mach_table, name);
3435*3d8817e4Smiod 
3436*3d8817e4Smiod 	    machs |= 1 << mach->num;
3437*3d8817e4Smiod 	    break;
3438*3d8817e4Smiod 	  }
3439*3d8817e4Smiod 	case CGEN_CPU_OPEN_ENDIAN :
3440*3d8817e4Smiod 	  endian = va_arg (ap, enum cgen_endian);
3441*3d8817e4Smiod 	  break;
3442*3d8817e4Smiod 	default :
3443*3d8817e4Smiod 	  fprintf (stderr, "xc16x_cgen_cpu_open: unsupported argument `%d'\n",
3444*3d8817e4Smiod 		   arg_type);
3445*3d8817e4Smiod 	  abort (); /* ??? return NULL? */
3446*3d8817e4Smiod 	}
3447*3d8817e4Smiod       arg_type = va_arg (ap, enum cgen_cpu_open_arg);
3448*3d8817e4Smiod     }
3449*3d8817e4Smiod   va_end (ap);
3450*3d8817e4Smiod 
3451*3d8817e4Smiod   /* Mach unspecified means "all".  */
3452*3d8817e4Smiod   if (machs == 0)
3453*3d8817e4Smiod     machs = (1 << MAX_MACHS) - 1;
3454*3d8817e4Smiod   /* Base mach is always selected.  */
3455*3d8817e4Smiod   machs |= 1;
3456*3d8817e4Smiod   if (endian == CGEN_ENDIAN_UNKNOWN)
3457*3d8817e4Smiod     {
3458*3d8817e4Smiod       /* ??? If target has only one, could have a default.  */
3459*3d8817e4Smiod       fprintf (stderr, "xc16x_cgen_cpu_open: no endianness specified\n");
3460*3d8817e4Smiod       abort ();
3461*3d8817e4Smiod     }
3462*3d8817e4Smiod 
3463*3d8817e4Smiod   cd->isas = cgen_bitset_copy (isas);
3464*3d8817e4Smiod   cd->machs = machs;
3465*3d8817e4Smiod   cd->endian = endian;
3466*3d8817e4Smiod   /* FIXME: for the sparc case we can determine insn-endianness statically.
3467*3d8817e4Smiod      The worry here is where both data and insn endian can be independently
3468*3d8817e4Smiod      chosen, in which case this function will need another argument.
3469*3d8817e4Smiod      Actually, will want to allow for more arguments in the future anyway.  */
3470*3d8817e4Smiod   cd->insn_endian = endian;
3471*3d8817e4Smiod 
3472*3d8817e4Smiod   /* Table (re)builder.  */
3473*3d8817e4Smiod   cd->rebuild_tables = xc16x_cgen_rebuild_tables;
3474*3d8817e4Smiod   xc16x_cgen_rebuild_tables (cd);
3475*3d8817e4Smiod 
3476*3d8817e4Smiod   /* Default to not allowing signed overflow.  */
3477*3d8817e4Smiod   cd->signed_overflow_ok_p = 0;
3478*3d8817e4Smiod 
3479*3d8817e4Smiod   return (CGEN_CPU_DESC) cd;
3480*3d8817e4Smiod }
3481*3d8817e4Smiod 
3482*3d8817e4Smiod /* Cover fn to xc16x_cgen_cpu_open to handle the simple case of 1 isa, 1 mach.
3483*3d8817e4Smiod    MACH_NAME is the bfd name of the mach.  */
3484*3d8817e4Smiod 
3485*3d8817e4Smiod CGEN_CPU_DESC
xc16x_cgen_cpu_open_1(const char * mach_name,enum cgen_endian endian)3486*3d8817e4Smiod xc16x_cgen_cpu_open_1 (const char *mach_name, enum cgen_endian endian)
3487*3d8817e4Smiod {
3488*3d8817e4Smiod   return xc16x_cgen_cpu_open (CGEN_CPU_OPEN_BFDMACH, mach_name,
3489*3d8817e4Smiod 			       CGEN_CPU_OPEN_ENDIAN, endian,
3490*3d8817e4Smiod 			       CGEN_CPU_OPEN_END);
3491*3d8817e4Smiod }
3492*3d8817e4Smiod 
3493*3d8817e4Smiod /* Close a cpu table.
3494*3d8817e4Smiod    ??? This can live in a machine independent file, but there's currently
3495*3d8817e4Smiod    no place to put this file (there's no libcgen).  libopcodes is the wrong
3496*3d8817e4Smiod    place as some simulator ports use this but they don't use libopcodes.  */
3497*3d8817e4Smiod 
3498*3d8817e4Smiod void
xc16x_cgen_cpu_close(CGEN_CPU_DESC cd)3499*3d8817e4Smiod xc16x_cgen_cpu_close (CGEN_CPU_DESC cd)
3500*3d8817e4Smiod {
3501*3d8817e4Smiod   unsigned int i;
3502*3d8817e4Smiod   const CGEN_INSN *insns;
3503*3d8817e4Smiod 
3504*3d8817e4Smiod   if (cd->macro_insn_table.init_entries)
3505*3d8817e4Smiod     {
3506*3d8817e4Smiod       insns = cd->macro_insn_table.init_entries;
3507*3d8817e4Smiod       for (i = 0; i < cd->macro_insn_table.num_init_entries; ++i, ++insns)
3508*3d8817e4Smiod 	if (CGEN_INSN_RX ((insns)))
3509*3d8817e4Smiod 	  regfree (CGEN_INSN_RX (insns));
3510*3d8817e4Smiod     }
3511*3d8817e4Smiod 
3512*3d8817e4Smiod   if (cd->insn_table.init_entries)
3513*3d8817e4Smiod     {
3514*3d8817e4Smiod       insns = cd->insn_table.init_entries;
3515*3d8817e4Smiod       for (i = 0; i < cd->insn_table.num_init_entries; ++i, ++insns)
3516*3d8817e4Smiod 	if (CGEN_INSN_RX (insns))
3517*3d8817e4Smiod 	  regfree (CGEN_INSN_RX (insns));
3518*3d8817e4Smiod     }
3519*3d8817e4Smiod 
3520*3d8817e4Smiod   if (cd->macro_insn_table.init_entries)
3521*3d8817e4Smiod     free ((CGEN_INSN *) cd->macro_insn_table.init_entries);
3522*3d8817e4Smiod 
3523*3d8817e4Smiod   if (cd->insn_table.init_entries)
3524*3d8817e4Smiod     free ((CGEN_INSN *) cd->insn_table.init_entries);
3525*3d8817e4Smiod 
3526*3d8817e4Smiod   if (cd->hw_table.entries)
3527*3d8817e4Smiod     free ((CGEN_HW_ENTRY *) cd->hw_table.entries);
3528*3d8817e4Smiod 
3529*3d8817e4Smiod   if (cd->operand_table.entries)
3530*3d8817e4Smiod     free ((CGEN_HW_ENTRY *) cd->operand_table.entries);
3531*3d8817e4Smiod 
3532*3d8817e4Smiod   free (cd);
3533*3d8817e4Smiod }
3534*3d8817e4Smiod 
3535