]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - opcodes/aarch64-asm-2.c
1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright (C) 2012-2024 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
= 758; /* --> extr. */
206 value
= 995; /* --> and. */
210 value
= 997; /* --> orr. */
213 case 1000: /* ands */
214 value
= 1000; /* --> ands. */
216 case 1006: /* uxtw */
219 value
= 1004; /* --> orr. */
223 value
= 1007; /* --> orn. */
226 case 1011: /* ands */
227 value
= 1011; /* --> ands. */
229 case 1138: /* staddb */
230 case 1042: /* ldaddb */
231 value
= 1042; /* --> ldaddb. */
233 case 1139: /* staddh */
234 case 1043: /* ldaddh */
235 value
= 1043; /* --> ldaddh. */
237 case 1140: /* stadd */
238 case 1044: /* ldadd */
239 value
= 1044; /* --> ldadd. */
241 case 1141: /* staddlb */
242 case 1046: /* ldaddlb */
243 value
= 1046; /* --> ldaddlb. */
245 case 1142: /* staddlh */
246 case 1049: /* ldaddlh */
247 value
= 1049; /* --> ldaddlh. */
249 case 1143: /* staddl */
250 case 1052: /* ldaddl */
251 value
= 1052; /* --> ldaddl. */
253 case 1144: /* stclrb */
254 case 1054: /* ldclrb */
255 value
= 1054; /* --> ldclrb. */
257 case 1145: /* stclrh */
258 case 1055: /* ldclrh */
259 value
= 1055; /* --> ldclrh. */
261 case 1146: /* stclr */
262 case 1056: /* ldclr */
263 value
= 1056; /* --> ldclr. */
265 case 1147: /* stclrlb */
266 case 1058: /* ldclrlb */
267 value
= 1058; /* --> ldclrlb. */
269 case 1148: /* stclrlh */
270 case 1061: /* ldclrlh */
271 value
= 1061; /* --> ldclrlh. */
273 case 1149: /* stclrl */
274 case 1064: /* ldclrl */
275 value
= 1064; /* --> ldclrl. */
277 case 1150: /* steorb */
278 case 1066: /* ldeorb */
279 value
= 1066; /* --> ldeorb. */
281 case 1151: /* steorh */
282 case 1067: /* ldeorh */
283 value
= 1067; /* --> ldeorh. */
285 case 1152: /* steor */
286 case 1068: /* ldeor */
287 value
= 1068; /* --> ldeor. */
289 case 1153: /* steorlb */
290 case 1070: /* ldeorlb */
291 value
= 1070; /* --> ldeorlb. */
293 case 1154: /* steorlh */
294 case 1073: /* ldeorlh */
295 value
= 1073; /* --> ldeorlh. */
297 case 1155: /* steorl */
298 case 1076: /* ldeorl */
299 value
= 1076; /* --> ldeorl. */
301 case 1156: /* stsetb */
302 case 1078: /* ldsetb */
303 value
= 1078; /* --> ldsetb. */
305 case 1157: /* stseth */
306 case 1079: /* ldseth */
307 value
= 1079; /* --> ldseth. */
309 case 1158: /* stset */
310 case 1080: /* ldset */
311 value
= 1080; /* --> ldset. */
313 case 1159: /* stsetlb */
314 case 1082: /* ldsetlb */
315 value
= 1082; /* --> ldsetlb. */
317 case 1160: /* stsetlh */
318 case 1085: /* ldsetlh */
319 value
= 1085; /* --> ldsetlh. */
321 case 1161: /* stsetl */
322 case 1088: /* ldsetl */
323 value
= 1088; /* --> ldsetl. */
325 case 1162: /* stsmaxb */
326 case 1090: /* ldsmaxb */
327 value
= 1090; /* --> ldsmaxb. */
329 case 1163: /* stsmaxh */
330 case 1091: /* ldsmaxh */
331 value
= 1091; /* --> ldsmaxh. */
333 case 1164: /* stsmax */
334 case 1092: /* ldsmax */
335 value
= 1092; /* --> ldsmax. */
337 case 1165: /* stsmaxlb */
338 case 1094: /* ldsmaxlb */
339 value
= 1094; /* --> ldsmaxlb. */
341 case 1166: /* stsmaxlh */
342 case 1097: /* ldsmaxlh */
343 value
= 1097; /* --> ldsmaxlh. */
345 case 1167: /* stsmaxl */
346 case 1100: /* ldsmaxl */
347 value
= 1100; /* --> ldsmaxl. */
349 case 1168: /* stsminb */
350 case 1102: /* ldsminb */
351 value
= 1102; /* --> ldsminb. */
353 case 1169: /* stsminh */
354 case 1103: /* ldsminh */
355 value
= 1103; /* --> ldsminh. */
357 case 1170: /* stsmin */
358 case 1104: /* ldsmin */
359 value
= 1104; /* --> ldsmin. */
361 case 1171: /* stsminlb */
362 case 1106: /* ldsminlb */
363 value
= 1106; /* --> ldsminlb. */
365 case 1172: /* stsminlh */
366 case 1109: /* ldsminlh */
367 value
= 1109; /* --> ldsminlh. */
369 case 1173: /* stsminl */
370 case 1112: /* ldsminl */
371 value
= 1112; /* --> ldsminl. */
373 case 1174: /* stumaxb */
374 case 1114: /* ldumaxb */
375 value
= 1114; /* --> ldumaxb. */
377 case 1175: /* stumaxh */
378 case 1115: /* ldumaxh */
379 value
= 1115; /* --> ldumaxh. */
381 case 1176: /* stumax */
382 case 1116: /* ldumax */
383 value
= 1116; /* --> ldumax. */
385 case 1177: /* stumaxlb */
386 case 1118: /* ldumaxlb */
387 value
= 1118; /* --> ldumaxlb. */
389 case 1178: /* stumaxlh */
390 case 1121: /* ldumaxlh */
391 value
= 1121; /* --> ldumaxlh. */
393 case 1179: /* stumaxl */
394 case 1124: /* ldumaxl */
395 value
= 1124; /* --> ldumaxl. */
397 case 1180: /* stuminb */
398 case 1126: /* lduminb */
399 value
= 1126; /* --> lduminb. */
401 case 1181: /* stuminh */
402 case 1127: /* lduminh */
403 value
= 1127; /* --> lduminh. */
405 case 1182: /* stumin */
406 case 1128: /* ldumin */
407 value
= 1128; /* --> ldumin. */
409 case 1183: /* stuminlb */
410 case 1130: /* lduminlb */
411 value
= 1130; /* --> lduminlb. */
413 case 1184: /* stuminlh */
414 case 1133: /* lduminlh */
415 value
= 1133; /* --> lduminlh. */
417 case 1185: /* stuminl */
418 case 1136: /* lduminl */
419 value
= 1136; /* --> lduminl. */
422 case 1198: /* movn */
423 value
= 1198; /* --> movn. */
426 case 1200: /* movz */
427 value
= 1200; /* --> movz. */
429 case 3197: /* clrbhb */
430 case 1280: /* autibsp */
431 case 1279: /* autibz */
432 case 1278: /* autiasp */
433 case 1277: /* autiaz */
434 case 1276: /* pacibsp */
435 case 1275: /* pacibz */
436 case 1274: /* paciasp */
437 case 1273: /* paciaz */
438 case 1253: /* gcsb */
439 case 1233: /* clearbhb */
443 case 1229: /* autib1716 */
444 case 1228: /* autia1716 */
445 case 1227: /* pacib1716 */
446 case 1226: /* pacia1716 */
447 case 1225: /* xpaclri */
448 case 1223: /* sevl */
452 case 1219: /* yield */
454 case 1217: /* csdb */
456 case 1215: /* hint */
457 value
= 1215; /* --> hint. */
459 case 1239: /* pssbb */
460 case 1238: /* ssbb */
463 value
= 1235; /* --> dsb. */
466 value
= 1236; /* --> dsb. */
468 case 3198: /* trcit */
469 case 1266: /* cosp */
473 case 1259: /* tlbi */
478 value
= 1254; /* --> sys. */
480 case 1260: /* tlbip */
481 case 1255: /* sysp */
482 value
= 1255; /* --> sysp. */
484 case 1261: /* wfet */
485 value
= 1261; /* --> wfet. */
487 case 1262: /* wfit */
488 value
= 1262; /* --> wfit. */
492 value
= 1329; /* --> and. */
496 value
= 1331; /* --> and. */
498 case 1316: /* movs */
499 case 1332: /* ands */
500 value
= 1332; /* --> ands. */
502 case 2083: /* cmple */
503 case 1367: /* cmpge */
504 value
= 1367; /* --> cmpge. */
506 case 2086: /* cmplt */
507 case 1370: /* cmpgt */
508 value
= 1370; /* --> cmpgt. */
510 case 2084: /* cmplo */
511 case 1372: /* cmphi */
512 value
= 1372; /* --> cmphi. */
514 case 2085: /* cmpls */
515 case 1375: /* cmphs */
516 value
= 1375; /* --> cmphs. */
520 value
= 1397; /* --> cpy. */
524 value
= 1398; /* --> cpy. */
526 case 2093: /* fmov */
529 value
= 1399; /* --> cpy. */
533 value
= 1411; /* --> dup. */
538 value
= 1412; /* --> dup. */
540 case 2092: /* fmov */
543 value
= 1413; /* --> dup. */
546 case 1414: /* dupm */
547 value
= 1414; /* --> dupm. */
551 value
= 1416; /* --> eor. */
555 value
= 1418; /* --> eor. */
557 case 1318: /* nots */
558 case 1419: /* eors */
559 value
= 1419; /* --> eors. */
561 case 2088: /* facle */
562 case 1424: /* facge */
563 value
= 1424; /* --> facge. */
565 case 2089: /* faclt */
566 case 1425: /* facgt */
567 value
= 1425; /* --> facgt. */
569 case 2090: /* fcmle */
570 case 1438: /* fcmge */
571 value
= 1438; /* --> fcmge. */
573 case 2091: /* fcmlt */
574 case 1440: /* fcmgt */
575 value
= 1440; /* --> fcmgt. */
577 case 1300: /* fmov */
578 case 1446: /* fcpy */
579 value
= 1446; /* --> fcpy. */
581 case 1299: /* fmov */
582 case 1469: /* fdup */
583 value
= 1469; /* --> fdup. */
587 value
= 1801; /* --> orr. */
591 value
= 1802; /* --> orr. */
596 value
= 1804; /* --> orr. */
598 case 1315: /* movs */
599 case 1805: /* orrs */
600 value
= 1805; /* --> orrs. */
604 value
= 1868; /* --> sel. */
608 value
= 1869; /* --> sel. */
610 default: return NULL
;
613 return aarch64_opcode_table
+ value
;
617 aarch64_insert_operand (const aarch64_operand
*self
,
618 const aarch64_opnd_info
*info
,
619 aarch64_insn
*code
, const aarch64_inst
*inst
,
620 aarch64_operand_error
*errors
)
622 /* Use the index as the key. */
623 int key
= self
- aarch64_operands
;
687 return aarch64_ins_regno (self
, info
, code
, inst
, errors
);
693 return aarch64_ins_none (self
, info
, code
, inst
, errors
);
695 return aarch64_ins_reg_extended (self
, info
, code
, inst
, errors
);
697 return aarch64_ins_reg_shifted (self
, info
, code
, inst
, errors
);
699 return aarch64_ins_ft (self
, info
, code
, inst
, errors
);
705 return aarch64_ins_reglane (self
, info
, code
, inst
, errors
);
707 return aarch64_ins_reglist (self
, info
, code
, inst
, errors
);
709 return aarch64_ins_ldst_reglist (self
, info
, code
, inst
, errors
);
711 return aarch64_ins_ldst_reglist_r (self
, info
, code
, inst
, errors
);
713 return aarch64_ins_ldst_elemlist (self
, info
, code
, inst
, errors
);
757 return aarch64_ins_imm (self
, info
, code
, inst
, errors
);
760 return aarch64_ins_advsimd_imm_shift (self
, info
, code
, inst
, errors
);
764 return aarch64_ins_advsimd_imm_modified (self
, info
, code
, inst
, errors
);
767 return aarch64_ins_fpimm (self
, info
, code
, inst
, errors
);
770 return aarch64_ins_limm (self
, info
, code
, inst
, errors
);
772 return aarch64_ins_aimm (self
, info
, code
, inst
, errors
);
774 return aarch64_ins_imm_half (self
, info
, code
, inst
, errors
);
776 return aarch64_ins_fbits (self
, info
, code
, inst
, errors
);
780 return aarch64_ins_imm_rotate2 (self
, info
, code
, inst
, errors
);
784 return aarch64_ins_imm_rotate1 (self
, info
, code
, inst
, errors
);
787 return aarch64_ins_cond (self
, info
, code
, inst
, errors
);
790 return aarch64_ins_addr_simple (self
, info
, code
, inst
, errors
);
792 return aarch64_ins_addr_regoff (self
, info
, code
, inst
, errors
);
798 return aarch64_ins_addr_simm (self
, info
, code
, inst
, errors
);
800 return aarch64_ins_addr_simm10 (self
, info
, code
, inst
, errors
);
802 return aarch64_ins_addr_uimm12 (self
, info
, code
, inst
, errors
);
804 return aarch64_ins_addr_offset (self
, info
, code
, inst
, errors
);
806 return aarch64_ins_simd_addr_post (self
, info
, code
, inst
, errors
);
809 return aarch64_ins_sysreg (self
, info
, code
, inst
, errors
);
811 return aarch64_ins_pstatefield (self
, info
, code
, inst
, errors
);
818 return aarch64_ins_sysins_op (self
, info
, code
, inst
, errors
);
821 return aarch64_ins_barrier (self
, info
, code
, inst
, errors
);
823 return aarch64_ins_barrier_dsb_nxs (self
, info
, code
, inst
, errors
);
825 return aarch64_ins_prfop (self
, info
, code
, inst
, errors
);
827 return aarch64_ins_hint (self
, info
, code
, inst
, errors
);
830 return aarch64_ins_sve_addr_ri_s4 (self
, info
, code
, inst
, errors
);
835 return aarch64_ins_sve_addr_ri_s4xvl (self
, info
, code
, inst
, errors
);
837 return aarch64_ins_sve_addr_ri_s6xvl (self
, info
, code
, inst
, errors
);
839 return aarch64_ins_sve_addr_ri_s9xvl (self
, info
, code
, inst
, errors
);
844 return aarch64_ins_sve_addr_ri_u6 (self
, info
, code
, inst
, errors
);
860 return aarch64_ins_sve_addr_rr_lsl (self
, info
, code
, inst
, errors
);
869 return aarch64_ins_sve_addr_rz_xtw (self
, info
, code
, inst
, errors
);
874 return aarch64_ins_sve_addr_zi_u5 (self
, info
, code
, inst
, errors
);
876 return aarch64_ins_sve_addr_zz_lsl (self
, info
, code
, inst
, errors
);
878 return aarch64_ins_sve_addr_zz_sxtw (self
, info
, code
, inst
, errors
);
880 return aarch64_ins_sve_addr_zz_uxtw (self
, info
, code
, inst
, errors
);
882 return aarch64_ins_sve_aimm (self
, info
, code
, inst
, errors
);
884 return aarch64_ins_sve_asimm (self
, info
, code
, inst
, errors
);
886 return aarch64_ins_sve_float_half_one (self
, info
, code
, inst
, errors
);
888 return aarch64_ins_sve_float_half_two (self
, info
, code
, inst
, errors
);
890 return aarch64_ins_sve_float_zero_one (self
, info
, code
, inst
, errors
);
892 return aarch64_ins_inv_limm (self
, info
, code
, inst
, errors
);
894 return aarch64_ins_sve_limm_mov (self
, info
, code
, inst
, errors
);
896 return aarch64_ins_sve_scale (self
, info
, code
, inst
, errors
);
900 return aarch64_ins_sve_shlimm (self
, info
, code
, inst
, errors
);
905 return aarch64_ins_sve_shrimm (self
, info
, code
, inst
, errors
);
910 return aarch64_ins_sme_za_vrs1 (self
, info
, code
, inst
, errors
);
915 return aarch64_ins_sme_za_vrs2 (self
, info
, code
, inst
, errors
);
923 return aarch64_ins_sve_quad_index (self
, info
, code
, inst
, errors
);
925 return aarch64_ins_sve_index_imm (self
, info
, code
, inst
, errors
);
927 return aarch64_ins_sve_index (self
, info
, code
, inst
, errors
);
934 return aarch64_ins_sve_reglist (self
, info
, code
, inst
, errors
);
942 return aarch64_ins_sve_aligned_reglist (self
, info
, code
, inst
, errors
);
945 return aarch64_ins_sve_strided_reglist (self
, info
, code
, inst
, errors
);
949 return aarch64_ins_sme_za_hv_tiles (self
, info
, code
, inst
, errors
);
952 return aarch64_ins_sme_za_hv_tiles_range (self
, info
, code
, inst
, errors
);
968 return aarch64_ins_simple_index (self
, info
, code
, inst
, errors
);
976 return aarch64_ins_sme_za_array (self
, info
, code
, inst
, errors
);
978 return aarch64_ins_sme_addr_ri_u4xvl (self
, info
, code
, inst
, errors
);
980 return aarch64_ins_sme_sm_za (self
, info
, code
, inst
, errors
);
982 return aarch64_ins_sme_pred_reg_with_index (self
, info
, code
, inst
, errors
);
984 return aarch64_ins_plain_shrimm (self
, info
, code
, inst
, errors
);
988 return aarch64_ins_x0_to_x30 (self
, info
, code
, inst
, errors
);
989 default: assert (0); abort ();