/src/capstonenext/arch/ARC/ARCGenDisassemblerTables.inc
Line | Count | Source (jump to first uncovered line) |
1 | | /* Capstone Disassembly Engine, https://www.capstone-engine.org */ |
2 | | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2022, */ |
3 | | /* Rot127 <unisono@quyllur.org> 2022-2024 */ |
4 | | /* Automatically generated file by Capstone's LLVM TableGen Disassembler Backend. */ |
5 | | |
6 | | /* LLVM-commit: <commit> */ |
7 | | /* LLVM-tag: <tag> */ |
8 | | |
9 | | /* Do not edit. */ |
10 | | |
11 | | /* Capstone's LLVM TableGen Backends: */ |
12 | | /* https://github.com/capstone-engine/llvm-capstone */ |
13 | | |
14 | | #include "../../MCInst.h" |
15 | | #include "../../cs_priv.h" |
16 | | #include "../../LEB128.h" |
17 | | |
18 | | // Helper function for extracting fields from encoded instructions. |
19 | | #define FieldFromInstruction(fname, InsnType) \ |
20 | 0 | static InsnType fname(InsnType insn, unsigned startBit, unsigned numBits) \ |
21 | 0 | { \ |
22 | 0 | InsnType fieldMask; \ |
23 | 0 | if (numBits == sizeof(InsnType) * 8) \ |
24 | 0 | fieldMask = (InsnType)(-1LL); \ |
25 | 0 | else \ |
26 | 0 | fieldMask = (((InsnType)1 << numBits) - 1) << startBit; \ |
27 | 0 | return (insn & fieldMask) >> startBit; \ |
28 | 0 | } Unexecuted instantiation: ARCDisassembler.c:fieldFromInstruction_8 Unexecuted instantiation: ARCDisassembler.c:fieldFromInstruction_4 Unexecuted instantiation: ARCDisassembler.c:fieldFromInstruction_2 |
29 | | |
30 | 0 | static bool Check(DecodeStatus *Out, const DecodeStatus In) { |
31 | 0 | *Out = (DecodeStatus) (*Out & In); |
32 | 0 | return *Out != MCDisassembler_Fail; |
33 | 0 | } |
34 | | |
35 | | static const uint8_t DecoderTable16[] = { |
36 | | /* 0 */ MCD_OPC_ExtractField, 11, 5, // Inst{15-11} ... |
37 | | /* 3 */ MCD_OPC_FilterValue, 8, 21, 0, 0, // Skip to: 29 |
38 | | /* 8 */ MCD_OPC_ExtractField, 2, 1, // Inst{2} ... |
39 | | /* 11 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 20 |
40 | | /* 16 */ MCD_OPC_Decode, 247, 2, 0, // Opcode: COMPACT_MOV_S_hreg |
41 | | /* 20 */ MCD_OPC_FilterValue, 1, 209, 4, 0, // Skip to: 1258 |
42 | | /* 25 */ MCD_OPC_Decode, 246, 2, 1, // Opcode: COMPACT_LD_S |
43 | | /* 29 */ MCD_OPC_FilterValue, 9, 38, 0, 0, // Skip to: 72 |
44 | | /* 34 */ MCD_OPC_ExtractField, 3, 1, // Inst{3} ... |
45 | | /* 37 */ MCD_OPC_FilterValue, 0, 21, 0, 0, // Skip to: 63 |
46 | | /* 42 */ MCD_OPC_ExtractField, 4, 1, // Inst{4} ... |
47 | | /* 45 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 54 |
48 | | /* 50 */ MCD_OPC_Decode, 228, 3, 2, // Opcode: LD_S_AS_rrr |
49 | | /* 54 */ MCD_OPC_FilterValue, 1, 175, 4, 0, // Skip to: 1258 |
50 | | /* 59 */ MCD_OPC_Decode, 184, 5, 2, // Opcode: SUB_S_rrr |
51 | | /* 63 */ MCD_OPC_FilterValue, 1, 166, 4, 0, // Skip to: 1258 |
52 | | /* 68 */ MCD_OPC_Decode, 167, 2, 3, // Opcode: ADD_S_rru6 |
53 | | /* 72 */ MCD_OPC_FilterValue, 10, 38, 0, 0, // Skip to: 115 |
54 | | /* 77 */ MCD_OPC_ExtractField, 3, 1, // Inst{3} ... |
55 | | /* 80 */ MCD_OPC_FilterValue, 0, 21, 0, 0, // Skip to: 106 |
56 | | /* 85 */ MCD_OPC_ExtractField, 4, 1, // Inst{4} ... |
57 | | /* 88 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 97 |
58 | | /* 93 */ MCD_OPC_Decode, 231, 3, 4, // Opcode: LD_S_s11 |
59 | | /* 97 */ MCD_OPC_FilterValue, 1, 132, 4, 0, // Skip to: 1258 |
60 | | /* 102 */ MCD_OPC_Decode, 151, 5, 4, // Opcode: ST_S_s11 |
61 | | /* 106 */ MCD_OPC_FilterValue, 1, 123, 4, 0, // Skip to: 1258 |
62 | | /* 111 */ MCD_OPC_Decode, 220, 3, 5, // Opcode: LDI_S_u7 |
63 | | /* 115 */ MCD_OPC_FilterValue, 11, 21, 0, 0, // Skip to: 141 |
64 | | /* 120 */ MCD_OPC_ExtractField, 10, 1, // Inst{10} ... |
65 | | /* 123 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 132 |
66 | | /* 128 */ MCD_OPC_Decode, 171, 3, 6, // Opcode: JLI_S |
67 | | /* 132 */ MCD_OPC_FilterValue, 1, 97, 4, 0, // Skip to: 1258 |
68 | | /* 137 */ MCD_OPC_Decode, 249, 2, 6, // Opcode: EI_S |
69 | | /* 141 */ MCD_OPC_FilterValue, 12, 39, 0, 0, // Skip to: 185 |
70 | | /* 146 */ MCD_OPC_ExtractField, 3, 2, // Inst{4-3} ... |
71 | | /* 149 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 158 |
72 | | /* 154 */ MCD_OPC_Decode, 230, 3, 2, // Opcode: LD_S_rrr |
73 | | /* 158 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 167 |
74 | | /* 163 */ MCD_OPC_Decode, 183, 3, 2, // Opcode: LDB_S_rrr |
75 | | /* 167 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 176 |
76 | | /* 172 */ MCD_OPC_Decode, 206, 3, 2, // Opcode: LDH_S_rrr |
77 | | /* 176 */ MCD_OPC_FilterValue, 3, 53, 4, 0, // Skip to: 1258 |
78 | | /* 181 */ MCD_OPC_Decode, 166, 2, 2, // Opcode: ADD_S_rrr |
79 | | /* 185 */ MCD_OPC_FilterValue, 13, 39, 0, 0, // Skip to: 229 |
80 | | /* 190 */ MCD_OPC_ExtractField, 3, 2, // Inst{4-3} ... |
81 | | /* 193 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 202 |
82 | | /* 198 */ MCD_OPC_Decode, 169, 2, 7, // Opcode: ADD_S_ru3 |
83 | | /* 202 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 211 |
84 | | /* 207 */ MCD_OPC_Decode, 185, 5, 7, // Opcode: SUB_S_ru3 |
85 | | /* 211 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 220 |
86 | | /* 216 */ MCD_OPC_Decode, 191, 2, 7, // Opcode: ASL_S_ru3 |
87 | | /* 220 */ MCD_OPC_FilterValue, 3, 9, 4, 0, // Skip to: 1258 |
88 | | /* 225 */ MCD_OPC_Decode, 203, 2, 7, // Opcode: ASR_S_ru3 |
89 | | /* 229 */ MCD_OPC_FilterValue, 14, 75, 0, 0, // Skip to: 309 |
90 | | /* 234 */ MCD_OPC_ExtractField, 2, 3, // Inst{4-2} ... |
91 | | /* 237 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 246 |
92 | | /* 242 */ MCD_OPC_Decode, 165, 2, 8, // Opcode: ADD_S_rr |
93 | | /* 246 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 255 |
94 | | /* 251 */ MCD_OPC_Decode, 168, 2, 9, // Opcode: ADD_S_rs3 |
95 | | /* 255 */ MCD_OPC_FilterValue, 3, 22, 0, 0, // Skip to: 282 |
96 | | /* 260 */ MCD_OPC_CheckField, 5, 3, 6, 11, 0, 0, // Skip to: 278 |
97 | | /* 267 */ MCD_OPC_CheckField, 0, 2, 3, 4, 0, 0, // Skip to: 278 |
98 | | /* 274 */ MCD_OPC_Decode, 144, 4, 10, // Opcode: MOV_S_s3 |
99 | | /* 278 */ MCD_OPC_Decode, 143, 4, 9, // Opcode: MOV_S_rs3 |
100 | | /* 282 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 291 |
101 | | /* 287 */ MCD_OPC_Decode, 240, 2, 8, // Opcode: CMP_S_rr |
102 | | /* 291 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 300 |
103 | | /* 296 */ MCD_OPC_Decode, 241, 2, 9, // Opcode: CMP_S_rs3 |
104 | | /* 300 */ MCD_OPC_FilterValue, 7, 185, 3, 0, // Skip to: 1258 |
105 | | /* 305 */ MCD_OPC_Decode, 142, 4, 8, // Opcode: MOV_S_NE_rr |
106 | | /* 309 */ MCD_OPC_FilterValue, 15, 121, 1, 0, // Skip to: 691 |
107 | | /* 314 */ MCD_OPC_ExtractField, 0, 5, // Inst{4-0} ... |
108 | | /* 317 */ MCD_OPC_FilterValue, 0, 119, 0, 0, // Skip to: 441 |
109 | | /* 322 */ MCD_OPC_ExtractField, 5, 3, // Inst{7-5} ... |
110 | | /* 325 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 334 |
111 | | /* 330 */ MCD_OPC_Decode, 144, 3, 11, // Opcode: GEN_J_S |
112 | | /* 334 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 343 |
113 | | /* 339 */ MCD_OPC_Decode, 145, 3, 11, // Opcode: GEN_J_S_D |
114 | | /* 343 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 352 |
115 | | /* 348 */ MCD_OPC_Decode, 141, 3, 11, // Opcode: GEN_JL_S |
116 | | /* 352 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 361 |
117 | | /* 357 */ MCD_OPC_Decode, 142, 3, 11, // Opcode: GEN_JL_S_D |
118 | | /* 361 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 370 |
119 | | /* 366 */ MCD_OPC_Decode, 159, 3, 11, // Opcode: GEN_SUB_S_NE |
120 | | /* 370 */ MCD_OPC_FilterValue, 7, 115, 3, 0, // Skip to: 1258 |
121 | | /* 375 */ MCD_OPC_ExtractField, 8, 3, // Inst{10-8} ... |
122 | | /* 378 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 387 |
123 | | /* 383 */ MCD_OPC_Decode, 153, 3, 12, // Opcode: GEN_NOP_S |
124 | | /* 387 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 396 |
125 | | /* 392 */ MCD_OPC_Decode, 163, 3, 12, // Opcode: GEN_UNIMP_S |
126 | | /* 396 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 405 |
127 | | /* 401 */ MCD_OPC_Decode, 160, 3, 12, // Opcode: GEN_SWI_S |
128 | | /* 405 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 414 |
129 | | /* 410 */ MCD_OPC_Decode, 140, 3, 12, // Opcode: GEN_JEQ_S |
130 | | /* 414 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 423 |
131 | | /* 419 */ MCD_OPC_Decode, 143, 3, 12, // Opcode: GEN_JNE_S |
132 | | /* 423 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 432 |
133 | | /* 428 */ MCD_OPC_Decode, 174, 3, 12, // Opcode: J_S_BLINK |
134 | | /* 432 */ MCD_OPC_FilterValue, 7, 53, 3, 0, // Skip to: 1258 |
135 | | /* 437 */ MCD_OPC_Decode, 146, 3, 12, // Opcode: GEN_J_S_D_BLINK |
136 | | /* 441 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 450 |
137 | | /* 446 */ MCD_OPC_Decode, 158, 3, 13, // Opcode: GEN_SUB_S |
138 | | /* 450 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 459 |
139 | | /* 455 */ MCD_OPC_Decode, 131, 3, 13, // Opcode: GEN_AND_S |
140 | | /* 459 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 468 |
141 | | /* 464 */ MCD_OPC_Decode, 155, 3, 13, // Opcode: GEN_OR_S |
142 | | /* 468 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 477 |
143 | | /* 473 */ MCD_OPC_Decode, 136, 3, 13, // Opcode: GEN_BIC_S |
144 | | /* 477 */ MCD_OPC_FilterValue, 7, 4, 0, 0, // Skip to: 486 |
145 | | /* 482 */ MCD_OPC_Decode, 164, 3, 13, // Opcode: GEN_XOR_S |
146 | | /* 486 */ MCD_OPC_FilterValue, 9, 4, 0, 0, // Skip to: 495 |
147 | | /* 491 */ MCD_OPC_Decode, 150, 3, 13, // Opcode: GEN_MPYW_S |
148 | | /* 495 */ MCD_OPC_FilterValue, 10, 4, 0, 0, // Skip to: 504 |
149 | | /* 500 */ MCD_OPC_Decode, 149, 3, 13, // Opcode: GEN_MPYUW_S |
150 | | /* 504 */ MCD_OPC_FilterValue, 11, 4, 0, 0, // Skip to: 513 |
151 | | /* 509 */ MCD_OPC_Decode, 162, 3, 13, // Opcode: GEN_TST_S |
152 | | /* 513 */ MCD_OPC_FilterValue, 12, 4, 0, 0, // Skip to: 522 |
153 | | /* 518 */ MCD_OPC_Decode, 151, 3, 13, // Opcode: GEN_MPY_S |
154 | | /* 522 */ MCD_OPC_FilterValue, 13, 4, 0, 0, // Skip to: 531 |
155 | | /* 527 */ MCD_OPC_Decode, 156, 3, 13, // Opcode: GEN_SEXB_S |
156 | | /* 531 */ MCD_OPC_FilterValue, 14, 4, 0, 0, // Skip to: 540 |
157 | | /* 536 */ MCD_OPC_Decode, 157, 3, 13, // Opcode: GEN_SEXH_S |
158 | | /* 540 */ MCD_OPC_FilterValue, 15, 4, 0, 0, // Skip to: 549 |
159 | | /* 545 */ MCD_OPC_Decode, 138, 3, 13, // Opcode: GEN_EXTB_S |
160 | | /* 549 */ MCD_OPC_FilterValue, 16, 4, 0, 0, // Skip to: 558 |
161 | | /* 554 */ MCD_OPC_Decode, 139, 3, 13, // Opcode: GEN_EXTH_S |
162 | | /* 558 */ MCD_OPC_FilterValue, 17, 4, 0, 0, // Skip to: 567 |
163 | | /* 563 */ MCD_OPC_Decode, 255, 2, 13, // Opcode: GEN_ABS_S |
164 | | /* 567 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 576 |
165 | | /* 572 */ MCD_OPC_Decode, 154, 3, 13, // Opcode: GEN_NOT_S |
166 | | /* 576 */ MCD_OPC_FilterValue, 19, 4, 0, 0, // Skip to: 585 |
167 | | /* 581 */ MCD_OPC_Decode, 152, 3, 13, // Opcode: GEN_NEG_S |
168 | | /* 585 */ MCD_OPC_FilterValue, 20, 4, 0, 0, // Skip to: 594 |
169 | | /* 590 */ MCD_OPC_Decode, 128, 3, 13, // Opcode: GEN_ADD1_S |
170 | | /* 594 */ MCD_OPC_FilterValue, 21, 4, 0, 0, // Skip to: 603 |
171 | | /* 599 */ MCD_OPC_Decode, 129, 3, 13, // Opcode: GEN_ADD2_S |
172 | | /* 603 */ MCD_OPC_FilterValue, 22, 4, 0, 0, // Skip to: 612 |
173 | | /* 608 */ MCD_OPC_Decode, 130, 3, 13, // Opcode: GEN_ADD3_S |
174 | | /* 612 */ MCD_OPC_FilterValue, 24, 4, 0, 0, // Skip to: 621 |
175 | | /* 617 */ MCD_OPC_Decode, 134, 3, 13, // Opcode: GEN_ASL_S |
176 | | /* 621 */ MCD_OPC_FilterValue, 25, 4, 0, 0, // Skip to: 630 |
177 | | /* 626 */ MCD_OPC_Decode, 148, 3, 13, // Opcode: GEN_LSR_S |
178 | | /* 630 */ MCD_OPC_FilterValue, 26, 4, 0, 0, // Skip to: 639 |
179 | | /* 635 */ MCD_OPC_Decode, 135, 3, 13, // Opcode: GEN_ASR_S |
180 | | /* 639 */ MCD_OPC_FilterValue, 27, 4, 0, 0, // Skip to: 648 |
181 | | /* 644 */ MCD_OPC_Decode, 132, 3, 13, // Opcode: GEN_AS1L_S |
182 | | /* 648 */ MCD_OPC_FilterValue, 28, 4, 0, 0, // Skip to: 657 |
183 | | /* 653 */ MCD_OPC_Decode, 133, 3, 13, // Opcode: GEN_AS1R_S |
184 | | /* 657 */ MCD_OPC_FilterValue, 29, 4, 0, 0, // Skip to: 666 |
185 | | /* 662 */ MCD_OPC_Decode, 147, 3, 13, // Opcode: GEN_LS1R_S |
186 | | /* 666 */ MCD_OPC_FilterValue, 30, 4, 0, 0, // Skip to: 675 |
187 | | /* 671 */ MCD_OPC_Decode, 161, 3, 14, // Opcode: GEN_TRAP_S |
188 | | /* 675 */ MCD_OPC_FilterValue, 31, 66, 2, 0, // Skip to: 1258 |
189 | | /* 680 */ MCD_OPC_CheckField, 5, 6, 63, 59, 2, 0, // Skip to: 1258 |
190 | | /* 687 */ MCD_OPC_Decode, 137, 3, 12, // Opcode: GEN_BRK_S |
191 | | /* 691 */ MCD_OPC_FilterValue, 16, 4, 0, 0, // Skip to: 700 |
192 | | /* 696 */ MCD_OPC_Decode, 229, 3, 15, // Opcode: LD_S_OFF |
193 | | /* 700 */ MCD_OPC_FilterValue, 17, 4, 0, 0, // Skip to: 709 |
194 | | /* 705 */ MCD_OPC_Decode, 182, 3, 16, // Opcode: LDB_S_OFF |
195 | | /* 709 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 718 |
196 | | /* 714 */ MCD_OPC_Decode, 204, 3, 17, // Opcode: LDH_S_OFF |
197 | | /* 718 */ MCD_OPC_FilterValue, 19, 4, 0, 0, // Skip to: 727 |
198 | | /* 723 */ MCD_OPC_Decode, 205, 3, 17, // Opcode: LDH_S_X_OFF |
199 | | /* 727 */ MCD_OPC_FilterValue, 20, 4, 0, 0, // Skip to: 736 |
200 | | /* 732 */ MCD_OPC_Decode, 150, 5, 15, // Opcode: ST_S_OFF |
201 | | /* 736 */ MCD_OPC_FilterValue, 21, 4, 0, 0, // Skip to: 745 |
202 | | /* 741 */ MCD_OPC_Decode, 132, 5, 16, // Opcode: STB_S_OFF |
203 | | /* 745 */ MCD_OPC_FilterValue, 22, 4, 0, 0, // Skip to: 754 |
204 | | /* 750 */ MCD_OPC_Decode, 141, 5, 17, // Opcode: STH_S_OFF |
205 | | /* 754 */ MCD_OPC_FilterValue, 23, 75, 0, 0, // Skip to: 834 |
206 | | /* 759 */ MCD_OPC_ExtractField, 5, 3, // Inst{7-5} ... |
207 | | /* 762 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 771 |
208 | | /* 767 */ MCD_OPC_Decode, 192, 2, 18, // Opcode: ASL_S_ru5 |
209 | | /* 771 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 780 |
210 | | /* 776 */ MCD_OPC_Decode, 238, 3, 18, // Opcode: LSR_S_ru5 |
211 | | /* 780 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 789 |
212 | | /* 785 */ MCD_OPC_Decode, 204, 2, 18, // Opcode: ASR_S_ru5 |
213 | | /* 789 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 798 |
214 | | /* 794 */ MCD_OPC_Decode, 186, 5, 18, // Opcode: SUB_S_ru5 |
215 | | /* 798 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 807 |
216 | | /* 803 */ MCD_OPC_Decode, 234, 2, 18, // Opcode: BSET_S_ru5 |
217 | | /* 807 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 816 |
218 | | /* 812 */ MCD_OPC_Decode, 215, 2, 18, // Opcode: BCLR_S_ru5 |
219 | | /* 816 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 825 |
220 | | /* 821 */ MCD_OPC_Decode, 227, 2, 18, // Opcode: BMSK_S_ru5 |
221 | | /* 825 */ MCD_OPC_FilterValue, 7, 172, 1, 0, // Skip to: 1258 |
222 | | /* 830 */ MCD_OPC_Decode, 235, 2, 18, // Opcode: BTST_S_ru5 |
223 | | /* 834 */ MCD_OPC_FilterValue, 24, 181, 0, 0, // Skip to: 1020 |
224 | | /* 839 */ MCD_OPC_ExtractField, 5, 3, // Inst{7-5} ... |
225 | | /* 842 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 851 |
226 | | /* 847 */ MCD_OPC_Decode, 250, 4, 19, // Opcode: SP_LD_S |
227 | | /* 851 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 860 |
228 | | /* 856 */ MCD_OPC_Decode, 249, 4, 19, // Opcode: SP_LDB_S |
229 | | /* 860 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 869 |
230 | | /* 865 */ MCD_OPC_Decode, 252, 4, 19, // Opcode: SP_ST_S |
231 | | /* 869 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 878 |
232 | | /* 874 */ MCD_OPC_Decode, 251, 4, 19, // Opcode: SP_STB_S |
233 | | /* 878 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 887 |
234 | | /* 883 */ MCD_OPC_Decode, 247, 4, 19, // Opcode: SP_ADD_S |
235 | | /* 887 */ MCD_OPC_FilterValue, 5, 21, 0, 0, // Skip to: 913 |
236 | | /* 892 */ MCD_OPC_ExtractField, 8, 3, // Inst{10-8} ... |
237 | | /* 895 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 904 |
238 | | /* 900 */ MCD_OPC_Decode, 248, 4, 20, // Opcode: SP_ADD_SP_S |
239 | | /* 904 */ MCD_OPC_FilterValue, 1, 93, 1, 0, // Skip to: 1258 |
240 | | /* 909 */ MCD_OPC_Decode, 253, 4, 20, // Opcode: SP_SUB_SP_S |
241 | | /* 913 */ MCD_OPC_FilterValue, 6, 45, 0, 0, // Skip to: 963 |
242 | | /* 918 */ MCD_OPC_ExtractField, 0, 1, // Inst{0} ... |
243 | | /* 921 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 930 |
244 | | /* 926 */ MCD_OPC_Decode, 235, 3, 21, // Opcode: LEAVE_S |
245 | | /* 930 */ MCD_OPC_FilterValue, 1, 67, 1, 0, // Skip to: 1258 |
246 | | /* 935 */ MCD_OPC_ExtractField, 1, 4, // Inst{4-1} ... |
247 | | /* 938 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 947 |
248 | | /* 943 */ MCD_OPC_Decode, 202, 4, 22, // Opcode: PUSH_S_r |
249 | | /* 947 */ MCD_OPC_FilterValue, 8, 50, 1, 0, // Skip to: 1258 |
250 | | /* 952 */ MCD_OPC_CheckField, 8, 3, 0, 43, 1, 0, // Skip to: 1258 |
251 | | /* 959 */ MCD_OPC_Decode, 199, 4, 12, // Opcode: POP_S_BLINK |
252 | | /* 963 */ MCD_OPC_FilterValue, 7, 34, 1, 0, // Skip to: 1258 |
253 | | /* 968 */ MCD_OPC_ExtractField, 0, 1, // Inst{0} ... |
254 | | /* 971 */ MCD_OPC_FilterValue, 0, 11, 0, 0, // Skip to: 987 |
255 | | /* 976 */ MCD_OPC_CheckField, 10, 1, 0, 19, 1, 0, // Skip to: 1258 |
256 | | /* 983 */ MCD_OPC_Decode, 250, 2, 23, // Opcode: ENTER_S |
257 | | /* 987 */ MCD_OPC_FilterValue, 1, 10, 1, 0, // Skip to: 1258 |
258 | | /* 992 */ MCD_OPC_ExtractField, 1, 4, // Inst{4-1} ... |
259 | | /* 995 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1004 |
260 | | /* 1000 */ MCD_OPC_Decode, 200, 4, 22, // Opcode: POP_S_r |
261 | | /* 1004 */ MCD_OPC_FilterValue, 8, 249, 0, 0, // Skip to: 1258 |
262 | | /* 1009 */ MCD_OPC_CheckField, 8, 3, 0, 242, 0, 0, // Skip to: 1258 |
263 | | /* 1016 */ MCD_OPC_Decode, 201, 4, 12, // Opcode: PUSH_S_BLINK |
264 | | /* 1020 */ MCD_OPC_FilterValue, 25, 39, 0, 0, // Skip to: 1064 |
265 | | /* 1025 */ MCD_OPC_ExtractField, 9, 2, // Inst{10-9} ... |
266 | | /* 1028 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1037 |
267 | | /* 1033 */ MCD_OPC_Decode, 168, 3, 24, // Opcode: GP_LD_S |
268 | | /* 1037 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 1046 |
269 | | /* 1042 */ MCD_OPC_Decode, 166, 3, 25, // Opcode: GP_LDB_S |
270 | | /* 1046 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 1055 |
271 | | /* 1051 */ MCD_OPC_Decode, 167, 3, 26, // Opcode: GP_LDH_S |
272 | | /* 1055 */ MCD_OPC_FilterValue, 3, 198, 0, 0, // Skip to: 1258 |
273 | | /* 1060 */ MCD_OPC_Decode, 165, 3, 24, // Opcode: GP_ADD_S |
274 | | /* 1064 */ MCD_OPC_FilterValue, 26, 4, 0, 0, // Skip to: 1073 |
275 | | /* 1069 */ MCD_OPC_Decode, 198, 4, 27, // Opcode: PCL_LD |
276 | | /* 1073 */ MCD_OPC_FilterValue, 27, 4, 0, 0, // Skip to: 1082 |
277 | | /* 1078 */ MCD_OPC_Decode, 145, 4, 28, // Opcode: MOV_S_u8 |
278 | | /* 1082 */ MCD_OPC_FilterValue, 28, 21, 0, 0, // Skip to: 1108 |
279 | | /* 1087 */ MCD_OPC_ExtractField, 7, 1, // Inst{7} ... |
280 | | /* 1090 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1099 |
281 | | /* 1095 */ MCD_OPC_Decode, 170, 2, 29, // Opcode: ADD_S_u7 |
282 | | /* 1099 */ MCD_OPC_FilterValue, 1, 154, 0, 0, // Skip to: 1258 |
283 | | /* 1104 */ MCD_OPC_Decode, 242, 2, 29, // Opcode: CMP_S_u7 |
284 | | /* 1108 */ MCD_OPC_FilterValue, 29, 21, 0, 0, // Skip to: 1134 |
285 | | /* 1113 */ MCD_OPC_ExtractField, 7, 1, // Inst{7} ... |
286 | | /* 1116 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1125 |
287 | | /* 1121 */ MCD_OPC_Decode, 230, 2, 30, // Opcode: BREQ_S |
288 | | /* 1125 */ MCD_OPC_FilterValue, 1, 128, 0, 0, // Skip to: 1258 |
289 | | /* 1130 */ MCD_OPC_Decode, 231, 2, 30, // Opcode: BRNE_S |
290 | | /* 1134 */ MCD_OPC_FilterValue, 30, 110, 0, 0, // Skip to: 1249 |
291 | | /* 1139 */ MCD_OPC_ExtractField, 9, 2, // Inst{10-9} ... |
292 | | /* 1142 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1151 |
293 | | /* 1147 */ MCD_OPC_Decode, 236, 2, 31, // Opcode: B_S |
294 | | /* 1151 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 1160 |
295 | | /* 1156 */ MCD_OPC_Decode, 216, 2, 31, // Opcode: BEQ_S |
296 | | /* 1160 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 1169 |
297 | | /* 1165 */ MCD_OPC_Decode, 228, 2, 31, // Opcode: BNE_S |
298 | | /* 1169 */ MCD_OPC_FilterValue, 3, 84, 0, 0, // Skip to: 1258 |
299 | | /* 1174 */ MCD_OPC_ExtractField, 6, 3, // Inst{8-6} ... |
300 | | /* 1177 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 1186 |
301 | | /* 1182 */ MCD_OPC_Decode, 218, 2, 32, // Opcode: BGT_S |
302 | | /* 1186 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 1195 |
303 | | /* 1191 */ MCD_OPC_Decode, 217, 2, 32, // Opcode: BGE_S |
304 | | /* 1195 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 1204 |
305 | | /* 1200 */ MCD_OPC_Decode, 225, 2, 32, // Opcode: BLT_S |
306 | | /* 1204 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 1213 |
307 | | /* 1209 */ MCD_OPC_Decode, 222, 2, 32, // Opcode: BLE_S |
308 | | /* 1213 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 1222 |
309 | | /* 1218 */ MCD_OPC_Decode, 219, 2, 32, // Opcode: BHI_S |
310 | | /* 1222 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 1231 |
311 | | /* 1227 */ MCD_OPC_Decode, 220, 2, 32, // Opcode: BHS_S |
312 | | /* 1231 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 1240 |
313 | | /* 1236 */ MCD_OPC_Decode, 223, 2, 32, // Opcode: BLO_S |
314 | | /* 1240 */ MCD_OPC_FilterValue, 7, 13, 0, 0, // Skip to: 1258 |
315 | | /* 1245 */ MCD_OPC_Decode, 224, 2, 32, // Opcode: BLS_S |
316 | | /* 1249 */ MCD_OPC_FilterValue, 31, 4, 0, 0, // Skip to: 1258 |
317 | | /* 1254 */ MCD_OPC_Decode, 226, 2, 33, // Opcode: BL_S |
318 | | /* 1258 */ MCD_OPC_Fail, |
319 | | 0 |
320 | | }; |
321 | | |
322 | | static const uint8_t DecoderTable32[] = { |
323 | | /* 0 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
324 | | /* 3 */ MCD_OPC_FilterValue, 0, 28, 0, 0, // Skip to: 36 |
325 | | /* 8 */ MCD_OPC_ExtractField, 16, 1, // Inst{16} ... |
326 | | /* 11 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 20 |
327 | | /* 16 */ MCD_OPC_Decode, 237, 2, 34, // Opcode: Bcc |
328 | | /* 20 */ MCD_OPC_FilterValue, 1, 205, 10, 0, // Skip to: 2790 |
329 | | /* 25 */ MCD_OPC_CheckField, 4, 1, 0, 198, 10, 0, // Skip to: 2790 |
330 | | /* 32 */ MCD_OPC_Decode, 229, 2, 35, // Opcode: BR |
331 | | /* 36 */ MCD_OPC_FilterValue, 1, 66, 0, 0, // Skip to: 107 |
332 | | /* 41 */ MCD_OPC_ExtractField, 4, 1, // Inst{4} ... |
333 | | /* 44 */ MCD_OPC_FilterValue, 0, 35, 0, 0, // Skip to: 84 |
334 | | /* 49 */ MCD_OPC_ExtractField, 16, 1, // Inst{16} ... |
335 | | /* 52 */ MCD_OPC_FilterValue, 0, 11, 0, 0, // Skip to: 68 |
336 | | /* 57 */ MCD_OPC_CheckField, 17, 1, 1, 166, 10, 0, // Skip to: 2790 |
337 | | /* 64 */ MCD_OPC_Decode, 221, 2, 36, // Opcode: BL |
338 | | /* 68 */ MCD_OPC_FilterValue, 1, 157, 10, 0, // Skip to: 2790 |
339 | | /* 73 */ MCD_OPC_CheckField, 3, 1, 0, 150, 10, 0, // Skip to: 2790 |
340 | | /* 80 */ MCD_OPC_Decode, 232, 2, 37, // Opcode: BRcc_rr |
341 | | /* 84 */ MCD_OPC_FilterValue, 1, 141, 10, 0, // Skip to: 2790 |
342 | | /* 89 */ MCD_OPC_CheckField, 16, 1, 1, 134, 10, 0, // Skip to: 2790 |
343 | | /* 96 */ MCD_OPC_CheckField, 3, 1, 0, 127, 10, 0, // Skip to: 2790 |
344 | | /* 103 */ MCD_OPC_Decode, 233, 2, 38, // Opcode: BRcc_ru6 |
345 | | /* 107 */ MCD_OPC_FilterValue, 2, 17, 1, 0, // Skip to: 385 |
346 | | /* 112 */ MCD_OPC_ExtractField, 6, 6, // Inst{11-6} ... |
347 | | /* 115 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 124 |
348 | | /* 120 */ MCD_OPC_Decode, 234, 3, 39, // Opcode: LD_rs9 |
349 | | /* 124 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 133 |
350 | | /* 129 */ MCD_OPC_Decode, 196, 3, 39, // Opcode: LDB_rs9 |
351 | | /* 133 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 142 |
352 | | /* 138 */ MCD_OPC_Decode, 193, 3, 39, // Opcode: LDB_X_rs9 |
353 | | /* 142 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 151 |
354 | | /* 147 */ MCD_OPC_Decode, 219, 3, 39, // Opcode: LDH_rs9 |
355 | | /* 151 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 160 |
356 | | /* 156 */ MCD_OPC_Decode, 216, 3, 39, // Opcode: LDH_X_rs9 |
357 | | /* 160 */ MCD_OPC_FilterValue, 8, 4, 0, 0, // Skip to: 169 |
358 | | /* 165 */ MCD_OPC_Decode, 222, 3, 40, // Opcode: LD_AW_rs9 |
359 | | /* 169 */ MCD_OPC_FilterValue, 10, 4, 0, 0, // Skip to: 178 |
360 | | /* 174 */ MCD_OPC_Decode, 176, 3, 40, // Opcode: LDB_AW_rs9 |
361 | | /* 178 */ MCD_OPC_FilterValue, 11, 4, 0, 0, // Skip to: 187 |
362 | | /* 183 */ MCD_OPC_Decode, 185, 3, 40, // Opcode: LDB_X_AW_rs9 |
363 | | /* 187 */ MCD_OPC_FilterValue, 12, 4, 0, 0, // Skip to: 196 |
364 | | /* 192 */ MCD_OPC_Decode, 198, 3, 40, // Opcode: LDH_AW_rs9 |
365 | | /* 196 */ MCD_OPC_FilterValue, 13, 4, 0, 0, // Skip to: 205 |
366 | | /* 201 */ MCD_OPC_Decode, 208, 3, 40, // Opcode: LDH_X_AW_rs9 |
367 | | /* 205 */ MCD_OPC_FilterValue, 16, 4, 0, 0, // Skip to: 214 |
368 | | /* 210 */ MCD_OPC_Decode, 221, 3, 40, // Opcode: LD_AB_rs9 |
369 | | /* 214 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 223 |
370 | | /* 219 */ MCD_OPC_Decode, 175, 3, 40, // Opcode: LDB_AB_rs9 |
371 | | /* 223 */ MCD_OPC_FilterValue, 19, 4, 0, 0, // Skip to: 232 |
372 | | /* 228 */ MCD_OPC_Decode, 184, 3, 40, // Opcode: LDB_X_AB_rs9 |
373 | | /* 232 */ MCD_OPC_FilterValue, 20, 4, 0, 0, // Skip to: 241 |
374 | | /* 237 */ MCD_OPC_Decode, 197, 3, 40, // Opcode: LDH_AB_rs9 |
375 | | /* 241 */ MCD_OPC_FilterValue, 21, 4, 0, 0, // Skip to: 250 |
376 | | /* 246 */ MCD_OPC_Decode, 207, 3, 40, // Opcode: LDH_X_AB_rs9 |
377 | | /* 250 */ MCD_OPC_FilterValue, 32, 4, 0, 0, // Skip to: 259 |
378 | | /* 255 */ MCD_OPC_Decode, 227, 3, 39, // Opcode: LD_DI_rs9 |
379 | | /* 259 */ MCD_OPC_FilterValue, 34, 4, 0, 0, // Skip to: 268 |
380 | | /* 264 */ MCD_OPC_Decode, 181, 3, 39, // Opcode: LDB_DI_rs9 |
381 | | /* 268 */ MCD_OPC_FilterValue, 35, 4, 0, 0, // Skip to: 277 |
382 | | /* 273 */ MCD_OPC_Decode, 190, 3, 39, // Opcode: LDB_X_DI_rs9 |
383 | | /* 277 */ MCD_OPC_FilterValue, 36, 4, 0, 0, // Skip to: 286 |
384 | | /* 282 */ MCD_OPC_Decode, 203, 3, 39, // Opcode: LDH_DI_rs9 |
385 | | /* 286 */ MCD_OPC_FilterValue, 37, 4, 0, 0, // Skip to: 295 |
386 | | /* 291 */ MCD_OPC_Decode, 213, 3, 39, // Opcode: LDH_X_DI_rs9 |
387 | | /* 295 */ MCD_OPC_FilterValue, 40, 4, 0, 0, // Skip to: 304 |
388 | | /* 300 */ MCD_OPC_Decode, 224, 3, 40, // Opcode: LD_DI_AW_rs9 |
389 | | /* 304 */ MCD_OPC_FilterValue, 42, 4, 0, 0, // Skip to: 313 |
390 | | /* 309 */ MCD_OPC_Decode, 178, 3, 40, // Opcode: LDB_DI_AW_rs9 |
391 | | /* 313 */ MCD_OPC_FilterValue, 43, 4, 0, 0, // Skip to: 322 |
392 | | /* 318 */ MCD_OPC_Decode, 187, 3, 40, // Opcode: LDB_X_DI_AW_rs9 |
393 | | /* 322 */ MCD_OPC_FilterValue, 44, 4, 0, 0, // Skip to: 331 |
394 | | /* 327 */ MCD_OPC_Decode, 200, 3, 40, // Opcode: LDH_DI_AW_rs9 |
395 | | /* 331 */ MCD_OPC_FilterValue, 45, 4, 0, 0, // Skip to: 340 |
396 | | /* 336 */ MCD_OPC_Decode, 210, 3, 40, // Opcode: LDH_X_DI_AW_rs9 |
397 | | /* 340 */ MCD_OPC_FilterValue, 48, 4, 0, 0, // Skip to: 349 |
398 | | /* 345 */ MCD_OPC_Decode, 223, 3, 40, // Opcode: LD_DI_AB_rs9 |
399 | | /* 349 */ MCD_OPC_FilterValue, 50, 4, 0, 0, // Skip to: 358 |
400 | | /* 354 */ MCD_OPC_Decode, 177, 3, 40, // Opcode: LDB_DI_AB_rs9 |
401 | | /* 358 */ MCD_OPC_FilterValue, 51, 4, 0, 0, // Skip to: 367 |
402 | | /* 363 */ MCD_OPC_Decode, 186, 3, 40, // Opcode: LDB_X_DI_AB_rs9 |
403 | | /* 367 */ MCD_OPC_FilterValue, 52, 4, 0, 0, // Skip to: 376 |
404 | | /* 372 */ MCD_OPC_Decode, 199, 3, 40, // Opcode: LDH_DI_AB_rs9 |
405 | | /* 376 */ MCD_OPC_FilterValue, 53, 105, 9, 0, // Skip to: 2790 |
406 | | /* 381 */ MCD_OPC_Decode, 209, 3, 40, // Opcode: LDH_X_DI_AB_rs9 |
407 | | /* 385 */ MCD_OPC_FilterValue, 3, 165, 0, 0, // Skip to: 555 |
408 | | /* 390 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
409 | | /* 393 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 402 |
410 | | /* 398 */ MCD_OPC_Decode, 153, 5, 41, // Opcode: ST_rs9 |
411 | | /* 402 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 411 |
412 | | /* 407 */ MCD_OPC_Decode, 134, 5, 41, // Opcode: STB_rs9 |
413 | | /* 411 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 420 |
414 | | /* 416 */ MCD_OPC_Decode, 143, 5, 41, // Opcode: STH_rs9 |
415 | | /* 420 */ MCD_OPC_FilterValue, 8, 4, 0, 0, // Skip to: 429 |
416 | | /* 425 */ MCD_OPC_Decode, 145, 5, 42, // Opcode: ST_AW_rs9 |
417 | | /* 429 */ MCD_OPC_FilterValue, 10, 4, 0, 0, // Skip to: 438 |
418 | | /* 434 */ MCD_OPC_Decode, 255, 4, 42, // Opcode: STB_AW_rs9 |
419 | | /* 438 */ MCD_OPC_FilterValue, 12, 4, 0, 0, // Skip to: 447 |
420 | | /* 443 */ MCD_OPC_Decode, 136, 5, 42, // Opcode: STH_AW_rs9 |
421 | | /* 447 */ MCD_OPC_FilterValue, 16, 4, 0, 0, // Skip to: 456 |
422 | | /* 452 */ MCD_OPC_Decode, 144, 5, 42, // Opcode: ST_AB_rs9 |
423 | | /* 456 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 465 |
424 | | /* 461 */ MCD_OPC_Decode, 254, 4, 42, // Opcode: STB_AB_rs9 |
425 | | /* 465 */ MCD_OPC_FilterValue, 20, 4, 0, 0, // Skip to: 474 |
426 | | /* 470 */ MCD_OPC_Decode, 135, 5, 42, // Opcode: STH_AB_rs9 |
427 | | /* 474 */ MCD_OPC_FilterValue, 32, 4, 0, 0, // Skip to: 483 |
428 | | /* 479 */ MCD_OPC_Decode, 149, 5, 41, // Opcode: ST_DI_rs9 |
429 | | /* 483 */ MCD_OPC_FilterValue, 34, 4, 0, 0, // Skip to: 492 |
430 | | /* 488 */ MCD_OPC_Decode, 131, 5, 41, // Opcode: STB_DI_rs9 |
431 | | /* 492 */ MCD_OPC_FilterValue, 36, 4, 0, 0, // Skip to: 501 |
432 | | /* 497 */ MCD_OPC_Decode, 140, 5, 41, // Opcode: STH_DI_rs9 |
433 | | /* 501 */ MCD_OPC_FilterValue, 40, 4, 0, 0, // Skip to: 510 |
434 | | /* 506 */ MCD_OPC_Decode, 147, 5, 42, // Opcode: ST_DI_AW_rs9 |
435 | | /* 510 */ MCD_OPC_FilterValue, 42, 4, 0, 0, // Skip to: 519 |
436 | | /* 515 */ MCD_OPC_Decode, 129, 5, 42, // Opcode: STB_DI_AW_rs9 |
437 | | /* 519 */ MCD_OPC_FilterValue, 44, 4, 0, 0, // Skip to: 528 |
438 | | /* 524 */ MCD_OPC_Decode, 138, 5, 42, // Opcode: STH_DI_AW_rs9 |
439 | | /* 528 */ MCD_OPC_FilterValue, 48, 4, 0, 0, // Skip to: 537 |
440 | | /* 533 */ MCD_OPC_Decode, 146, 5, 42, // Opcode: ST_DI_AB_rs9 |
441 | | /* 537 */ MCD_OPC_FilterValue, 50, 4, 0, 0, // Skip to: 546 |
442 | | /* 542 */ MCD_OPC_Decode, 128, 5, 42, // Opcode: STB_DI_AB_rs9 |
443 | | /* 546 */ MCD_OPC_FilterValue, 52, 191, 8, 0, // Skip to: 2790 |
444 | | /* 551 */ MCD_OPC_Decode, 137, 5, 42, // Opcode: STH_DI_AB_rs9 |
445 | | /* 555 */ MCD_OPC_FilterValue, 4, 230, 6, 0, // Skip to: 2326 |
446 | | /* 560 */ MCD_OPC_ExtractField, 15, 9, // Inst{23-15} ... |
447 | | /* 563 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 572 |
448 | | /* 568 */ MCD_OPC_Decode, 178, 2, 43, // Opcode: ADD_rrr |
449 | | /* 572 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 581 |
450 | | /* 577 */ MCD_OPC_Decode, 174, 2, 43, // Opcode: ADD_f_rrr |
451 | | /* 581 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 590 |
452 | | /* 586 */ MCD_OPC_Decode, 160, 2, 43, // Opcode: ADC_rrr |
453 | | /* 590 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 599 |
454 | | /* 595 */ MCD_OPC_Decode, 156, 2, 43, // Opcode: ADC_f_rrr |
455 | | /* 599 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 608 |
456 | | /* 604 */ MCD_OPC_Decode, 194, 5, 43, // Opcode: SUB_rrr |
457 | | /* 608 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 617 |
458 | | /* 613 */ MCD_OPC_Decode, 190, 5, 43, // Opcode: SUB_f_rrr |
459 | | /* 617 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 626 |
460 | | /* 622 */ MCD_OPC_Decode, 230, 4, 43, // Opcode: SBC_rrr |
461 | | /* 626 */ MCD_OPC_FilterValue, 7, 4, 0, 0, // Skip to: 635 |
462 | | /* 631 */ MCD_OPC_Decode, 226, 4, 43, // Opcode: SBC_f_rrr |
463 | | /* 635 */ MCD_OPC_FilterValue, 8, 4, 0, 0, // Skip to: 644 |
464 | | /* 640 */ MCD_OPC_Decode, 188, 2, 43, // Opcode: AND_rrr |
465 | | /* 644 */ MCD_OPC_FilterValue, 9, 4, 0, 0, // Skip to: 653 |
466 | | /* 649 */ MCD_OPC_Decode, 184, 2, 43, // Opcode: AND_f_rrr |
467 | | /* 653 */ MCD_OPC_FilterValue, 10, 4, 0, 0, // Skip to: 662 |
468 | | /* 658 */ MCD_OPC_Decode, 195, 4, 43, // Opcode: OR_rrr |
469 | | /* 662 */ MCD_OPC_FilterValue, 11, 4, 0, 0, // Skip to: 671 |
470 | | /* 667 */ MCD_OPC_Decode, 191, 4, 43, // Opcode: OR_f_rrr |
471 | | /* 671 */ MCD_OPC_FilterValue, 14, 4, 0, 0, // Skip to: 680 |
472 | | /* 676 */ MCD_OPC_Decode, 204, 5, 43, // Opcode: XOR_rrr |
473 | | /* 680 */ MCD_OPC_FilterValue, 15, 4, 0, 0, // Skip to: 689 |
474 | | /* 685 */ MCD_OPC_Decode, 200, 5, 43, // Opcode: XOR_f_rrr |
475 | | /* 689 */ MCD_OPC_FilterValue, 16, 4, 0, 0, // Skip to: 698 |
476 | | /* 694 */ MCD_OPC_Decode, 128, 4, 43, // Opcode: MAX_rrr |
477 | | /* 698 */ MCD_OPC_FilterValue, 17, 4, 0, 0, // Skip to: 707 |
478 | | /* 703 */ MCD_OPC_Decode, 252, 3, 43, // Opcode: MAX_f_rrr |
479 | | /* 707 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 716 |
480 | | /* 712 */ MCD_OPC_Decode, 138, 4, 43, // Opcode: MIN_rrr |
481 | | /* 716 */ MCD_OPC_FilterValue, 19, 4, 0, 0, // Skip to: 725 |
482 | | /* 721 */ MCD_OPC_Decode, 134, 4, 43, // Opcode: MIN_f_rrr |
483 | | /* 725 */ MCD_OPC_FilterValue, 20, 4, 0, 0, // Skip to: 734 |
484 | | /* 730 */ MCD_OPC_Decode, 151, 4, 44, // Opcode: MOV_rr |
485 | | /* 734 */ MCD_OPC_FilterValue, 25, 4, 0, 0, // Skip to: 743 |
486 | | /* 739 */ MCD_OPC_Decode, 244, 2, 44, // Opcode: CMP_rr |
487 | | /* 743 */ MCD_OPC_FilterValue, 28, 4, 0, 0, // Skip to: 752 |
488 | | /* 748 */ MCD_OPC_Decode, 220, 4, 43, // Opcode: RSUB_rrr |
489 | | /* 752 */ MCD_OPC_FilterValue, 29, 4, 0, 0, // Skip to: 761 |
490 | | /* 757 */ MCD_OPC_Decode, 216, 4, 43, // Opcode: RSUB_f_rrr |
491 | | /* 761 */ MCD_OPC_FilterValue, 46, 4, 0, 0, // Skip to: 770 |
492 | | /* 766 */ MCD_OPC_Decode, 161, 5, 43, // Opcode: SUB1_rrr |
493 | | /* 770 */ MCD_OPC_FilterValue, 47, 4, 0, 0, // Skip to: 779 |
494 | | /* 775 */ MCD_OPC_Decode, 157, 5, 43, // Opcode: SUB1_f_rrr |
495 | | /* 779 */ MCD_OPC_FilterValue, 48, 4, 0, 0, // Skip to: 788 |
496 | | /* 784 */ MCD_OPC_Decode, 171, 5, 43, // Opcode: SUB2_rrr |
497 | | /* 788 */ MCD_OPC_FilterValue, 49, 4, 0, 0, // Skip to: 797 |
498 | | /* 793 */ MCD_OPC_Decode, 167, 5, 43, // Opcode: SUB2_f_rrr |
499 | | /* 797 */ MCD_OPC_FilterValue, 50, 4, 0, 0, // Skip to: 806 |
500 | | /* 802 */ MCD_OPC_Decode, 181, 5, 43, // Opcode: SUB3_rrr |
501 | | /* 806 */ MCD_OPC_FilterValue, 51, 4, 0, 0, // Skip to: 815 |
502 | | /* 811 */ MCD_OPC_Decode, 177, 5, 43, // Opcode: SUB3_f_rrr |
503 | | /* 815 */ MCD_OPC_FilterValue, 52, 4, 0, 0, // Skip to: 824 |
504 | | /* 820 */ MCD_OPC_Decode, 181, 4, 43, // Opcode: MPY_rrr |
505 | | /* 824 */ MCD_OPC_FilterValue, 53, 4, 0, 0, // Skip to: 833 |
506 | | /* 829 */ MCD_OPC_Decode, 177, 4, 43, // Opcode: MPY_f_rrr |
507 | | /* 833 */ MCD_OPC_FilterValue, 54, 4, 0, 0, // Skip to: 842 |
508 | | /* 838 */ MCD_OPC_Decode, 171, 4, 43, // Opcode: MPYM_rrr |
509 | | /* 842 */ MCD_OPC_FilterValue, 55, 4, 0, 0, // Skip to: 851 |
510 | | /* 847 */ MCD_OPC_Decode, 167, 4, 43, // Opcode: MPYM_f_rrr |
511 | | /* 851 */ MCD_OPC_FilterValue, 56, 4, 0, 0, // Skip to: 860 |
512 | | /* 856 */ MCD_OPC_Decode, 161, 4, 43, // Opcode: MPYMU_rrr |
513 | | /* 860 */ MCD_OPC_FilterValue, 57, 4, 0, 0, // Skip to: 869 |
514 | | /* 865 */ MCD_OPC_Decode, 157, 4, 43, // Opcode: MPYMU_f_rrr |
515 | | /* 869 */ MCD_OPC_FilterValue, 64, 4, 0, 0, // Skip to: 878 |
516 | | /* 874 */ MCD_OPC_Decode, 169, 3, 45, // Opcode: J |
517 | | /* 878 */ MCD_OPC_FilterValue, 68, 4, 0, 0, // Skip to: 887 |
518 | | /* 883 */ MCD_OPC_Decode, 170, 3, 45, // Opcode: JL |
519 | | /* 887 */ MCD_OPC_FilterValue, 94, 21, 0, 0, // Skip to: 913 |
520 | | /* 892 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
521 | | /* 895 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 904 |
522 | | /* 900 */ MCD_OPC_Decode, 244, 4, 44, // Opcode: SEXB_rr |
523 | | /* 904 */ MCD_OPC_FilterValue, 6, 89, 7, 0, // Skip to: 2790 |
524 | | /* 909 */ MCD_OPC_Decode, 246, 4, 44, // Opcode: SEXH_rr |
525 | | /* 913 */ MCD_OPC_FilterValue, 95, 21, 0, 0, // Skip to: 939 |
526 | | /* 918 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
527 | | /* 921 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 930 |
528 | | /* 926 */ MCD_OPC_Decode, 243, 4, 44, // Opcode: SEXB_f_rr |
529 | | /* 930 */ MCD_OPC_FilterValue, 6, 63, 7, 0, // Skip to: 2790 |
530 | | /* 935 */ MCD_OPC_Decode, 245, 4, 44, // Opcode: SEXH_f_rr |
531 | | /* 939 */ MCD_OPC_FilterValue, 112, 4, 0, 0, // Skip to: 948 |
532 | | /* 944 */ MCD_OPC_Decode, 240, 4, 43, // Opcode: SETEQ_rrr |
533 | | /* 948 */ MCD_OPC_FilterValue, 113, 4, 0, 0, // Skip to: 957 |
534 | | /* 953 */ MCD_OPC_Decode, 236, 4, 43, // Opcode: SETEQ_f_rrr |
535 | | /* 957 */ MCD_OPC_FilterValue, 128, 1, 4, 0, 0, // Skip to: 967 |
536 | | /* 963 */ MCD_OPC_Decode, 180, 2, 46, // Opcode: ADD_rru6 |
537 | | /* 967 */ MCD_OPC_FilterValue, 129, 1, 4, 0, 0, // Skip to: 977 |
538 | | /* 973 */ MCD_OPC_Decode, 176, 2, 46, // Opcode: ADD_f_rru6 |
539 | | /* 977 */ MCD_OPC_FilterValue, 130, 1, 4, 0, 0, // Skip to: 987 |
540 | | /* 983 */ MCD_OPC_Decode, 162, 2, 46, // Opcode: ADC_rru6 |
541 | | /* 987 */ MCD_OPC_FilterValue, 131, 1, 4, 0, 0, // Skip to: 997 |
542 | | /* 993 */ MCD_OPC_Decode, 158, 2, 46, // Opcode: ADC_f_rru6 |
543 | | /* 997 */ MCD_OPC_FilterValue, 132, 1, 4, 0, 0, // Skip to: 1007 |
544 | | /* 1003 */ MCD_OPC_Decode, 196, 5, 46, // Opcode: SUB_rru6 |
545 | | /* 1007 */ MCD_OPC_FilterValue, 133, 1, 4, 0, 0, // Skip to: 1017 |
546 | | /* 1013 */ MCD_OPC_Decode, 192, 5, 46, // Opcode: SUB_f_rru6 |
547 | | /* 1017 */ MCD_OPC_FilterValue, 134, 1, 4, 0, 0, // Skip to: 1027 |
548 | | /* 1023 */ MCD_OPC_Decode, 232, 4, 46, // Opcode: SBC_rru6 |
549 | | /* 1027 */ MCD_OPC_FilterValue, 135, 1, 4, 0, 0, // Skip to: 1037 |
550 | | /* 1033 */ MCD_OPC_Decode, 228, 4, 46, // Opcode: SBC_f_rru6 |
551 | | /* 1037 */ MCD_OPC_FilterValue, 136, 1, 4, 0, 0, // Skip to: 1047 |
552 | | /* 1043 */ MCD_OPC_Decode, 190, 2, 46, // Opcode: AND_rru6 |
553 | | /* 1047 */ MCD_OPC_FilterValue, 137, 1, 4, 0, 0, // Skip to: 1057 |
554 | | /* 1053 */ MCD_OPC_Decode, 186, 2, 46, // Opcode: AND_f_rru6 |
555 | | /* 1057 */ MCD_OPC_FilterValue, 138, 1, 4, 0, 0, // Skip to: 1067 |
556 | | /* 1063 */ MCD_OPC_Decode, 197, 4, 46, // Opcode: OR_rru6 |
557 | | /* 1067 */ MCD_OPC_FilterValue, 139, 1, 4, 0, 0, // Skip to: 1077 |
558 | | /* 1073 */ MCD_OPC_Decode, 193, 4, 46, // Opcode: OR_f_rru6 |
559 | | /* 1077 */ MCD_OPC_FilterValue, 142, 1, 4, 0, 0, // Skip to: 1087 |
560 | | /* 1083 */ MCD_OPC_Decode, 206, 5, 46, // Opcode: XOR_rru6 |
561 | | /* 1087 */ MCD_OPC_FilterValue, 143, 1, 4, 0, 0, // Skip to: 1097 |
562 | | /* 1093 */ MCD_OPC_Decode, 202, 5, 46, // Opcode: XOR_f_rru6 |
563 | | /* 1097 */ MCD_OPC_FilterValue, 144, 1, 4, 0, 0, // Skip to: 1107 |
564 | | /* 1103 */ MCD_OPC_Decode, 130, 4, 46, // Opcode: MAX_rru6 |
565 | | /* 1107 */ MCD_OPC_FilterValue, 145, 1, 4, 0, 0, // Skip to: 1117 |
566 | | /* 1113 */ MCD_OPC_Decode, 254, 3, 46, // Opcode: MAX_f_rru6 |
567 | | /* 1117 */ MCD_OPC_FilterValue, 146, 1, 4, 0, 0, // Skip to: 1127 |
568 | | /* 1123 */ MCD_OPC_Decode, 140, 4, 46, // Opcode: MIN_rru6 |
569 | | /* 1127 */ MCD_OPC_FilterValue, 147, 1, 4, 0, 0, // Skip to: 1137 |
570 | | /* 1133 */ MCD_OPC_Decode, 136, 4, 46, // Opcode: MIN_f_rru6 |
571 | | /* 1137 */ MCD_OPC_FilterValue, 148, 1, 4, 0, 0, // Skip to: 1147 |
572 | | /* 1143 */ MCD_OPC_Decode, 153, 4, 47, // Opcode: MOV_ru6 |
573 | | /* 1147 */ MCD_OPC_FilterValue, 149, 1, 4, 0, 0, // Skip to: 1157 |
574 | | /* 1153 */ MCD_OPC_Decode, 149, 4, 47, // Opcode: MOV_f_ru6 |
575 | | /* 1157 */ MCD_OPC_FilterValue, 153, 1, 4, 0, 0, // Skip to: 1167 |
576 | | /* 1163 */ MCD_OPC_Decode, 245, 2, 47, // Opcode: CMP_ru6 |
577 | | /* 1167 */ MCD_OPC_FilterValue, 156, 1, 4, 0, 0, // Skip to: 1177 |
578 | | /* 1173 */ MCD_OPC_Decode, 222, 4, 46, // Opcode: RSUB_rru6 |
579 | | /* 1177 */ MCD_OPC_FilterValue, 157, 1, 4, 0, 0, // Skip to: 1187 |
580 | | /* 1183 */ MCD_OPC_Decode, 218, 4, 46, // Opcode: RSUB_f_rru6 |
581 | | /* 1187 */ MCD_OPC_FilterValue, 174, 1, 4, 0, 0, // Skip to: 1197 |
582 | | /* 1193 */ MCD_OPC_Decode, 163, 5, 46, // Opcode: SUB1_rru6 |
583 | | /* 1197 */ MCD_OPC_FilterValue, 175, 1, 4, 0, 0, // Skip to: 1207 |
584 | | /* 1203 */ MCD_OPC_Decode, 159, 5, 46, // Opcode: SUB1_f_rru6 |
585 | | /* 1207 */ MCD_OPC_FilterValue, 176, 1, 4, 0, 0, // Skip to: 1217 |
586 | | /* 1213 */ MCD_OPC_Decode, 173, 5, 46, // Opcode: SUB2_rru6 |
587 | | /* 1217 */ MCD_OPC_FilterValue, 177, 1, 4, 0, 0, // Skip to: 1227 |
588 | | /* 1223 */ MCD_OPC_Decode, 169, 5, 46, // Opcode: SUB2_f_rru6 |
589 | | /* 1227 */ MCD_OPC_FilterValue, 178, 1, 4, 0, 0, // Skip to: 1237 |
590 | | /* 1233 */ MCD_OPC_Decode, 183, 5, 46, // Opcode: SUB3_rru6 |
591 | | /* 1237 */ MCD_OPC_FilterValue, 179, 1, 4, 0, 0, // Skip to: 1247 |
592 | | /* 1243 */ MCD_OPC_Decode, 179, 5, 46, // Opcode: SUB3_f_rru6 |
593 | | /* 1247 */ MCD_OPC_FilterValue, 180, 1, 4, 0, 0, // Skip to: 1257 |
594 | | /* 1253 */ MCD_OPC_Decode, 183, 4, 46, // Opcode: MPY_rru6 |
595 | | /* 1257 */ MCD_OPC_FilterValue, 181, 1, 4, 0, 0, // Skip to: 1267 |
596 | | /* 1263 */ MCD_OPC_Decode, 179, 4, 46, // Opcode: MPY_f_rru6 |
597 | | /* 1267 */ MCD_OPC_FilterValue, 182, 1, 4, 0, 0, // Skip to: 1277 |
598 | | /* 1273 */ MCD_OPC_Decode, 173, 4, 46, // Opcode: MPYM_rru6 |
599 | | /* 1277 */ MCD_OPC_FilterValue, 183, 1, 4, 0, 0, // Skip to: 1287 |
600 | | /* 1283 */ MCD_OPC_Decode, 169, 4, 46, // Opcode: MPYM_f_rru6 |
601 | | /* 1287 */ MCD_OPC_FilterValue, 184, 1, 4, 0, 0, // Skip to: 1297 |
602 | | /* 1293 */ MCD_OPC_Decode, 163, 4, 46, // Opcode: MPYMU_rru6 |
603 | | /* 1297 */ MCD_OPC_FilterValue, 185, 1, 4, 0, 0, // Skip to: 1307 |
604 | | /* 1303 */ MCD_OPC_Decode, 159, 4, 46, // Opcode: MPYMU_f_rru6 |
605 | | /* 1307 */ MCD_OPC_FilterValue, 212, 1, 11, 0, 0, // Skip to: 1324 |
606 | | /* 1313 */ MCD_OPC_CheckField, 0, 6, 0, 190, 5, 0, // Skip to: 2790 |
607 | | /* 1320 */ MCD_OPC_Decode, 237, 3, 48, // Opcode: LR_ru6 |
608 | | /* 1324 */ MCD_OPC_FilterValue, 240, 1, 4, 0, 0, // Skip to: 1334 |
609 | | /* 1330 */ MCD_OPC_Decode, 242, 4, 46, // Opcode: SETEQ_rru6 |
610 | | /* 1334 */ MCD_OPC_FilterValue, 241, 1, 4, 0, 0, // Skip to: 1344 |
611 | | /* 1340 */ MCD_OPC_Decode, 238, 4, 46, // Opcode: SETEQ_f_rru6 |
612 | | /* 1344 */ MCD_OPC_FilterValue, 128, 2, 4, 0, 0, // Skip to: 1354 |
613 | | /* 1350 */ MCD_OPC_Decode, 179, 2, 49, // Opcode: ADD_rrs12 |
614 | | /* 1354 */ MCD_OPC_FilterValue, 129, 2, 4, 0, 0, // Skip to: 1364 |
615 | | /* 1360 */ MCD_OPC_Decode, 175, 2, 49, // Opcode: ADD_f_rrs12 |
616 | | /* 1364 */ MCD_OPC_FilterValue, 130, 2, 4, 0, 0, // Skip to: 1374 |
617 | | /* 1370 */ MCD_OPC_Decode, 161, 2, 49, // Opcode: ADC_rrs12 |
618 | | /* 1374 */ MCD_OPC_FilterValue, 131, 2, 4, 0, 0, // Skip to: 1384 |
619 | | /* 1380 */ MCD_OPC_Decode, 157, 2, 49, // Opcode: ADC_f_rrs12 |
620 | | /* 1384 */ MCD_OPC_FilterValue, 132, 2, 4, 0, 0, // Skip to: 1394 |
621 | | /* 1390 */ MCD_OPC_Decode, 195, 5, 49, // Opcode: SUB_rrs12 |
622 | | /* 1394 */ MCD_OPC_FilterValue, 133, 2, 4, 0, 0, // Skip to: 1404 |
623 | | /* 1400 */ MCD_OPC_Decode, 191, 5, 49, // Opcode: SUB_f_rrs12 |
624 | | /* 1404 */ MCD_OPC_FilterValue, 134, 2, 4, 0, 0, // Skip to: 1414 |
625 | | /* 1410 */ MCD_OPC_Decode, 231, 4, 49, // Opcode: SBC_rrs12 |
626 | | /* 1414 */ MCD_OPC_FilterValue, 135, 2, 4, 0, 0, // Skip to: 1424 |
627 | | /* 1420 */ MCD_OPC_Decode, 227, 4, 49, // Opcode: SBC_f_rrs12 |
628 | | /* 1424 */ MCD_OPC_FilterValue, 136, 2, 4, 0, 0, // Skip to: 1434 |
629 | | /* 1430 */ MCD_OPC_Decode, 189, 2, 49, // Opcode: AND_rrs12 |
630 | | /* 1434 */ MCD_OPC_FilterValue, 137, 2, 4, 0, 0, // Skip to: 1444 |
631 | | /* 1440 */ MCD_OPC_Decode, 185, 2, 49, // Opcode: AND_f_rrs12 |
632 | | /* 1444 */ MCD_OPC_FilterValue, 138, 2, 4, 0, 0, // Skip to: 1454 |
633 | | /* 1450 */ MCD_OPC_Decode, 196, 4, 49, // Opcode: OR_rrs12 |
634 | | /* 1454 */ MCD_OPC_FilterValue, 139, 2, 4, 0, 0, // Skip to: 1464 |
635 | | /* 1460 */ MCD_OPC_Decode, 192, 4, 49, // Opcode: OR_f_rrs12 |
636 | | /* 1464 */ MCD_OPC_FilterValue, 142, 2, 4, 0, 0, // Skip to: 1474 |
637 | | /* 1470 */ MCD_OPC_Decode, 205, 5, 49, // Opcode: XOR_rrs12 |
638 | | /* 1474 */ MCD_OPC_FilterValue, 143, 2, 4, 0, 0, // Skip to: 1484 |
639 | | /* 1480 */ MCD_OPC_Decode, 201, 5, 49, // Opcode: XOR_f_rrs12 |
640 | | /* 1484 */ MCD_OPC_FilterValue, 144, 2, 4, 0, 0, // Skip to: 1494 |
641 | | /* 1490 */ MCD_OPC_Decode, 129, 4, 49, // Opcode: MAX_rrs12 |
642 | | /* 1494 */ MCD_OPC_FilterValue, 145, 2, 4, 0, 0, // Skip to: 1504 |
643 | | /* 1500 */ MCD_OPC_Decode, 253, 3, 49, // Opcode: MAX_f_rrs12 |
644 | | /* 1504 */ MCD_OPC_FilterValue, 146, 2, 4, 0, 0, // Skip to: 1514 |
645 | | /* 1510 */ MCD_OPC_Decode, 139, 4, 49, // Opcode: MIN_rrs12 |
646 | | /* 1514 */ MCD_OPC_FilterValue, 147, 2, 4, 0, 0, // Skip to: 1524 |
647 | | /* 1520 */ MCD_OPC_Decode, 135, 4, 49, // Opcode: MIN_f_rrs12 |
648 | | /* 1524 */ MCD_OPC_FilterValue, 148, 2, 4, 0, 0, // Skip to: 1534 |
649 | | /* 1530 */ MCD_OPC_Decode, 152, 4, 50, // Opcode: MOV_rs12 |
650 | | /* 1534 */ MCD_OPC_FilterValue, 156, 2, 4, 0, 0, // Skip to: 1544 |
651 | | /* 1540 */ MCD_OPC_Decode, 221, 4, 49, // Opcode: RSUB_rrs12 |
652 | | /* 1544 */ MCD_OPC_FilterValue, 157, 2, 4, 0, 0, // Skip to: 1554 |
653 | | /* 1550 */ MCD_OPC_Decode, 217, 4, 49, // Opcode: RSUB_f_rrs12 |
654 | | /* 1554 */ MCD_OPC_FilterValue, 174, 2, 4, 0, 0, // Skip to: 1564 |
655 | | /* 1560 */ MCD_OPC_Decode, 162, 5, 49, // Opcode: SUB1_rrs12 |
656 | | /* 1564 */ MCD_OPC_FilterValue, 175, 2, 4, 0, 0, // Skip to: 1574 |
657 | | /* 1570 */ MCD_OPC_Decode, 158, 5, 49, // Opcode: SUB1_f_rrs12 |
658 | | /* 1574 */ MCD_OPC_FilterValue, 176, 2, 4, 0, 0, // Skip to: 1584 |
659 | | /* 1580 */ MCD_OPC_Decode, 172, 5, 49, // Opcode: SUB2_rrs12 |
660 | | /* 1584 */ MCD_OPC_FilterValue, 177, 2, 4, 0, 0, // Skip to: 1594 |
661 | | /* 1590 */ MCD_OPC_Decode, 168, 5, 49, // Opcode: SUB2_f_rrs12 |
662 | | /* 1594 */ MCD_OPC_FilterValue, 178, 2, 4, 0, 0, // Skip to: 1604 |
663 | | /* 1600 */ MCD_OPC_Decode, 182, 5, 49, // Opcode: SUB3_rrs12 |
664 | | /* 1604 */ MCD_OPC_FilterValue, 179, 2, 4, 0, 0, // Skip to: 1614 |
665 | | /* 1610 */ MCD_OPC_Decode, 178, 5, 49, // Opcode: SUB3_f_rrs12 |
666 | | /* 1614 */ MCD_OPC_FilterValue, 180, 2, 4, 0, 0, // Skip to: 1624 |
667 | | /* 1620 */ MCD_OPC_Decode, 182, 4, 49, // Opcode: MPY_rrs12 |
668 | | /* 1624 */ MCD_OPC_FilterValue, 181, 2, 4, 0, 0, // Skip to: 1634 |
669 | | /* 1630 */ MCD_OPC_Decode, 178, 4, 49, // Opcode: MPY_f_rrs12 |
670 | | /* 1634 */ MCD_OPC_FilterValue, 182, 2, 4, 0, 0, // Skip to: 1644 |
671 | | /* 1640 */ MCD_OPC_Decode, 172, 4, 49, // Opcode: MPYM_rrs12 |
672 | | /* 1644 */ MCD_OPC_FilterValue, 183, 2, 4, 0, 0, // Skip to: 1654 |
673 | | /* 1650 */ MCD_OPC_Decode, 168, 4, 49, // Opcode: MPYM_f_rrs12 |
674 | | /* 1654 */ MCD_OPC_FilterValue, 184, 2, 4, 0, 0, // Skip to: 1664 |
675 | | /* 1660 */ MCD_OPC_Decode, 162, 4, 49, // Opcode: MPYMU_rrs12 |
676 | | /* 1664 */ MCD_OPC_FilterValue, 185, 2, 4, 0, 0, // Skip to: 1674 |
677 | | /* 1670 */ MCD_OPC_Decode, 158, 4, 49, // Opcode: MPYMU_f_rrs12 |
678 | | /* 1674 */ MCD_OPC_FilterValue, 212, 2, 4, 0, 0, // Skip to: 1684 |
679 | | /* 1680 */ MCD_OPC_Decode, 236, 3, 51, // Opcode: LR_rs12 |
680 | | /* 1684 */ MCD_OPC_FilterValue, 240, 2, 4, 0, 0, // Skip to: 1694 |
681 | | /* 1690 */ MCD_OPC_Decode, 241, 4, 49, // Opcode: SETEQ_rrs12 |
682 | | /* 1694 */ MCD_OPC_FilterValue, 241, 2, 4, 0, 0, // Skip to: 1704 |
683 | | /* 1700 */ MCD_OPC_Decode, 237, 4, 49, // Opcode: SETEQ_f_rrs12 |
684 | | /* 1704 */ MCD_OPC_FilterValue, 128, 3, 11, 0, 0, // Skip to: 1721 |
685 | | /* 1710 */ MCD_OPC_CheckField, 5, 1, 1, 49, 4, 0, // Skip to: 2790 |
686 | | /* 1717 */ MCD_OPC_Decode, 172, 2, 52, // Opcode: ADD_cc_rru6 |
687 | | /* 1721 */ MCD_OPC_FilterValue, 129, 3, 11, 0, 0, // Skip to: 1738 |
688 | | /* 1727 */ MCD_OPC_CheckField, 5, 1, 1, 32, 4, 0, // Skip to: 2790 |
689 | | /* 1734 */ MCD_OPC_Decode, 171, 2, 52, // Opcode: ADD_cc_f_rru6 |
690 | | /* 1738 */ MCD_OPC_FilterValue, 130, 3, 11, 0, 0, // Skip to: 1755 |
691 | | /* 1744 */ MCD_OPC_CheckField, 5, 1, 1, 15, 4, 0, // Skip to: 2790 |
692 | | /* 1751 */ MCD_OPC_Decode, 154, 2, 52, // Opcode: ADC_cc_rru6 |
693 | | /* 1755 */ MCD_OPC_FilterValue, 131, 3, 11, 0, 0, // Skip to: 1772 |
694 | | /* 1761 */ MCD_OPC_CheckField, 5, 1, 1, 254, 3, 0, // Skip to: 2790 |
695 | | /* 1768 */ MCD_OPC_Decode, 153, 2, 52, // Opcode: ADC_cc_f_rru6 |
696 | | /* 1772 */ MCD_OPC_FilterValue, 132, 3, 11, 0, 0, // Skip to: 1789 |
697 | | /* 1778 */ MCD_OPC_CheckField, 5, 1, 1, 237, 3, 0, // Skip to: 2790 |
698 | | /* 1785 */ MCD_OPC_Decode, 188, 5, 52, // Opcode: SUB_cc_rru6 |
699 | | /* 1789 */ MCD_OPC_FilterValue, 133, 3, 11, 0, 0, // Skip to: 1806 |
700 | | /* 1795 */ MCD_OPC_CheckField, 5, 1, 1, 220, 3, 0, // Skip to: 2790 |
701 | | /* 1802 */ MCD_OPC_Decode, 187, 5, 52, // Opcode: SUB_cc_f_rru6 |
702 | | /* 1806 */ MCD_OPC_FilterValue, 134, 3, 11, 0, 0, // Skip to: 1823 |
703 | | /* 1812 */ MCD_OPC_CheckField, 5, 1, 1, 203, 3, 0, // Skip to: 2790 |
704 | | /* 1819 */ MCD_OPC_Decode, 224, 4, 52, // Opcode: SBC_cc_rru6 |
705 | | /* 1823 */ MCD_OPC_FilterValue, 135, 3, 11, 0, 0, // Skip to: 1840 |
706 | | /* 1829 */ MCD_OPC_CheckField, 5, 1, 1, 186, 3, 0, // Skip to: 2790 |
707 | | /* 1836 */ MCD_OPC_Decode, 223, 4, 52, // Opcode: SBC_cc_f_rru6 |
708 | | /* 1840 */ MCD_OPC_FilterValue, 136, 3, 11, 0, 0, // Skip to: 1857 |
709 | | /* 1846 */ MCD_OPC_CheckField, 5, 1, 1, 169, 3, 0, // Skip to: 2790 |
710 | | /* 1853 */ MCD_OPC_Decode, 182, 2, 52, // Opcode: AND_cc_rru6 |
711 | | /* 1857 */ MCD_OPC_FilterValue, 137, 3, 11, 0, 0, // Skip to: 1874 |
712 | | /* 1863 */ MCD_OPC_CheckField, 5, 1, 1, 152, 3, 0, // Skip to: 2790 |
713 | | /* 1870 */ MCD_OPC_Decode, 181, 2, 52, // Opcode: AND_cc_f_rru6 |
714 | | /* 1874 */ MCD_OPC_FilterValue, 138, 3, 11, 0, 0, // Skip to: 1891 |
715 | | /* 1880 */ MCD_OPC_CheckField, 5, 1, 1, 135, 3, 0, // Skip to: 2790 |
716 | | /* 1887 */ MCD_OPC_Decode, 189, 4, 52, // Opcode: OR_cc_rru6 |
717 | | /* 1891 */ MCD_OPC_FilterValue, 139, 3, 11, 0, 0, // Skip to: 1908 |
718 | | /* 1897 */ MCD_OPC_CheckField, 5, 1, 1, 118, 3, 0, // Skip to: 2790 |
719 | | /* 1904 */ MCD_OPC_Decode, 188, 4, 52, // Opcode: OR_cc_f_rru6 |
720 | | /* 1908 */ MCD_OPC_FilterValue, 142, 3, 11, 0, 0, // Skip to: 1925 |
721 | | /* 1914 */ MCD_OPC_CheckField, 5, 1, 1, 101, 3, 0, // Skip to: 2790 |
722 | | /* 1921 */ MCD_OPC_Decode, 198, 5, 52, // Opcode: XOR_cc_rru6 |
723 | | /* 1925 */ MCD_OPC_FilterValue, 143, 3, 11, 0, 0, // Skip to: 1942 |
724 | | /* 1931 */ MCD_OPC_CheckField, 5, 1, 1, 84, 3, 0, // Skip to: 2790 |
725 | | /* 1938 */ MCD_OPC_Decode, 197, 5, 52, // Opcode: XOR_cc_f_rru6 |
726 | | /* 1942 */ MCD_OPC_FilterValue, 144, 3, 11, 0, 0, // Skip to: 1959 |
727 | | /* 1948 */ MCD_OPC_CheckField, 5, 1, 1, 67, 3, 0, // Skip to: 2790 |
728 | | /* 1955 */ MCD_OPC_Decode, 250, 3, 52, // Opcode: MAX_cc_rru6 |
729 | | /* 1959 */ MCD_OPC_FilterValue, 145, 3, 11, 0, 0, // Skip to: 1976 |
730 | | /* 1965 */ MCD_OPC_CheckField, 5, 1, 1, 50, 3, 0, // Skip to: 2790 |
731 | | /* 1972 */ MCD_OPC_Decode, 249, 3, 52, // Opcode: MAX_cc_f_rru6 |
732 | | /* 1976 */ MCD_OPC_FilterValue, 146, 3, 11, 0, 0, // Skip to: 1993 |
733 | | /* 1982 */ MCD_OPC_CheckField, 5, 1, 1, 33, 3, 0, // Skip to: 2790 |
734 | | /* 1989 */ MCD_OPC_Decode, 132, 4, 52, // Opcode: MIN_cc_rru6 |
735 | | /* 1993 */ MCD_OPC_FilterValue, 147, 3, 11, 0, 0, // Skip to: 2010 |
736 | | /* 1999 */ MCD_OPC_CheckField, 5, 1, 1, 16, 3, 0, // Skip to: 2790 |
737 | | /* 2006 */ MCD_OPC_Decode, 131, 4, 52, // Opcode: MIN_cc_f_rru6 |
738 | | /* 2010 */ MCD_OPC_FilterValue, 148, 3, 21, 0, 0, // Skip to: 2037 |
739 | | /* 2016 */ MCD_OPC_ExtractField, 5, 1, // Inst{5} ... |
740 | | /* 2019 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 2028 |
741 | | /* 2024 */ MCD_OPC_Decode, 146, 4, 53, // Opcode: MOV_cc |
742 | | /* 2028 */ MCD_OPC_FilterValue, 1, 245, 2, 0, // Skip to: 2790 |
743 | | /* 2033 */ MCD_OPC_Decode, 148, 4, 54, // Opcode: MOV_cc_ru6 |
744 | | /* 2037 */ MCD_OPC_FilterValue, 149, 3, 11, 0, 0, // Skip to: 2054 |
745 | | /* 2043 */ MCD_OPC_CheckField, 5, 1, 1, 228, 2, 0, // Skip to: 2790 |
746 | | /* 2050 */ MCD_OPC_Decode, 147, 4, 54, // Opcode: MOV_cc_f_ru6 |
747 | | /* 2054 */ MCD_OPC_FilterValue, 156, 3, 11, 0, 0, // Skip to: 2071 |
748 | | /* 2060 */ MCD_OPC_CheckField, 5, 1, 1, 211, 2, 0, // Skip to: 2790 |
749 | | /* 2067 */ MCD_OPC_Decode, 214, 4, 52, // Opcode: RSUB_cc_rru6 |
750 | | /* 2071 */ MCD_OPC_FilterValue, 157, 3, 11, 0, 0, // Skip to: 2088 |
751 | | /* 2077 */ MCD_OPC_CheckField, 5, 1, 1, 194, 2, 0, // Skip to: 2790 |
752 | | /* 2084 */ MCD_OPC_Decode, 213, 4, 52, // Opcode: RSUB_cc_f_rru6 |
753 | | /* 2088 */ MCD_OPC_FilterValue, 174, 3, 11, 0, 0, // Skip to: 2105 |
754 | | /* 2094 */ MCD_OPC_CheckField, 5, 1, 1, 177, 2, 0, // Skip to: 2790 |
755 | | /* 2101 */ MCD_OPC_Decode, 155, 5, 52, // Opcode: SUB1_cc_rru6 |
756 | | /* 2105 */ MCD_OPC_FilterValue, 175, 3, 11, 0, 0, // Skip to: 2122 |
757 | | /* 2111 */ MCD_OPC_CheckField, 5, 1, 1, 160, 2, 0, // Skip to: 2790 |
758 | | /* 2118 */ MCD_OPC_Decode, 154, 5, 52, // Opcode: SUB1_cc_f_rru6 |
759 | | /* 2122 */ MCD_OPC_FilterValue, 176, 3, 11, 0, 0, // Skip to: 2139 |
760 | | /* 2128 */ MCD_OPC_CheckField, 5, 1, 1, 143, 2, 0, // Skip to: 2790 |
761 | | /* 2135 */ MCD_OPC_Decode, 165, 5, 52, // Opcode: SUB2_cc_rru6 |
762 | | /* 2139 */ MCD_OPC_FilterValue, 177, 3, 11, 0, 0, // Skip to: 2156 |
763 | | /* 2145 */ MCD_OPC_CheckField, 5, 1, 1, 126, 2, 0, // Skip to: 2790 |
764 | | /* 2152 */ MCD_OPC_Decode, 164, 5, 52, // Opcode: SUB2_cc_f_rru6 |
765 | | /* 2156 */ MCD_OPC_FilterValue, 178, 3, 11, 0, 0, // Skip to: 2173 |
766 | | /* 2162 */ MCD_OPC_CheckField, 5, 1, 1, 109, 2, 0, // Skip to: 2790 |
767 | | /* 2169 */ MCD_OPC_Decode, 175, 5, 52, // Opcode: SUB3_cc_rru6 |
768 | | /* 2173 */ MCD_OPC_FilterValue, 179, 3, 11, 0, 0, // Skip to: 2190 |
769 | | /* 2179 */ MCD_OPC_CheckField, 5, 1, 1, 92, 2, 0, // Skip to: 2790 |
770 | | /* 2186 */ MCD_OPC_Decode, 174, 5, 52, // Opcode: SUB3_cc_f_rru6 |
771 | | /* 2190 */ MCD_OPC_FilterValue, 180, 3, 11, 0, 0, // Skip to: 2207 |
772 | | /* 2196 */ MCD_OPC_CheckField, 5, 1, 1, 75, 2, 0, // Skip to: 2790 |
773 | | /* 2203 */ MCD_OPC_Decode, 175, 4, 52, // Opcode: MPY_cc_rru6 |
774 | | /* 2207 */ MCD_OPC_FilterValue, 181, 3, 11, 0, 0, // Skip to: 2224 |
775 | | /* 2213 */ MCD_OPC_CheckField, 5, 1, 1, 58, 2, 0, // Skip to: 2790 |
776 | | /* 2220 */ MCD_OPC_Decode, 174, 4, 52, // Opcode: MPY_cc_f_rru6 |
777 | | /* 2224 */ MCD_OPC_FilterValue, 182, 3, 11, 0, 0, // Skip to: 2241 |
778 | | /* 2230 */ MCD_OPC_CheckField, 5, 1, 1, 41, 2, 0, // Skip to: 2790 |
779 | | /* 2237 */ MCD_OPC_Decode, 165, 4, 52, // Opcode: MPYM_cc_rru6 |
780 | | /* 2241 */ MCD_OPC_FilterValue, 183, 3, 11, 0, 0, // Skip to: 2258 |
781 | | /* 2247 */ MCD_OPC_CheckField, 5, 1, 1, 24, 2, 0, // Skip to: 2790 |
782 | | /* 2254 */ MCD_OPC_Decode, 164, 4, 52, // Opcode: MPYM_cc_f_rru6 |
783 | | /* 2258 */ MCD_OPC_FilterValue, 184, 3, 11, 0, 0, // Skip to: 2275 |
784 | | /* 2264 */ MCD_OPC_CheckField, 5, 1, 1, 7, 2, 0, // Skip to: 2790 |
785 | | /* 2271 */ MCD_OPC_Decode, 155, 4, 52, // Opcode: MPYMU_cc_rru6 |
786 | | /* 2275 */ MCD_OPC_FilterValue, 185, 3, 11, 0, 0, // Skip to: 2292 |
787 | | /* 2281 */ MCD_OPC_CheckField, 5, 1, 1, 246, 1, 0, // Skip to: 2790 |
788 | | /* 2288 */ MCD_OPC_Decode, 154, 4, 52, // Opcode: MPYMU_cc_f_rru6 |
789 | | /* 2292 */ MCD_OPC_FilterValue, 240, 3, 11, 0, 0, // Skip to: 2309 |
790 | | /* 2298 */ MCD_OPC_CheckField, 5, 1, 1, 229, 1, 0, // Skip to: 2790 |
791 | | /* 2305 */ MCD_OPC_Decode, 234, 4, 52, // Opcode: SETEQ_cc_rru6 |
792 | | /* 2309 */ MCD_OPC_FilterValue, 241, 3, 219, 1, 0, // Skip to: 2790 |
793 | | /* 2315 */ MCD_OPC_CheckField, 5, 1, 1, 212, 1, 0, // Skip to: 2790 |
794 | | /* 2322 */ MCD_OPC_Decode, 233, 4, 52, // Opcode: SETEQ_cc_f_rru6 |
795 | | /* 2326 */ MCD_OPC_FilterValue, 5, 203, 1, 0, // Skip to: 2790 |
796 | | /* 2331 */ MCD_OPC_ExtractField, 15, 9, // Inst{23-15} ... |
797 | | /* 2334 */ MCD_OPC_FilterValue, 0, 4, 0, 0, // Skip to: 2343 |
798 | | /* 2339 */ MCD_OPC_Decode, 200, 2, 43, // Opcode: ASL_rrr |
799 | | /* 2343 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 2352 |
800 | | /* 2348 */ MCD_OPC_Decode, 196, 2, 43, // Opcode: ASL_f_rrr |
801 | | /* 2352 */ MCD_OPC_FilterValue, 2, 4, 0, 0, // Skip to: 2361 |
802 | | /* 2357 */ MCD_OPC_Decode, 246, 3, 43, // Opcode: LSR_rrr |
803 | | /* 2361 */ MCD_OPC_FilterValue, 3, 4, 0, 0, // Skip to: 2370 |
804 | | /* 2366 */ MCD_OPC_Decode, 242, 3, 43, // Opcode: LSR_f_rrr |
805 | | /* 2370 */ MCD_OPC_FilterValue, 4, 4, 0, 0, // Skip to: 2379 |
806 | | /* 2375 */ MCD_OPC_Decode, 212, 2, 43, // Opcode: ASR_rrr |
807 | | /* 2379 */ MCD_OPC_FilterValue, 5, 4, 0, 0, // Skip to: 2388 |
808 | | /* 2384 */ MCD_OPC_Decode, 208, 2, 43, // Opcode: ASR_f_rrr |
809 | | /* 2388 */ MCD_OPC_FilterValue, 6, 4, 0, 0, // Skip to: 2397 |
810 | | /* 2393 */ MCD_OPC_Decode, 210, 4, 43, // Opcode: ROR_rrr |
811 | | /* 2397 */ MCD_OPC_FilterValue, 7, 4, 0, 0, // Skip to: 2406 |
812 | | /* 2402 */ MCD_OPC_Decode, 206, 4, 43, // Opcode: ROR_f_rrr |
813 | | /* 2406 */ MCD_OPC_FilterValue, 94, 39, 0, 0, // Skip to: 2450 |
814 | | /* 2411 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
815 | | /* 2414 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 2423 |
816 | | /* 2419 */ MCD_OPC_Decode, 187, 4, 44, // Opcode: NORM_rr |
817 | | /* 2423 */ MCD_OPC_FilterValue, 8, 4, 0, 0, // Skip to: 2432 |
818 | | /* 2428 */ MCD_OPC_Decode, 185, 4, 44, // Opcode: NORMH_rr |
819 | | /* 2432 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 2441 |
820 | | /* 2437 */ MCD_OPC_Decode, 252, 2, 44, // Opcode: FFS_rr |
821 | | /* 2441 */ MCD_OPC_FilterValue, 19, 88, 1, 0, // Skip to: 2790 |
822 | | /* 2446 */ MCD_OPC_Decode, 254, 2, 44, // Opcode: FLS_rr |
823 | | /* 2450 */ MCD_OPC_FilterValue, 95, 39, 0, 0, // Skip to: 2494 |
824 | | /* 2455 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
825 | | /* 2458 */ MCD_OPC_FilterValue, 1, 4, 0, 0, // Skip to: 2467 |
826 | | /* 2463 */ MCD_OPC_Decode, 186, 4, 44, // Opcode: NORM_f_rr |
827 | | /* 2467 */ MCD_OPC_FilterValue, 8, 4, 0, 0, // Skip to: 2476 |
828 | | /* 2472 */ MCD_OPC_Decode, 184, 4, 44, // Opcode: NORMH_f_rr |
829 | | /* 2476 */ MCD_OPC_FilterValue, 18, 4, 0, 0, // Skip to: 2485 |
830 | | /* 2481 */ MCD_OPC_Decode, 251, 2, 44, // Opcode: FFS_f_rr |
831 | | /* 2485 */ MCD_OPC_FilterValue, 19, 44, 1, 0, // Skip to: 2790 |
832 | | /* 2490 */ MCD_OPC_Decode, 253, 2, 44, // Opcode: FLS_f_rr |
833 | | /* 2494 */ MCD_OPC_FilterValue, 128, 1, 4, 0, 0, // Skip to: 2504 |
834 | | /* 2500 */ MCD_OPC_Decode, 202, 2, 46, // Opcode: ASL_rru6 |
835 | | /* 2504 */ MCD_OPC_FilterValue, 129, 1, 4, 0, 0, // Skip to: 2514 |
836 | | /* 2510 */ MCD_OPC_Decode, 198, 2, 46, // Opcode: ASL_f_rru6 |
837 | | /* 2514 */ MCD_OPC_FilterValue, 130, 1, 4, 0, 0, // Skip to: 2524 |
838 | | /* 2520 */ MCD_OPC_Decode, 248, 3, 46, // Opcode: LSR_rru6 |
839 | | /* 2524 */ MCD_OPC_FilterValue, 131, 1, 4, 0, 0, // Skip to: 2534 |
840 | | /* 2530 */ MCD_OPC_Decode, 244, 3, 46, // Opcode: LSR_f_rru6 |
841 | | /* 2534 */ MCD_OPC_FilterValue, 132, 1, 4, 0, 0, // Skip to: 2544 |
842 | | /* 2540 */ MCD_OPC_Decode, 214, 2, 46, // Opcode: ASR_rru6 |
843 | | /* 2544 */ MCD_OPC_FilterValue, 133, 1, 4, 0, 0, // Skip to: 2554 |
844 | | /* 2550 */ MCD_OPC_Decode, 210, 2, 46, // Opcode: ASR_f_rru6 |
845 | | /* 2554 */ MCD_OPC_FilterValue, 134, 1, 4, 0, 0, // Skip to: 2564 |
846 | | /* 2560 */ MCD_OPC_Decode, 212, 4, 46, // Opcode: ROR_rru6 |
847 | | /* 2564 */ MCD_OPC_FilterValue, 135, 1, 4, 0, 0, // Skip to: 2574 |
848 | | /* 2570 */ MCD_OPC_Decode, 208, 4, 46, // Opcode: ROR_f_rru6 |
849 | | /* 2574 */ MCD_OPC_FilterValue, 128, 2, 4, 0, 0, // Skip to: 2584 |
850 | | /* 2580 */ MCD_OPC_Decode, 201, 2, 49, // Opcode: ASL_rrs12 |
851 | | /* 2584 */ MCD_OPC_FilterValue, 129, 2, 4, 0, 0, // Skip to: 2594 |
852 | | /* 2590 */ MCD_OPC_Decode, 197, 2, 49, // Opcode: ASL_f_rrs12 |
853 | | /* 2594 */ MCD_OPC_FilterValue, 130, 2, 4, 0, 0, // Skip to: 2604 |
854 | | /* 2600 */ MCD_OPC_Decode, 247, 3, 49, // Opcode: LSR_rrs12 |
855 | | /* 2604 */ MCD_OPC_FilterValue, 131, 2, 4, 0, 0, // Skip to: 2614 |
856 | | /* 2610 */ MCD_OPC_Decode, 243, 3, 49, // Opcode: LSR_f_rrs12 |
857 | | /* 2614 */ MCD_OPC_FilterValue, 132, 2, 4, 0, 0, // Skip to: 2624 |
858 | | /* 2620 */ MCD_OPC_Decode, 213, 2, 49, // Opcode: ASR_rrs12 |
859 | | /* 2624 */ MCD_OPC_FilterValue, 133, 2, 4, 0, 0, // Skip to: 2634 |
860 | | /* 2630 */ MCD_OPC_Decode, 209, 2, 49, // Opcode: ASR_f_rrs12 |
861 | | /* 2634 */ MCD_OPC_FilterValue, 134, 2, 4, 0, 0, // Skip to: 2644 |
862 | | /* 2640 */ MCD_OPC_Decode, 211, 4, 49, // Opcode: ROR_rrs12 |
863 | | /* 2644 */ MCD_OPC_FilterValue, 135, 2, 4, 0, 0, // Skip to: 2654 |
864 | | /* 2650 */ MCD_OPC_Decode, 207, 4, 49, // Opcode: ROR_f_rrs12 |
865 | | /* 2654 */ MCD_OPC_FilterValue, 128, 3, 11, 0, 0, // Skip to: 2671 |
866 | | /* 2660 */ MCD_OPC_CheckField, 5, 1, 1, 123, 0, 0, // Skip to: 2790 |
867 | | /* 2667 */ MCD_OPC_Decode, 194, 2, 52, // Opcode: ASL_cc_rru6 |
868 | | /* 2671 */ MCD_OPC_FilterValue, 129, 3, 11, 0, 0, // Skip to: 2688 |
869 | | /* 2677 */ MCD_OPC_CheckField, 5, 1, 1, 106, 0, 0, // Skip to: 2790 |
870 | | /* 2684 */ MCD_OPC_Decode, 193, 2, 52, // Opcode: ASL_cc_f_rru6 |
871 | | /* 2688 */ MCD_OPC_FilterValue, 130, 3, 11, 0, 0, // Skip to: 2705 |
872 | | /* 2694 */ MCD_OPC_CheckField, 5, 1, 1, 89, 0, 0, // Skip to: 2790 |
873 | | /* 2701 */ MCD_OPC_Decode, 240, 3, 52, // Opcode: LSR_cc_rru6 |
874 | | /* 2705 */ MCD_OPC_FilterValue, 131, 3, 11, 0, 0, // Skip to: 2722 |
875 | | /* 2711 */ MCD_OPC_CheckField, 5, 1, 1, 72, 0, 0, // Skip to: 2790 |
876 | | /* 2718 */ MCD_OPC_Decode, 239, 3, 52, // Opcode: LSR_cc_f_rru6 |
877 | | /* 2722 */ MCD_OPC_FilterValue, 132, 3, 11, 0, 0, // Skip to: 2739 |
878 | | /* 2728 */ MCD_OPC_CheckField, 5, 1, 1, 55, 0, 0, // Skip to: 2790 |
879 | | /* 2735 */ MCD_OPC_Decode, 206, 2, 52, // Opcode: ASR_cc_rru6 |
880 | | /* 2739 */ MCD_OPC_FilterValue, 133, 3, 11, 0, 0, // Skip to: 2756 |
881 | | /* 2745 */ MCD_OPC_CheckField, 5, 1, 1, 38, 0, 0, // Skip to: 2790 |
882 | | /* 2752 */ MCD_OPC_Decode, 205, 2, 52, // Opcode: ASR_cc_f_rru6 |
883 | | /* 2756 */ MCD_OPC_FilterValue, 134, 3, 11, 0, 0, // Skip to: 2773 |
884 | | /* 2762 */ MCD_OPC_CheckField, 5, 1, 1, 21, 0, 0, // Skip to: 2790 |
885 | | /* 2769 */ MCD_OPC_Decode, 204, 4, 52, // Opcode: ROR_cc_rru6 |
886 | | /* 2773 */ MCD_OPC_FilterValue, 135, 3, 11, 0, 0, // Skip to: 2790 |
887 | | /* 2779 */ MCD_OPC_CheckField, 5, 1, 1, 4, 0, 0, // Skip to: 2790 |
888 | | /* 2786 */ MCD_OPC_Decode, 203, 4, 52, // Opcode: ROR_cc_f_rru6 |
889 | | /* 2790 */ MCD_OPC_Fail, |
890 | | 0 |
891 | | }; |
892 | | |
893 | | static const uint8_t DecoderTable48[] = { |
894 | | /* 0 */ MCD_OPC_ExtractField, 0, 3, // Inst{2-0} ... |
895 | | /* 3 */ MCD_OPC_FilterValue, 3, 45, 0, 0, // Skip to: 53 |
896 | | /* 8 */ MCD_OPC_ExtractField, 11, 5, // Inst{15-11} ... |
897 | | /* 11 */ MCD_OPC_FilterValue, 8, 11, 0, 0, // Skip to: 27 |
898 | | /* 16 */ MCD_OPC_CheckField, 5, 3, 6, 86, 0, 0, // Skip to: 109 |
899 | | /* 23 */ MCD_OPC_Decode, 248, 2, 0, // Opcode: COMPACT_MOV_S_limm |
900 | | /* 27 */ MCD_OPC_FilterValue, 14, 77, 0, 0, // Skip to: 109 |
901 | | /* 32 */ MCD_OPC_ExtractField, 3, 5, // Inst{7-3} ... |
902 | | /* 35 */ MCD_OPC_FilterValue, 24, 4, 0, 0, // Skip to: 44 |
903 | | /* 40 */ MCD_OPC_Decode, 164, 2, 55, // Opcode: ADD_S_rlimm |
904 | | /* 44 */ MCD_OPC_FilterValue, 26, 60, 0, 0, // Skip to: 109 |
905 | | /* 49 */ MCD_OPC_Decode, 239, 2, 55, // Opcode: CMP_S_rlimm |
906 | | /* 53 */ MCD_OPC_FilterValue, 7, 51, 0, 0, // Skip to: 109 |
907 | | /* 58 */ MCD_OPC_ExtractField, 3, 5, // Inst{7-3} ... |
908 | | /* 61 */ MCD_OPC_FilterValue, 24, 11, 0, 0, // Skip to: 77 |
909 | | /* 66 */ MCD_OPC_CheckField, 11, 5, 14, 36, 0, 0, // Skip to: 109 |
910 | | /* 73 */ MCD_OPC_Decode, 163, 2, 56, // Opcode: ADD_S_limms3 |
911 | | /* 77 */ MCD_OPC_FilterValue, 26, 11, 0, 0, // Skip to: 93 |
912 | | /* 82 */ MCD_OPC_CheckField, 11, 5, 14, 20, 0, 0, // Skip to: 109 |
913 | | /* 89 */ MCD_OPC_Decode, 238, 2, 56, // Opcode: CMP_S_limms3 |
914 | | /* 93 */ MCD_OPC_FilterValue, 27, 11, 0, 0, // Skip to: 109 |
915 | | /* 98 */ MCD_OPC_CheckField, 11, 5, 14, 4, 0, 0, // Skip to: 109 |
916 | | /* 105 */ MCD_OPC_Decode, 141, 4, 55, // Opcode: MOV_S_NE_rlimm |
917 | | /* 109 */ MCD_OPC_Fail, |
918 | | 0 |
919 | | }; |
920 | | |
921 | | static const uint8_t DecoderTable64[] = { |
922 | | /* 0 */ MCD_OPC_ExtractField, 15, 9, // Inst{23-15} ... |
923 | | /* 3 */ MCD_OPC_FilterValue, 0, 103, 1, 0, // Skip to: 367 |
924 | | /* 8 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
925 | | /* 11 */ MCD_OPC_FilterValue, 2, 173, 0, 0, // Skip to: 189 |
926 | | /* 16 */ MCD_OPC_ExtractField, 6, 9, // Inst{14-6} ... |
927 | | /* 19 */ MCD_OPC_FilterValue, 192, 3, 11, 0, 0, // Skip to: 36 |
928 | | /* 25 */ MCD_OPC_CheckField, 24, 3, 6, 255, 5, 0, // Skip to: 1567 |
929 | | /* 32 */ MCD_OPC_Decode, 232, 3, 57, // Opcode: LD_limm |
930 | | /* 36 */ MCD_OPC_FilterValue, 194, 3, 11, 0, 0, // Skip to: 53 |
931 | | /* 42 */ MCD_OPC_CheckField, 24, 3, 6, 238, 5, 0, // Skip to: 1567 |
932 | | /* 49 */ MCD_OPC_Decode, 194, 3, 57, // Opcode: LDB_limm |
933 | | /* 53 */ MCD_OPC_FilterValue, 195, 3, 11, 0, 0, // Skip to: 70 |
934 | | /* 59 */ MCD_OPC_CheckField, 24, 3, 6, 221, 5, 0, // Skip to: 1567 |
935 | | /* 66 */ MCD_OPC_Decode, 191, 3, 57, // Opcode: LDB_X_limm |
936 | | /* 70 */ MCD_OPC_FilterValue, 196, 3, 11, 0, 0, // Skip to: 87 |
937 | | /* 76 */ MCD_OPC_CheckField, 24, 3, 6, 204, 5, 0, // Skip to: 1567 |
938 | | /* 83 */ MCD_OPC_Decode, 217, 3, 57, // Opcode: LDH_limm |
939 | | /* 87 */ MCD_OPC_FilterValue, 197, 3, 11, 0, 0, // Skip to: 104 |
940 | | /* 93 */ MCD_OPC_CheckField, 24, 3, 6, 187, 5, 0, // Skip to: 1567 |
941 | | /* 100 */ MCD_OPC_Decode, 214, 3, 57, // Opcode: LDH_X_limm |
942 | | /* 104 */ MCD_OPC_FilterValue, 224, 3, 11, 0, 0, // Skip to: 121 |
943 | | /* 110 */ MCD_OPC_CheckField, 24, 3, 6, 170, 5, 0, // Skip to: 1567 |
944 | | /* 117 */ MCD_OPC_Decode, 225, 3, 57, // Opcode: LD_DI_limm |
945 | | /* 121 */ MCD_OPC_FilterValue, 226, 3, 11, 0, 0, // Skip to: 138 |
946 | | /* 127 */ MCD_OPC_CheckField, 24, 3, 6, 153, 5, 0, // Skip to: 1567 |
947 | | /* 134 */ MCD_OPC_Decode, 179, 3, 57, // Opcode: LDB_DI_limm |
948 | | /* 138 */ MCD_OPC_FilterValue, 227, 3, 11, 0, 0, // Skip to: 155 |
949 | | /* 144 */ MCD_OPC_CheckField, 24, 3, 6, 136, 5, 0, // Skip to: 1567 |
950 | | /* 151 */ MCD_OPC_Decode, 188, 3, 57, // Opcode: LDB_X_DI_limm |
951 | | /* 155 */ MCD_OPC_FilterValue, 228, 3, 11, 0, 0, // Skip to: 172 |
952 | | /* 161 */ MCD_OPC_CheckField, 24, 3, 6, 119, 5, 0, // Skip to: 1567 |
953 | | /* 168 */ MCD_OPC_Decode, 201, 3, 57, // Opcode: LDH_DI_limm |
954 | | /* 172 */ MCD_OPC_FilterValue, 229, 3, 109, 5, 0, // Skip to: 1567 |
955 | | /* 178 */ MCD_OPC_CheckField, 24, 3, 6, 102, 5, 0, // Skip to: 1567 |
956 | | /* 185 */ MCD_OPC_Decode, 211, 3, 57, // Opcode: LDH_X_DI_limm |
957 | | /* 189 */ MCD_OPC_FilterValue, 3, 141, 0, 0, // Skip to: 335 |
958 | | /* 194 */ MCD_OPC_ExtractField, 0, 6, // Inst{5-0} ... |
959 | | /* 197 */ MCD_OPC_FilterValue, 0, 18, 0, 0, // Skip to: 220 |
960 | | /* 202 */ MCD_OPC_CheckField, 24, 3, 6, 78, 5, 0, // Skip to: 1567 |
961 | | /* 209 */ MCD_OPC_CheckField, 12, 3, 7, 71, 5, 0, // Skip to: 1567 |
962 | | /* 216 */ MCD_OPC_Decode, 152, 5, 58, // Opcode: ST_limm |
963 | | /* 220 */ MCD_OPC_FilterValue, 2, 18, 0, 0, // Skip to: 243 |
964 | | /* 225 */ MCD_OPC_CheckField, 24, 3, 6, 55, 5, 0, // Skip to: 1567 |
965 | | /* 232 */ MCD_OPC_CheckField, 12, 3, 7, 48, 5, 0, // Skip to: 1567 |
966 | | /* 239 */ MCD_OPC_Decode, 133, 5, 58, // Opcode: STB_limm |
967 | | /* 243 */ MCD_OPC_FilterValue, 4, 18, 0, 0, // Skip to: 266 |
968 | | /* 248 */ MCD_OPC_CheckField, 24, 3, 6, 32, 5, 0, // Skip to: 1567 |
969 | | /* 255 */ MCD_OPC_CheckField, 12, 3, 7, 25, 5, 0, // Skip to: 1567 |
970 | | /* 262 */ MCD_OPC_Decode, 142, 5, 58, // Opcode: STH_limm |
971 | | /* 266 */ MCD_OPC_FilterValue, 32, 18, 0, 0, // Skip to: 289 |
972 | | /* 271 */ MCD_OPC_CheckField, 24, 3, 6, 9, 5, 0, // Skip to: 1567 |
973 | | /* 278 */ MCD_OPC_CheckField, 12, 3, 7, 2, 5, 0, // Skip to: 1567 |
974 | | /* 285 */ MCD_OPC_Decode, 148, 5, 58, // Opcode: ST_DI_limm |
975 | | /* 289 */ MCD_OPC_FilterValue, 34, 18, 0, 0, // Skip to: 312 |
976 | | /* 294 */ MCD_OPC_CheckField, 24, 3, 6, 242, 4, 0, // Skip to: 1567 |
977 | | /* 301 */ MCD_OPC_CheckField, 12, 3, 7, 235, 4, 0, // Skip to: 1567 |
978 | | /* 308 */ MCD_OPC_Decode, 130, 5, 58, // Opcode: STB_DI_limm |
979 | | /* 312 */ MCD_OPC_FilterValue, 36, 226, 4, 0, // Skip to: 1567 |
980 | | /* 317 */ MCD_OPC_CheckField, 24, 3, 6, 219, 4, 0, // Skip to: 1567 |
981 | | /* 324 */ MCD_OPC_CheckField, 12, 3, 7, 212, 4, 0, // Skip to: 1567 |
982 | | /* 331 */ MCD_OPC_Decode, 139, 5, 58, // Opcode: STH_DI_limm |
983 | | /* 335 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 351 |
984 | | /* 340 */ MCD_OPC_CheckField, 6, 6, 62, 196, 4, 0, // Skip to: 1567 |
985 | | /* 347 */ MCD_OPC_Decode, 177, 2, 59, // Opcode: ADD_rrlimm |
986 | | /* 351 */ MCD_OPC_FilterValue, 5, 187, 4, 0, // Skip to: 1567 |
987 | | /* 356 */ MCD_OPC_CheckField, 6, 6, 62, 180, 4, 0, // Skip to: 1567 |
988 | | /* 363 */ MCD_OPC_Decode, 199, 2, 59, // Opcode: ASL_rrlimm |
989 | | /* 367 */ MCD_OPC_FilterValue, 1, 35, 0, 0, // Skip to: 407 |
990 | | /* 372 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
991 | | /* 375 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 391 |
992 | | /* 380 */ MCD_OPC_CheckField, 6, 6, 62, 156, 4, 0, // Skip to: 1567 |
993 | | /* 387 */ MCD_OPC_Decode, 173, 2, 59, // Opcode: ADD_f_rrlimm |
994 | | /* 391 */ MCD_OPC_FilterValue, 5, 147, 4, 0, // Skip to: 1567 |
995 | | /* 396 */ MCD_OPC_CheckField, 6, 6, 62, 140, 4, 0, // Skip to: 1567 |
996 | | /* 403 */ MCD_OPC_Decode, 195, 2, 59, // Opcode: ASL_f_rrlimm |
997 | | /* 407 */ MCD_OPC_FilterValue, 2, 35, 0, 0, // Skip to: 447 |
998 | | /* 412 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
999 | | /* 415 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 431 |
1000 | | /* 420 */ MCD_OPC_CheckField, 6, 6, 62, 116, 4, 0, // Skip to: 1567 |
1001 | | /* 427 */ MCD_OPC_Decode, 159, 2, 59, // Opcode: ADC_rrlimm |
1002 | | /* 431 */ MCD_OPC_FilterValue, 5, 107, 4, 0, // Skip to: 1567 |
1003 | | /* 436 */ MCD_OPC_CheckField, 6, 6, 62, 100, 4, 0, // Skip to: 1567 |
1004 | | /* 443 */ MCD_OPC_Decode, 245, 3, 59, // Opcode: LSR_rrlimm |
1005 | | /* 447 */ MCD_OPC_FilterValue, 3, 35, 0, 0, // Skip to: 487 |
1006 | | /* 452 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
1007 | | /* 455 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 471 |
1008 | | /* 460 */ MCD_OPC_CheckField, 6, 6, 62, 76, 4, 0, // Skip to: 1567 |
1009 | | /* 467 */ MCD_OPC_Decode, 155, 2, 59, // Opcode: ADC_f_rrlimm |
1010 | | /* 471 */ MCD_OPC_FilterValue, 5, 67, 4, 0, // Skip to: 1567 |
1011 | | /* 476 */ MCD_OPC_CheckField, 6, 6, 62, 60, 4, 0, // Skip to: 1567 |
1012 | | /* 483 */ MCD_OPC_Decode, 241, 3, 59, // Opcode: LSR_f_rrlimm |
1013 | | /* 487 */ MCD_OPC_FilterValue, 4, 35, 0, 0, // Skip to: 527 |
1014 | | /* 492 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
1015 | | /* 495 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 511 |
1016 | | /* 500 */ MCD_OPC_CheckField, 6, 6, 62, 36, 4, 0, // Skip to: 1567 |
1017 | | /* 507 */ MCD_OPC_Decode, 193, 5, 59, // Opcode: SUB_rrlimm |
1018 | | /* 511 */ MCD_OPC_FilterValue, 5, 27, 4, 0, // Skip to: 1567 |
1019 | | /* 516 */ MCD_OPC_CheckField, 6, 6, 62, 20, 4, 0, // Skip to: 1567 |
1020 | | /* 523 */ MCD_OPC_Decode, 211, 2, 59, // Opcode: ASR_rrlimm |
1021 | | /* 527 */ MCD_OPC_FilterValue, 5, 35, 0, 0, // Skip to: 567 |
1022 | | /* 532 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
1023 | | /* 535 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 551 |
1024 | | /* 540 */ MCD_OPC_CheckField, 6, 6, 62, 252, 3, 0, // Skip to: 1567 |
1025 | | /* 547 */ MCD_OPC_Decode, 189, 5, 59, // Opcode: SUB_f_rrlimm |
1026 | | /* 551 */ MCD_OPC_FilterValue, 5, 243, 3, 0, // Skip to: 1567 |
1027 | | /* 556 */ MCD_OPC_CheckField, 6, 6, 62, 236, 3, 0, // Skip to: 1567 |
1028 | | /* 563 */ MCD_OPC_Decode, 207, 2, 59, // Opcode: ASR_f_rrlimm |
1029 | | /* 567 */ MCD_OPC_FilterValue, 6, 35, 0, 0, // Skip to: 607 |
1030 | | /* 572 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
1031 | | /* 575 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 591 |
1032 | | /* 580 */ MCD_OPC_CheckField, 6, 6, 62, 212, 3, 0, // Skip to: 1567 |
1033 | | /* 587 */ MCD_OPC_Decode, 229, 4, 59, // Opcode: SBC_rrlimm |
1034 | | /* 591 */ MCD_OPC_FilterValue, 5, 203, 3, 0, // Skip to: 1567 |
1035 | | /* 596 */ MCD_OPC_CheckField, 6, 6, 62, 196, 3, 0, // Skip to: 1567 |
1036 | | /* 603 */ MCD_OPC_Decode, 209, 4, 59, // Opcode: ROR_rrlimm |
1037 | | /* 607 */ MCD_OPC_FilterValue, 7, 35, 0, 0, // Skip to: 647 |
1038 | | /* 612 */ MCD_OPC_ExtractField, 27, 5, // Inst{31-27} ... |
1039 | | /* 615 */ MCD_OPC_FilterValue, 4, 11, 0, 0, // Skip to: 631 |
1040 | | /* 620 */ MCD_OPC_CheckField, 6, 6, 62, 172, 3, 0, // Skip to: 1567 |
1041 | | /* 627 */ MCD_OPC_Decode, 225, 4, 59, // Opcode: SBC_f_rrlimm |
1042 | | /* 631 */ MCD_OPC_FilterValue, 5, 163, 3, 0, // Skip to: 1567 |
1043 | | /* 636 */ MCD_OPC_CheckField, 6, 6, 62, 156, 3, 0, // Skip to: 1567 |
1044 | | /* 643 */ MCD_OPC_Decode, 205, 4, 59, // Opcode: ROR_f_rrlimm |
1045 | | /* 647 */ MCD_OPC_FilterValue, 8, 18, 0, 0, // Skip to: 670 |
1046 | | /* 652 */ MCD_OPC_CheckField, 27, 5, 4, 140, 3, 0, // Skip to: 1567 |
1047 | | /* 659 */ MCD_OPC_CheckField, 6, 6, 62, 133, 3, 0, // Skip to: 1567 |
1048 | | /* 666 */ MCD_OPC_Decode, 187, 2, 59, // Opcode: AND_rrlimm |
1049 | | /* 670 */ MCD_OPC_FilterValue, 9, 18, 0, 0, // Skip to: 693 |
1050 | | /* 675 */ MCD_OPC_CheckField, 27, 5, 4, 117, 3, 0, // Skip to: 1567 |
1051 | | /* 682 */ MCD_OPC_CheckField, 6, 6, 62, 110, 3, 0, // Skip to: 1567 |
1052 | | /* 689 */ MCD_OPC_Decode, 183, 2, 59, // Opcode: AND_f_rrlimm |
1053 | | /* 693 */ MCD_OPC_FilterValue, 10, 18, 0, 0, // Skip to: 716 |
1054 | | /* 698 */ MCD_OPC_CheckField, 27, 5, 4, 94, 3, 0, // Skip to: 1567 |
1055 | | /* 705 */ MCD_OPC_CheckField, 6, 6, 62, 87, 3, 0, // Skip to: 1567 |
1056 | | /* 712 */ MCD_OPC_Decode, 194, 4, 59, // Opcode: OR_rrlimm |
1057 | | /* 716 */ MCD_OPC_FilterValue, 11, 18, 0, 0, // Skip to: 739 |
1058 | | /* 721 */ MCD_OPC_CheckField, 27, 5, 4, 71, 3, 0, // Skip to: 1567 |
1059 | | /* 728 */ MCD_OPC_CheckField, 6, 6, 62, 64, 3, 0, // Skip to: 1567 |
1060 | | /* 735 */ MCD_OPC_Decode, 190, 4, 59, // Opcode: OR_f_rrlimm |
1061 | | /* 739 */ MCD_OPC_FilterValue, 14, 18, 0, 0, // Skip to: 762 |
1062 | | /* 744 */ MCD_OPC_CheckField, 27, 5, 4, 48, 3, 0, // Skip to: 1567 |
1063 | | /* 751 */ MCD_OPC_CheckField, 6, 6, 62, 41, 3, 0, // Skip to: 1567 |
1064 | | /* 758 */ MCD_OPC_Decode, 203, 5, 59, // Opcode: XOR_rrlimm |
1065 | | /* 762 */ MCD_OPC_FilterValue, 15, 18, 0, 0, // Skip to: 785 |
1066 | | /* 767 */ MCD_OPC_CheckField, 27, 5, 4, 25, 3, 0, // Skip to: 1567 |
1067 | | /* 774 */ MCD_OPC_CheckField, 6, 6, 62, 18, 3, 0, // Skip to: 1567 |
1068 | | /* 781 */ MCD_OPC_Decode, 199, 5, 59, // Opcode: XOR_f_rrlimm |
1069 | | /* 785 */ MCD_OPC_FilterValue, 16, 18, 0, 0, // Skip to: 808 |
1070 | | /* 790 */ MCD_OPC_CheckField, 27, 5, 4, 2, 3, 0, // Skip to: 1567 |
1071 | | /* 797 */ MCD_OPC_CheckField, 6, 6, 62, 251, 2, 0, // Skip to: 1567 |
1072 | | /* 804 */ MCD_OPC_Decode, 255, 3, 59, // Opcode: MAX_rrlimm |
1073 | | /* 808 */ MCD_OPC_FilterValue, 17, 18, 0, 0, // Skip to: 831 |
1074 | | /* 813 */ MCD_OPC_CheckField, 27, 5, 4, 235, 2, 0, // Skip to: 1567 |
1075 | | /* 820 */ MCD_OPC_CheckField, 6, 6, 62, 228, 2, 0, // Skip to: 1567 |
1076 | | /* 827 */ MCD_OPC_Decode, 251, 3, 59, // Opcode: MAX_f_rrlimm |
1077 | | /* 831 */ MCD_OPC_FilterValue, 18, 18, 0, 0, // Skip to: 854 |
1078 | | /* 836 */ MCD_OPC_CheckField, 27, 5, 4, 212, 2, 0, // Skip to: 1567 |
1079 | | /* 843 */ MCD_OPC_CheckField, 6, 6, 62, 205, 2, 0, // Skip to: 1567 |
1080 | | /* 850 */ MCD_OPC_Decode, 137, 4, 59, // Opcode: MIN_rrlimm |
1081 | | /* 854 */ MCD_OPC_FilterValue, 19, 18, 0, 0, // Skip to: 877 |
1082 | | /* 859 */ MCD_OPC_CheckField, 27, 5, 4, 189, 2, 0, // Skip to: 1567 |
1083 | | /* 866 */ MCD_OPC_CheckField, 6, 6, 62, 182, 2, 0, // Skip to: 1567 |
1084 | | /* 873 */ MCD_OPC_Decode, 133, 4, 59, // Opcode: MIN_f_rrlimm |
1085 | | /* 877 */ MCD_OPC_FilterValue, 20, 18, 0, 0, // Skip to: 900 |
1086 | | /* 882 */ MCD_OPC_CheckField, 27, 5, 4, 166, 2, 0, // Skip to: 1567 |
1087 | | /* 889 */ MCD_OPC_CheckField, 6, 6, 62, 159, 2, 0, // Skip to: 1567 |
1088 | | /* 896 */ MCD_OPC_Decode, 150, 4, 60, // Opcode: MOV_rlimm |
1089 | | /* 900 */ MCD_OPC_FilterValue, 25, 18, 0, 0, // Skip to: 923 |
1090 | | /* 905 */ MCD_OPC_CheckField, 27, 5, 4, 143, 2, 0, // Skip to: 1567 |
1091 | | /* 912 */ MCD_OPC_CheckField, 6, 6, 62, 136, 2, 0, // Skip to: 1567 |
1092 | | /* 919 */ MCD_OPC_Decode, 243, 2, 60, // Opcode: CMP_rlimm |
1093 | | /* 923 */ MCD_OPC_FilterValue, 28, 18, 0, 0, // Skip to: 946 |
1094 | | /* 928 */ MCD_OPC_CheckField, 27, 5, 4, 120, 2, 0, // Skip to: 1567 |
1095 | | /* 935 */ MCD_OPC_CheckField, 6, 6, 62, 113, 2, 0, // Skip to: 1567 |
1096 | | /* 942 */ MCD_OPC_Decode, 219, 4, 59, // Opcode: RSUB_rrlimm |
1097 | | /* 946 */ MCD_OPC_FilterValue, 29, 18, 0, 0, // Skip to: 969 |
1098 | | /* 951 */ MCD_OPC_CheckField, 27, 5, 4, 97, 2, 0, // Skip to: 1567 |
1099 | | /* 958 */ MCD_OPC_CheckField, 6, 6, 62, 90, 2, 0, // Skip to: 1567 |
1100 | | /* 965 */ MCD_OPC_Decode, 215, 4, 59, // Opcode: RSUB_f_rrlimm |
1101 | | /* 969 */ MCD_OPC_FilterValue, 46, 18, 0, 0, // Skip to: 992 |
1102 | | /* 974 */ MCD_OPC_CheckField, 27, 5, 4, 74, 2, 0, // Skip to: 1567 |
1103 | | /* 981 */ MCD_OPC_CheckField, 6, 6, 62, 67, 2, 0, // Skip to: 1567 |
1104 | | /* 988 */ MCD_OPC_Decode, 160, 5, 59, // Opcode: SUB1_rrlimm |
1105 | | /* 992 */ MCD_OPC_FilterValue, 47, 18, 0, 0, // Skip to: 1015 |
1106 | | /* 997 */ MCD_OPC_CheckField, 27, 5, 4, 51, 2, 0, // Skip to: 1567 |
1107 | | /* 1004 */ MCD_OPC_CheckField, 6, 6, 62, 44, 2, 0, // Skip to: 1567 |
1108 | | /* 1011 */ MCD_OPC_Decode, 156, 5, 59, // Opcode: SUB1_f_rrlimm |
1109 | | /* 1015 */ MCD_OPC_FilterValue, 48, 18, 0, 0, // Skip to: 1038 |
1110 | | /* 1020 */ MCD_OPC_CheckField, 27, 5, 4, 28, 2, 0, // Skip to: 1567 |
1111 | | /* 1027 */ MCD_OPC_CheckField, 6, 6, 62, 21, 2, 0, // Skip to: 1567 |
1112 | | /* 1034 */ MCD_OPC_Decode, 170, 5, 59, // Opcode: SUB2_rrlimm |
1113 | | /* 1038 */ MCD_OPC_FilterValue, 49, 18, 0, 0, // Skip to: 1061 |
1114 | | /* 1043 */ MCD_OPC_CheckField, 27, 5, 4, 5, 2, 0, // Skip to: 1567 |
1115 | | /* 1050 */ MCD_OPC_CheckField, 6, 6, 62, 254, 1, 0, // Skip to: 1567 |
1116 | | /* 1057 */ MCD_OPC_Decode, 166, 5, 59, // Opcode: SUB2_f_rrlimm |
1117 | | /* 1061 */ MCD_OPC_FilterValue, 50, 18, 0, 0, // Skip to: 1084 |
1118 | | /* 1066 */ MCD_OPC_CheckField, 27, 5, 4, 238, 1, 0, // Skip to: 1567 |
1119 | | /* 1073 */ MCD_OPC_CheckField, 6, 6, 62, 231, 1, 0, // Skip to: 1567 |
1120 | | /* 1080 */ MCD_OPC_Decode, 180, 5, 59, // Opcode: SUB3_rrlimm |
1121 | | /* 1084 */ MCD_OPC_FilterValue, 51, 18, 0, 0, // Skip to: 1107 |
1122 | | /* 1089 */ MCD_OPC_CheckField, 27, 5, 4, 215, 1, 0, // Skip to: 1567 |
1123 | | /* 1096 */ MCD_OPC_CheckField, 6, 6, 62, 208, 1, 0, // Skip to: 1567 |
1124 | | /* 1103 */ MCD_OPC_Decode, 176, 5, 59, // Opcode: SUB3_f_rrlimm |
1125 | | /* 1107 */ MCD_OPC_FilterValue, 52, 18, 0, 0, // Skip to: 1130 |
1126 | | /* 1112 */ MCD_OPC_CheckField, 27, 5, 4, 192, 1, 0, // Skip to: 1567 |
1127 | | /* 1119 */ MCD_OPC_CheckField, 6, 6, 62, 185, 1, 0, // Skip to: 1567 |
1128 | | /* 1126 */ MCD_OPC_Decode, 180, 4, 59, // Opcode: MPY_rrlimm |
1129 | | /* 1130 */ MCD_OPC_FilterValue, 53, 18, 0, 0, // Skip to: 1153 |
1130 | | /* 1135 */ MCD_OPC_CheckField, 27, 5, 4, 169, 1, 0, // Skip to: 1567 |
1131 | | /* 1142 */ MCD_OPC_CheckField, 6, 6, 62, 162, 1, 0, // Skip to: 1567 |
1132 | | /* 1149 */ MCD_OPC_Decode, 176, 4, 59, // Opcode: MPY_f_rrlimm |
1133 | | /* 1153 */ MCD_OPC_FilterValue, 54, 18, 0, 0, // Skip to: 1176 |
1134 | | /* 1158 */ MCD_OPC_CheckField, 27, 5, 4, 146, 1, 0, // Skip to: 1567 |
1135 | | /* 1165 */ MCD_OPC_CheckField, 6, 6, 62, 139, 1, 0, // Skip to: 1567 |
1136 | | /* 1172 */ MCD_OPC_Decode, 170, 4, 59, // Opcode: MPYM_rrlimm |
1137 | | /* 1176 */ MCD_OPC_FilterValue, 55, 18, 0, 0, // Skip to: 1199 |
1138 | | /* 1181 */ MCD_OPC_CheckField, 27, 5, 4, 123, 1, 0, // Skip to: 1567 |
1139 | | /* 1188 */ MCD_OPC_CheckField, 6, 6, 62, 116, 1, 0, // Skip to: 1567 |
1140 | | /* 1195 */ MCD_OPC_Decode, 166, 4, 59, // Opcode: MPYM_f_rrlimm |
1141 | | /* 1199 */ MCD_OPC_FilterValue, 56, 18, 0, 0, // Skip to: 1222 |
1142 | | /* 1204 */ MCD_OPC_CheckField, 27, 5, 4, 100, 1, 0, // Skip to: 1567 |
1143 | | /* 1211 */ MCD_OPC_CheckField, 6, 6, 62, 93, 1, 0, // Skip to: 1567 |
1144 | | /* 1218 */ MCD_OPC_Decode, 160, 4, 59, // Opcode: MPYMU_rrlimm |
1145 | | /* 1222 */ MCD_OPC_FilterValue, 57, 18, 0, 0, // Skip to: 1245 |
1146 | | /* 1227 */ MCD_OPC_CheckField, 27, 5, 4, 77, 1, 0, // Skip to: 1567 |
1147 | | /* 1234 */ MCD_OPC_CheckField, 6, 6, 62, 70, 1, 0, // Skip to: 1567 |
1148 | | /* 1241 */ MCD_OPC_Decode, 156, 4, 59, // Opcode: MPYMU_f_rrlimm |
1149 | | /* 1245 */ MCD_OPC_FilterValue, 64, 18, 0, 0, // Skip to: 1268 |
1150 | | /* 1250 */ MCD_OPC_CheckField, 27, 5, 4, 54, 1, 0, // Skip to: 1567 |
1151 | | /* 1257 */ MCD_OPC_CheckField, 6, 6, 62, 47, 1, 0, // Skip to: 1567 |
1152 | | /* 1264 */ MCD_OPC_Decode, 173, 3, 61, // Opcode: J_LImm |
1153 | | /* 1268 */ MCD_OPC_FilterValue, 68, 18, 0, 0, // Skip to: 1291 |
1154 | | /* 1273 */ MCD_OPC_CheckField, 27, 5, 4, 31, 1, 0, // Skip to: 1567 |
1155 | | /* 1280 */ MCD_OPC_CheckField, 6, 6, 62, 24, 1, 0, // Skip to: 1567 |
1156 | | /* 1287 */ MCD_OPC_Decode, 172, 3, 61, // Opcode: JL_LImm |
1157 | | /* 1291 */ MCD_OPC_FilterValue, 96, 18, 0, 0, // Skip to: 1314 |
1158 | | /* 1296 */ MCD_OPC_CheckField, 27, 5, 4, 8, 1, 0, // Skip to: 1567 |
1159 | | /* 1303 */ MCD_OPC_CheckField, 6, 6, 62, 1, 1, 0, // Skip to: 1567 |
1160 | | /* 1310 */ MCD_OPC_Decode, 233, 3, 62, // Opcode: LD_rlimm |
1161 | | /* 1314 */ MCD_OPC_FilterValue, 97, 18, 0, 0, // Skip to: 1337 |
1162 | | /* 1319 */ MCD_OPC_CheckField, 27, 5, 4, 241, 0, 0, // Skip to: 1567 |
1163 | | /* 1326 */ MCD_OPC_CheckField, 6, 6, 62, 234, 0, 0, // Skip to: 1567 |
1164 | | /* 1333 */ MCD_OPC_Decode, 226, 3, 62, // Opcode: LD_DI_rlimm |
1165 | | /* 1337 */ MCD_OPC_FilterValue, 100, 18, 0, 0, // Skip to: 1360 |
1166 | | /* 1342 */ MCD_OPC_CheckField, 27, 5, 4, 218, 0, 0, // Skip to: 1567 |
1167 | | /* 1349 */ MCD_OPC_CheckField, 6, 6, 62, 211, 0, 0, // Skip to: 1567 |
1168 | | /* 1356 */ MCD_OPC_Decode, 195, 3, 62, // Opcode: LDB_rlimm |
1169 | | /* 1360 */ MCD_OPC_FilterValue, 101, 18, 0, 0, // Skip to: 1383 |
1170 | | /* 1365 */ MCD_OPC_CheckField, 27, 5, 4, 195, 0, 0, // Skip to: 1567 |
1171 | | /* 1372 */ MCD_OPC_CheckField, 6, 6, 62, 188, 0, 0, // Skip to: 1567 |
1172 | | /* 1379 */ MCD_OPC_Decode, 180, 3, 62, // Opcode: LDB_DI_rlimm |
1173 | | /* 1383 */ MCD_OPC_FilterValue, 102, 18, 0, 0, // Skip to: 1406 |
1174 | | /* 1388 */ MCD_OPC_CheckField, 27, 5, 4, 172, 0, 0, // Skip to: 1567 |
1175 | | /* 1395 */ MCD_OPC_CheckField, 6, 6, 62, 165, 0, 0, // Skip to: 1567 |
1176 | | /* 1402 */ MCD_OPC_Decode, 192, 3, 62, // Opcode: LDB_X_rlimm |
1177 | | /* 1406 */ MCD_OPC_FilterValue, 103, 18, 0, 0, // Skip to: 1429 |
1178 | | /* 1411 */ MCD_OPC_CheckField, 27, 5, 4, 149, 0, 0, // Skip to: 1567 |
1179 | | /* 1418 */ MCD_OPC_CheckField, 6, 6, 62, 142, 0, 0, // Skip to: 1567 |
1180 | | /* 1425 */ MCD_OPC_Decode, 189, 3, 62, // Opcode: LDB_X_DI_rlimm |
1181 | | /* 1429 */ MCD_OPC_FilterValue, 104, 18, 0, 0, // Skip to: 1452 |
1182 | | /* 1434 */ MCD_OPC_CheckField, 27, 5, 4, 126, 0, 0, // Skip to: 1567 |
1183 | | /* 1441 */ MCD_OPC_CheckField, 6, 6, 62, 119, 0, 0, // Skip to: 1567 |
1184 | | /* 1448 */ MCD_OPC_Decode, 218, 3, 62, // Opcode: LDH_rlimm |
1185 | | /* 1452 */ MCD_OPC_FilterValue, 105, 18, 0, 0, // Skip to: 1475 |
1186 | | /* 1457 */ MCD_OPC_CheckField, 27, 5, 4, 103, 0, 0, // Skip to: 1567 |
1187 | | /* 1464 */ MCD_OPC_CheckField, 6, 6, 62, 96, 0, 0, // Skip to: 1567 |
1188 | | /* 1471 */ MCD_OPC_Decode, 202, 3, 62, // Opcode: LDH_DI_rlimm |
1189 | | /* 1475 */ MCD_OPC_FilterValue, 106, 18, 0, 0, // Skip to: 1498 |
1190 | | /* 1480 */ MCD_OPC_CheckField, 27, 5, 4, 80, 0, 0, // Skip to: 1567 |
1191 | | /* 1487 */ MCD_OPC_CheckField, 6, 6, 62, 73, 0, 0, // Skip to: 1567 |
1192 | | /* 1494 */ MCD_OPC_Decode, 215, 3, 62, // Opcode: LDH_X_rlimm |
1193 | | /* 1498 */ MCD_OPC_FilterValue, 107, 18, 0, 0, // Skip to: 1521 |
1194 | | /* 1503 */ MCD_OPC_CheckField, 27, 5, 4, 57, 0, 0, // Skip to: 1567 |
1195 | | /* 1510 */ MCD_OPC_CheckField, 6, 6, 62, 50, 0, 0, // Skip to: 1567 |
1196 | | /* 1517 */ MCD_OPC_Decode, 212, 3, 62, // Opcode: LDH_X_DI_rlimm |
1197 | | /* 1521 */ MCD_OPC_FilterValue, 112, 18, 0, 0, // Skip to: 1544 |
1198 | | /* 1526 */ MCD_OPC_CheckField, 27, 5, 4, 34, 0, 0, // Skip to: 1567 |
1199 | | /* 1533 */ MCD_OPC_CheckField, 6, 6, 62, 27, 0, 0, // Skip to: 1567 |
1200 | | /* 1540 */ MCD_OPC_Decode, 239, 4, 59, // Opcode: SETEQ_rrlimm |
1201 | | /* 1544 */ MCD_OPC_FilterValue, 113, 18, 0, 0, // Skip to: 1567 |
1202 | | /* 1549 */ MCD_OPC_CheckField, 27, 5, 4, 11, 0, 0, // Skip to: 1567 |
1203 | | /* 1556 */ MCD_OPC_CheckField, 6, 6, 62, 4, 0, 0, // Skip to: 1567 |
1204 | | /* 1563 */ MCD_OPC_Decode, 235, 4, 59, // Opcode: SETEQ_f_rrlimm |
1205 | | /* 1567 */ MCD_OPC_Fail, |
1206 | | 0 |
1207 | | }; |
1208 | | |
1209 | 0 | static bool checkDecoderPredicate(MCInst *Inst, unsigned Idx) { |
1210 | 0 | return false; |
1211 | 0 | } |
1212 | | |
1213 | | #define DecodeToMCInst(fname, fieldname, InsnType) \ |
1214 | | static DecodeStatus fname(DecodeStatus S, unsigned Idx, InsnType insn, MCInst *MI, \ |
1215 | 0 | uint64_t Address, const void *Decoder, bool *DecodeComplete) \ |
1216 | 0 | { \ |
1217 | 0 | *DecodeComplete = true; \ |
1218 | 0 | InsnType tmp; \ |
1219 | 0 | switch (Idx) { \ |
1220 | 0 | default: CS_ASSERT_RET_VAL(0 && "Invalid index!", MCDisassembler_Fail); \ |
1221 | 0 | case 0: \ |
1222 | 0 | if (!Check(&S, DecodeMoveHRegInstruction(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1223 | 0 | return S; \ |
1224 | 0 | case 1: \ |
1225 | 0 | tmp = fieldname(insn, 8, 2); \ |
1226 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1227 | 0 | tmp = 0x0; \ |
1228 | 0 | tmp |= fieldname(insn, 0, 2) << 3; \ |
1229 | 0 | tmp |= fieldname(insn, 5, 3) << 0; \ |
1230 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1231 | 0 | tmp = 0x0; \ |
1232 | 0 | tmp |= fieldname(insn, 3, 2) << 2; \ |
1233 | 0 | tmp |= fieldname(insn, 10, 1) << 4; \ |
1234 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1235 | 0 | return S; \ |
1236 | 0 | case 2: \ |
1237 | 0 | tmp = fieldname(insn, 0, 3); \ |
1238 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1239 | 0 | tmp = fieldname(insn, 8, 3); \ |
1240 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1241 | 0 | tmp = fieldname(insn, 5, 3); \ |
1242 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1243 | 0 | return S; \ |
1244 | 0 | case 3: \ |
1245 | 0 | tmp = fieldname(insn, 7, 1); \ |
1246 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1247 | 0 | tmp = fieldname(insn, 8, 3); \ |
1248 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1249 | 0 | tmp = 0x0; \ |
1250 | 0 | tmp |= fieldname(insn, 0, 3) << 0; \ |
1251 | 0 | tmp |= fieldname(insn, 4, 3) << 3; \ |
1252 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1253 | 0 | return S; \ |
1254 | 0 | case 4: \ |
1255 | 0 | tmp = 0x0; \ |
1256 | 0 | tmp |= fieldname(insn, 0, 3) << 2; \ |
1257 | 0 | tmp |= fieldname(insn, 5, 6) << 5; \ |
1258 | 0 | if (!Check(&S, DecodeSignedOperand_11(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1259 | 0 | return S; \ |
1260 | 0 | case 5: \ |
1261 | 0 | tmp = fieldname(insn, 8, 3); \ |
1262 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1263 | 0 | tmp = 0x0; \ |
1264 | 0 | tmp |= fieldname(insn, 0, 3) << 0; \ |
1265 | 0 | tmp |= fieldname(insn, 4, 4) << 3; \ |
1266 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1267 | 0 | return S; \ |
1268 | 0 | case 6: \ |
1269 | 0 | tmp = fieldname(insn, 0, 10); \ |
1270 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1271 | 0 | return S; \ |
1272 | 0 | case 7: \ |
1273 | 0 | tmp = fieldname(insn, 5, 3); \ |
1274 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1275 | 0 | tmp = fieldname(insn, 8, 3); \ |
1276 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1277 | 0 | tmp = fieldname(insn, 0, 3); \ |
1278 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1279 | 0 | return S; \ |
1280 | 0 | case 8: \ |
1281 | 0 | tmp = fieldname(insn, 8, 3); \ |
1282 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1283 | 0 | tmp = 0x0; \ |
1284 | 0 | tmp |= fieldname(insn, 0, 2) << 3; \ |
1285 | 0 | tmp |= fieldname(insn, 5, 3) << 0; \ |
1286 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1287 | 0 | return S; \ |
1288 | 0 | case 9: \ |
1289 | 0 | tmp = 0x0; \ |
1290 | 0 | tmp |= fieldname(insn, 0, 2) << 3; \ |
1291 | 0 | tmp |= fieldname(insn, 5, 3) << 0; \ |
1292 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1293 | 0 | tmp = fieldname(insn, 8, 3); \ |
1294 | 0 | if (!Check(&S, DecodeFromCyclicRange_3(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1295 | 0 | return S; \ |
1296 | 0 | case 10: \ |
1297 | 0 | tmp = fieldname(insn, 8, 3); \ |
1298 | 0 | if (!Check(&S, DecodeFromCyclicRange_3(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1299 | 0 | return S; \ |
1300 | 0 | case 11: \ |
1301 | 0 | tmp = fieldname(insn, 8, 3); \ |
1302 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1303 | 0 | return S; \ |
1304 | 0 | case 12: \ |
1305 | 0 | return S; \ |
1306 | 0 | case 13: \ |
1307 | 0 | tmp = fieldname(insn, 8, 3); \ |
1308 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1309 | 0 | tmp = fieldname(insn, 5, 3); \ |
1310 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1311 | 0 | return S; \ |
1312 | 0 | case 14: \ |
1313 | 0 | tmp = fieldname(insn, 5, 6); \ |
1314 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1315 | 0 | return S; \ |
1316 | 0 | case 15: \ |
1317 | 0 | tmp = fieldname(insn, 5, 3); \ |
1318 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1319 | 0 | tmp = fieldname(insn, 8, 3); \ |
1320 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1321 | 0 | tmp = fieldname(insn, 0, 5) << 2; \ |
1322 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1323 | 0 | return S; \ |
1324 | 0 | case 16: \ |
1325 | 0 | tmp = fieldname(insn, 5, 3); \ |
1326 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1327 | 0 | tmp = fieldname(insn, 8, 3); \ |
1328 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1329 | 0 | tmp = fieldname(insn, 0, 5); \ |
1330 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1331 | 0 | return S; \ |
1332 | 0 | case 17: \ |
1333 | 0 | tmp = fieldname(insn, 5, 3); \ |
1334 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1335 | 0 | tmp = fieldname(insn, 8, 3); \ |
1336 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1337 | 0 | tmp = fieldname(insn, 0, 5) << 1; \ |
1338 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1339 | 0 | return S; \ |
1340 | 0 | case 18: \ |
1341 | 0 | tmp = fieldname(insn, 8, 3); \ |
1342 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1343 | 0 | tmp = fieldname(insn, 0, 5); \ |
1344 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1345 | 0 | return S; \ |
1346 | 0 | case 19: \ |
1347 | 0 | tmp = fieldname(insn, 8, 3); \ |
1348 | 0 | if (!Check(&S, DecodeGBR32ShortRegister(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1349 | 0 | tmp = fieldname(insn, 0, 5) << 2; \ |
1350 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1351 | 0 | return S; \ |
1352 | 0 | case 20: \ |
1353 | 0 | tmp = fieldname(insn, 0, 5) << 2; \ |
1354 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1355 | 0 | return S; \ |
1356 | 0 | case 21: \ |
1357 | 0 | tmp = 0x0; \ |
1358 | 0 | tmp |= fieldname(insn, 1, 4) << 0; \ |
1359 | 0 | tmp |= fieldname(insn, 8, 3) << 4; \ |
1360 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1361 | 0 | return S; \ |
1362 | 0 | case 22: \ |
1363 | 0 | tmp = fieldname(insn, 8, 3); \ |
1364 | 0 | if (!Check(&S, DecodeGBR32ShortRegister(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1365 | 0 | return S; \ |
1366 | 0 | case 23: \ |
1367 | 0 | tmp = 0x0; \ |
1368 | 0 | tmp |= fieldname(insn, 1, 4) << 0; \ |
1369 | 0 | tmp |= fieldname(insn, 8, 2) << 4; \ |
1370 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1371 | 0 | return S; \ |
1372 | 0 | case 24: \ |
1373 | 0 | tmp = fieldname(insn, 0, 9) << 2; \ |
1374 | 0 | if (!Check(&S, DecodeSignedOperand_11(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1375 | 0 | return S; \ |
1376 | 0 | case 25: \ |
1377 | 0 | tmp = fieldname(insn, 0, 9); \ |
1378 | 0 | if (!Check(&S, DecodeSignedOperand_9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1379 | 0 | return S; \ |
1380 | 0 | case 26: \ |
1381 | 0 | tmp = fieldname(insn, 0, 9) << 1; \ |
1382 | 0 | if (!Check(&S, DecodeSignedOperand_10(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1383 | 0 | return S; \ |
1384 | 0 | case 27: \ |
1385 | 0 | tmp = fieldname(insn, 8, 3); \ |
1386 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1387 | 0 | tmp = fieldname(insn, 0, 8) << 2; \ |
1388 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1389 | 0 | return S; \ |
1390 | 0 | case 28: \ |
1391 | 0 | tmp = fieldname(insn, 8, 3); \ |
1392 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1393 | 0 | tmp = fieldname(insn, 0, 8); \ |
1394 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1395 | 0 | return S; \ |
1396 | 0 | case 29: \ |
1397 | 0 | tmp = fieldname(insn, 8, 3); \ |
1398 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1399 | 0 | tmp = fieldname(insn, 0, 7); \ |
1400 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1401 | 0 | return S; \ |
1402 | 0 | case 30: \ |
1403 | 0 | tmp = fieldname(insn, 8, 3); \ |
1404 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1405 | 0 | tmp = fieldname(insn, 0, 7) << 1; \ |
1406 | 0 | if (!Check(&S, DecodeBranchTargetS_8(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1407 | 0 | return S; \ |
1408 | 0 | case 31: \ |
1409 | 0 | tmp = fieldname(insn, 0, 9) << 1; \ |
1410 | 0 | if (!Check(&S, DecodeBranchTargetS_10(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1411 | 0 | return S; \ |
1412 | 0 | case 32: \ |
1413 | 0 | tmp = fieldname(insn, 0, 6) << 1; \ |
1414 | 0 | if (!Check(&S, DecodeBranchTargetS_7(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1415 | 0 | return S; \ |
1416 | 0 | case 33: \ |
1417 | 0 | tmp = fieldname(insn, 0, 11) << 2; \ |
1418 | 0 | if (!Check(&S, DecodeBranchTargetS_13(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1419 | 0 | return S; \ |
1420 | 0 | case 34: \ |
1421 | 0 | tmp = 0x0; \ |
1422 | 0 | tmp |= fieldname(insn, 6, 10) << 11; \ |
1423 | 0 | tmp |= fieldname(insn, 17, 10) << 1; \ |
1424 | 0 | if (!Check(&S, DecodeBranchTargetS_21(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1425 | 0 | tmp = fieldname(insn, 0, 5); \ |
1426 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1427 | 0 | return S; \ |
1428 | 0 | case 35: \ |
1429 | 0 | tmp = 0x0; \ |
1430 | 0 | tmp |= fieldname(insn, 0, 4) << 21; \ |
1431 | 0 | tmp |= fieldname(insn, 6, 10) << 11; \ |
1432 | 0 | tmp |= fieldname(insn, 17, 10) << 1; \ |
1433 | 0 | if (!Check(&S, DecodeBranchTargetS_25(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1434 | 0 | return S; \ |
1435 | 0 | case 36: \ |
1436 | 0 | tmp = 0x0; \ |
1437 | 0 | tmp |= fieldname(insn, 0, 4) << 21; \ |
1438 | 0 | tmp |= fieldname(insn, 6, 10) << 11; \ |
1439 | 0 | tmp |= fieldname(insn, 18, 9) << 2; \ |
1440 | 0 | if (!Check(&S, DecodeBranchTargetS_25(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1441 | 0 | return S; \ |
1442 | 0 | case 37: \ |
1443 | 0 | tmp = 0x0; \ |
1444 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1445 | 0 | tmp |= fieldname(insn, 17, 7) << 1; \ |
1446 | 0 | if (!Check(&S, DecodeBranchTargetS_9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1447 | 0 | tmp = 0x0; \ |
1448 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1449 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1450 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1451 | 0 | tmp = fieldname(insn, 6, 6); \ |
1452 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1453 | 0 | tmp = fieldname(insn, 0, 3); \ |
1454 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1455 | 0 | return S; \ |
1456 | 0 | case 38: \ |
1457 | 0 | tmp = 0x0; \ |
1458 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1459 | 0 | tmp |= fieldname(insn, 17, 7) << 1; \ |
1460 | 0 | if (!Check(&S, DecodeBranchTargetS_9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1461 | 0 | tmp = 0x0; \ |
1462 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1463 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1464 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1465 | 0 | tmp = fieldname(insn, 6, 6); \ |
1466 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1467 | 0 | tmp = fieldname(insn, 0, 3); \ |
1468 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1469 | 0 | return S; \ |
1470 | 0 | case 39: \ |
1471 | 0 | tmp = fieldname(insn, 0, 6); \ |
1472 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1473 | 0 | tmp = 0x0; \ |
1474 | 0 | tmp |= fieldname(insn, 12, 3) << 12; \ |
1475 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1476 | 0 | tmp |= fieldname(insn, 16, 8) << 0; \ |
1477 | 0 | tmp |= fieldname(insn, 24, 3) << 9; \ |
1478 | 0 | if (!Check(&S, DecodeMEMrs9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1479 | 0 | return S; \ |
1480 | 0 | case 40: \ |
1481 | 0 | tmp = fieldname(insn, 0, 6); \ |
1482 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1483 | 0 | tmp = 0x0; \ |
1484 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1485 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1486 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1487 | 0 | tmp = 0x0; \ |
1488 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1489 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1490 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1491 | 0 | tmp = 0x0; \ |
1492 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1493 | 0 | tmp |= fieldname(insn, 16, 8) << 0; \ |
1494 | 0 | if (!Check(&S, DecodeSignedOperand_9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1495 | 0 | return S; \ |
1496 | 0 | case 41: \ |
1497 | 0 | tmp = fieldname(insn, 6, 6); \ |
1498 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1499 | 0 | tmp = 0x0; \ |
1500 | 0 | tmp |= fieldname(insn, 12, 3) << 12; \ |
1501 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1502 | 0 | tmp |= fieldname(insn, 16, 8) << 0; \ |
1503 | 0 | tmp |= fieldname(insn, 24, 3) << 9; \ |
1504 | 0 | if (!Check(&S, DecodeMEMrs9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1505 | 0 | return S; \ |
1506 | 0 | case 42: \ |
1507 | 0 | tmp = 0x0; \ |
1508 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1509 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1510 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1511 | 0 | tmp = fieldname(insn, 6, 6); \ |
1512 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1513 | 0 | tmp = 0x0; \ |
1514 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1515 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1516 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1517 | 0 | tmp = 0x0; \ |
1518 | 0 | tmp |= fieldname(insn, 15, 1) << 8; \ |
1519 | 0 | tmp |= fieldname(insn, 16, 8) << 0; \ |
1520 | 0 | if (!Check(&S, DecodeSignedOperand_9(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1521 | 0 | return S; \ |
1522 | 0 | case 43: \ |
1523 | 0 | tmp = fieldname(insn, 0, 6); \ |
1524 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1525 | 0 | tmp = 0x0; \ |
1526 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1527 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1528 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1529 | 0 | tmp = fieldname(insn, 6, 6); \ |
1530 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1531 | 0 | return S; \ |
1532 | 0 | case 44: \ |
1533 | 0 | tmp = 0x0; \ |
1534 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1535 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1536 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1537 | 0 | tmp = fieldname(insn, 6, 6); \ |
1538 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1539 | 0 | return S; \ |
1540 | 0 | case 45: \ |
1541 | 0 | tmp = fieldname(insn, 6, 6); \ |
1542 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1543 | 0 | return S; \ |
1544 | 0 | case 46: \ |
1545 | 0 | tmp = fieldname(insn, 0, 6); \ |
1546 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1547 | 0 | tmp = 0x0; \ |
1548 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1549 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1550 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1551 | 0 | tmp = fieldname(insn, 6, 6); \ |
1552 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1553 | 0 | return S; \ |
1554 | 0 | case 47: \ |
1555 | 0 | tmp = 0x0; \ |
1556 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1557 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1558 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1559 | 0 | tmp = fieldname(insn, 6, 6); \ |
1560 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1561 | 0 | return S; \ |
1562 | 0 | case 48: \ |
1563 | 0 | if (!Check(&S, DecodeSOPwithRU6(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1564 | 0 | return S; \ |
1565 | 0 | case 49: \ |
1566 | 0 | tmp = 0x0; \ |
1567 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1568 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1569 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1570 | 0 | tmp = 0x0; \ |
1571 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1572 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1573 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1574 | 0 | tmp = 0x0; \ |
1575 | 0 | tmp |= fieldname(insn, 0, 6) << 6; \ |
1576 | 0 | tmp |= fieldname(insn, 6, 6) << 0; \ |
1577 | 0 | if (!Check(&S, DecodeSignedOperand_12(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1578 | 0 | return S; \ |
1579 | 0 | case 50: \ |
1580 | 0 | tmp = 0x0; \ |
1581 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1582 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1583 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1584 | 0 | tmp = 0x0; \ |
1585 | 0 | tmp |= fieldname(insn, 0, 6) << 6; \ |
1586 | 0 | tmp |= fieldname(insn, 6, 6) << 0; \ |
1587 | 0 | if (!Check(&S, DecodeSignedOperand_12(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1588 | 0 | return S; \ |
1589 | 0 | case 51: \ |
1590 | 0 | if (!Check(&S, DecodeSOPwithRS12(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1591 | 0 | return S; \ |
1592 | 0 | case 52: \ |
1593 | 0 | tmp = 0x0; \ |
1594 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1595 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1596 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1597 | 0 | tmp = fieldname(insn, 6, 6); \ |
1598 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1599 | 0 | tmp = fieldname(insn, 0, 5); \ |
1600 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1601 | 0 | tmp = 0x0; \ |
1602 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1603 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1604 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1605 | 0 | return S; \ |
1606 | 0 | case 53: \ |
1607 | 0 | tmp = 0x0; \ |
1608 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1609 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1610 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1611 | 0 | tmp = fieldname(insn, 6, 6); \ |
1612 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1613 | 0 | tmp = 0x0; \ |
1614 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1615 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1616 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1617 | 0 | tmp = fieldname(insn, 0, 5); \ |
1618 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1619 | 0 | return S; \ |
1620 | 0 | case 54: \ |
1621 | 0 | if (!Check(&S, DecodeCCRU6Instruction(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1622 | 0 | return S; \ |
1623 | 0 | case 55: \ |
1624 | 0 | tmp = fieldname(insn, 8, 3); \ |
1625 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1626 | 0 | tmp = fieldname(insn, 16, 32); \ |
1627 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1628 | 0 | return S; \ |
1629 | 0 | case 56: \ |
1630 | 0 | tmp = fieldname(insn, 8, 3); \ |
1631 | 0 | if (!Check(&S, DecodeFromCyclicRange_3(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1632 | 0 | tmp = fieldname(insn, 16, 32); \ |
1633 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1634 | 0 | return S; \ |
1635 | 0 | case 57: \ |
1636 | 0 | if (!Check(&S, DecodeLdLImmInstruction(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1637 | 0 | return S; \ |
1638 | 0 | case 58: \ |
1639 | 0 | if (!Check(&S, DecodeStLImmInstruction(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1640 | 0 | return S; \ |
1641 | 0 | case 59: \ |
1642 | 0 | tmp = fieldname(insn, 0, 6); \ |
1643 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1644 | 0 | tmp = 0x0; \ |
1645 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1646 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1647 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1648 | 0 | tmp = fieldname(insn, 32, 32); \ |
1649 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1650 | 0 | return S; \ |
1651 | 0 | case 60: \ |
1652 | 0 | tmp = 0x0; \ |
1653 | 0 | tmp |= fieldname(insn, 12, 3) << 3; \ |
1654 | 0 | tmp |= fieldname(insn, 24, 3) << 0; \ |
1655 | 0 | if (!Check(&S, DecodeGPR32RegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1656 | 0 | tmp = fieldname(insn, 32, 32); \ |
1657 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1658 | 0 | return S; \ |
1659 | 0 | case 61: \ |
1660 | 0 | tmp = fieldname(insn, 32, 32); \ |
1661 | 0 | MCOperand_CreateImm0(MI, tmp); \ |
1662 | 0 | return S; \ |
1663 | 0 | case 62: \ |
1664 | 0 | if (!Check(&S, DecodeLdRLImmInstruction(MI, insn, Address, Decoder))) { return MCDisassembler_Fail; } \ |
1665 | 0 | return S; \ |
1666 | 0 | } \ |
1667 | 0 | } Unexecuted instantiation: ARCDisassembler.c:decodeToMCInst_8 Unexecuted instantiation: ARCDisassembler.c:decodeToMCInst_4 Unexecuted instantiation: ARCDisassembler.c:decodeToMCInst_2 |
1668 | | |
1669 | | #define DecodeInstruction(fname, fieldname, decoder, InsnType) \ |
1670 | | static DecodeStatus fname(const uint8_t DecodeTable[], MCInst *MI, \ |
1671 | 0 | InsnType insn, uint64_t Address, const void *Decoder) { \ |
1672 | 0 | const uint8_t *Ptr = DecodeTable; \ |
1673 | 0 | uint64_t CurFieldValue = 0; \ |
1674 | 0 | DecodeStatus S = MCDisassembler_Success; \ |
1675 | 0 | while (true) { \ |
1676 | 0 | switch (*Ptr) { \ |
1677 | 0 | default: \ |
1678 | 0 | return MCDisassembler_Fail; \ |
1679 | 0 | case MCD_OPC_ExtractField: { \ |
1680 | 0 | unsigned Start = *++Ptr; \ |
1681 | 0 | unsigned Len = *++Ptr; \ |
1682 | 0 | ++Ptr; \ |
1683 | 0 | CurFieldValue = fieldname(insn, Start, Len); \ |
1684 | 0 | break; \ |
1685 | 0 | } \ |
1686 | 0 | case MCD_OPC_FilterValue: { \ |
1687 | 0 | /* Decode the field value. */ \ |
1688 | 0 | unsigned Len; \ |
1689 | 0 | uint64_t Val = decodeULEB128(++Ptr, &Len); \ |
1690 | 0 | Ptr += Len; \ |
1691 | 0 | /* NumToSkip is a plain 24-bit integer. */ \ |
1692 | 0 | unsigned NumToSkip = *Ptr++; \ |
1693 | 0 | NumToSkip |= (*Ptr++) << 8; \ |
1694 | 0 | NumToSkip |= (*Ptr++) << 16; \ |
1695 | 0 | /* Perform the filter operation. */ \ |
1696 | 0 | if (Val != CurFieldValue) \ |
1697 | 0 | Ptr += NumToSkip; \ |
1698 | 0 | break; \ |
1699 | 0 | } \ |
1700 | 0 | case MCD_OPC_CheckField: { \ |
1701 | 0 | unsigned Start = *++Ptr; \ |
1702 | 0 | unsigned Len = *++Ptr; \ |
1703 | 0 | uint64_t FieldValue = fieldname(insn, Start, Len); \ |
1704 | 0 | /* Decode the field value. */ \ |
1705 | 0 | unsigned PtrLen = 0; \ |
1706 | 0 | uint64_t ExpectedValue = decodeULEB128(++Ptr, &PtrLen); \ |
1707 | 0 | Ptr += PtrLen; \ |
1708 | 0 | /* NumToSkip is a plain 24-bit integer. */ \ |
1709 | 0 | unsigned NumToSkip = *Ptr++; \ |
1710 | 0 | NumToSkip |= (*Ptr++) << 8; \ |
1711 | 0 | NumToSkip |= (*Ptr++) << 16; \ |
1712 | 0 | /* If the actual and expected values don't match, skip. */ \ |
1713 | 0 | if (ExpectedValue != FieldValue) \ |
1714 | 0 | Ptr += NumToSkip; \ |
1715 | 0 | break; \ |
1716 | 0 | } \ |
1717 | 0 | case MCD_OPC_CheckPredicate: { \ |
1718 | 0 | unsigned Len; \ |
1719 | 0 | /* Decode the Predicate Index value. */ \ |
1720 | 0 | unsigned PIdx = decodeULEB128(++Ptr, &Len); \ |
1721 | 0 | Ptr += Len; \ |
1722 | 0 | /* NumToSkip is a plain 24-bit integer. */ \ |
1723 | 0 | unsigned NumToSkip = *Ptr++; \ |
1724 | 0 | NumToSkip |= (*Ptr++) << 8; \ |
1725 | 0 | NumToSkip |= (*Ptr++) << 16; \ |
1726 | 0 | /* Check the predicate. */ \ |
1727 | 0 | bool Pred = checkDecoderPredicate(MI, PIdx); \ |
1728 | 0 | if (!Pred) \ |
1729 | 0 | Ptr += NumToSkip; \ |
1730 | 0 | break; \ |
1731 | 0 | } \ |
1732 | 0 | case MCD_OPC_Decode: { \ |
1733 | 0 | unsigned Len; \ |
1734 | 0 | /* Decode the Opcode value. */ \ |
1735 | 0 | unsigned Opc = decodeULEB128(++Ptr, &Len); \ |
1736 | 0 | Ptr += Len; \ |
1737 | 0 | unsigned DecodeIdx = decodeULEB128(Ptr, &Len); \ |
1738 | 0 | Ptr += Len; \ |
1739 | 0 | MCInst_clear(MI); \ |
1740 | 0 | MCInst_setOpcode(MI, Opc); \ |
1741 | 0 | bool DecodeComplete; \ |
1742 | 0 | S = decoder(S, DecodeIdx, insn, MI, Address, Decoder, &DecodeComplete); \ |
1743 | 0 | return S; \ |
1744 | 0 | } \ |
1745 | 0 | case MCD_OPC_TryDecode: { \ |
1746 | 0 | unsigned Len; \ |
1747 | 0 | /* Decode the Opcode value. */ \ |
1748 | 0 | unsigned Opc = decodeULEB128(++Ptr, &Len); \ |
1749 | 0 | Ptr += Len; \ |
1750 | 0 | unsigned DecodeIdx = decodeULEB128(Ptr, &Len); \ |
1751 | 0 | Ptr += Len; \ |
1752 | 0 | /* NumToSkip is a plain 24-bit integer. */ \ |
1753 | 0 | unsigned NumToSkip = *Ptr++; \ |
1754 | 0 | NumToSkip |= (*Ptr++) << 8; \ |
1755 | 0 | NumToSkip |= (*Ptr++) << 16; \ |
1756 | 0 | /* Perform the decode operation. */ \ |
1757 | 0 | MCInst_setOpcode(MI, Opc); \ |
1758 | 0 | bool DecodeComplete; \ |
1759 | 0 | S = decoder(S, DecodeIdx, insn, MI, Address, Decoder, &DecodeComplete); \ |
1760 | 0 | if (DecodeComplete) { \ |
1761 | 0 | /* Decoding complete. */ \ |
1762 | 0 | return S; \ |
1763 | 0 | } else { \ |
1764 | 0 | /* LLVM uses a MCInst on the stack, but for our use case, */ \ |
1765 | 0 | /* it is enough for now to reset the op counter. */ \ |
1766 | 0 | MCInst_clear(MI); \ |
1767 | 0 | /* If the decoding was incomplete, skip. */ \ |
1768 | 0 | Ptr += NumToSkip; \ |
1769 | 0 | /* Reset decode status. This also drops a SoftFail status that could be */ \ |
1770 | 0 | /* set before the decode attempt. */ \ |
1771 | 0 | S = MCDisassembler_Success; \ |
1772 | 0 | } \ |
1773 | 0 | break; \ |
1774 | 0 | } \ |
1775 | 0 | case MCD_OPC_SoftFail: { \ |
1776 | 0 | /* Decode the mask values. */ \ |
1777 | 0 | unsigned Len; \ |
1778 | 0 | uint64_t PositiveMask = decodeULEB128(++Ptr, &Len); \ |
1779 | 0 | Ptr += Len; \ |
1780 | 0 | uint64_t NegativeMask = decodeULEB128(Ptr, &Len); \ |
1781 | 0 | Ptr += Len; \ |
1782 | 0 | bool Fail = (insn & PositiveMask) != 0 || (~insn & NegativeMask) != 0; \ |
1783 | 0 | if (Fail) \ |
1784 | 0 | S = MCDisassembler_SoftFail; \ |
1785 | 0 | break; \ |
1786 | 0 | } \ |
1787 | 0 | case MCD_OPC_Fail: { \ |
1788 | 0 | return MCDisassembler_Fail; \ |
1789 | 0 | } \ |
1790 | 0 | } \ |
1791 | 0 | } \ |
1792 | 0 | /* Bogisity detected in disassembler state machine! */ \ |
1793 | 0 | } Unexecuted instantiation: ARCDisassembler.c:decodeInstruction_8 Unexecuted instantiation: ARCDisassembler.c:decodeInstruction_4 Unexecuted instantiation: ARCDisassembler.c:decodeInstruction_2 |
1794 | | |
1795 | | FieldFromInstruction(fieldFromInstruction_2, uint16_t) |
1796 | | DecodeToMCInst(decodeToMCInst_2, fieldFromInstruction_2, uint16_t) |
1797 | | DecodeInstruction(decodeInstruction_2, fieldFromInstruction_2, decodeToMCInst_2, uint16_t) |
1798 | | FieldFromInstruction(fieldFromInstruction_4, uint32_t) |
1799 | | DecodeToMCInst(decodeToMCInst_4, fieldFromInstruction_4, uint32_t) |
1800 | | DecodeInstruction(decodeInstruction_4, fieldFromInstruction_4, decodeToMCInst_4, uint32_t) |
1801 | | FieldFromInstruction(fieldFromInstruction_8, uint64_t) |
1802 | | DecodeToMCInst(decodeToMCInst_8, fieldFromInstruction_8, uint64_t) |
1803 | | DecodeInstruction(decodeInstruction_8, fieldFromInstruction_8, decodeToMCInst_8, uint64_t) |