1*59051Storek /* Table of opcodes for the sparc.
2*59051Storek    Copyright (C) 1989 Free Software Foundation, Inc.
3*59051Storek 
4*59051Storek This file is part of GAS, the GNU Assembler, and GDB, the GNU disassembler.
5*59051Storek 
6*59051Storek GAS/GDB is free software; you can redistribute it and/or modify
7*59051Storek it under the terms of the GNU General Public License as published by
8*59051Storek the Free Software Foundation; either version 1, or (at your option)
9*59051Storek any later version.
10*59051Storek 
11*59051Storek GAS/GDB is distributed in the hope that it will be useful,
12*59051Storek but WITHOUT ANY WARRANTY; without even the implied warranty of
13*59051Storek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*59051Storek GNU General Public License for more details.
15*59051Storek 
16*59051Storek You should have received a copy of the GNU General Public License
17*59051Storek along with GAS or GDB; see the file COPYING.  If not, write to
18*59051Storek the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
19*59051Storek 
20*59051Storek #if !defined(__STDC__) && !defined(const)
21*59051Storek #define const
22*59051Storek #endif
23*59051Storek 
24*59051Storek /*
25*59051Storek  * Structure of an opcode table entry.
26*59051Storek  */
27*59051Storek struct sparc_opcode
28*59051Storek {
29*59051Storek     const char *name;
30*59051Storek     unsigned long int match;	/* Bits that must be set.  */
31*59051Storek     unsigned long int lose;	/* Bits that must not be set.  */
32*59051Storek     const char *args;
33*59051Storek     /* Nonzero if this is a delayed branch instruction.  */
34*59051Storek     char delayed;
35*59051Storek };
36*59051Storek 
37*59051Storek /*
38*59051Storek    All sparc opcodes are 32 bits, except for the `set' instruction (really
39*59051Storek    a macro), which is 64 bits.  It is handled as a special case.
40*59051Storek 
41*59051Storek    The match component is a mask saying which bits must match a
42*59051Storek    particular opcode in order for an instruction to be an instance
43*59051Storek    of that opcode.
44*59051Storek 
45*59051Storek    The args component is a string containing one character
46*59051Storek    for each operand of the instruction.
47*59051Storek 
48*59051Storek Kinds of operands:
49*59051Storek    #    Number used by optimizer.  It is ignored.
50*59051Storek    1    rs1 register.
51*59051Storek    2    rs2 register.
52*59051Storek    d    rd register.
53*59051Storek    e    frs1 floating point register.
54*59051Storek    f    frs2 floating point register.
55*59051Storek    g    frsd floating point register.
56*59051Storek    b    crs1 coprocessor register
57*59051Storek    c    crs2 coprocessor register
58*59051Storek    D    crsd coprocessor register
59*59051Storek    h    22 high bits.
60*59051Storek    i    13 bit Immediate.
61*59051Storek    l    22 bit PC relative immediate.
62*59051Storek    L    30 bit PC relative immediate.
63*59051Storek    a    Annul.  The annul bit is set.
64*59051Storek    A    Alternate address space.  Stored as 8 bits.
65*59051Storek    C    Coprocessor state register.
66*59051Storek    F    floating point state register.
67*59051Storek    p    Processor state register.
68*59051Storek    q    Floating point queue.
69*59051Storek    r    Single register that is both rs1 and rsd.
70*59051Storek    Q    Coprocessor queue.
71*59051Storek    S    Special case.
72*59051Storek    t    Trap base register.
73*59051Storek    w    Window invalid mask register.
74*59051Storek    y    Y register.
75*59051Storek 
76*59051Storek */
77*59051Storek 
78*59051Storek /* The order of the opcodes in this table is significant:
79*59051Storek 
80*59051Storek    * The assembler requires that all instances of the same mnemonic must be
81*59051Storek    consecutive.  If they aren't, the assembler will bomb at runtime.
82*59051Storek 
83*59051Storek    * The disassembler should not care about the order of the opcodes.  */
84*59051Storek 
85*59051Storek static struct sparc_opcode sparc_opcodes[] =
86*59051Storek {
87*59051Storek 
88*59051Storek { "ldd",        0xc1980000, 0x0060201f, "[1],D", 0 }, /* ldd [rs1+%g0],d */
89*59051Storek { "ldd",        0xc1982000, 0x00601fff, "[1],D", 0 }, /* ldd [rs1+0],d */
90*59051Storek { "ldd",        0xc1982000, 0x00600000, "[1+i],D", 0 },
91*59051Storek { "ldd",        0xc1982000, 0x00600000, "[i+1],D", 0 },
92*59051Storek { "ldd",        0xc1980000, 0x00602000, "[1+2],D", 0 },
93*59051Storek { "ldd",        0xc1180000, 0x00e0201f, "[1],g", 0 }, /* ldd [rs1+%g0],d */
94*59051Storek { "ldd",        0xc1182000, 0x00e01fff, "[1],g", 0 }, /* ldd [rs1+0],d */
95*59051Storek { "ldd",        0xc1182000, 0x00e00000, "[1+i],g", 0 },
96*59051Storek { "ldd",        0xc1182000, 0x00e00000, "[i+1],g", 0 },
97*59051Storek { "ldd",        0xc1180000, 0x00e02000, "[1+2],g", 0 },
98*59051Storek { "ldd",	0xc0180000, 0x01e0201f, "[1],d", 0 }, /* ldd [rs1+%g0],d */
99*59051Storek { "ldd",        0xc0182000, 0x01e01fff, "[1],d", 0 }, /* ldd [rs1+0],d */
100*59051Storek { "ldd",	0xc0182000, 0x01e00000, "[1+i],d", 0 },
101*59051Storek { "ldd",	0xc0182000, 0x01e00000, "[i+1],d", 0 },
102*59051Storek { "ldd",	0xc0180000, 0x01e02000, "[1+2],d", 0 },
103*59051Storek { "ld",         0xc1880000, 0x0070201f, "[1],C", 0 }, /* ld [rs1+%g0],d */
104*59051Storek { "ld",         0xc1882000, 0x00701fff, "[1],C", 0 }, /* ld [rs1+0],d */
105*59051Storek { "ld",         0xc1882000, 0x00700000, "[1+i],C", 0 },
106*59051Storek { "ld",         0xc1882000, 0x00700000, "[i+1],C", 0 },
107*59051Storek { "ld",         0xc1880000, 0x00702000, "[1+2],C", 0 },
108*59051Storek { "ld",         0xc1800000, 0x0078201f, "[1],D", 0 }, /* ld [rs1+%g0],d */
109*59051Storek { "ld",         0xc1802000, 0x00781fff, "[1],D", 0 }, /* ld [rs1+0],d */
110*59051Storek { "ld",         0xc1802000, 0x00780000, "[1+i],D", 0 },
111*59051Storek { "ld",         0xc1802000, 0x00780000, "[i+1],D", 0 },
112*59051Storek { "ld",         0xc1800000, 0x00782000, "[1+2],D", 0 },
113*59051Storek { "ld",         0xc1080000, 0x00f0201f, "[1],F", 0 }, /* ld [rs1+%g0],d */
114*59051Storek { "ld",         0xc1082000, 0x00f01fff, "[1],F", 0 }, /* ld [rs1+0],d */
115*59051Storek { "ld",         0xc1082000, 0x00f00000, "[1+i],F", 0 },
116*59051Storek { "ld",         0xc1082000, 0x00f00000, "[i+1],F", 0 },
117*59051Storek { "ld",         0xc1080000, 0x00f02000, "[1+2],F", 0 },
118*59051Storek { "ld",         0xc1000000, 0x00f8201f, "[1],g", 0 }, /* ld [rs1+%g0],d */
119*59051Storek { "ld",         0xc1002000, 0x00f81fff, "[1],g", 0 }, /* ld [rs1+0],d */
120*59051Storek { "ld",         0xc1002000, 0x00f80000, "[1+i],g", 0 },
121*59051Storek { "ld",         0xc1002000, 0x00f80000, "[i+1],g", 0 },
122*59051Storek { "ld",         0xc1000000, 0x00f82000, "[1+2],g", 0 },
123*59051Storek { "ld",	        0xc0000000, 0x01f8201f, "[1],d", 0 }, /* ld [rs1+%g0],d */
124*59051Storek { "ld",		0xc0002000, 0x01f81fff, "[1],d", 0 }, /* ld [rs1+0],d */
125*59051Storek { "ld",		0xc0002000, 0x01f80000, "[1+i],d", 0 },
126*59051Storek { "ld",		0xc0002000, 0x01f80000, "[i+1],d", 0 },
127*59051Storek { "ld",		0xc0000000, 0x01f82000, "[1+2],d", 0 },
128*59051Storek { "ldstuba",    0xc0d80000, 0x0100201f, "[1]A,d", 0 }, /* ldstuba [rs1+%g0],d */
129*59051Storek { "ldstuba",	0xc0d80000, 0x01002000, "[1+2]A,d", 0 },
130*59051Storek { "ldsha",      0xc0d00000, 0x0128201f, "[1]A,d", 0 }, /* ldsha [rs1+%g0],d */
131*59051Storek { "ldsha",	0xc0d00000, 0x01282000, "[1+2]A,d", 0 },
132*59051Storek { "ldsba",      0xc0c80000, 0x0130201f, "[1]A,d", 0 }, /* ldsba [rs1+%g0],d */
133*59051Storek { "ldsba",	0xc0c80000, 0x01302000, "[1+2]A,d", 0 },
134*59051Storek { "ldda",       0xc0980000, 0x0160201f, "[1]A,d", 0 }, /* ldda [rs1+%g0],d */
135*59051Storek { "ldda",	0xc0980000, 0x01602000, "[1+2]A,d", 0 },
136*59051Storek { "lduha",      0xc0900000, 0x0168201f, "[1]A,d", 0 }, /* lduha [rs1+%g0],d */
137*59051Storek { "lduha",	0xc0900000, 0x01682000, "[1+2]A,d", 0 },
138*59051Storek { "ldstub",     0xc0680000, 0x0190201f, "[1],d", 0 }, /* ldstub [rs1+%g0],d */
139*59051Storek { "ldstub",	0xc0682000, 0x01900000, "[1+i],d", 0 },
140*59051Storek { "ldstub",	0xc0682000, 0x01900000, "[i+1],d", 0 },
141*59051Storek { "ldstub",	0xc0680000, 0x01902000, "[1+2],d", 0 },
142*59051Storek { "lda",        0xc0800000, 0x0178201f, "[1]A,d", 0 }, /* lda [rs1+%g0],d */
143*59051Storek { "lda",	0xc0800000, 0x01782000, "[1+2]A,d", 0 },
144*59051Storek { "ldsh",       0xc0500000, 0x0000000d, "[1],d", 0 }, /* ldsh [rs1+%g0],d */
145*59051Storek { "ldsh",       0xc0502000, 0x01a81fff, "[1],d", 0 }, /* ldsh [rs1+0],d */
146*59051Storek { "ldsh",	0xc0502000, 0x01a80000, "[1+i],d", 0 },
147*59051Storek { "ldsh",	0xc0502000, 0x01a80000, "[i+1],d", 0 },
148*59051Storek { "ldsh",	0xc0500000, 0x01a82000, "[1+2],d", 0 },
149*59051Storek { "ldsb",       0xc0480000, 0x01b0201f, "[1],d", 0 }, /* ldsb [rs1+%g0],d */
150*59051Storek { "ldsb",	0xc0482000, 0x01b01fff, "[1],d", 0 }, /* ldsb [rs1+0],d */
151*59051Storek { "ldsb",	0xc0482000, 0x01b00000, "[1+i],d", 0 },
152*59051Storek { "ldsb",	0xc0482000, 0x01b00000, "[i+1],d", 0 },
153*59051Storek { "ldsb",	0xc0480000, 0x01b02000, "[1+2],d", 0 },
154*59051Storek { "ldub",       0xc0080000, 0x01f0201f, "[1],d", 0 }, /* ldub [rs1+%g0],d */
155*59051Storek { "ldub",       0xc0082000, 0x01f01fff, "[1],d", 0 }, /* ldub [rs1+0],d */
156*59051Storek { "ldub",	0xc0082000, 0x01f00000, "[1+i],d", 0 },
157*59051Storek { "ldub",	0xc0082000, 0x01f00000, "[i+1],d", 0 },
158*59051Storek { "ldub",	0xc0080000, 0x01f02000, "[1+2],d", 0 },
159*59051Storek { "lduba",      0xc0880000, 0x0170201f, "[1]A,d", 0 }, /* lduba [rs1+%g0],d */
160*59051Storek { "lduba",	0xc0880000, 0x01702000, "[1+2]A,d", 0 },
161*59051Storek { "lduh",	0xc0102000, 0x01e80000, "[1+i],d", 0 },
162*59051Storek { "lduh",	0xc0102000, 0x01e80000, "[i+1],d", 0 },
163*59051Storek { "lduh",	0xc0100000, 0x01e8201f, "[1],d", 0 }, /* lduh [rs1+%g0],d */
164*59051Storek { "lduh",	0xc0102000, 0x01e81fff, "[1],d", 0 }, /* lduh [rs1+0],d */
165*59051Storek { "lduh",	0xc0100000, 0x01e82000, "[1+2],d", 0 },
166*59051Storek 
167*59051Storek { "st",	        0xc0200000, 0x01d8201f, "d,[1]", 0 }, /* st d,[rs1+%g0] */
168*59051Storek { "st",	        0xc0202000, 0x01d81fff, "d,[1]", 0 }, /* st d,[rs1+0] */
169*59051Storek { "st",		0xc0202000, 0x01d80000, "d,[1+i]", 0 },
170*59051Storek { "st",		0xc0202000, 0x01d80000, "d,[i+1]", 0 },
171*59051Storek { "st",		0xc0200000, 0x01d82000, "d,[1+2]", 0 },
172*59051Storek { "st",		0xc1200000, 0x00d8201f, "g,[1]", 0 }, /* st d[rs1+%g0] */
173*59051Storek { "st",		0xc1202000, 0x00d81fff, "g,[1]", 0 }, /* st d,[rs1+0] */
174*59051Storek { "st",		0xc1202000, 0x00d80000, "g,[1+i]", 0 },
175*59051Storek { "st",		0xc1202000, 0x00d80000, "g,[i+1]", 0 },
176*59051Storek { "st",		0xc1200000, 0x00d82000, "g,[1+2]", 0 },
177*59051Storek { "st",		0xc1280000, 0x00c0d01f, "F,[1]", 0 }, /* st d,[rs1+%g0] */
178*59051Storek { "st",		0xc1282000, 0x00c0dfff, "F,[1]", 0 }, /* st d,[rs1+0] */
179*59051Storek { "st",		0xc1282000, 0x00c0d000, "F,[1+i]", 0 },
180*59051Storek { "st",		0xc1282000, 0x00c0d000, "F,[i+1]", 0 },
181*59051Storek { "st",		0xc1280000, 0x00c0d000, "F,[1+2]", 0 },
182*59051Storek { "st",		0xc1a00000, 0x0058201f, "D,[1]", 0 }, /* st d,[rs1+%g0] */
183*59051Storek { "st",		0xc1a02000, 0x00581fff, "D,[1]", 0 }, /* st d,[rs1+0] */
184*59051Storek { "st",		0xc1a02000, 0x00580000, "D,[1+i]", 0 },
185*59051Storek { "st",		0xc1a02000, 0x00580000, "D,[i+1]", 0 },
186*59051Storek { "st",		0xc1a00000, 0x00582000, "D,[1+2]", 0 },
187*59051Storek { "st",		0xc1a80000, 0x0050201f, "C,[1]", 0 }, /* st d,[rs1+%g0] */
188*59051Storek { "st",		0xc1a82000, 0x00501fff, "C,[1]", 0 }, /* st d,[rs1+0] */
189*59051Storek { "st",		0xc1a82000, 0x00500000, "C,[1+i]", 0 },
190*59051Storek { "st",		0xc1a82000, 0x00500000, "C,[i+1]", 0 },
191*59051Storek { "st",		0xc1a80000, 0x00502000, "C,[1+2]", 0 },
192*59051Storek { "sta",        0xc0a00000, 0x0108201f, "d,[1]A", 0 }, /* sta d,[rs1+%g0] */
193*59051Storek { "sta",	0xc0a00000, 0x01082000, "d,[1+2]A", 0 },
194*59051Storek 
195*59051Storek { "stb",        0xc0280000, 0x01d0201f, "d,[1]", 0 }, /* stb d,[rs1+%g0] */
196*59051Storek { "stb",	0xc0282000, 0x01d01fff, "d,[1]", 0 }, /* stb d,[rs1+0] */
197*59051Storek { "stb",	0xc0282000, 0x01d00000, "d,[1+i]", 0 },
198*59051Storek { "stb",	0xc0282000, 0x01d00000, "d,[i+1]", 0 },
199*59051Storek { "stb",	0xc0280000, 0x01d02000, "d,[1+2]", 0 },
200*59051Storek { "stba",       0xc0a80000, 0x01002000, "d,[1+2]A", 0 },
201*59051Storek { "stba",	0xc0a80000, 0x0100201f, "d,[1]A", 0 }, /* stba d,[rs1+%g0] */
202*59051Storek 
203*59051Storek { "std",        0xc0380000, 0x01c0201f, "d,[1]", 0 }, /* std d,[rs1+%g0] */
204*59051Storek { "std",	0xc0382000, 0x01c01fff, "d,[1]", 0 }, /* std d,[rs1+0] */
205*59051Storek { "std",	0xc0382000, 0x01c00000, "d,[1+i]", 0 },
206*59051Storek { "std",	0xc0382000, 0x01c00000, "d,[i+1]", 0 },
207*59051Storek { "std",	0xc0380000, 0x01c02000, "d,[1+2]", 0 },
208*59051Storek { "std",	0xc1380000, 0x00c0201f, "g,[1]", 0 }, /* std d,[rs1+%g0] */
209*59051Storek { "std",        0xc1382000, 0x00c01fff, "g,[1]", 0 }, /* std d,[rs1+0] */
210*59051Storek { "std",	0xc1382000, 0x00c00000, "g,[1+i]", 0 },
211*59051Storek { "std",	0xc1382000, 0x00c00000, "g,[i+1]", 0 },
212*59051Storek { "std",	0xc1380000, 0x00c02000, "g,[1+2]", 0 },
213*59051Storek { "std",        0xc1300000, 0x00c8201f, "q,[1]", 0 }, /* std d,[rs1+%g0] */
214*59051Storek { "std",	0xc1302000, 0x00c81fff, "q,[1]", 0 }, /* std d,[rs1+0] */
215*59051Storek { "std",	0xc1302000, 0x00c80000, "q,[1+i]", 0 },
216*59051Storek { "std",	0xc1302000, 0x00c80000, "q,[i+1]", 0 },
217*59051Storek { "std",	0xc1300000, 0x00c82000, "q,[1+2]", 0 },
218*59051Storek { "std",	0xc1b80000, 0x0040201f, "D,[1]", 0 }, /* std d,[rs1+%g0] */
219*59051Storek { "std",	0xc1b82000, 0x00401fff, "D,[1]", 0 }, /* std d,[rs1+0] */
220*59051Storek { "std",	0xc1b82000, 0x00400000, "D,[1+i]", 0 },
221*59051Storek { "std",	0xc1b82000, 0x00400000, "D,[i+1]", 0 },
222*59051Storek { "std",	0xc1b80000, 0x00402000, "D,[1+2]", 0 },
223*59051Storek { "std",	0xc1b00000, 0x0048201f, "Q,[1]", 0 }, /* std d,[rs1+%g0] */
224*59051Storek { "std",	0xc1b02000, 0x00481fff, "Q,[1]", 0 }, /* std d,[rs1+0] */
225*59051Storek { "std",	0xc1b02000, 0x00480000, "Q,[1+i]", 0 },
226*59051Storek { "std",	0xc1b02000, 0x00480000, "Q,[i+1]", 0 },
227*59051Storek { "std",	0xc1b00000, 0x00482000, "Q,[1+2]", 0 },
228*59051Storek { "stda",       0xc0b80000, 0x01402000, "d,[1+2]A", 0 },
229*59051Storek { "stda",	0xc0b80000, 0x0140201f, "d,[1]A", 0 }, /* stda d,[rs1+%g0] */
230*59051Storek 
231*59051Storek { "sth",        0xc0300000, 0x01c8201f, "d,[1]", 0 }, /* sth d,[rs1+%g0] */
232*59051Storek { "sth",	0xc0302000, 0x01c81fff, "d,[1]", 0 }, /* sth d,[rs1+0] */
233*59051Storek { "sth",	0xc0300000, 0x01c82000, "d,[1+2]", 0 },
234*59051Storek { "sth",	0xc0302000, 0x01c80000, "d,[1+i]", 0 },
235*59051Storek { "sth",	0xc0302000, 0x01c80000, "d,[i+1]", 0 },
236*59051Storek { "stha",       0xc0b00000, 0x0148201f, "d,[1]A", 0 }, /* stha d,[rs1+%g0] */
237*59051Storek { "stha",	0xc0b00000, 0x01482000, "d,[1+2]A", 0 },
238*59051Storek 
239*59051Storek { "swap",       0xc0780000, 0x0180201f, "[1],d", 0 }, /* swap [rs1+%g0],d */
240*59051Storek { "swap",       0xc0782000, 0x01801fff, "[1],d", 0 }, /* swap [rs1+0],d */
241*59051Storek { "swap",       0xc0782000, 0x01800000, "[1+i],d", 0 },
242*59051Storek { "swap",       0xc0782000, 0x01800000, "[i+1],d", 0 },
243*59051Storek { "swap",       0xc0780000, 0x01802000, "[1+2],d", 0 },
244*59051Storek { "swapa",      0xc0f80000, 0x01002000, "[1+2]A,d", 0 },
245*59051Storek { "swapa",      0xc0f80000, 0x0100201f, "[1]A,d", 0 }, /* swapa [rs1+%g0],d */
246*59051Storek 
247*59051Storek { "restore",    0x81e80000, 0x7e17e01f, "", 0 }, /* restore %g0,%g0,%g0 */
248*59051Storek { "restore",    0x81e82000, 0x7e14dfff, "", 0 }, /* restore %g0,0,%g0 */
249*59051Storek { "restore",	0x81e82000, 0x00000000, "1,i,d", 0 },
250*59051Storek { "restore",	0x81e80000, 0x00000000, "1,2,d", 0 },
251*59051Storek { "rett",       0x81c82000, 0x40300000, "1+i", 1 },
252*59051Storek { "rett",       0x81c82000, 0x40300000, "i+1", 1 },
253*59051Storek { "rett",	0x81c80000, 0x40302000, "1+2", 1 },
254*59051Storek { "rett",	0x81c82000, 0x40300000, "1", 1},
255*59051Storek { "save",       0x81e02000, 0x40180000, "1,i,d", 0 },
256*59051Storek { "save",	0x81e00000, 0x40180000, "1,2,d", 0 },
257*59051Storek 
258*59051Storek { "ret",	0x81c7e008, 0x00001ff7, "", 1 }, /* jmpl %i7+8,%g0 */
259*59051Storek { "retl",       0x81c3e008, 0x00001ff7, "", 1 }, /* jmpl %o7+8,%g0 */
260*59051Storek 
261*59051Storek { "jmpl",       0x81c00000, 0x4038201f, "1,d", 1 }, /* jmpl rs1+%g0,d */
262*59051Storek { "jmpl",	0x81c02000, 0x4037c000, "i,d", 1 }, /* jmpl %g0+i,d */
263*59051Storek { "jmpl",	0x81c02000, 0x40380000, "1+i,d", 1 },
264*59051Storek { "jmpl",	0x81c02000, 0x40380000, "i+1,d", 1 },
265*59051Storek { "jmpl",	0x81c00000, 0x40382000, "1+2,d", 1 },
266*59051Storek { "wr",         0x81982000, 0x40600000, "1,i,t", 0 },
267*59051Storek { "wr",         0x81980000, 0x40600000, "1,2,t", 0 },
268*59051Storek { "wr",         0x81902000, 0x40680000, "1,i,w", 0 },
269*59051Storek { "wr",         0x81900000, 0x40680000, "1,2,w", 0 },
270*59051Storek { "wr",         0x81882000, 0x40700000, "1,i,p", 0 },
271*59051Storek { "wr",         0x81880000, 0x40700000, "1,2,p", 0 },
272*59051Storek { "wr",         0x81802000, 0x40780000, "1,i,y", 0 },
273*59051Storek { "wr",         0x81800000, 0x40780000, "1,2,y", 0 },
274*59051Storek 
275*59051Storek { "rd", 	0x81580000, 0x40a00000, "t,d", 0 },
276*59051Storek { "rd", 	0x81500000, 0x40a80000, "w,d", 0 },
277*59051Storek { "rd", 	0x81480000, 0x40b00000, "p,d", 0 },
278*59051Storek { "rd",         0x81400000, 0x40b80000, "y,d", 0 },
279*59051Storek 
280*59051Storek { "sra",	0x81382000, 0x00000000, "1,i,d", 0 },
281*59051Storek { "sra",	0x81380000, 0x00000000, "1,2,d", 0 },
282*59051Storek { "srl",        0x81302000, 0x40c80000, "1,i,d", 0 },
283*59051Storek { "srl",	0x81300000, 0x40c80000, "1,2,d", 0 },
284*59051Storek { "sll",        0x81282000, 0x40d00000, "1,i,d", 0 },
285*59051Storek { "sll",	0x81280000, 0x40d00000, "1,2,d", 0 },
286*59051Storek 
287*59051Storek { "mulscc",     0x81202000, 0x40d80000, "1,i,d", 0 },
288*59051Storek { "mulscc",	0x81200000, 0x40d80000, "1,2,d", 0 },
289*59051Storek 
290*59051Storek { "clr",        0x80100000, 0x4e87e01f, "d", 0 }, /* or %g0,%g0,d */
291*59051Storek { "clr",        0x80102000, 0x41efdfff, "d", 0 }, /* or %g0,0,d   */
292*59051Storek 
293*59051Storek { "orncc",      0x80b02000, 0x04048000, "1,i,d", 0 },
294*59051Storek { "orncc",      0x80b02000, 0x04048000, "i,1,d", 0 },
295*59051Storek { "orncc",	0x80b00000, 0x04048000, "1,2,d", 0 },
296*59051Storek 
297*59051Storek { "tst",        0x80900000, 0x7f6fe000, "2", 0 }, /* orcc %g0, rs2, %g0 */
298*59051Storek { "tst",        0x80900000, 0x7f68201f, "1", 0 }, /* orcc rs1, %g0, %g0 */
299*59051Storek { "tst",        0x80902000, 0x7f681fff, "1", 0 }, /* orcc rs1, 0, %g0 */
300*59051Storek 
301*59051Storek { "orcc",       0x80902000, 0x41680000, "1,i,d", 0 },
302*59051Storek { "orcc",	0x80902000, 0x41680000, "i,1,d", 0 },
303*59051Storek { "orcc",	0x80900000, 0x41680000, "1,2,d", 0 },
304*59051Storek { "orn",        0x80302000, 0x41c80000, "1,i,d", 0 },
305*59051Storek { "orn",	0x80302000, 0x41c80000, "i,1,d", 0 },
306*59051Storek { "orn",	0x80300000, 0x41c80000, "1,2,d", 0 },
307*59051Storek 
308*59051Storek { "mov",        0x81800000, 0x4078201f, "1,y", 0 }, /* wr rs1,%g0,%y */
309*59051Storek { "mov",        0x81802000, 0x40781fff, "1,y", 0 }, /* wr rs1,0,%y */
310*59051Storek { "mov",        0x81400000, 0x40b80000, "y,d", 0 }, /* rd %y,d */
311*59051Storek { "mov",        0x81980000, 0x4060201f, "1,t", 0 }, /* wr rs1,%g0,%tbr */
312*59051Storek { "mov",        0x81982000, 0x40601fff, "1,t", 0 }, /* wr rs1,0,%tbr */
313*59051Storek { "mov",        0x81580000, 0x40a00000, "t,d", 0 }, /* rd %tbr,d */
314*59051Storek { "mov",        0x81900000, 0x4068201f, "1,w", 0 }, /* wr rs1,%g0,%wim */
315*59051Storek { "mov",        0x81902000, 0x40681fff, "1,w", 0 }, /* wr rs1,0,%wim */
316*59051Storek { "mov",        0x81500000, 0x40a80000, "w,d", 0 }, /* rd %wim,d */
317*59051Storek { "mov",        0x81880000, 0x4070201f, "1,p", 0 }, /* wr rs1,%g0,%psr */
318*59051Storek { "mov",        0x81882000, 0x40701fff, "1,p", 0 }, /* wr rs1,0,%psr */
319*59051Storek { "mov",        0x81480000, 0x40b00000, "p,d", 0 }, /* rd %psr,d */
320*59051Storek 
321*59051Storek { "mov",        0x80102000, 0x41efc000, "i,d", 0 }, /* or %g0,i,d   */
322*59051Storek { "mov",        0x80100000, 0x41efe000, "2,d", 0 }, /* or %g0,rs2,d */
323*59051Storek 
324*59051Storek { "or",	        0x80102000, 0x40800000, "1,i,d", 0 },
325*59051Storek { "or",		0x80102000, 0x40800000, "i,1,d", 0 },
326*59051Storek { "or",		0x80100000, 0x40800000, "1,2,d", 0 },
327*59051Storek 
328*59051Storek { "andncc",     0x80a82000, 0x41500000, "1,i,d", 0 },
329*59051Storek { "andncc",	0x80a82000, 0x41500000, "i,1,d", 0 },
330*59051Storek { "andncc",	0x80a80000, 0x41500000, "1,2,d", 0 },
331*59051Storek { "andn",       0x80282000, 0x41d00000, "1,i,d", 0 },
332*59051Storek { "andn",	0x80282000, 0x41d00000, "i,1,d", 0 },
333*59051Storek { "andn",	0x80280000, 0x41d00000, "1,2,d", 0 },
334*59051Storek 
335*59051Storek { "cmp",        0x80a02000, 0x7d580000, "1,i", 0 },     /* subcc rs1,i,%g0 */
336*59051Storek { "cmp",	0x80a00000, 0x7d580000, "1,2", 0 },     /* subcc rs1,rs2,%g0 */
337*59051Storek 
338*59051Storek { "subcc",      0x80a02000, 0x41580000, "1,i,d", 0 },
339*59051Storek { "subcc",	0x80a00000, 0x41580000, "1,2,d", 0 },
340*59051Storek { "sub",	0x80202000, 0x41d80000, "1,i,d", 0 },
341*59051Storek { "sub",	0x80200000, 0x41d80000, "1,2,d", 0 },
342*59051Storek { "subx",	0x80602000, 0x41980000, "1,i,d", 0 },
343*59051Storek { "subx",	0x80600000, 0x41980000, "1,2,d", 0 },
344*59051Storek { "subxcc",     0x80e02000, 0x41180000, "1,i,d", 0 },
345*59051Storek { "subxcc",	0x80e00000, 0x41180000, "1,2,d", 0 },
346*59051Storek 
347*59051Storek { "andcc",      0x80882000, 0x41700000, "1,i,d", 0 },
348*59051Storek { "andcc",	0x80882000, 0x41700000, "i,1,d", 0 },
349*59051Storek { "andcc",	0x80880000, 0x41700000, "1,2,d", 0 },
350*59051Storek { "and",        0x80082000, 0x41f00000, "1,i,d", 0 },
351*59051Storek { "and",	0x80082000, 0x41f00000, "i,1,d", 0 },
352*59051Storek { "and",	0x80080000, 0x41f00000, "1,2,d", 0 },
353*59051Storek 
354*59051Storek { "inc",	0x80002001, 0x41f81ffe, "r", 0 },       /* add rs1,1,rsd */
355*59051Storek 
356*59051Storek { "addxcc",     0x80c02000, 0x41380000, "1,i,d", 0 },
357*59051Storek { "addxcc",     0x80c02000, 0x41380000, "i,1,d", 0 },
358*59051Storek { "addxcc",     0x80c00000, 0x41380000, "1,2,d", 0 },
359*59051Storek { "addcc",      0x80802000, 0x41780000, "1,i,d", 0 },
360*59051Storek { "addcc",      0x80802000, 0x41780000, "i,1,d", 0 },
361*59051Storek { "addcc",      0x80800000, 0x41780000, "1,2,d", 0 },
362*59051Storek { "addx",       0x80402000, 0x41b80000, "1,i,d", 0 },
363*59051Storek { "addx",	0x80402000, 0x41b80000, "i,1,d", 0 },
364*59051Storek { "addx",	0x80400000, 0x41b80000, "1,2,d", 0 },
365*59051Storek { "add",        0x80002000, 0x41f80000, "1,i,d", 0 },
366*59051Storek { "add",	0x80002000, 0x41f80000, "i,1,d", 0 },
367*59051Storek { "add",	0x80000000, 0x41f80000, "1,2,d", 0 },
368*59051Storek 
369*59051Storek { "call",       0x9fc00000, 0x4038201f, "1", 1 }, /* jmpl rs1+%g0, %o7 */
370*59051Storek { "call",	0x9fc00000, 0x4038201f, "1,#", 1 },
371*59051Storek { "call",	0x40000000, 0x80000000, "L", 1 },
372*59051Storek { "call",	0x40000000, 0x80000000, "L,#", 1 },
373*59051Storek 
374*59051Storek { "bvc",        0x3e800000, 0xc1400000, ",al", 1 },
375*59051Storek { "bvc",	0x1e800000, 0xc1400000, "l", 1 },
376*59051Storek { "bvs",	0x2e800000, 0xc1400000, ",al", 1 },
377*59051Storek { "bvs",	0x0e800000, 0xc1400000, "l", 1 },
378*59051Storek { "bpos",	0x3c800000, 0xc1400000, ",al", 1 },
379*59051Storek { "bpos",	0x1c800000, 0xc1400000, "l", 1 },
380*59051Storek { "bneg",	0x2c800000, 0xc1400000, ",al", 1 },
381*59051Storek { "bneg",	0x0c800000, 0xc1400000, "l", 1 },
382*59051Storek { "bcc",	0x3a800000, 0xc1400000, ",al", 1 },
383*59051Storek { "bcc",	0x1a800000, 0xc1400000, "l", 1 },
384*59051Storek { "bcs",	0x2a800000, 0xc1400000, ",al", 1 },
385*59051Storek { "bcs",	0x0a800000, 0xc1400000, "l", 1 },
386*59051Storek { "blu",	0x2a800000, 0xc1400000, ",al", 1 },
387*59051Storek { "blu",	0x0a800000, 0xc1400000, "l", 1 }, /* same as bcs */
388*59051Storek { "bgeu",	0x3a800000, 0xc1400000, ",al", 1 },
389*59051Storek { "bgeu",	0x1a800000, 0xc1400000, "l", 1 }, /* same as bcc */
390*59051Storek { "bgu",	0x38800000, 0xc1400000, ",al", 1 },
391*59051Storek { "bgu",	0x18800000, 0xc1400000, "l", 1 },
392*59051Storek { "bleu",	0x28800000, 0xc1400000, ",al", 1 },
393*59051Storek { "bleu",	0x08800000, 0xc1400000, "l", 1 },
394*59051Storek { "bge",	0x36800000, 0xc1400000, ",al", 1 },
395*59051Storek { "bge",	0x16800000, 0xc1400000, "l", 1 },
396*59051Storek { "bl",		0x26800000, 0xc1400000, ",al", 1 },
397*59051Storek { "bl",		0x06800000, 0xc1400000, "l", 1 },
398*59051Storek { "bg",		0x34800000, 0xc1400000, ",al", 1 },
399*59051Storek { "bg",		0x14800000, 0xc1400000, "l", 1 },
400*59051Storek { "ble",	0x24800000, 0xc1400000, ",al", 1 },
401*59051Storek { "ble",	0x04800000, 0xc1400000, "l", 1 },
402*59051Storek { "be",		0x22800000, 0xc1400000, ",al", 1 },
403*59051Storek { "be",		0x02800000, 0xc1400000, "l", 1 },
404*59051Storek { "bne",	0x32800000, 0xc1400000, ",al", 1 },
405*59051Storek { "bne",	0x12800000, 0xc1400000, "l", 1 },
406*59051Storek { "b",		0x30800000, 0xc1400000, ",al", 1 },
407*59051Storek { "b",		0x10800000, 0xc1400000, "l", 1 },
408*59051Storek { "ba",		0x30800000, 0xc1400000, ",al", 1 },
409*59051Storek { "ba",		0x10800000, 0xc1400000, "l", 1 },
410*59051Storek { "bn", 	0x20800000, 0xc1400000, ",al", 1 },
411*59051Storek { "bn",		0x00800000, 0xc1400000, "l", 1 },
412*59051Storek 
413*59051Storek { "jmp",        0x81c00000, 0x7e38201f, "1", 1 }, /* jmpl rs1+%g0,%g0 */
414*59051Storek { "jmp",        0x81c02000, 0x7e3fc000, "i", 1 }, /* jmpl %g0+i,%g0 */
415*59051Storek { "jmp",        0x81c00000, 0x7e382000, "1+2", 1 }, /* jmpl rs1+rs2,%g0 */
416*59051Storek { "jmp",        0x81c02000, 0x7e380000, "1+i", 1 }, /* jmpl rs1+i,%g0 */
417*59051Storek { "jmp",        0x81c02000, 0x7e380000, "i+1", 1 }, /* jmpl i+rs1,%g0 */
418*59051Storek 
419*59051Storek { "nop",	0x01000000, 0xfe3fffff, "", 0 }, /* sethi 0, %g0 */
420*59051Storek 
421*59051Storek { "set",        0x01000000, 0xc0c00000, "Sh,d", 0 },
422*59051Storek 
423*59051Storek { "sethi",      0x01000000, 0xc0c00000, "h,d", 0 },
424*59051Storek 
425*59051Storek { "taddcctv",   0x81102000, 0x40e00000, "1,i,d", 0 },
426*59051Storek { "taddcctv",   0x81100000, 0x40e00000, "1,2,d", 0 },
427*59051Storek { "taddcc",     0x81002000, 0x40f80000, "1,i,d", 0 },
428*59051Storek { "taddcc",     0x81000000, 0x40f80000, "1,2,d", 0 },
429*59051Storek 
430*59051Storek { "tvc",	0x9fd02000, 0x402fc000, "i", 0 }, /* tvc %g0+i */
431*59051Storek { "tvc",        0x9fd02000, 0x40280000, "1+i", 0 },
432*59051Storek { "tvc",	0x9fd00000, 0x40282000, "1+2", 0 },
433*59051Storek { "tvc",        0x9fd00000, 0x4028201f, "1", 0 }, /* tvc rs1+%g0 */
434*59051Storek { "tpos",	0x9dd02000, 0x402fc000, "i", 0 }, /* tpos %g0+i */
435*59051Storek { "tpos",	0x9dd02000, 0x40280000, "1+i", 0 },
436*59051Storek { "tpos",	0x9dd00000, 0x40282000, "1+2", 0 },
437*59051Storek { "tpos",       0x9dd00000, 0x4028201f, "1", 0 }, /* tpos rs1+%g0 */
438*59051Storek { "tcc",        0x9bd02000, 0x402fc000, "i", 0 }, /* tcc %g0+i */
439*59051Storek { "tcc",	0x9bd02000, 0x40280000, "1+i", 0 },
440*59051Storek { "tcc",	0x9bd00000, 0x40282000, "1+2", 0 },
441*59051Storek { "tcc",        0x9bd00000, 0x4028201f, "1", 0 }, /* tcc rs1+%g0 */
442*59051Storek { "tgu",	0x99d02000, 0x402fc000, "i", 0 }, /* tgu %g0+i */
443*59051Storek { "tgu",	0x99d02000, 0x40280000, "1+i", 0 },
444*59051Storek { "tgu",	0x99d00000, 0x40282000, "1+2", 0 },
445*59051Storek { "tgu",        0x99d00000, 0x4028201f, "1", 0 }, /* tgu rs1+%g0 */
446*59051Storek { "tge",	0x97d02000, 0x402fc000, "i", 0 }, /* tge %g0+i */
447*59051Storek { "tge",	0x97d02000, 0x40280000, "1+i", 0 },
448*59051Storek { "tge",	0x97d00000, 0x40282000, "1+2", 0 },
449*59051Storek { "tge",        0x97d00000, 0x4028201f, "1", 0 }, /* tge rs1+%g0 */
450*59051Storek { "tg",		0x95d02000, 0x402fc000, "i", 0 }, /* tg %g0+i */
451*59051Storek { "tg",		0x95d02000, 0x40280000, "1+i", 0 },
452*59051Storek { "tg",		0x95d00000, 0x40282000, "1+2", 0 },
453*59051Storek { "tg",         0x95d00000, 0x4028201f, "1", 0 }, /* tg rs1+%g0 */
454*59051Storek { "tne",        0x93d02000, 0x402fc000, "i", 0 }, /* tne %g0+i */
455*59051Storek { "tne",	0x93d02000, 0x40280000, "1+i", 0 },
456*59051Storek { "tne",	0x93d00000, 0x40282000, "1+2", 0 },
457*59051Storek { "tne",        0x93d00000, 0x4028201f, "1", 0 }, /* tne rs1+%g0 */
458*59051Storek { "tleu",       0x8bd02000, 0x502fc000, "i", 0 }, /* tleu %g0+i */
459*59051Storek { "tleu",	0x8bd02000, 0x50280000, "1+i", 0 },
460*59051Storek { "tleu",	0x8bd00000, 0x50282000, "1+2", 0 },
461*59051Storek { "tleu",       0x8bd00000, 0x5028201f, "1", 0 }, /* tleu rs1+%g0 */
462*59051Storek { "ta",	        0x91d02000, 0x402fc000, "i", 0 }, /* ta %g0+i */
463*59051Storek { "ta",		0x91d02000, 0x402d0000, "1+i", 0 },
464*59051Storek { "ta",		0x91d00000, 0x40282000, "1+2", 0 },
465*59051Storek { "ta",         0x91d00000, 0x4028201f, "1", 0 }, /* ta rs1+%g0 */
466*59051Storek { "tvs",	0x8fd02000, 0x502fc000, "i", 0 }, /* tvs %g0+i */
467*59051Storek { "tvs",	0x8fd02000, 0x50280000, "1+i", 0 },
468*59051Storek { "tvs",	0x8fd00000, 0x50282000, "1+2", 0 },
469*59051Storek { "tvs",        0x8fd00000, 0x5028201f, "1", 0 }, /* tvs rs1+%g0 */
470*59051Storek { "tneg",	0x8dd02000, 0x502fc000, "i", 0 }, /* tneg %g0+i */
471*59051Storek { "tneg",	0x8dd02000, 0x50280000, "1+i", 0 },
472*59051Storek { "tneg",	0x8dd00000, 0x50282000, "1+2", 0 },
473*59051Storek { "tneg",	0x8dd00000, 0x5028201f, "1", 0 }, /* tneg rs1+%g0 */
474*59051Storek { "tcs",        0x8bd02000, 0x502fc000, "i", 0 }, /* tcs %g0+i */
475*59051Storek { "tcs",	0x8bd02000, 0x50280000, "1+i", 0 },
476*59051Storek { "tcs",	0x8bd00000, 0x50282000, "1+2", 0 },
477*59051Storek { "tcs",	0x8bd00000, 0x5028201f, "1", 0 }, /* tcs rs1+%g0 */
478*59051Storek { "tl",		0x87d02000, 0x502fc000, "i", 0 }, /* tl %g0+i */
479*59051Storek { "tl",		0x87d02000, 0x50280000, "1+i", 0 },
480*59051Storek { "tl",		0x87d00000, 0x50282000, "1+2", 0 },
481*59051Storek { "tl",		0x87d00000, 0x5028201f, "1", 0 }, /* tl rs1+%g0 */
482*59051Storek { "tle",	0x85d02000, 0x502fc000, "i", 0 }, /* tle %g0+i */
483*59051Storek { "tle",	0x85d02000, 0x50280000, "1+i", 0 },
484*59051Storek { "tle",	0x85d00000, 0x50282000, "1+2", 0 },
485*59051Storek { "tle",	0x85d00000, 0x5028201f, "1", 0 }, /* tle rs1+%g0 */
486*59051Storek { "te",	        0x83d02000, 0x502fc000, "i", 0 }, /* te %g0+i */
487*59051Storek { "te",		0x83d02000, 0x50280000, "1+i", 0 },
488*59051Storek { "te",		0x83d00000, 0x50282000, "1+2", 0 },
489*59051Storek { "te",         0x83d00000, 0x5028201f, "1", 0 }, /* te rs1+%g0 */
490*59051Storek { "tn",		0x81d02000, 0x502fc000, "i", 0 }, /* tn %g0+i */
491*59051Storek { "tn",	        0x81d02000, 0x50280000, "1+i", 0 },
492*59051Storek { "tn",		0x81d00000, 0x50282000, "1+2", 0 },
493*59051Storek { "tn",         0x81d00000, 0x5028201f, "1", 0 }, /* tn rs1+%g0 */
494*59051Storek 
495*59051Storek { "tsubcc",     0x81080000, 0x40f00000, "1,2,d", 0 },
496*59051Storek { "tsubcc",     0x81082000, 0x40f00000, "1,i,d", 0 },
497*59051Storek { "tsubcctv",   0x80580000, 0x40a00000, "1,2,d", 0 },
498*59051Storek { "tsubcctv",   0x80582000, 0x40a00000, "1,i,d", 0 },
499*59051Storek 
500*59051Storek { "unimp",      0x00000000, 0x00000000, "l", 0 },
501*59051Storek 
502*59051Storek { "iflush",     0x81d80000, 0x40202000, "1+2", 0 },
503*59051Storek { "iflush",     0x81d82000, 0x40200000, "1+i", 0 },
504*59051Storek 
505*59051Storek { "xnorcc",     0x80b80000, 0x41400000, "1,2,d", 0 },
506*59051Storek { "xnorcc",	0x80b82000, 0x41400000, "1,i,d", 0 },
507*59051Storek { "xnorcc",	0x80b82000, 0x41400000, "i,1,d", 0 },
508*59051Storek { "xorcc",      0x80980000, 0x41600000, "1,2,d", 0 },
509*59051Storek { "xorcc",	0x80982000, 0x41600000, "1,i,d", 0 },
510*59051Storek { "xorcc",	0x80982000, 0x41600000, "i,1,d", 0 },
511*59051Storek { "xnor",       0x80380000, 0x41c00000, "1,2,d", 0 },
512*59051Storek { "xnor",	0x80382000, 0x41c00000, "1,i,d", 0 },
513*59051Storek { "xnor",	0x80382000, 0x41c00000, "i,1,d", 0 },
514*59051Storek { "xor",        0x80180000, 0x41e00000, "1,2,d", 0 },
515*59051Storek { "xor",	0x80182000, 0x41e00000, "1,i,d", 0 },
516*59051Storek { "xor",	0x80182000, 0x41e00000, "i,1,d", 0 },
517*59051Storek 
518*59051Storek { "fpop1",      0x81a00000, 0x40580000, "[1+2],d", 0 },
519*59051Storek { "fpop2",      0x81a80000, 0x40500000, "[1+2],d", 0 },
520*59051Storek 
521*59051Storek { "fb",         0x31800000, 0xc0400000, ",al", 1 },
522*59051Storek { "fb",         0x11800000, 0xc0400000, "l", 1 },
523*59051Storek { "fba",        0x31800000, 0xc0400000, ",al", 1 },
524*59051Storek { "fba",        0x11800000, 0xc0400000, "l", 1 },
525*59051Storek { "fbn",        0x21800000, 0xc0400000, ",al", 1 },
526*59051Storek { "fbn",        0x01800000, 0xc0400000, "l", 1 },
527*59051Storek { "fbu",        0x2f800000, 0xc0400000, ",al", 1 },
528*59051Storek { "fbu",        0x0f800000, 0xc0400000, "l", 1 },
529*59051Storek { "fbg",        0x2d800000, 0xc0400000, ",al", 1 },
530*59051Storek { "fbg",        0x0d800000, 0xc0400000, "l", 1 },
531*59051Storek { "fbug",       0x2b800000, 0xc0400000, ",al", 1 },
532*59051Storek { "fbug",       0x0b800000, 0xc0400000, "l", 1 },
533*59051Storek { "fbl",        0x29800000, 0xc0400000, ",al", 1 },
534*59051Storek { "fbl",        0x09800000, 0xc0400000, "l", 1 },
535*59051Storek { "fbul",       0x27800000, 0xc0400000, ",al", 1 },
536*59051Storek { "fbul",       0x07800000, 0xc0400000, "l", 1 },
537*59051Storek { "fblg",       0x25800000, 0xc0400000, ",al", 1 },
538*59051Storek { "fblg",       0x05800000, 0xc0400000, "l", 1 },
539*59051Storek { "fbne",       0x23800000, 0xc0400000, ",al", 1 },
540*59051Storek { "fbne",       0x03800000, 0xc0400000, "l", 1 },
541*59051Storek { "fbe",        0x33800000, 0xc0400000, ",al", 1 },
542*59051Storek { "fbe",        0x13800000, 0xc0400000, "l", 1 },
543*59051Storek { "fbue",       0x35800000, 0xc0400000, ",al", 1 },
544*59051Storek { "fbue",       0x15800000, 0xc0400000, "l", 1 },
545*59051Storek { "fbge",       0x37800000, 0xc0400000, ",al", 1 },
546*59051Storek { "fbge",       0x17800000, 0xc0400000, "l", 1 },
547*59051Storek { "fbuge",      0x39800000, 0xc0400000, ",al", 1 },
548*59051Storek { "fbuge",      0x19800000, 0xc0400000, "l", 1 },
549*59051Storek { "fble",       0x3b800000, 0xc0400000, ",al", 1 },
550*59051Storek { "fble",       0x1b800000, 0xc0400000, "l", 1 },
551*59051Storek { "fbule",      0x3d800000, 0xc0400000, ",al", 1 },
552*59051Storek { "fbule",      0x1d800000, 0xc0400000, "l", 1 },
553*59051Storek { "fbo",        0x3f800000, 0xc0400000, ",al", 1 },
554*59051Storek { "fbo",        0x1f800000, 0xc0400000, "l", 1 },
555*59051Storek 
556*59051Storek { "cba",        0x31c00000, 0xce000000, ",al", 1 },
557*59051Storek { "cba",        0x11c00000, 0xce000000, "l", 1 },
558*59051Storek { "cbn",        0x21c00000, 0xde000000, ",al", 1 },
559*59051Storek { "cbn",        0x01c00000, 0xde000000, "l", 1 },
560*59051Storek { "cb3",        0x2fc00000, 0xc0000000, ",al", 1 },
561*59051Storek { "cb3",        0x0fc00000, 0xc0000000, "l", 1 },
562*59051Storek { "cb2",        0x2dc00000, 0xc0000000, ",al", 1 },
563*59051Storek { "cb2",        0x0dc00000, 0xc0000000, "l", 1 },
564*59051Storek { "cb23",       0x2bc00000, 0xc0000000, ",al", 1 },
565*59051Storek { "cb23",       0x0bc00000, 0xc0000000, "l", 1 },
566*59051Storek { "cb1",        0x29c00000, 0xc0000000, ",al", 1 },
567*59051Storek { "cb1",        0x09c00000, 0xc0000000, "l", 1 },
568*59051Storek { "cb13",       0x27c00000, 0xc0000000, ",al", 1 },
569*59051Storek { "cb13",       0x07c00000, 0xc0000000, "l", 1 },
570*59051Storek { "cb12",       0x25c00000, 0xc0000000, ",al", 1 },
571*59051Storek { "cb12",       0x05c00000, 0xc0000000, "l", 1 },
572*59051Storek { "cb123",      0x23c00000, 0xc0000000, ",al", 1 },
573*59051Storek { "cb123",      0x03c00000, 0xc0000000, "l", 1 },
574*59051Storek { "cb0",        0x33c00000, 0xc0000000, ",al", 1 },
575*59051Storek { "cb0",        0x13c00000, 0xc0000000, "l", 1 },
576*59051Storek { "cb03",       0x35c00000, 0xc0000000, ",al", 1 },
577*59051Storek { "cb03",       0x15c00000, 0xc0000000, "l", 1 },
578*59051Storek { "cb02",       0x37c00000, 0xc0000000, ",al", 1 },
579*59051Storek { "cb02",       0x17c00000, 0xc0000000, "l", 1 },
580*59051Storek { "cb023",      0x39c00000, 0xc0000000, ",al", 1 },
581*59051Storek { "cb023",      0x19c00000, 0xc0000000, "l", 1 },
582*59051Storek { "cb013",      0x3dc00000, 0xc0000000, ",al", 1 },
583*59051Storek { "cb013",      0x1dc00000, 0xc0000000, "l", 1 },
584*59051Storek { "cb012",      0x3fc00000, 0xc0000000, ",al", 1 },
585*59051Storek { "cb012",      0x1fc00000, 0xc0000000, "l", 1 },
586*59051Storek 
587*59051Storek { "fstoi",      0x81a01a20, 0x400025c0, "f,g", 0 },
588*59051Storek { "fdtoi",      0x81a01a40, 0x400025a0, "f,g", 0 },
589*59051Storek { "fxtoi",      0x81a01a60, 0x40002580, "f,g", 0 },
590*59051Storek 
591*59051Storek { "fitox",      0x81a01980, 0x40002660, "f,g", 0 },
592*59051Storek { "fitod",      0x81a01900, 0x400026e0, "f,g", 0 },
593*59051Storek { "fitos",      0x81a01880, 0x40002660, "f,g", 0 },
594*59051Storek 
595*59051Storek { "fstod",      0x81a01920, 0x400026c0, "f,g", 0 },
596*59051Storek { "fstox",      0x81a019a0, 0x40002640, "f,g", 0 },
597*59051Storek { "fdtos",      0x81a018c0, 0x40002720, "f,g", 0 },
598*59051Storek { "fdtox",      0x81a019c0, 0x40002620, "f,g", 0 },
599*59051Storek { "fxtos",      0x81a018e0, 0x40002700, "f,g", 0 },
600*59051Storek { "fxtod",      0x81a01960, 0x40002680, "f,g", 0 },
601*59051Storek 
602*59051Storek { "fdivx",      0x81a009e0, 0x40083600, "e,f,g", 0 },
603*59051Storek { "fdivd",      0x81a009c0, 0x40003620, "e,f,g", 0 },
604*59051Storek { "fdivs",      0x81a009a0, 0x40003640, "e,f,g", 0 },
605*59051Storek { "fmuls",      0x81a00920, 0x400036c0, "e,f,g", 0 },
606*59051Storek { "fmuld",      0x81a00940, 0x400036a0, "e,f,g", 0 },
607*59051Storek { "fmulx",      0x81a00960, 0x40003680, "e,f,g", 0 },
608*59051Storek 
609*59051Storek { "fsqrts",     0x81a00520, 0x40003ac0, "f,g", 0 },
610*59051Storek { "fsqrtd",     0x81a00540, 0x40003aa8, "f,g", 0 },
611*59051Storek { "fsqrtx",     0x81a00560, 0x40003a80, "f,g", 0 },
612*59051Storek 
613*59051Storek { "fabss",      0x81a00120, 0x40003ec0, "f,g", 0 },
614*59051Storek { "fnegs",      0x81a000a0, 0x40003f40, "f,g", 0 },
615*59051Storek { "fmovs",      0x81a00020, 0x40003fc0, "f,g", 0 },
616*59051Storek 
617*59051Storek { "fsubx",      0x81a008e0, 0x40003700, "e,f,g", 0 },
618*59051Storek { "fsubd",      0x81a008c0, 0x40003720, "e,f,g", 0 },
619*59051Storek { "fsubs",      0x81a008a0, 0x40003740, "e,f,g", 0 },
620*59051Storek { "faddx",      0x81a00860, 0x40003780, "e,f,g", 0 },
621*59051Storek { "faddd",      0x81a00840, 0x400037a0, "e,f,g", 0 },
622*59051Storek { "fadds",      0x81a00820, 0x400037c0, "e,f,g", 0 },
623*59051Storek 
624*59051Storek { "fcmpex",     0x81a80ae0, 0x40003500, "e,f", 0 },
625*59051Storek { "fcmped",     0x81a80ac0, 0x40003520, "e,f", 0 },
626*59051Storek { "fcmpes",     0x81a80aa0, 0x40003540, "e,f", 0 },
627*59051Storek { "fcmpx",      0x81a80a60, 0x40003580, "e,f", 0 },
628*59051Storek { "fcmpd",      0x81a80a40, 0x400035a0, "e,f", 0 },
629*59051Storek { "fcmps",      0x81a80a20, 0x400035c0, "e,f", 0 },
630*59051Storek 
631*59051Storek { "cpop1",      0x81b00000, 0x40480000, "[1+2],d", 0 },
632*59051Storek { "cpop2",      0x81b80000, 0x40400000, "[1+2],d", 0 },
633*59051Storek };
634*59051Storek 
635*59051Storek #define NUMOPCODES ((sizeof sparc_opcodes)/(sizeof sparc_opcodes[0]))
636*59051Storek 
637