1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright 2012 Free Software Foundation, Inc.
3 Contributed by ARM Ltd.
5 This file is part of the GNU opcodes library.
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 It is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING3. If not,
19 see <http://www.gnu.org/licenses/>. */
22 #include "aarch64-asm.h"
25 const aarch64_opcode *
26 aarch64_find_real_opcode (const aarch64_opcode *opcode)
28 /* Use the index as the key to locate the real opcode. */
29 int key = opcode - aarch64_opcode_table;
34 value = 2; /* --> sbc. */
37 value = 4; /* --> sbcs. */
40 value = 7; /* --> adds. */
43 value = 10; /* --> subs. */
46 value = 12; /* --> add. */
49 value = 14; /* --> adds. */
52 value = 17; /* --> subs. */
55 value = 20; /* --> adds. */
58 value = 22; /* --> sub. */
62 value = 24; /* --> subs. */
65 value = 138; /* --> umov. */
68 value = 140; /* --> ins. */
71 value = 142; /* --> ins. */
74 value = 203; /* --> not. */
77 value = 258; /* --> orr. */
80 value = 426; /* --> dup. */
88 value = 489; /* --> sbfm. */
92 value = 496; /* --> bfm. */
100 value = 499; /* --> ubfm. */
104 value = 521; /* --> csinc. */
106 case 526: /* csetm */
108 value = 524; /* --> csinv. */
111 value = 527; /* --> csneg. */
114 value = 552; /* --> lslv. */
117 value = 554; /* --> lsrv. */
120 value = 556; /* --> asrv. */
123 value = 558; /* --> rorv. */
126 value = 560; /* --> madd. */
129 value = 562; /* --> msub. */
131 case 565: /* smull */
132 value = 564; /* --> smaddl. */
134 case 567: /* smnegl */
135 value = 566; /* --> smsubl. */
137 case 570: /* umull */
138 value = 569; /* --> umaddl. */
140 case 572: /* umnegl */
141 value = 571; /* --> umsubl. */
144 value = 582; /* --> extr. */
147 value = 681; /* --> sturb. */
150 value = 682; /* --> ldurb. */
152 case 686: /* ldrsb */
153 value = 685; /* --> ldursb. */
156 value = 687; /* --> stur. */
159 value = 688; /* --> ldur. */
162 value = 691; /* --> sturh. */
165 value = 692; /* --> ldurh. */
167 case 696: /* ldrsh */
168 value = 695; /* --> ldursh. */
171 value = 697; /* --> stur. */
174 value = 698; /* --> ldur. */
176 case 702: /* ldrsw */
177 value = 701; /* --> ldursw. */
180 value = 703; /* --> prfum. */
183 value = 745; /* --> and. */
186 value = 747; /* --> orr. */
189 value = 750; /* --> ands. */
193 value = 754; /* --> orr. */
196 value = 757; /* --> orn. */
199 value = 761; /* --> ands. */
202 value = 764; /* --> movn. */
205 value = 766; /* --> movz. */
211 case 774: /* yield */
213 value = 772; /* --> hint. */
219 value = 783; /* --> sys. */
221 default: return NULL;
224 return aarch64_opcode_table + value;
228 aarch64_insert_operand (const aarch64_operand *self,
229 const aarch64_opnd_info *info,
230 aarch64_insn *code, const aarch64_inst *inst)
232 /* Use the index as the key. */
233 int key = self - aarch64_operands;
261 return aarch64_ins_regno (self, info, code, inst);
263 return aarch64_ins_reg_extended (self, info, code, inst);
265 return aarch64_ins_reg_shifted (self, info, code, inst);
267 return aarch64_ins_ft (self, info, code, inst);
271 return aarch64_ins_reglane (self, info, code, inst);
273 return aarch64_ins_reglist (self, info, code, inst);
275 return aarch64_ins_ldst_reglist (self, info, code, inst);
277 return aarch64_ins_ldst_reglist_r (self, info, code, inst);
279 return aarch64_ins_ldst_elemlist (self, info, code, inst);
298 return aarch64_ins_imm (self, info, code, inst);
301 return aarch64_ins_advsimd_imm_shift (self, info, code, inst);
305 return aarch64_ins_advsimd_imm_modified (self, info, code, inst);
307 return aarch64_ins_limm (self, info, code, inst);
309 return aarch64_ins_aimm (self, info, code, inst);
311 return aarch64_ins_imm_half (self, info, code, inst);
313 return aarch64_ins_fbits (self, info, code, inst);
315 return aarch64_ins_cond (self, info, code, inst);
318 return aarch64_ins_addr_simple (self, info, code, inst);
320 return aarch64_ins_addr_regoff (self, info, code, inst);
324 return aarch64_ins_addr_simm (self, info, code, inst);
326 return aarch64_ins_addr_uimm12 (self, info, code, inst);
328 return aarch64_ins_simd_addr_post (self, info, code, inst);
330 return aarch64_ins_sysreg (self, info, code, inst);
332 return aarch64_ins_pstatefield (self, info, code, inst);
337 return aarch64_ins_sysins_op (self, info, code, inst);
340 return aarch64_ins_barrier (self, info, code, inst);
342 return aarch64_ins_prfop (self, info, code, inst);
343 default: assert (0); abort ();