4894f348b34eb7fe41985a2606cd8cff00b6244d
1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright (C) 2012-2015 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
= 313; /* --> sshll. */
83 value
= 315; /* --> sshll2. */
86 value
= 335; /* --> ushll. */
89 value
= 337; /* --> ushll2. */
92 value
= 430; /* --> dup. */
100 value
= 493; /* --> sbfm. */
102 case 502: /* bfxil */
104 value
= 500; /* --> bfm. */
111 case 504: /* ubfiz */
112 value
= 503; /* --> ubfm. */
116 value
= 525; /* --> csinc. */
118 case 530: /* csetm */
120 value
= 528; /* --> csinv. */
123 value
= 531; /* --> csneg. */
126 value
= 556; /* --> lslv. */
129 value
= 558; /* --> lsrv. */
132 value
= 560; /* --> asrv. */
135 value
= 562; /* --> rorv. */
138 value
= 572; /* --> madd. */
141 value
= 574; /* --> msub. */
143 case 577: /* smull */
144 value
= 576; /* --> smaddl. */
146 case 579: /* smnegl */
147 value
= 578; /* --> smsubl. */
149 case 582: /* umull */
150 value
= 581; /* --> umaddl. */
152 case 584: /* umnegl */
153 value
= 583; /* --> umsubl. */
156 value
= 594; /* --> extr. */
159 value
= 751; /* --> and. */
162 value
= 753; /* --> orr. */
165 value
= 756; /* --> ands. */
169 value
= 760; /* --> orr. */
172 value
= 763; /* --> orn. */
175 value
= 767; /* --> ands. */
177 case 894: /* staddb */
178 value
= 798; /* --> ldaddb. */
180 case 895: /* staddh */
181 value
= 799; /* --> ldaddh. */
183 case 896: /* stadd */
184 value
= 800; /* --> ldadd. */
186 case 897: /* staddlb */
187 value
= 802; /* --> ldaddlb. */
189 case 898: /* staddlh */
190 value
= 805; /* --> ldaddlh. */
192 case 899: /* staddl */
193 value
= 808; /* --> ldaddl. */
195 case 900: /* stclrb */
196 value
= 810; /* --> ldclrb. */
198 case 901: /* stclrh */
199 value
= 811; /* --> ldclrh. */
201 case 902: /* stclr */
202 value
= 812; /* --> ldclr. */
204 case 903: /* stclrlb */
205 value
= 814; /* --> ldclrlb. */
207 case 904: /* stclrlh */
208 value
= 817; /* --> ldclrlh. */
210 case 905: /* stclrl */
211 value
= 820; /* --> ldclrl. */
213 case 906: /* steorb */
214 value
= 822; /* --> ldeorb. */
216 case 907: /* steorh */
217 value
= 823; /* --> ldeorh. */
219 case 908: /* steor */
220 value
= 824; /* --> ldeor. */
222 case 909: /* steorlb */
223 value
= 826; /* --> ldeorlb. */
225 case 910: /* steorlh */
226 value
= 829; /* --> ldeorlh. */
228 case 911: /* steorl */
229 value
= 832; /* --> ldeorl. */
231 case 912: /* stsetb */
232 value
= 834; /* --> ldsetb. */
234 case 913: /* stseth */
235 value
= 835; /* --> ldseth. */
237 case 914: /* stset */
238 value
= 836; /* --> ldset. */
240 case 915: /* stsetlb */
241 value
= 838; /* --> ldsetlb. */
243 case 916: /* stsetlh */
244 value
= 841; /* --> ldsetlh. */
246 case 917: /* stsetl */
247 value
= 844; /* --> ldsetl. */
249 case 918: /* stsmaxb */
250 value
= 846; /* --> ldsmaxb. */
252 case 919: /* stsmaxh */
253 value
= 847; /* --> ldsmaxh. */
255 case 920: /* stsmax */
256 value
= 848; /* --> ldsmax. */
258 case 921: /* stsmaxlb */
259 value
= 850; /* --> ldsmaxlb. */
261 case 922: /* stsmaxlh */
262 value
= 853; /* --> ldsmaxlh. */
264 case 923: /* stsmaxl */
265 value
= 856; /* --> ldsmaxl. */
267 case 924: /* stsminb */
268 value
= 858; /* --> ldsminb. */
270 case 925: /* stsminh */
271 value
= 859; /* --> ldsminh. */
273 case 926: /* stsmin */
274 value
= 860; /* --> ldsmin. */
276 case 927: /* stsminlb */
277 value
= 862; /* --> ldsminlb. */
279 case 928: /* stsminlh */
280 value
= 865; /* --> ldsminlh. */
282 case 929: /* stsminl */
283 value
= 868; /* --> ldsminl. */
285 case 930: /* stumaxb */
286 value
= 870; /* --> ldumaxb. */
288 case 931: /* stumaxh */
289 value
= 871; /* --> ldumaxh. */
291 case 932: /* stumax */
292 value
= 872; /* --> ldumax. */
294 case 933: /* stumaxlb */
295 value
= 874; /* --> ldumaxlb. */
297 case 934: /* stumaxlh */
298 value
= 877; /* --> ldumaxlh. */
300 case 935: /* stumaxl */
301 value
= 880; /* --> ldumaxl. */
303 case 936: /* stuminb */
304 value
= 882; /* --> lduminb. */
306 case 937: /* stuminh */
307 value
= 883; /* --> lduminh. */
309 case 938: /* stumin */
310 value
= 884; /* --> ldumin. */
312 case 939: /* stuminlb */
313 value
= 886; /* --> lduminlb. */
315 case 940: /* stuminlh */
316 value
= 889; /* --> lduminlh. */
318 case 941: /* stuminl */
319 value
= 892; /* --> lduminl. */
322 value
= 942; /* --> movn. */
325 value
= 944; /* --> movz. */
331 case 952: /* yield */
333 value
= 950; /* --> hint. */
339 value
= 961; /* --> sys. */
341 default: return NULL
;
344 return aarch64_opcode_table
+ value
;
348 aarch64_insert_operand (const aarch64_operand
*self
,
349 const aarch64_opnd_info
*info
,
350 aarch64_insn
*code
, const aarch64_inst
*inst
)
352 /* Use the index as the key. */
353 int key
= self
- aarch64_operands
;
381 return aarch64_ins_regno (self
, info
, code
, inst
);
383 return aarch64_ins_reg_extended (self
, info
, code
, inst
);
385 return aarch64_ins_reg_shifted (self
, info
, code
, inst
);
387 return aarch64_ins_ft (self
, info
, code
, inst
);
391 return aarch64_ins_reglane (self
, info
, code
, inst
);
393 return aarch64_ins_reglist (self
, info
, code
, inst
);
395 return aarch64_ins_ldst_reglist (self
, info
, code
, inst
);
397 return aarch64_ins_ldst_reglist_r (self
, info
, code
, inst
);
399 return aarch64_ins_ldst_elemlist (self
, info
, code
, inst
);
418 return aarch64_ins_imm (self
, info
, code
, inst
);
421 return aarch64_ins_advsimd_imm_shift (self
, info
, code
, inst
);
425 return aarch64_ins_advsimd_imm_modified (self
, info
, code
, inst
);
427 return aarch64_ins_limm (self
, info
, code
, inst
);
429 return aarch64_ins_aimm (self
, info
, code
, inst
);
431 return aarch64_ins_imm_half (self
, info
, code
, inst
);
433 return aarch64_ins_fbits (self
, info
, code
, inst
);
436 return aarch64_ins_cond (self
, info
, code
, inst
);
439 return aarch64_ins_addr_simple (self
, info
, code
, inst
);
441 return aarch64_ins_addr_regoff (self
, info
, code
, inst
);
445 return aarch64_ins_addr_simm (self
, info
, code
, inst
);
447 return aarch64_ins_addr_uimm12 (self
, info
, code
, inst
);
449 return aarch64_ins_simd_addr_post (self
, info
, code
, inst
);
451 return aarch64_ins_sysreg (self
, info
, code
, inst
);
453 return aarch64_ins_pstatefield (self
, info
, code
, inst
);
458 return aarch64_ins_sysins_op (self
, info
, code
, inst
);
461 return aarch64_ins_barrier (self
, info
, code
, inst
);
463 return aarch64_ins_prfop (self
, info
, code
, inst
);
464 default: assert (0); abort ();
This page took 0.037495 seconds and 3 git commands to generate.