1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright (C) 2012-2019 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
;
35 value
= 2; /* --> sbc. */
39 value
= 4; /* --> sbcs. */
43 value
= 7; /* --> adds. */
47 value
= 10; /* --> subs. */
51 value
= 12; /* --> add. */
55 value
= 14; /* --> adds. */
59 value
= 17; /* --> subs. */
63 value
= 22; /* --> adds. */
67 value
= 24; /* --> sub. */
72 value
= 26; /* --> subs. */
76 value
= 152; /* --> umov. */
80 value
= 154; /* --> ins. */
84 value
= 156; /* --> ins. */
88 value
= 242; /* --> not. */
92 value
= 317; /* --> orr. */
96 value
= 388; /* --> sshll. */
99 case 390: /* sshll2 */
100 value
= 390; /* --> sshll2. */
103 case 412: /* ushll */
104 value
= 412; /* --> ushll. */
106 case 415: /* uxtl2 */
107 case 414: /* ushll2 */
108 value
= 414; /* --> ushll2. */
112 value
= 535; /* --> dup. */
119 case 619: /* sbfiz */
121 value
= 618; /* --> sbfm. */
124 case 628: /* bfxil */
127 value
= 625; /* --> bfm. */
134 case 630: /* ubfiz */
136 value
= 629; /* --> ubfm. */
140 case 663: /* csinc */
141 value
= 663; /* --> csinc. */
143 case 668: /* csetm */
145 case 666: /* csinv */
146 value
= 666; /* --> csinv. */
149 case 669: /* csneg */
150 value
= 669; /* --> csneg. */
153 case 689: /* rev64 */
154 value
= 688; /* --> rev. */
158 value
= 713; /* --> lslv. */
162 value
= 715; /* --> lsrv. */
166 value
= 717; /* --> asrv. */
170 value
= 719; /* --> rorv. */
173 case 722: /* subps */
174 value
= 722; /* --> subps. */
178 value
= 735; /* --> madd. */
182 value
= 737; /* --> msub. */
184 case 740: /* smull */
185 case 739: /* smaddl */
186 value
= 739; /* --> smaddl. */
188 case 742: /* smnegl */
189 case 741: /* smsubl */
190 value
= 741; /* --> smsubl. */
192 case 745: /* umull */
193 case 744: /* umaddl */
194 value
= 744; /* --> umaddl. */
196 case 747: /* umnegl */
197 case 746: /* umsubl */
198 value
= 746; /* --> umsubl. */
202 value
= 757; /* --> extr. */
206 value
= 989; /* --> and. */
210 value
= 991; /* --> orr. */
214 value
= 994; /* --> ands. */
216 case 1000: /* uxtw */
219 value
= 998; /* --> orr. */
223 value
= 1001; /* --> orn. */
226 case 1005: /* ands */
227 value
= 1005; /* --> ands. */
229 case 1132: /* staddb */
230 case 1036: /* ldaddb */
231 value
= 1036; /* --> ldaddb. */
233 case 1133: /* staddh */
234 case 1037: /* ldaddh */
235 value
= 1037; /* --> ldaddh. */
237 case 1134: /* stadd */
238 case 1038: /* ldadd */
239 value
= 1038; /* --> ldadd. */
241 case 1135: /* staddlb */
242 case 1040: /* ldaddlb */
243 value
= 1040; /* --> ldaddlb. */
245 case 1136: /* staddlh */
246 case 1043: /* ldaddlh */
247 value
= 1043; /* --> ldaddlh. */
249 case 1137: /* staddl */
250 case 1046: /* ldaddl */
251 value
= 1046; /* --> ldaddl. */
253 case 1138: /* stclrb */
254 case 1048: /* ldclrb */
255 value
= 1048; /* --> ldclrb. */
257 case 1139: /* stclrh */
258 case 1049: /* ldclrh */
259 value
= 1049; /* --> ldclrh. */
261 case 1140: /* stclr */
262 case 1050: /* ldclr */
263 value
= 1050; /* --> ldclr. */
265 case 1141: /* stclrlb */
266 case 1052: /* ldclrlb */
267 value
= 1052; /* --> ldclrlb. */
269 case 1142: /* stclrlh */
270 case 1055: /* ldclrlh */
271 value
= 1055; /* --> ldclrlh. */
273 case 1143: /* stclrl */
274 case 1058: /* ldclrl */
275 value
= 1058; /* --> ldclrl. */
277 case 1144: /* steorb */
278 case 1060: /* ldeorb */
279 value
= 1060; /* --> ldeorb. */
281 case 1145: /* steorh */
282 case 1061: /* ldeorh */
283 value
= 1061; /* --> ldeorh. */
285 case 1146: /* steor */
286 case 1062: /* ldeor */
287 value
= 1062; /* --> ldeor. */
289 case 1147: /* steorlb */
290 case 1064: /* ldeorlb */
291 value
= 1064; /* --> ldeorlb. */
293 case 1148: /* steorlh */
294 case 1067: /* ldeorlh */
295 value
= 1067; /* --> ldeorlh. */
297 case 1149: /* steorl */
298 case 1070: /* ldeorl */
299 value
= 1070; /* --> ldeorl. */
301 case 1150: /* stsetb */
302 case 1072: /* ldsetb */
303 value
= 1072; /* --> ldsetb. */
305 case 1151: /* stseth */
306 case 1073: /* ldseth */
307 value
= 1073; /* --> ldseth. */
309 case 1152: /* stset */
310 case 1074: /* ldset */
311 value
= 1074; /* --> ldset. */
313 case 1153: /* stsetlb */
314 case 1076: /* ldsetlb */
315 value
= 1076; /* --> ldsetlb. */
317 case 1154: /* stsetlh */
318 case 1079: /* ldsetlh */
319 value
= 1079; /* --> ldsetlh. */
321 case 1155: /* stsetl */
322 case 1082: /* ldsetl */
323 value
= 1082; /* --> ldsetl. */
325 case 1156: /* stsmaxb */
326 case 1084: /* ldsmaxb */
327 value
= 1084; /* --> ldsmaxb. */
329 case 1157: /* stsmaxh */
330 case 1085: /* ldsmaxh */
331 value
= 1085; /* --> ldsmaxh. */
333 case 1158: /* stsmax */
334 case 1086: /* ldsmax */
335 value
= 1086; /* --> ldsmax. */
337 case 1159: /* stsmaxlb */
338 case 1088: /* ldsmaxlb */
339 value
= 1088; /* --> ldsmaxlb. */
341 case 1160: /* stsmaxlh */
342 case 1091: /* ldsmaxlh */
343 value
= 1091; /* --> ldsmaxlh. */
345 case 1161: /* stsmaxl */
346 case 1094: /* ldsmaxl */
347 value
= 1094; /* --> ldsmaxl. */
349 case 1162: /* stsminb */
350 case 1096: /* ldsminb */
351 value
= 1096; /* --> ldsminb. */
353 case 1163: /* stsminh */
354 case 1097: /* ldsminh */
355 value
= 1097; /* --> ldsminh. */
357 case 1164: /* stsmin */
358 case 1098: /* ldsmin */
359 value
= 1098; /* --> ldsmin. */
361 case 1165: /* stsminlb */
362 case 1100: /* ldsminlb */
363 value
= 1100; /* --> ldsminlb. */
365 case 1166: /* stsminlh */
366 case 1103: /* ldsminlh */
367 value
= 1103; /* --> ldsminlh. */
369 case 1167: /* stsminl */
370 case 1106: /* ldsminl */
371 value
= 1106; /* --> ldsminl. */
373 case 1168: /* stumaxb */
374 case 1108: /* ldumaxb */
375 value
= 1108; /* --> ldumaxb. */
377 case 1169: /* stumaxh */
378 case 1109: /* ldumaxh */
379 value
= 1109; /* --> ldumaxh. */
381 case 1170: /* stumax */
382 case 1110: /* ldumax */
383 value
= 1110; /* --> ldumax. */
385 case 1171: /* stumaxlb */
386 case 1112: /* ldumaxlb */
387 value
= 1112; /* --> ldumaxlb. */
389 case 1172: /* stumaxlh */
390 case 1115: /* ldumaxlh */
391 value
= 1115; /* --> ldumaxlh. */
393 case 1173: /* stumaxl */
394 case 1118: /* ldumaxl */
395 value
= 1118; /* --> ldumaxl. */
397 case 1174: /* stuminb */
398 case 1120: /* lduminb */
399 value
= 1120; /* --> lduminb. */
401 case 1175: /* stuminh */
402 case 1121: /* lduminh */
403 value
= 1121; /* --> lduminh. */
405 case 1176: /* stumin */
406 case 1122: /* ldumin */
407 value
= 1122; /* --> ldumin. */
409 case 1177: /* stuminlb */
410 case 1124: /* lduminlb */
411 value
= 1124; /* --> lduminlb. */
413 case 1178: /* stuminlh */
414 case 1127: /* lduminlh */
415 value
= 1127; /* --> lduminlh. */
417 case 1179: /* stuminl */
418 case 1130: /* lduminl */
419 value
= 1130; /* --> lduminl. */
422 case 1180: /* movn */
423 value
= 1180; /* --> movn. */
426 case 1182: /* movz */
427 value
= 1182; /* --> movz. */
429 case 1229: /* autibsp */
430 case 1228: /* autibz */
431 case 1227: /* autiasp */
432 case 1226: /* autiaz */
433 case 1225: /* pacibsp */
434 case 1224: /* pacibz */
435 case 1223: /* paciasp */
436 case 1222: /* paciaz */
439 case 1201: /* autib1716 */
440 case 1200: /* autia1716 */
441 case 1199: /* pacib1716 */
442 case 1198: /* pacia1716 */
443 case 1197: /* xpaclri */
444 case 1196: /* sevl */
448 case 1192: /* yield */
450 case 1190: /* csdb */
452 case 1188: /* hint */
453 value
= 1188; /* --> hint. */
455 case 1207: /* pssbb */
456 case 1206: /* ssbb */
458 value
= 1205; /* --> dsb. */
463 case 1215: /* tlbi */
468 value
= 1211; /* --> sys. */
472 value
= 1277; /* --> and. */
476 value
= 1279; /* --> and. */
478 case 1264: /* movs */
479 case 1280: /* ands */
480 value
= 1280; /* --> ands. */
482 case 2028: /* cmple */
483 case 1315: /* cmpge */
484 value
= 1315; /* --> cmpge. */
486 case 2031: /* cmplt */
487 case 1318: /* cmpgt */
488 value
= 1318; /* --> cmpgt. */
490 case 2029: /* cmplo */
491 case 1320: /* cmphi */
492 value
= 1320; /* --> cmphi. */
494 case 2030: /* cmpls */
495 case 1323: /* cmphs */
496 value
= 1323; /* --> cmphs. */
500 value
= 1345; /* --> cpy. */
504 value
= 1346; /* --> cpy. */
506 case 2038: /* fmov */
509 value
= 1347; /* --> cpy. */
513 value
= 1359; /* --> dup. */
518 value
= 1360; /* --> dup. */
520 case 2037: /* fmov */
523 value
= 1361; /* --> dup. */
526 case 1362: /* dupm */
527 value
= 1362; /* --> dupm. */
531 value
= 1364; /* --> eor. */
535 value
= 1366; /* --> eor. */
537 case 1266: /* nots */
538 case 1367: /* eors */
539 value
= 1367; /* --> eors. */
541 case 2033: /* facle */
542 case 1372: /* facge */
543 value
= 1372; /* --> facge. */
545 case 2034: /* faclt */
546 case 1373: /* facgt */
547 value
= 1373; /* --> facgt. */
549 case 2035: /* fcmle */
550 case 1386: /* fcmge */
551 value
= 1386; /* --> fcmge. */
553 case 2036: /* fcmlt */
554 case 1388: /* fcmgt */
555 value
= 1388; /* --> fcmgt. */
557 case 1249: /* fmov */
558 case 1394: /* fcpy */
559 value
= 1394; /* --> fcpy. */
561 case 1248: /* fmov */
562 case 1417: /* fdup */
563 value
= 1417; /* --> fdup. */
567 value
= 1748; /* --> orr. */
571 value
= 1749; /* --> orr. */
575 value
= 1751; /* --> orr. */
577 case 1263: /* movs */
578 case 1752: /* orrs */
579 value
= 1752; /* --> orrs. */
583 value
= 1814; /* --> sel. */
587 value
= 1815; /* --> sel. */
589 default: return NULL
;
592 return aarch64_opcode_table
+ value
;
596 aarch64_insert_operand (const aarch64_operand
*self
,
597 const aarch64_opnd_info
*info
,
598 aarch64_insn
*code
, const aarch64_inst
*inst
,
599 aarch64_operand_error
*errors
)
601 /* Use the index as the key. */
602 int key
= self
- aarch64_operands
;
651 return aarch64_ins_regno (self
, info
, code
, inst
, errors
);
653 return aarch64_ins_reg_extended (self
, info
, code
, inst
, errors
);
655 return aarch64_ins_reg_shifted (self
, info
, code
, inst
, errors
);
657 return aarch64_ins_ft (self
, info
, code
, inst
, errors
);
663 return aarch64_ins_reglane (self
, info
, code
, inst
, errors
);
665 return aarch64_ins_reglist (self
, info
, code
, inst
, errors
);
667 return aarch64_ins_ldst_reglist (self
, info
, code
, inst
, errors
);
669 return aarch64_ins_ldst_reglist_r (self
, info
, code
, inst
, errors
);
671 return aarch64_ins_ldst_elemlist (self
, info
, code
, inst
, errors
);
706 return aarch64_ins_imm (self
, info
, code
, inst
, errors
);
709 return aarch64_ins_advsimd_imm_shift (self
, info
, code
, inst
, errors
);
713 return aarch64_ins_advsimd_imm_modified (self
, info
, code
, inst
, errors
);
716 return aarch64_ins_fpimm (self
, info
, code
, inst
, errors
);
719 return aarch64_ins_limm (self
, info
, code
, inst
, errors
);
721 return aarch64_ins_aimm (self
, info
, code
, inst
, errors
);
723 return aarch64_ins_imm_half (self
, info
, code
, inst
, errors
);
725 return aarch64_ins_fbits (self
, info
, code
, inst
, errors
);
729 return aarch64_ins_imm_rotate2 (self
, info
, code
, inst
, errors
);
732 return aarch64_ins_imm_rotate1 (self
, info
, code
, inst
, errors
);
735 return aarch64_ins_cond (self
, info
, code
, inst
, errors
);
738 return aarch64_ins_addr_simple (self
, info
, code
, inst
, errors
);
740 return aarch64_ins_addr_simple_2 (self
, info
, code
, inst
, errors
);
742 return aarch64_ins_addr_regoff (self
, info
, code
, inst
, errors
);
748 return aarch64_ins_addr_simm (self
, info
, code
, inst
, errors
);
750 return aarch64_ins_addr_simm10 (self
, info
, code
, inst
, errors
);
752 return aarch64_ins_addr_uimm12 (self
, info
, code
, inst
, errors
);
754 return aarch64_ins_addr_offset (self
, info
, code
, inst
, errors
);
756 return aarch64_ins_simd_addr_post (self
, info
, code
, inst
, errors
);
758 return aarch64_ins_sysreg (self
, info
, code
, inst
, errors
);
760 return aarch64_ins_pstatefield (self
, info
, code
, inst
, errors
);
766 return aarch64_ins_sysins_op (self
, info
, code
, inst
, errors
);
769 return aarch64_ins_barrier (self
, info
, code
, inst
, errors
);
771 return aarch64_ins_prfop (self
, info
, code
, inst
, errors
);
774 return aarch64_ins_hint (self
, info
, code
, inst
, errors
);
776 return aarch64_ins_sve_addr_ri_s4 (self
, info
, code
, inst
, errors
);
781 return aarch64_ins_sve_addr_ri_s4xvl (self
, info
, code
, inst
, errors
);
783 return aarch64_ins_sve_addr_ri_s6xvl (self
, info
, code
, inst
, errors
);
785 return aarch64_ins_sve_addr_ri_s9xvl (self
, info
, code
, inst
, errors
);
790 return aarch64_ins_sve_addr_ri_u6 (self
, info
, code
, inst
, errors
);
804 return aarch64_ins_sve_addr_rr_lsl (self
, info
, code
, inst
, errors
);
813 return aarch64_ins_sve_addr_rz_xtw (self
, info
, code
, inst
, errors
);
818 return aarch64_ins_sve_addr_zi_u5 (self
, info
, code
, inst
, errors
);
820 return aarch64_ins_sve_addr_zz_lsl (self
, info
, code
, inst
, errors
);
822 return aarch64_ins_sve_addr_zz_sxtw (self
, info
, code
, inst
, errors
);
824 return aarch64_ins_sve_addr_zz_uxtw (self
, info
, code
, inst
, errors
);
826 return aarch64_ins_sve_aimm (self
, info
, code
, inst
, errors
);
828 return aarch64_ins_sve_asimm (self
, info
, code
, inst
, errors
);
830 return aarch64_ins_sve_float_half_one (self
, info
, code
, inst
, errors
);
832 return aarch64_ins_sve_float_half_two (self
, info
, code
, inst
, errors
);
834 return aarch64_ins_sve_float_zero_one (self
, info
, code
, inst
, errors
);
836 return aarch64_ins_inv_limm (self
, info
, code
, inst
, errors
);
838 return aarch64_ins_sve_limm_mov (self
, info
, code
, inst
, errors
);
840 return aarch64_ins_sve_scale (self
, info
, code
, inst
, errors
);
843 return aarch64_ins_sve_shlimm (self
, info
, code
, inst
, errors
);
846 return aarch64_ins_sve_shrimm (self
, info
, code
, inst
, errors
);
850 return aarch64_ins_sve_quad_index (self
, info
, code
, inst
, errors
);
852 return aarch64_ins_sve_index (self
, info
, code
, inst
, errors
);
855 return aarch64_ins_sve_reglist (self
, info
, code
, inst
, errors
);
856 default: assert (0); abort ();
This page took 0.048054 seconds and 4 git commands to generate.