xref: /openbsd-src/gnu/usr.bin/binutils-2.17/include/opcode/np1.h (revision 3d8817e467ea46cf4772788d6804dd293abfb01a)
1*3d8817e4Smiod /* Print GOULD NPL instructions for GDB, the GNU debugger.
2*3d8817e4Smiod    Copyright 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
3*3d8817e4Smiod 
4*3d8817e4Smiod This file is part of GDB.
5*3d8817e4Smiod 
6*3d8817e4Smiod GDB is free software; you can redistribute it and/or modify
7*3d8817e4Smiod it under the terms of the GNU General Public License as published by
8*3d8817e4Smiod the Free Software Foundation; either version 1, or (at your option)
9*3d8817e4Smiod any later version.
10*3d8817e4Smiod 
11*3d8817e4Smiod GDB is distributed in the hope that it will be useful,
12*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of
13*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*3d8817e4Smiod GNU General Public License for more details.
15*3d8817e4Smiod 
16*3d8817e4Smiod You should have received a copy of the GNU General Public License
17*3d8817e4Smiod along with GDB; see the file COPYING.  If not, write to
18*3d8817e4Smiod the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
19*3d8817e4Smiod 
20*3d8817e4Smiod struct gld_opcode
21*3d8817e4Smiod {
22*3d8817e4Smiod   char *name;
23*3d8817e4Smiod   unsigned long opcode;
24*3d8817e4Smiod   unsigned long mask;
25*3d8817e4Smiod   char *args;
26*3d8817e4Smiod   int length;
27*3d8817e4Smiod };
28*3d8817e4Smiod 
29*3d8817e4Smiod /* We store four bytes of opcode for all opcodes because that
30*3d8817e4Smiod    is the most any of them need.  The actual length of an instruction
31*3d8817e4Smiod    is always at least 2 bytes, and at most four.  The length of the
32*3d8817e4Smiod    instruction is based on the opcode.
33*3d8817e4Smiod 
34*3d8817e4Smiod    The mask component is a mask saying which bits must match
35*3d8817e4Smiod    particular opcode in order for an instruction to be an instance
36*3d8817e4Smiod    of that opcode.
37*3d8817e4Smiod 
38*3d8817e4Smiod    The args component is a string containing characters
39*3d8817e4Smiod    that are used to format the arguments to the instruction. */
40*3d8817e4Smiod 
41*3d8817e4Smiod /* Kinds of operands:
42*3d8817e4Smiod    r  Register in first field
43*3d8817e4Smiod    R  Register in second field
44*3d8817e4Smiod    b  Base register in first field
45*3d8817e4Smiod    B  Base register in second field
46*3d8817e4Smiod    v  Vector register in first field
47*3d8817e4Smiod    V  Vector register in first field
48*3d8817e4Smiod    A  Optional address register (base register)
49*3d8817e4Smiod    X  Optional index register
50*3d8817e4Smiod    I  Immediate data (16bits signed)
51*3d8817e4Smiod    O  Offset field (16bits signed)
52*3d8817e4Smiod    h  Offset field (15bits signed)
53*3d8817e4Smiod    d  Offset field (14bits signed)
54*3d8817e4Smiod    S  Shift count field
55*3d8817e4Smiod 
56*3d8817e4Smiod    any other characters are printed as is...
57*3d8817e4Smiod */
58*3d8817e4Smiod 
59*3d8817e4Smiod /* The assembler requires that this array be sorted as follows:
60*3d8817e4Smiod    all instances of the same mnemonic must be consecutive.
61*3d8817e4Smiod    All instances of the same mnemonic with the same number of operands
62*3d8817e4Smiod    must be consecutive.
63*3d8817e4Smiod  */
64*3d8817e4Smiod struct gld_opcode gld_opcodes[] =
65*3d8817e4Smiod {
66*3d8817e4Smiod { "lb",		0xb4080000,	0xfc080000,	"r,xOA,X",	4 },
67*3d8817e4Smiod { "lnb",	0xb8080000,	0xfc080000,	"r,xOA,X",	4 },
68*3d8817e4Smiod { "lbs",	0xec080000,	0xfc080000,	"r,xOA,X",	4 },
69*3d8817e4Smiod { "lh",		0xb4000001,	0xfc080001,	"r,xOA,X",	4 },
70*3d8817e4Smiod { "lnh",	0xb8000001,	0xfc080001,	"r,xOA,X",	4 },
71*3d8817e4Smiod { "lw",		0xb4000000,	0xfc080000,	"r,xOA,X",	4 },
72*3d8817e4Smiod { "lnw",	0xb8000000,	0xfc080000,	"r,xOA,X",	4 },
73*3d8817e4Smiod { "ld",		0xb4000002,	0xfc080002,	"r,xOA,X",	4 },
74*3d8817e4Smiod { "lnd",	0xb8000002,	0xfc080002,	"r,xOA,X",	4 },
75*3d8817e4Smiod { "li",		0xf8000000,	0xfc7f0000,	"r,I",		4 },
76*3d8817e4Smiod { "lpa",	0x50080000,	0xfc080000,	"r,xOA,X",	4 },
77*3d8817e4Smiod { "la",		0x50000000,	0xfc080000,	"r,xOA,X",	4 },
78*3d8817e4Smiod { "labr",	0x58080000,	0xfc080000,	"b,xOA,X",	4 },
79*3d8817e4Smiod { "lbp",	0x90080000,	0xfc080000,	"r,xOA,X",	4 },
80*3d8817e4Smiod { "lhp",	0x90000001,	0xfc080001,	"r,xOA,X",	4 },
81*3d8817e4Smiod { "lwp",	0x90000000,	0xfc080000,	"r,xOA,X",	4 },
82*3d8817e4Smiod { "ldp",	0x90000002,	0xfc080002,	"r,xOA,X",	4 },
83*3d8817e4Smiod { "suabr",	0x58000000,	0xfc080000,	"b,xOA,X",	4 },
84*3d8817e4Smiod { "lf",		0xbc000000,	0xfc080000,	"r,xOA,X",	4 },
85*3d8817e4Smiod { "lfbr",	0xbc080000,	0xfc080000,	"b,xOA,X",	4 },
86*3d8817e4Smiod { "lwbr",	0x5c000000,	0xfc080000,	"b,xOA,X",	4 },
87*3d8817e4Smiod { "stb",	0xd4080000,	0xfc080000,	"r,xOA,X",	4 },
88*3d8817e4Smiod { "sth",	0xd4000001,	0xfc080001,	"r,xOA,X",	4 },
89*3d8817e4Smiod { "stw",	0xd4000000,	0xfc080000,	"r,xOA,X",	4 },
90*3d8817e4Smiod { "std",	0xd4000002,	0xfc080002,	"r,xOA,X",	4 },
91*3d8817e4Smiod { "stf",	0xdc000000,	0xfc080000,	"r,xOA,X",	4 },
92*3d8817e4Smiod { "stfbr",	0xdc080000,	0xfc080000,	"b,xOA,X",	4 },
93*3d8817e4Smiod { "stwbr",	0x54000000,	0xfc080000,	"b,xOA,X",	4 },
94*3d8817e4Smiod { "zmb",	0xd8080000,	0xfc080000,	"r,xOA,X",	4 },
95*3d8817e4Smiod { "zmh",	0xd8000001,	0xfc080001,	"r,xOA,X",	4 },
96*3d8817e4Smiod { "zmw",	0xd8000000,	0xfc080000,	"r,xOA,X",	4 },
97*3d8817e4Smiod { "zmd",	0xd8000002,	0xfc080002,	"r,xOA,X",	4 },
98*3d8817e4Smiod { "stbp",	0x94080000,	0xfc080000,	"r,xOA,X",	4 },
99*3d8817e4Smiod { "sthp",	0x94000001,	0xfc080001,	"r,xOA,X",	4 },
100*3d8817e4Smiod { "stwp",	0x94000000,	0xfc080000,	"r,xOA,X",	4 },
101*3d8817e4Smiod { "stdp",	0x94000002,	0xfc080002,	"r,xOA,X",	4 },
102*3d8817e4Smiod { "lil",	0xf80b0000,	0xfc7f0000,	"r,D",		4 },
103*3d8817e4Smiod { "lwsl1",	0xec000000,	0xfc080000,	"r,xOA,X",	4 },
104*3d8817e4Smiod { "lwsl2",	0xfc000000,	0xfc080000,	"r,xOA,X",	4 },
105*3d8817e4Smiod { "lwsl3",	0xfc080000,	0xfc080000,	"r,xOA,X",	4 },
106*3d8817e4Smiod 
107*3d8817e4Smiod { "lvb",	0xb0080000,	0xfc080000,	"v,xOA,X",	4 },
108*3d8817e4Smiod { "lvh",	0xb0000001,	0xfc080001,	"v,xOA,X",	4 },
109*3d8817e4Smiod { "lvw",	0xb0000000,	0xfc080000,	"v,xOA,X",	4 },
110*3d8817e4Smiod { "lvd",	0xb0000002,	0xfc080002,	"v,xOA,X",	4 },
111*3d8817e4Smiod { "liv",	0x3c040000,	0xfc0f0000,	"v,R",		2 },
112*3d8817e4Smiod { "livf",	0x3c080000,	0xfc0f0000,	"v,R",		2 },
113*3d8817e4Smiod { "stvb",	0xd0080000,	0xfc080000,	"v,xOA,X",	4 },
114*3d8817e4Smiod { "stvh",	0xd0000001,	0xfc080001,	"v,xOA,X",	4 },
115*3d8817e4Smiod { "stvw",	0xd0000000,	0xfc080000,	"v,xOA,X",	4 },
116*3d8817e4Smiod { "stvd",	0xd0000002,	0xfc080002,	"v,xOA,X",	4 },
117*3d8817e4Smiod 
118*3d8817e4Smiod { "trr",	0x2c000000,	0xfc0f0000,	"r,R",		2 },
119*3d8817e4Smiod { "trn",	0x2c040000,	0xfc0f0000,	"r,R",		2 },
120*3d8817e4Smiod { "trnd",	0x2c0c0000,	0xfc0f0000,	"r,R",		2 },
121*3d8817e4Smiod { "trabs",	0x2c010000,	0xfc0f0000,	"r,R",		2 },
122*3d8817e4Smiod { "trabsd",	0x2c090000,	0xfc0f0000,	"r,R",		2 },
123*3d8817e4Smiod { "trc",	0x2c030000,	0xfc0f0000,	"r,R",		2 },
124*3d8817e4Smiod { "xcr",	0x28040000,	0xfc0f0000,	"r,R",		2 },
125*3d8817e4Smiod { "cxcr",	0x2c060000,	0xfc0f0000,	"r,R",		2 },
126*3d8817e4Smiod { "cxcrd",	0x2c0e0000,	0xfc0f0000,	"r,R",		2 },
127*3d8817e4Smiod { "tbrr",	0x2c020000,	0xfc0f0000,	"r,B",		2 },
128*3d8817e4Smiod { "trbr",	0x28030000,	0xfc0f0000,	"b,R",		2 },
129*3d8817e4Smiod { "xcbr",	0x28020000,	0xfc0f0000,	"b,B",		2 },
130*3d8817e4Smiod { "tbrbr",	0x28010000,	0xfc0f0000,	"b,B",		2 },
131*3d8817e4Smiod 
132*3d8817e4Smiod { "trvv",	0x28050000,	0xfc0f0000,	"v,V",		2 },
133*3d8817e4Smiod { "trvvn",	0x2c050000,	0xfc0f0000,	"v,V",		2 },
134*3d8817e4Smiod { "trvvnd",	0x2c0d0000,	0xfc0f0000,	"v,V",		2 },
135*3d8817e4Smiod { "trvab",	0x2c070000,	0xfc0f0000,	"v,V",		2 },
136*3d8817e4Smiod { "trvabd",	0x2c0f0000,	0xfc0f0000,	"v,V",		2 },
137*3d8817e4Smiod { "cmpv",	0x14060000,	0xfc0f0000,	"v,V",		2 },
138*3d8817e4Smiod { "expv",	0x14070000,	0xfc0f0000,	"v,V",		2 },
139*3d8817e4Smiod { "mrvvlt",	0x10030000,	0xfc0f0000,	"v,V",		2 },
140*3d8817e4Smiod { "mrvvle",	0x10040000,	0xfc0f0000,	"v,V",		2 },
141*3d8817e4Smiod { "mrvvgt",	0x14030000,	0xfc0f0000,	"v,V",		2 },
142*3d8817e4Smiod { "mrvvge",	0x14040000,	0xfc0f0000,	"v,V",		2 },
143*3d8817e4Smiod { "mrvveq",	0x10050000,	0xfc0f0000,	"v,V",		2 },
144*3d8817e4Smiod { "mrvvne",	0x10050000,	0xfc0f0000,	"v,V",		2 },
145*3d8817e4Smiod { "mrvrlt",	0x100d0000,	0xfc0f0000,	"v,R",		2 },
146*3d8817e4Smiod { "mrvrle",	0x100e0000,	0xfc0f0000,	"v,R",		2 },
147*3d8817e4Smiod { "mrvrgt",	0x140d0000,	0xfc0f0000,	"v,R",		2 },
148*3d8817e4Smiod { "mrvrge",	0x140e0000,	0xfc0f0000,	"v,R",		2 },
149*3d8817e4Smiod { "mrvreq",	0x100f0000,	0xfc0f0000,	"v,R",		2 },
150*3d8817e4Smiod { "mrvrne",	0x140f0000,	0xfc0f0000,	"v,R",		2 },
151*3d8817e4Smiod { "trvr",	0x140b0000,	0xfc0f0000,	"r,V",		2 },
152*3d8817e4Smiod { "trrv",	0x140c0000,	0xfc0f0000,	"v,R",		2 },
153*3d8817e4Smiod 
154*3d8817e4Smiod { "bu",		0x40000000,	0xff880000,	"xOA,X",	4 },
155*3d8817e4Smiod { "bns",	0x70080000,	0xff880000,	"xOA,X",	4 },
156*3d8817e4Smiod { "bnco",	0x70880000,	0xff880000,	"xOA,X",	4 },
157*3d8817e4Smiod { "bge",	0x71080000,	0xff880000,	"xOA,X",	4 },
158*3d8817e4Smiod { "bne",	0x71880000,	0xff880000,	"xOA,X",	4 },
159*3d8817e4Smiod { "bunge",	0x72080000,	0xff880000,	"xOA,X",	4 },
160*3d8817e4Smiod { "bunle",	0x72880000,	0xff880000,	"xOA,X",	4 },
161*3d8817e4Smiod { "bgt",	0x73080000,	0xff880000,	"xOA,X",	4 },
162*3d8817e4Smiod { "bnany",	0x73880000,	0xff880000,	"xOA,X",	4 },
163*3d8817e4Smiod { "bs"	,	0x70000000,	0xff880000,	"xOA,X",	4 },
164*3d8817e4Smiod { "bco",	0x70800000,	0xff880000,	"xOA,X",	4 },
165*3d8817e4Smiod { "blt",	0x71000000,	0xff880000,	"xOA,X",	4 },
166*3d8817e4Smiod { "beq",	0x71800000,	0xff880000,	"xOA,X",	4 },
167*3d8817e4Smiod { "buge",	0x72000000,	0xff880000,	"xOA,X",	4 },
168*3d8817e4Smiod { "bult",	0x72800000,	0xff880000,	"xOA,X",	4 },
169*3d8817e4Smiod { "ble",	0x73000000,	0xff880000,	"xOA,X",	4 },
170*3d8817e4Smiod { "bany",	0x73800000,	0xff880000,	"xOA,X",	4 },
171*3d8817e4Smiod { "brlnk",	0x44000000,	0xfc080000,	"r,xOA,X",	4 },
172*3d8817e4Smiod { "bib",	0x48000000,	0xfc080000,	"r,xOA,X",	4 },
173*3d8817e4Smiod { "bih",	0x48080000,	0xfc080000,	"r,xOA,X",	4 },
174*3d8817e4Smiod { "biw",	0x4c000000,	0xfc080000,	"r,xOA,X",	4 },
175*3d8817e4Smiod { "bid",	0x4c080000,	0xfc080000,	"r,xOA,X",	4 },
176*3d8817e4Smiod { "bivb",	0x60000000,	0xfc080000,	"r,xOA,X",	4 },
177*3d8817e4Smiod { "bivh",	0x60080000,	0xfc080000,	"r,xOA,X",	4 },
178*3d8817e4Smiod { "bivw",	0x64000000,	0xfc080000,	"r,xOA,X",	4 },
179*3d8817e4Smiod { "bivd",	0x64080000,	0xfc080000,	"r,xOA,X",	4 },
180*3d8817e4Smiod { "bvsb",	0x68000000,	0xfc080000,	"r,xOA,X",	4 },
181*3d8817e4Smiod { "bvsh",	0x68080000,	0xfc080000,	"r,xOA,X",	4 },
182*3d8817e4Smiod { "bvsw",	0x6c000000,	0xfc080000,	"r,xOA,X",	4 },
183*3d8817e4Smiod { "bvsd",	0x6c080000,	0xfc080000,	"r,xOA,X",	4 },
184*3d8817e4Smiod 
185*3d8817e4Smiod { "camb",	0x80080000,	0xfc080000,	"r,xOA,X",	4 },
186*3d8817e4Smiod { "camh",	0x80000001,	0xfc080001,	"r,xOA,X",	4 },
187*3d8817e4Smiod { "camw",	0x80000000,	0xfc080000,	"r,xOA,X",	4 },
188*3d8817e4Smiod { "camd",	0x80000002,	0xfc080002,	"r,xOA,X",	4 },
189*3d8817e4Smiod { "car",	0x10000000,	0xfc0f0000,	"r,R",		2 },
190*3d8817e4Smiod { "card",	0x14000000,	0xfc0f0000,	"r,R",		2 },
191*3d8817e4Smiod { "ci",		0xf8050000,	0xfc7f0000,	"r,I",		4 },
192*3d8817e4Smiod { "chkbnd",	0x5c080000,	0xfc080000,	"r,xOA,X",	4 },
193*3d8817e4Smiod 
194*3d8817e4Smiod { "cavv",	0x10010000,	0xfc0f0000,	"v,V",		2 },
195*3d8817e4Smiod { "cavr",	0x10020000,	0xfc0f0000,	"v,R",		2 },
196*3d8817e4Smiod { "cavvd",	0x10090000,	0xfc0f0000,	"v,V",		2 },
197*3d8817e4Smiod { "cavrd",	0x100b0000,	0xfc0f0000,	"v,R",		2 },
198*3d8817e4Smiod 
199*3d8817e4Smiod { "anmb",	0x84080000,	0xfc080000,	"r,xOA,X",	4 },
200*3d8817e4Smiod { "anmh",	0x84000001,	0xfc080001,	"r,xOA,X",	4 },
201*3d8817e4Smiod { "anmw",	0x84000000,	0xfc080000,	"r,xOA,X",	4 },
202*3d8817e4Smiod { "anmd",	0x84000002,	0xfc080002,	"r,xOA,X",	4 },
203*3d8817e4Smiod { "anr",	0x04000000,	0xfc0f0000,	"r,R",		2 },
204*3d8817e4Smiod { "ani",	0xf8080000,	0xfc7f0000,	"r,I",		4 },
205*3d8817e4Smiod { "ormb",	0xb8080000,	0xfc080000,	"r,xOA,X",	4 },
206*3d8817e4Smiod { "ormh",	0xb8000001,	0xfc080001,	"r,xOA,X",	4 },
207*3d8817e4Smiod { "ormw",	0xb8000000,	0xfc080000,	"r,xOA,X",	4 },
208*3d8817e4Smiod { "ormd",	0xb8000002,	0xfc080002,	"r,xOA,X",	4 },
209*3d8817e4Smiod { "orr",	0x08000000,	0xfc0f0000,	"r,R",		2 },
210*3d8817e4Smiod { "oi",		0xf8090000,	0xfc7f0000,	"r,I",		4 },
211*3d8817e4Smiod { "eomb",	0x8c080000,	0xfc080000,	"r,xOA,X",	4 },
212*3d8817e4Smiod { "eomh",	0x8c000001,	0xfc080001,	"r,xOA,X",	4 },
213*3d8817e4Smiod { "eomw",	0x8c000000,	0xfc080000,	"r,xOA,X",	4 },
214*3d8817e4Smiod { "eomd",	0x8c000002,	0xfc080002,	"r,xOA,X",	4 },
215*3d8817e4Smiod { "eor",	0x0c000000,	0xfc0f0000,	"r,R",		2 },
216*3d8817e4Smiod { "eoi",	0xf80a0000,	0xfc7f0000,	"r,I",		4 },
217*3d8817e4Smiod 
218*3d8817e4Smiod { "anvv",	0x04010000,	0xfc0f0000,	"v,V",		2 },
219*3d8817e4Smiod { "anvr",	0x04020000,	0xfc0f0000,	"v,R",		2 },
220*3d8817e4Smiod { "orvv",	0x08010000,	0xfc0f0000,	"v,V",		2 },
221*3d8817e4Smiod { "orvr",	0x08020000,	0xfc0f0000,	"v,R",		2 },
222*3d8817e4Smiod { "eovv",	0x0c010000,	0xfc0f0000,	"v,V",		2 },
223*3d8817e4Smiod { "eovr",	0x0c020000,	0xfc0f0000,	"v,R",		2 },
224*3d8817e4Smiod 
225*3d8817e4Smiod { "sacz",	0x100c0000,	0xfc0f0000,	"r,R",		2 },
226*3d8817e4Smiod { "sla",	0x1c400000,	0xfc600000,	"r,S",		2 },
227*3d8817e4Smiod { "sll",	0x1c600000,	0xfc600000,	"r,S",		2 },
228*3d8817e4Smiod { "slc",	0x24400000,	0xfc600000,	"r,S",		2 },
229*3d8817e4Smiod { "slad",	0x20400000,	0xfc600000,	"r,S",		2 },
230*3d8817e4Smiod { "slld",	0x20600000,	0xfc600000,	"r,S",		2 },
231*3d8817e4Smiod { "sra",	0x1c000000,	0xfc600000,	"r,S",		2 },
232*3d8817e4Smiod { "srl",	0x1c200000,	0xfc600000,	"r,S",		2 },
233*3d8817e4Smiod { "src",	0x24000000,	0xfc600000,	"r,S",		2 },
234*3d8817e4Smiod { "srad",	0x20000000,	0xfc600000,	"r,S",		2 },
235*3d8817e4Smiod { "srld",	0x20200000,	0xfc600000,	"r,S",		2 },
236*3d8817e4Smiod { "sda",	0x3c030000,	0xfc0f0000,	"r,R",		2 },
237*3d8817e4Smiod { "sdl",	0x3c020000,	0xfc0f0000,	"r,R",		2 },
238*3d8817e4Smiod { "sdc",	0x3c010000,	0xfc0f0000,	"r,R",		2 },
239*3d8817e4Smiod { "sdad",	0x3c0b0000,	0xfc0f0000,	"r,R",		2 },
240*3d8817e4Smiod { "sdld",	0x3c0a0000,	0xfc0f0000,	"r,R",		2 },
241*3d8817e4Smiod 
242*3d8817e4Smiod { "svda",	0x3c070000,	0xfc0f0000,	"v,R",		2 },
243*3d8817e4Smiod { "svdl",	0x3c060000,	0xfc0f0000,	"v,R",		2 },
244*3d8817e4Smiod { "svdc",	0x3c050000,	0xfc0f0000,	"v,R",		2 },
245*3d8817e4Smiod { "svdad",	0x3c0e0000,	0xfc0f0000,	"v,R",		2 },
246*3d8817e4Smiod { "svdld",	0x3c0d0000,	0xfc0f0000,	"v,R",		2 },
247*3d8817e4Smiod 
248*3d8817e4Smiod { "sbm",	0xac080000,	0xfc080000,	"f,xOA,X",	4 },
249*3d8817e4Smiod { "zbm",	0xac000000,	0xfc080000,	"f,xOA,X",	4 },
250*3d8817e4Smiod { "tbm",	0xa8080000,	0xfc080000,	"f,xOA,X",	4 },
251*3d8817e4Smiod { "incmb",	0xa0000000,	0xfc080000,	"xOA,X",	4 },
252*3d8817e4Smiod { "incmh",	0xa0080000,	0xfc080000,	"xOA,X",	4 },
253*3d8817e4Smiod { "incmw",	0xa4000000,	0xfc080000,	"xOA,X",	4 },
254*3d8817e4Smiod { "incmd",	0xa4080000,	0xfc080000,	"xOA,X",	4 },
255*3d8817e4Smiod { "sbmd",	0x7c080000,	0xfc080000,	"r,xOA,X",	4 },
256*3d8817e4Smiod { "zbmd",	0x7c000000,	0xfc080000,	"r,xOA,X",	4 },
257*3d8817e4Smiod { "tbmd",	0x78080000,	0xfc080000,	"r,xOA,X",	4 },
258*3d8817e4Smiod 
259*3d8817e4Smiod { "ssm",	0x9c080000,	0xfc080000,	"f,xOA,X",	4 },
260*3d8817e4Smiod { "zsm",	0x9c000000,	0xfc080000,	"f,xOA,X",	4 },
261*3d8817e4Smiod { "tsm",	0x98080000,	0xfc080000,	"f,xOA,X",	4 },
262*3d8817e4Smiod 
263*3d8817e4Smiod { "admb",	0xc8080000,	0xfc080000,	"r,xOA,X",	4 },
264*3d8817e4Smiod { "admh",	0xc8000001,	0xfc080001,	"r,xOA,X",	4 },
265*3d8817e4Smiod { "admw",	0xc8000000,	0xfc080000,	"r,xOA,X",	4 },
266*3d8817e4Smiod { "admd",	0xc8000002,	0xfc080002,	"r,xOA,X",	4 },
267*3d8817e4Smiod { "adr",	0x38000000,	0xfc0f0000,	"r,R",		2 },
268*3d8817e4Smiod { "armb",	0xe8080000,	0xfc080000,	"r,xOA,X",	4 },
269*3d8817e4Smiod { "armh",	0xe8000001,	0xfc080001,	"r,xOA,X",	4 },
270*3d8817e4Smiod { "armw",	0xe8000000,	0xfc080000,	"r,xOA,X",	4 },
271*3d8817e4Smiod { "armd",	0xe8000002,	0xfc080002,	"r,xOA,X",	4 },
272*3d8817e4Smiod { "adi",	0xf8010000,	0xfc0f0000,	"r,I",		4 },
273*3d8817e4Smiod { "sumb",	0xcc080000,	0xfc080000,	"r,xOA,X",	4 },
274*3d8817e4Smiod { "sumh",	0xcc000001,	0xfc080001,	"r,xOA,X",	4 },
275*3d8817e4Smiod { "sumw",	0xcc000000,	0xfc080000,	"r,xOA,X",	4 },
276*3d8817e4Smiod { "sumd",	0xcc000002,	0xfc080002,	"r,xOA,X",	4 },
277*3d8817e4Smiod { "sur",	0x3c000000,	0xfc0f0000,	"r,R",		2 },
278*3d8817e4Smiod { "sui",	0xf8020000,	0xfc0f0000,	"r,I",		4 },
279*3d8817e4Smiod { "mpmb",	0xc0080000,	0xfc080000,	"r,xOA,X",	4 },
280*3d8817e4Smiod { "mpmh",	0xc0000001,	0xfc080001,	"r,xOA,X",	4 },
281*3d8817e4Smiod { "mpmw",	0xc0000000,	0xfc080000,	"r,xOA,X",	4 },
282*3d8817e4Smiod { "mpr",	0x38020000,	0xfc0f0000,	"r,R",		2 },
283*3d8817e4Smiod { "mprd",	0x3c0f0000,	0xfc0f0000,	"r,R",		2 },
284*3d8817e4Smiod { "mpi",	0xf8030000,	0xfc0f0000,	"r,I",		4 },
285*3d8817e4Smiod { "dvmb",	0xc4080000,	0xfc080000,	"r,xOA,X",	4 },
286*3d8817e4Smiod { "dvmh",	0xc4000001,	0xfc080001,	"r,xOA,X",	4 },
287*3d8817e4Smiod { "dvmw",	0xc4000000,	0xfc080000,	"r,xOA,X",	4 },
288*3d8817e4Smiod { "dvr",	0x380a0000,	0xfc0f0000,	"r,R",		2 },
289*3d8817e4Smiod { "dvi",	0xf8040000,	0xfc0f0000,	"r,I",		4 },
290*3d8817e4Smiod { "exs",	0x38080000,	0xfc0f0000,	"r,R",		2 },
291*3d8817e4Smiod 
292*3d8817e4Smiod { "advv",	0x30000000,	0xfc0f0000,	"v,V",		2 },
293*3d8817e4Smiod { "advvd",	0x30080000,	0xfc0f0000,	"v,V",		2 },
294*3d8817e4Smiod { "adrv",	0x34000000,	0xfc0f0000,	"v,R",		2 },
295*3d8817e4Smiod { "adrvd",	0x34080000,	0xfc0f0000,	"v,R",		2 },
296*3d8817e4Smiod { "suvv",	0x30010000,	0xfc0f0000,	"v,V",		2 },
297*3d8817e4Smiod { "suvvd",	0x30090000,	0xfc0f0000,	"v,V",		2 },
298*3d8817e4Smiod { "surv",	0x34010000,	0xfc0f0000,	"v,R",		2 },
299*3d8817e4Smiod { "survd",	0x34090000,	0xfc0f0000,	"v,R",		2 },
300*3d8817e4Smiod { "mpvv",	0x30020000,	0xfc0f0000,	"v,V",		2 },
301*3d8817e4Smiod { "mprv",	0x34020000,	0xfc0f0000,	"v,R",		2 },
302*3d8817e4Smiod 
303*3d8817e4Smiod { "adfw",	0xe0080000,	0xfc080000,	"r,xOA,X",	4 },
304*3d8817e4Smiod { "adfd",	0xe0080002,	0xfc080002,	"r,xOA,X",	4 },
305*3d8817e4Smiod { "adrfw",	0x38010000,	0xfc0f0000,	"r,R",		2 },
306*3d8817e4Smiod { "adrfd",	0x38090000,	0xfc0f0000,	"r,R",		2 },
307*3d8817e4Smiod { "surfw",	0xe0000000,	0xfc080000,	"r,xOA,X",	4 },
308*3d8817e4Smiod { "surfd",	0xe0000002,	0xfc080002,	"r,xOA,X",	4 },
309*3d8817e4Smiod { "surfw",	0x38030000,	0xfc0f0000,	"r,R",		2 },
310*3d8817e4Smiod { "surfd",	0x380b0000,	0xfc0f0000,	"r,R",		2 },
311*3d8817e4Smiod { "mpfw",	0xe4080000,	0xfc080000,	"r,xOA,X",	4 },
312*3d8817e4Smiod { "mpfd",	0xe4080002,	0xfc080002,	"r,xOA,X",	4 },
313*3d8817e4Smiod { "mprfw",	0x38060000,	0xfc0f0000,	"r,R",		2 },
314*3d8817e4Smiod { "mprfd",	0x380e0000,	0xfc0f0000,	"r,R",		2 },
315*3d8817e4Smiod { "rfw",	0xe4000000,	0xfc080000,	"r,xOA,X",	4 },
316*3d8817e4Smiod { "rfd",	0xe4000002,	0xfc080002,	"r,xOA,X",	4 },
317*3d8817e4Smiod { "rrfw",	0x0c0e0000,	0xfc0f0000,	"r",		2 },
318*3d8817e4Smiod { "rrfd",	0x0c0f0000,	0xfc0f0000,	"r",		2 },
319*3d8817e4Smiod 
320*3d8817e4Smiod { "advvfw",	0x30040000,	0xfc0f0000,	"v,V",		2 },
321*3d8817e4Smiod { "advvfd",	0x300c0000,	0xfc0f0000,	"v,V",		2 },
322*3d8817e4Smiod { "adrvfw",	0x34040000,	0xfc0f0000,	"v,R",		2 },
323*3d8817e4Smiod { "adrvfd",	0x340c0000,	0xfc0f0000,	"v,R",		2 },
324*3d8817e4Smiod { "suvvfw",	0x30050000,	0xfc0f0000,	"v,V",		2 },
325*3d8817e4Smiod { "suvvfd",	0x300d0000,	0xfc0f0000,	"v,V",		2 },
326*3d8817e4Smiod { "survfw",	0x34050000,	0xfc0f0000,	"v,R",		2 },
327*3d8817e4Smiod { "survfd",	0x340d0000,	0xfc0f0000,	"v,R",		2 },
328*3d8817e4Smiod { "mpvvfw",	0x30060000,	0xfc0f0000,	"v,V",		2 },
329*3d8817e4Smiod { "mpvvfd",	0x300e0000,	0xfc0f0000,	"v,V",		2 },
330*3d8817e4Smiod { "mprvfw",	0x34060000,	0xfc0f0000,	"v,R",		2 },
331*3d8817e4Smiod { "mprvfd",	0x340e0000,	0xfc0f0000,	"v,R",		2 },
332*3d8817e4Smiod { "rvfw",	0x30070000,	0xfc0f0000,	"v",		2 },
333*3d8817e4Smiod { "rvfd",	0x300f0000,	0xfc0f0000,	"v",		2 },
334*3d8817e4Smiod 
335*3d8817e4Smiod { "fltw",	0x38070000,	0xfc0f0000,	"r,R",		2 },
336*3d8817e4Smiod { "fltd",	0x380f0000,	0xfc0f0000,	"r,R",		2 },
337*3d8817e4Smiod { "fixw",	0x38050000,	0xfc0f0000,	"r,R",		2 },
338*3d8817e4Smiod { "fixd",	0x380d0000,	0xfc0f0000,	"r,R",		2 },
339*3d8817e4Smiod { "cfpds",	0x3c090000,	0xfc0f0000,	"r,R",		2 },
340*3d8817e4Smiod 
341*3d8817e4Smiod { "fltvw",	0x080d0000,	0xfc0f0000,	"v,V",		2 },
342*3d8817e4Smiod { "fltvd",	0x080f0000,	0xfc0f0000,	"v,V",		2 },
343*3d8817e4Smiod { "fixvw",	0x080c0000,	0xfc0f0000,	"v,V",		2 },
344*3d8817e4Smiod { "fixvd",	0x080e0000,	0xfc0f0000,	"v,V",		2 },
345*3d8817e4Smiod { "cfpvds",	0x0c0d0000,	0xfc0f0000,	"v,V",		2 },
346*3d8817e4Smiod 
347*3d8817e4Smiod { "orvrn",	0x000a0000,	0xfc0f0000,	"r,V",		2 },
348*3d8817e4Smiod { "andvrn",	0x00080000,	0xfc0f0000,	"r,V",		2 },
349*3d8817e4Smiod { "frsteq",	0x04090000,	0xfc0f0000,	"r,V",		2 },
350*3d8817e4Smiod { "sigma",	0x0c080000,	0xfc0f0000,	"r,V",		2 },
351*3d8817e4Smiod { "sigmad",	0x0c0a0000,	0xfc0f0000,	"r,V",		2 },
352*3d8817e4Smiod { "sigmf",	0x08080000,	0xfc0f0000,	"r,V",		2 },
353*3d8817e4Smiod { "sigmfd",	0x080a0000,	0xfc0f0000,	"r,V",		2 },
354*3d8817e4Smiod { "prodf",	0x04080000,	0xfc0f0000,	"r,V",		2 },
355*3d8817e4Smiod { "prodfd",	0x040a0000,	0xfc0f0000,	"r,V",		2 },
356*3d8817e4Smiod { "maxv",	0x10080000,	0xfc0f0000,	"r,V",		2 },
357*3d8817e4Smiod { "maxvd",	0x100a0000,	0xfc0f0000,	"r,V",		2 },
358*3d8817e4Smiod { "minv",	0x14080000,	0xfc0f0000,	"r,V",		2 },
359*3d8817e4Smiod { "minvd",	0x140a0000,	0xfc0f0000,	"r,V",		2 },
360*3d8817e4Smiod 
361*3d8817e4Smiod { "lpsd",	0xf0000000,	0xfc080000,	"xOA,X",	4 },
362*3d8817e4Smiod { "ldc",	0xf0080000,	0xfc080000,	"xOA,X",	4 },
363*3d8817e4Smiod { "spm",	0x040c0000,	0xfc0f0000,	"r",		2 },
364*3d8817e4Smiod { "rpm",	0x040d0000,	0xfc0f0000,	"r",		2 },
365*3d8817e4Smiod { "tritr",	0x00070000,	0xfc0f0000,	"r",		2 },
366*3d8817e4Smiod { "trrit",	0x00060000,	0xfc0f0000,	"r",		2 },
367*3d8817e4Smiod { "rpswt",	0x04080000,	0xfc0f0000,	"r",		2 },
368*3d8817e4Smiod { "exr",	0xf8070000,	0xfc0f0000,	"",		4 },
369*3d8817e4Smiod { "halt",	0x00000000,	0xfc0f0000,	"",		2 },
370*3d8817e4Smiod { "wait",	0x00010000,	0xfc0f0000,	"",		2 },
371*3d8817e4Smiod { "nop",	0x00020000,	0xfc0f0000,	"",		2 },
372*3d8817e4Smiod { "eiae",	0x00030000,	0xfc0f0000,	"",		2 },
373*3d8817e4Smiod { "efae",	0x000d0000,	0xfc0f0000,	"",		2 },
374*3d8817e4Smiod { "diae",	0x000e0000,	0xfc0f0000,	"",		2 },
375*3d8817e4Smiod { "dfae",	0x000f0000,	0xfc0f0000,	"",		2 },
376*3d8817e4Smiod { "spvc",	0xf8060000,	0xfc0f0000,	"r,T,N",	4 },
377*3d8817e4Smiod { "rdsts",	0x00090000,	0xfc0f0000,	"r",		2 },
378*3d8817e4Smiod { "setcpu",	0x000c0000,	0xfc0f0000,	"r",		2 },
379*3d8817e4Smiod { "cmc",	0x000b0000,	0xfc0f0000,	"r",		2 },
380*3d8817e4Smiod { "trrcu",	0x00040000,	0xfc0f0000,	"r",		2 },
381*3d8817e4Smiod { "attnio",	0x00050000,	0xfc0f0000,	"",		2 },
382*3d8817e4Smiod { "fudit",	0x28080000,	0xfc0f0000,	"",		2 },
383*3d8817e4Smiod { "break",	0x28090000,	0xfc0f0000,	"",		2 },
384*3d8817e4Smiod { "frzss",	0x280a0000,	0xfc0f0000,	"",		2 },
385*3d8817e4Smiod { "ripi",	0x04040000,	0xfc0f0000,	"r,R",		2 },
386*3d8817e4Smiod { "xcp",	0x04050000,	0xfc0f0000,	"r",		2 },
387*3d8817e4Smiod { "block",	0x04060000,	0xfc0f0000,	"",		2 },
388*3d8817e4Smiod { "unblock",	0x04070000,	0xfc0f0000,	"",		2 },
389*3d8817e4Smiod { "trsc",	0x08060000,	0xfc0f0000,	"r,R",		2 },
390*3d8817e4Smiod { "tscr",	0x08070000,	0xfc0f0000,	"r,R",		2 },
391*3d8817e4Smiod { "fq",		0x04080000,	0xfc0f0000,	"r",		2 },
392*3d8817e4Smiod { "flupte",	0x2c080000,	0xfc0f0000,	"r",		2 },
393*3d8817e4Smiod { "rviu",	0x040f0000,	0xfc0f0000,	"",		2 },
394*3d8817e4Smiod { "ldel",	0x280c0000,	0xfc0f0000,	"r,R",		2 },
395*3d8817e4Smiod { "ldu",	0x280d0000,	0xfc0f0000,	"r,R",		2 },
396*3d8817e4Smiod { "stdecc",	0x280b0000,	0xfc0f0000,	"r,R",		2 },
397*3d8817e4Smiod { "trpc",	0x08040000,	0xfc0f0000,	"r",		2 },
398*3d8817e4Smiod { "tpcr",	0x08050000,	0xfc0f0000,	"r",		2 },
399*3d8817e4Smiod { "ghalt",	0x0c050000,	0xfc0f0000,	"r",		2 },
400*3d8817e4Smiod { "grun",	0x0c040000,	0xfc0f0000,	"",		2 },
401*3d8817e4Smiod { "tmpr",	0x2c0a0000,	0xfc0f0000,	"r,R",		2 },
402*3d8817e4Smiod { "trmp",	0x2c0b0000,	0xfc0f0000,	"r,R",		2 },
403*3d8817e4Smiod 
404*3d8817e4Smiod { "trrve",	0x28060000,	0xfc0f0000,	"r",		2 },
405*3d8817e4Smiod { "trver",	0x28070000,	0xfc0f0000,	"r",		2 },
406*3d8817e4Smiod { "trvlr",	0x280f0000,	0xfc0f0000,	"r",		2 },
407*3d8817e4Smiod 
408*3d8817e4Smiod { "linkfl",	0x18000000,	0xfc0f0000,	"r,R",		2 },
409*3d8817e4Smiod { "linkbl",	0x18020000,	0xfc0f0000,	"r,R",		2 },
410*3d8817e4Smiod { "linkfp",	0x18010000,	0xfc0f0000,	"r,R",		2 },
411*3d8817e4Smiod { "linkbp",	0x18030000,	0xfc0f0000,	"r,R",		2 },
412*3d8817e4Smiod { "linkpl",	0x18040000,	0xfc0f0000,	"r,R",		2 },
413*3d8817e4Smiod { "ulinkl",	0x18080000,	0xfc0f0000,	"r,R",		2 },
414*3d8817e4Smiod { "ulinkp",	0x18090000,	0xfc0f0000,	"r,R",		2 },
415*3d8817e4Smiod { "ulinktl",	0x180a0000,	0xfc0f0000,	"r,R",		2 },
416*3d8817e4Smiod { "ulinktp",	0x180b0000,	0xfc0f0000,	"r,R",		2 },
417*3d8817e4Smiod };
418*3d8817e4Smiod 
419*3d8817e4Smiod int numopcodes = sizeof(gld_opcodes) / sizeof(gld_opcodes[0]);
420*3d8817e4Smiod 
421*3d8817e4Smiod struct gld_opcode *endop = gld_opcodes + sizeof(gld_opcodes) /
422*3d8817e4Smiod 		 		sizeof(gld_opcodes[0]);
423