annotate agent/src/share/classes/sun/jvm/hotspot/asm/sparc/SPARCV9Disassembler.java @ 1913:3b2dea75431e

6984311: JSR 292 needs optional bootstrap method parameters Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands. Reviewed-by: twisti
author jrose
date Sat, 30 Oct 2010 13:08:23 -0700
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.asm.sparc;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import sun.jvm.hotspot.asm.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 // Please refer to "The SPARC Architecture Manual - Version 9"
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 public class SPARCV9Disassembler extends SPARCDisassembler
a61af66fc99e Initial load
duke
parents:
diff changeset
32 implements /* imports */ SPARCV9Opcodes {
a61af66fc99e Initial load
duke
parents:
diff changeset
33 public SPARCV9Disassembler(long startPc, byte[] code, SPARCV9InstructionFactory factory) {
a61af66fc99e Initial load
duke
parents:
diff changeset
34 super(startPc, code, factory);
a61af66fc99e Initial load
duke
parents:
diff changeset
35 }
a61af66fc99e Initial load
duke
parents:
diff changeset
36
a61af66fc99e Initial load
duke
parents:
diff changeset
37 public SPARCV9Disassembler(long startPc, byte[] code) {
a61af66fc99e Initial load
duke
parents:
diff changeset
38 this(startPc, code, new SPARCV9InstructionFactoryImpl());
a61af66fc99e Initial load
duke
parents:
diff changeset
39 }
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 // decoders for format 2 instructions
a61af66fc99e Initial load
duke
parents:
diff changeset
42 private static InstructionDecoder format2Decoders[] = {
a61af66fc99e Initial load
duke
parents:
diff changeset
43 new UnimpDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
44 new V9IntegerBranchDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
45 new IntegerBranchDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
46 new V9IntRegisterBranchDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
47 new SethiDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
48 new V9FloatBranchDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
49 new FloatBranchDecoder(),
a61af66fc99e Initial load
duke
parents:
diff changeset
50 illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
51 };
a61af66fc99e Initial load
duke
parents:
diff changeset
52
a61af66fc99e Initial load
duke
parents:
diff changeset
53 protected InstructionDecoder getFormat2Decoder(int op2) {
a61af66fc99e Initial load
duke
parents:
diff changeset
54 return format2Decoders[op2];
a61af66fc99e Initial load
duke
parents:
diff changeset
55 }
a61af66fc99e Initial load
duke
parents:
diff changeset
56
a61af66fc99e Initial load
duke
parents:
diff changeset
57 // op3 opcode table for op=3 (FORMAT_3) instructions - (memory instructions)
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // E.2 Tables - Page 275 - Table 33.
a61af66fc99e Initial load
duke
parents:
diff changeset
59 private static final InstructionDecoder format3Decoders[][] = {
a61af66fc99e Initial load
duke
parents:
diff changeset
60 {
a61af66fc99e Initial load
duke
parents:
diff changeset
61 new LoadDecoder(LDUW, "ld" /* lduw */, RTLDT_UNSIGNED_WORD), new V9AlternateSpaceLoadDecoder(LDUWA, "lduwa", RTLDT_UNSIGNED_WORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
62 new LoadDecoder(LDF,"ld", RTLDT_FL_SINGLE), new V9AlternateSpaceLoadDecoder(LDFA, "lda", RTLDT_FL_SINGLE)
a61af66fc99e Initial load
duke
parents:
diff changeset
63 },
a61af66fc99e Initial load
duke
parents:
diff changeset
64 {
a61af66fc99e Initial load
duke
parents:
diff changeset
65 new LoadDecoder(LDUB, "ldub", RTLDT_UNSIGNED_BYTE), new V9AlternateSpaceLoadDecoder(LDUBA, "lduba", RTLDT_UNSIGNED_BYTE),
a61af66fc99e Initial load
duke
parents:
diff changeset
66 new V9SpecialLoadDecoder(LDFSR), illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
67 },
a61af66fc99e Initial load
duke
parents:
diff changeset
68 {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 new LoadDecoder(LDUH, "lduh", RTLDT_UNSIGNED_HALF), new V9AlternateSpaceLoadDecoder(LDUHA, "lduha", RTLDT_UNSIGNED_HALF),
a61af66fc99e Initial load
duke
parents:
diff changeset
70 new LoadDecoder(LDQF, "ldq", RTLDT_FL_QUAD), new V9AlternateSpaceLoadDecoder(LDQFA, "ldqa", RTLDT_FL_QUAD)
a61af66fc99e Initial load
duke
parents:
diff changeset
71 },
a61af66fc99e Initial load
duke
parents:
diff changeset
72 {
a61af66fc99e Initial load
duke
parents:
diff changeset
73 new LoadDecoder(LDD, "ldd", RTLDT_UNSIGNED_DWORD), new V9AlternateSpaceLoadDecoder(LDDA, "ldda", RTLDT_UNSIGNED_DWORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
74 new LoadDecoder(LDDF, "ldd", RTLDT_FL_DOUBLE), new LoadDecoder(LDDFA, "ldda", RTLDT_FL_DOUBLE)
a61af66fc99e Initial load
duke
parents:
diff changeset
75 },
a61af66fc99e Initial load
duke
parents:
diff changeset
76 {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 new StoreDecoder(STW, "st" /* stw, stuw, stsw */, RTLDT_UNSIGNED_WORD), new V9AlternateSpaceStoreDecoder(STWA, "stwa", RTLDT_UNSIGNED_WORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
78 new StoreDecoder(STF, "st", RTLDT_FL_SINGLE), new StoreDecoder(STFA, "st", RTLDT_FL_SINGLE),
a61af66fc99e Initial load
duke
parents:
diff changeset
79 },
a61af66fc99e Initial load
duke
parents:
diff changeset
80 {
a61af66fc99e Initial load
duke
parents:
diff changeset
81 new StoreDecoder(STB, "stb", RTLDT_UNSIGNED_BYTE), new V9AlternateSpaceStoreDecoder(STBA, "stba", RTLDT_UNSIGNED_BYTE),
a61af66fc99e Initial load
duke
parents:
diff changeset
82 new V9SpecialStoreDecoder(STFSR), illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
83 },
a61af66fc99e Initial load
duke
parents:
diff changeset
84 {
a61af66fc99e Initial load
duke
parents:
diff changeset
85 new StoreDecoder(STH, "sth", RTLDT_UNSIGNED_HALF), new V9AlternateSpaceStoreDecoder(STHA, "stha", RTLDT_UNSIGNED_HALF),
a61af66fc99e Initial load
duke
parents:
diff changeset
86 new StoreDecoder(STQF, "stq", RTLDT_FL_QUAD), new V9AlternateSpaceStoreDecoder(STQFA, "stqa", RTLDT_FL_QUAD),
a61af66fc99e Initial load
duke
parents:
diff changeset
87 },
a61af66fc99e Initial load
duke
parents:
diff changeset
88 {
a61af66fc99e Initial load
duke
parents:
diff changeset
89 new StoreDecoder(STD, "std", RTLDT_UNSIGNED_DWORD), new V9AlternateSpaceStoreDecoder(STDA, "stda", RTLDT_UNSIGNED_DWORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
90 new StoreDecoder(STDF, "std", RTLDT_FL_DOUBLE), new V9AlternateSpaceStoreDecoder(STDFA, "stda", RTLDT_FL_DOUBLE)
a61af66fc99e Initial load
duke
parents:
diff changeset
91 },
a61af66fc99e Initial load
duke
parents:
diff changeset
92 {
a61af66fc99e Initial load
duke
parents:
diff changeset
93 new LoadDecoder(LDSW, "ldsw", RTLDT_SIGNED_WORD), new V9AlternateSpaceLoadDecoder(LDSWA, "ldswa", RTLDT_SIGNED_WORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
94 illegalDecoder, illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
95 },
a61af66fc99e Initial load
duke
parents:
diff changeset
96 {
a61af66fc99e Initial load
duke
parents:
diff changeset
97 new LoadDecoder(LDSB, "ldsb", RTLDT_SIGNED_BYTE), new V9AlternateSpaceLoadDecoder(LDSBA, "ldsba", RTLDT_UNSIGNED_BYTE),
a61af66fc99e Initial load
duke
parents:
diff changeset
98 illegalDecoder, illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
99 },
a61af66fc99e Initial load
duke
parents:
diff changeset
100 {
a61af66fc99e Initial load
duke
parents:
diff changeset
101 new LoadDecoder(LDSH, "ldsh", RTLDT_SIGNED_HALF), new V9AlternateSpaceLoadDecoder(LDSHA, "ldsha", RTLDT_UNSIGNED_HALF),
a61af66fc99e Initial load
duke
parents:
diff changeset
102 illegalDecoder, illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
103 },
a61af66fc99e Initial load
duke
parents:
diff changeset
104 {
a61af66fc99e Initial load
duke
parents:
diff changeset
105 new LoadDecoder(LDX, "ldx", RTLDT_UNSIGNED_DWORD), new V9AlternateSpaceLoadDecoder(LDXA, "ldxa", RTLDT_UNSIGNED_DWORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
106 illegalDecoder, illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
107 },
a61af66fc99e Initial load
duke
parents:
diff changeset
108 {
a61af66fc99e Initial load
duke
parents:
diff changeset
109 illegalDecoder, illegalDecoder,
a61af66fc99e Initial load
duke
parents:
diff changeset
110 illegalDecoder, new V9CasDecoder(CASA, "casa", RTLDT_UNSIGNED_WORD)
a61af66fc99e Initial load
duke
parents:
diff changeset
111 },
a61af66fc99e Initial load
duke
parents:
diff changeset
112 {
a61af66fc99e Initial load
duke
parents:
diff changeset
113 new LdstubDecoder(LDSTUB, "ldstub", RTLDT_UNSIGNED_BYTE), new V9AlternateSpaceLdstubDecoder(LDSTUBA, "ldstuba", RTLDT_UNSIGNED_BYTE),
a61af66fc99e Initial load
duke
parents:
diff changeset
114 new V9PrefetchDecoder(), new V9AlternateSpacePrefetchDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
115 },
a61af66fc99e Initial load
duke
parents:
diff changeset
116 {
a61af66fc99e Initial load
duke
parents:
diff changeset
117 new StoreDecoder(STX, "stx", RTLDT_UNSIGNED_DWORD), new V9AlternateSpaceStoreDecoder(STXA, "stxa", RTLDT_UNSIGNED_DWORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
118 illegalDecoder, new V9CasDecoder(CASXA, "casxa", RTLDT_UNSIGNED_DWORD)
a61af66fc99e Initial load
duke
parents:
diff changeset
119 },
a61af66fc99e Initial load
duke
parents:
diff changeset
120 {
a61af66fc99e Initial load
duke
parents:
diff changeset
121 new SwapDecoder(SWAP, "swap", RTLDT_UNSIGNED_WORD), new V9AlternateSpaceSwapDecoder(SWAPA, "swapa", RTLDT_UNSIGNED_WORD),
a61af66fc99e Initial load
duke
parents:
diff changeset
122 illegalDecoder, illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
123 },
a61af66fc99e Initial load
duke
parents:
diff changeset
124 };
a61af66fc99e Initial load
duke
parents:
diff changeset
125
a61af66fc99e Initial load
duke
parents:
diff changeset
126 protected InstructionDecoder getFormat3Decoder(int row, int column) {
a61af66fc99e Initial load
duke
parents:
diff changeset
127 return format3Decoders[row][column];
a61af66fc99e Initial load
duke
parents:
diff changeset
128 }
a61af66fc99e Initial load
duke
parents:
diff changeset
129
a61af66fc99e Initial load
duke
parents:
diff changeset
130 // op3 decoder table for op=2 (FORMAT_3A) instructions
a61af66fc99e Initial load
duke
parents:
diff changeset
131 // E Opcode Maps - Page 274 - Table 32
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 protected static final InstructionDecoder format3ADecoders[][] = {
a61af66fc99e Initial load
duke
parents:
diff changeset
134 {
a61af66fc99e Initial load
duke
parents:
diff changeset
135 new ArithmeticDecoder(ADD, "add", RTLOP_ADD), new ArithmeticDecoder(ADDcc, "addcc", RTLOP_ADD),
a61af66fc99e Initial load
duke
parents:
diff changeset
136 new ArithmeticDecoder(TADDcc, "taddcc", RTLOP_ADD), new V9WriteDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
137 },
a61af66fc99e Initial load
duke
parents:
diff changeset
138 {
a61af66fc99e Initial load
duke
parents:
diff changeset
139 new LogicDecoder(AND, "and", RTLOP_AND), new LogicDecoder(ANDcc, "andcc", RTLOP_AND),
a61af66fc99e Initial load
duke
parents:
diff changeset
140 new ArithmeticDecoder(TSUBcc, "tsubcc", RTLOP_ADD), new V9SavedRestoredDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
141 },
a61af66fc99e Initial load
duke
parents:
diff changeset
142 {
a61af66fc99e Initial load
duke
parents:
diff changeset
143 new LogicDecoder(OR, "or", RTLOP_OR), new LogicDecoder(ORcc, "orcc", RTLOP_OR),
a61af66fc99e Initial load
duke
parents:
diff changeset
144 new ArithmeticDecoder(TADDccTV, "taddcctv", RTLOP_ADD), new V9WrprDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
145 },
a61af66fc99e Initial load
duke
parents:
diff changeset
146 {
a61af66fc99e Initial load
duke
parents:
diff changeset
147 new LogicDecoder(XOR, "xor", RTLOP_XOR), new LogicDecoder(XORcc, "xorcc", RTLOP_XOR),
a61af66fc99e Initial load
duke
parents:
diff changeset
148 new ArithmeticDecoder(TSUBccTV, "tsubcctv", RTLOP_SUB), illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
149 },
a61af66fc99e Initial load
duke
parents:
diff changeset
150 {
a61af66fc99e Initial load
duke
parents:
diff changeset
151 new ArithmeticDecoder(SUB, "sub", RTLOP_SUB), new ArithmeticDecoder(SUBcc, "subcc", RTLOP_SUB),
a61af66fc99e Initial load
duke
parents:
diff changeset
152 new ArithmeticDecoder(MULScc, "mulscc", RTLOP_SMUL), new V9FPop1Decoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
153 },
a61af66fc99e Initial load
duke
parents:
diff changeset
154 {
a61af66fc99e Initial load
duke
parents:
diff changeset
155 new LogicDecoder(ANDN, "andn", RTLOP_NAND), new LogicDecoder(ANDNcc, "andncc", RTLOP_NAND),
a61af66fc99e Initial load
duke
parents:
diff changeset
156 new V9ShiftDecoder(SLL, "sll", RTLOP_SLL), new V9FPop2Decoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
157 },
a61af66fc99e Initial load
duke
parents:
diff changeset
158 {
a61af66fc99e Initial load
duke
parents:
diff changeset
159 new LogicDecoder(ORN, "orn", RTLOP_NOR), new LogicDecoder(ORNcc, "orncc", RTLOP_NOR),
a61af66fc99e Initial load
duke
parents:
diff changeset
160 new V9ShiftDecoder(SRL, "srl", RTLOP_SRL), new CoprocessorDecoder(IMPDEP1)
a61af66fc99e Initial load
duke
parents:
diff changeset
161 },
a61af66fc99e Initial load
duke
parents:
diff changeset
162 {
a61af66fc99e Initial load
duke
parents:
diff changeset
163 new LogicDecoder(XNOR, "xnor", RTLOP_XNOR), new LogicDecoder(XNORcc, "xnorcc", RTLOP_XNOR),
a61af66fc99e Initial load
duke
parents:
diff changeset
164 new V9ShiftDecoder(SRA, "sra", RTLOP_SRA), new CoprocessorDecoder(IMPDEP2)
a61af66fc99e Initial load
duke
parents:
diff changeset
165 },
a61af66fc99e Initial load
duke
parents:
diff changeset
166 {
a61af66fc99e Initial load
duke
parents:
diff changeset
167 new ArithmeticDecoder(ADDC, "addc", RTLOP_ADDC), new ArithmeticDecoder(ADDCcc, "addccc", RTLOP_ADDC),
a61af66fc99e Initial load
duke
parents:
diff changeset
168 new V9ReadDecoder(), new JmplDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
169 },
a61af66fc99e Initial load
duke
parents:
diff changeset
170 {
a61af66fc99e Initial load
duke
parents:
diff changeset
171 new ArithmeticDecoder(MULX, "mulx", RTLOP_UMUL), illegalDecoder,
a61af66fc99e Initial load
duke
parents:
diff changeset
172 illegalDecoder, new RettDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
173 },
a61af66fc99e Initial load
duke
parents:
diff changeset
174 {
a61af66fc99e Initial load
duke
parents:
diff changeset
175 new ArithmeticDecoder(UMUL, "umul", RTLOP_UMUL), new ArithmeticDecoder(UMULcc, "umulcc", RTLOP_UMUL),
a61af66fc99e Initial load
duke
parents:
diff changeset
176 new V9RdprDecoder(), new TrapDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
177 },
a61af66fc99e Initial load
duke
parents:
diff changeset
178 {
a61af66fc99e Initial load
duke
parents:
diff changeset
179 new ArithmeticDecoder(SMUL, "smul", RTLOP_SMUL), new ArithmeticDecoder(SMULcc, "smulcc", RTLOP_SMUL),
a61af66fc99e Initial load
duke
parents:
diff changeset
180 new V9FlushwDecoder(), new FlushDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
181 },
a61af66fc99e Initial load
duke
parents:
diff changeset
182 {
a61af66fc99e Initial load
duke
parents:
diff changeset
183 new ArithmeticDecoder(SUBC, "subc", RTLOP_SUBC), new ArithmeticDecoder(SUBCcc, "subccc", RTLOP_SUBC),
a61af66fc99e Initial load
duke
parents:
diff changeset
184 new V9MOVccDecoder(), new SaveDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
185 },
a61af66fc99e Initial load
duke
parents:
diff changeset
186 {
a61af66fc99e Initial load
duke
parents:
diff changeset
187 new ArithmeticDecoder(UDIVX, "udivx", RTLOP_UDIV), illegalDecoder,
a61af66fc99e Initial load
duke
parents:
diff changeset
188 new ArithmeticDecoder(SDIVX, "sdivx", RTLOP_SDIV), new RestoreDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
189 },
a61af66fc99e Initial load
duke
parents:
diff changeset
190 {
a61af66fc99e Initial load
duke
parents:
diff changeset
191 new ArithmeticDecoder(UDIV, "udiv", RTLOP_UDIV), new ArithmeticDecoder(UDIVcc, "udivcc", RTLOP_UDIV),
a61af66fc99e Initial load
duke
parents:
diff changeset
192 new V9PopcDecoder(), new V9DoneRetryDecoder()
a61af66fc99e Initial load
duke
parents:
diff changeset
193 },
a61af66fc99e Initial load
duke
parents:
diff changeset
194 {
a61af66fc99e Initial load
duke
parents:
diff changeset
195 new ArithmeticDecoder(SDIV, "sdiv", RTLOP_SDIV), new ArithmeticDecoder(SDIVcc, "sdivcc", RTLOP_SDIV),
a61af66fc99e Initial load
duke
parents:
diff changeset
196 new V9MOVrDecoder(), illegalDecoder
a61af66fc99e Initial load
duke
parents:
diff changeset
197 }
a61af66fc99e Initial load
duke
parents:
diff changeset
198 };
a61af66fc99e Initial load
duke
parents:
diff changeset
199
a61af66fc99e Initial load
duke
parents:
diff changeset
200 protected InstructionDecoder getFormat3ADecoder(int row, int column) {
a61af66fc99e Initial load
duke
parents:
diff changeset
201 return format3ADecoders[row][column];
a61af66fc99e Initial load
duke
parents:
diff changeset
202 }
a61af66fc99e Initial load
duke
parents:
diff changeset
203 }