1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright (C) 2012-2018 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
= 20; /* --> adds. */
67 value
= 22; /* --> sub. */
72 value
= 24; /* --> subs. */
76 value
= 150; /* --> umov. */
80 value
= 152; /* --> ins. */
84 value
= 154; /* --> ins. */
88 value
= 236; /* --> not. */
92 value
= 311; /* --> orr. */
96 value
= 382; /* --> sshll. */
99 case 384: /* sshll2 */
100 value
= 384; /* --> sshll2. */
103 case 406: /* ushll */
104 value
= 406; /* --> ushll. */
106 case 409: /* uxtl2 */
107 case 408: /* ushll2 */
108 value
= 408; /* --> ushll2. */
112 value
= 529; /* --> dup. */
119 case 613: /* sbfiz */
121 value
= 612; /* --> sbfm. */
124 case 622: /* bfxil */
127 value
= 619; /* --> bfm. */
134 case 624: /* ubfiz */
136 value
= 623; /* --> ubfm. */
140 case 657: /* csinc */
141 value
= 657; /* --> csinc. */
143 case 662: /* csetm */
145 case 660: /* csinv */
146 value
= 660; /* --> csinv. */
149 case 663: /* csneg */
150 value
= 663; /* --> csneg. */
153 case 683: /* rev64 */
154 value
= 682; /* --> rev. */
158 value
= 707; /* --> lslv. */
162 value
= 709; /* --> lsrv. */
166 value
= 711; /* --> asrv. */
170 value
= 713; /* --> rorv. */
174 value
= 724; /* --> madd. */
178 value
= 726; /* --> msub. */
180 case 729: /* smull */
181 case 728: /* smaddl */
182 value
= 728; /* --> smaddl. */
184 case 731: /* smnegl */
185 case 730: /* smsubl */
186 value
= 730; /* --> smsubl. */
188 case 734: /* umull */
189 case 733: /* umaddl */
190 value
= 733; /* --> umaddl. */
192 case 736: /* umnegl */
193 case 735: /* umsubl */
194 value
= 735; /* --> umsubl. */
198 value
= 746; /* --> extr. */
202 value
= 959; /* --> and. */
206 value
= 961; /* --> orr. */
210 value
= 964; /* --> ands. */
215 value
= 968; /* --> orr. */
219 value
= 971; /* --> orn. */
223 value
= 975; /* --> ands. */
225 case 1102: /* staddb */
226 case 1006: /* ldaddb */
227 value
= 1006; /* --> ldaddb. */
229 case 1103: /* staddh */
230 case 1007: /* ldaddh */
231 value
= 1007; /* --> ldaddh. */
233 case 1104: /* stadd */
234 case 1008: /* ldadd */
235 value
= 1008; /* --> ldadd. */
237 case 1105: /* staddlb */
238 case 1010: /* ldaddlb */
239 value
= 1010; /* --> ldaddlb. */
241 case 1106: /* staddlh */
242 case 1013: /* ldaddlh */
243 value
= 1013; /* --> ldaddlh. */
245 case 1107: /* staddl */
246 case 1016: /* ldaddl */
247 value
= 1016; /* --> ldaddl. */
249 case 1108: /* stclrb */
250 case 1018: /* ldclrb */
251 value
= 1018; /* --> ldclrb. */
253 case 1109: /* stclrh */
254 case 1019: /* ldclrh */
255 value
= 1019; /* --> ldclrh. */
257 case 1110: /* stclr */
258 case 1020: /* ldclr */
259 value
= 1020; /* --> ldclr. */
261 case 1111: /* stclrlb */
262 case 1022: /* ldclrlb */
263 value
= 1022; /* --> ldclrlb. */
265 case 1112: /* stclrlh */
266 case 1025: /* ldclrlh */
267 value
= 1025; /* --> ldclrlh. */
269 case 1113: /* stclrl */
270 case 1028: /* ldclrl */
271 value
= 1028; /* --> ldclrl. */
273 case 1114: /* steorb */
274 case 1030: /* ldeorb */
275 value
= 1030; /* --> ldeorb. */
277 case 1115: /* steorh */
278 case 1031: /* ldeorh */
279 value
= 1031; /* --> ldeorh. */
281 case 1116: /* steor */
282 case 1032: /* ldeor */
283 value
= 1032; /* --> ldeor. */
285 case 1117: /* steorlb */
286 case 1034: /* ldeorlb */
287 value
= 1034; /* --> ldeorlb. */
289 case 1118: /* steorlh */
290 case 1037: /* ldeorlh */
291 value
= 1037; /* --> ldeorlh. */
293 case 1119: /* steorl */
294 case 1040: /* ldeorl */
295 value
= 1040; /* --> ldeorl. */
297 case 1120: /* stsetb */
298 case 1042: /* ldsetb */
299 value
= 1042; /* --> ldsetb. */
301 case 1121: /* stseth */
302 case 1043: /* ldseth */
303 value
= 1043; /* --> ldseth. */
305 case 1122: /* stset */
306 case 1044: /* ldset */
307 value
= 1044; /* --> ldset. */
309 case 1123: /* stsetlb */
310 case 1046: /* ldsetlb */
311 value
= 1046; /* --> ldsetlb. */
313 case 1124: /* stsetlh */
314 case 1049: /* ldsetlh */
315 value
= 1049; /* --> ldsetlh. */
317 case 1125: /* stsetl */
318 case 1052: /* ldsetl */
319 value
= 1052; /* --> ldsetl. */
321 case 1126: /* stsmaxb */
322 case 1054: /* ldsmaxb */
323 value
= 1054; /* --> ldsmaxb. */
325 case 1127: /* stsmaxh */
326 case 1055: /* ldsmaxh */
327 value
= 1055; /* --> ldsmaxh. */
329 case 1128: /* stsmax */
330 case 1056: /* ldsmax */
331 value
= 1056; /* --> ldsmax. */
333 case 1129: /* stsmaxlb */
334 case 1058: /* ldsmaxlb */
335 value
= 1058; /* --> ldsmaxlb. */
337 case 1130: /* stsmaxlh */
338 case 1061: /* ldsmaxlh */
339 value
= 1061; /* --> ldsmaxlh. */
341 case 1131: /* stsmaxl */
342 case 1064: /* ldsmaxl */
343 value
= 1064; /* --> ldsmaxl. */
345 case 1132: /* stsminb */
346 case 1066: /* ldsminb */
347 value
= 1066; /* --> ldsminb. */
349 case 1133: /* stsminh */
350 case 1067: /* ldsminh */
351 value
= 1067; /* --> ldsminh. */
353 case 1134: /* stsmin */
354 case 1068: /* ldsmin */
355 value
= 1068; /* --> ldsmin. */
357 case 1135: /* stsminlb */
358 case 1070: /* ldsminlb */
359 value
= 1070; /* --> ldsminlb. */
361 case 1136: /* stsminlh */
362 case 1073: /* ldsminlh */
363 value
= 1073; /* --> ldsminlh. */
365 case 1137: /* stsminl */
366 case 1076: /* ldsminl */
367 value
= 1076; /* --> ldsminl. */
369 case 1138: /* stumaxb */
370 case 1078: /* ldumaxb */
371 value
= 1078; /* --> ldumaxb. */
373 case 1139: /* stumaxh */
374 case 1079: /* ldumaxh */
375 value
= 1079; /* --> ldumaxh. */
377 case 1140: /* stumax */
378 case 1080: /* ldumax */
379 value
= 1080; /* --> ldumax. */
381 case 1141: /* stumaxlb */
382 case 1082: /* ldumaxlb */
383 value
= 1082; /* --> ldumaxlb. */
385 case 1142: /* stumaxlh */
386 case 1085: /* ldumaxlh */
387 value
= 1085; /* --> ldumaxlh. */
389 case 1143: /* stumaxl */
390 case 1088: /* ldumaxl */
391 value
= 1088; /* --> ldumaxl. */
393 case 1144: /* stuminb */
394 case 1090: /* lduminb */
395 value
= 1090; /* --> lduminb. */
397 case 1145: /* stuminh */
398 case 1091: /* lduminh */
399 value
= 1091; /* --> lduminh. */
401 case 1146: /* stumin */
402 case 1092: /* ldumin */
403 value
= 1092; /* --> ldumin. */
405 case 1147: /* stuminlb */
406 case 1094: /* lduminlb */
407 value
= 1094; /* --> lduminlb. */
409 case 1148: /* stuminlh */
410 case 1097: /* lduminlh */
411 value
= 1097; /* --> lduminlh. */
413 case 1149: /* stuminl */
414 case 1100: /* lduminl */
415 value
= 1100; /* --> lduminl. */
418 case 1150: /* movn */
419 value
= 1150; /* --> movn. */
422 case 1152: /* movz */
423 value
= 1152; /* --> movz. */
425 case 1192: /* autibsp */
426 case 1191: /* autibz */
427 case 1190: /* autiasp */
428 case 1189: /* autiaz */
429 case 1188: /* pacibsp */
430 case 1187: /* pacibz */
431 case 1186: /* paciasp */
432 case 1185: /* paciaz */
435 case 1170: /* autib1716 */
436 case 1169: /* autia1716 */
437 case 1168: /* pacib1716 */
438 case 1167: /* pacia1716 */
439 case 1166: /* xpaclri */
440 case 1165: /* sevl */
444 case 1161: /* yield */
445 case 1160: /* csdb */
447 case 1158: /* hint */
448 value
= 1158; /* --> hint. */
450 case 1181: /* tlbi */
455 value
= 1177; /* --> sys. */
459 value
= 1240; /* --> and. */
463 value
= 1242; /* --> and. */
465 case 1227: /* movs */
466 case 1243: /* ands */
467 value
= 1243; /* --> ands. */
469 case 1975: /* cmple */
470 case 1278: /* cmpge */
471 value
= 1278; /* --> cmpge. */
473 case 1978: /* cmplt */
474 case 1281: /* cmpgt */
475 value
= 1281; /* --> cmpgt. */
477 case 1976: /* cmplo */
478 case 1283: /* cmphi */
479 value
= 1283; /* --> cmphi. */
481 case 1977: /* cmpls */
482 case 1286: /* cmphs */
483 value
= 1286; /* --> cmphs. */
487 value
= 1308; /* --> cpy. */
491 value
= 1309; /* --> cpy. */
493 case 1985: /* fmov */
496 value
= 1310; /* --> cpy. */
500 value
= 1322; /* --> dup. */
505 value
= 1323; /* --> dup. */
507 case 1984: /* fmov */
510 value
= 1324; /* --> dup. */
513 case 1325: /* dupm */
514 value
= 1325; /* --> dupm. */
518 value
= 1327; /* --> eor. */
522 value
= 1329; /* --> eor. */
524 case 1229: /* nots */
525 case 1330: /* eors */
526 value
= 1330; /* --> eors. */
528 case 1980: /* facle */
529 case 1335: /* facge */
530 value
= 1335; /* --> facge. */
532 case 1981: /* faclt */
533 case 1336: /* facgt */
534 value
= 1336; /* --> facgt. */
536 case 1982: /* fcmle */
537 case 1349: /* fcmge */
538 value
= 1349; /* --> fcmge. */
540 case 1983: /* fcmlt */
541 case 1351: /* fcmgt */
542 value
= 1351; /* --> fcmgt. */
544 case 1212: /* fmov */
545 case 1357: /* fcpy */
546 value
= 1357; /* --> fcpy. */
548 case 1211: /* fmov */
549 case 1380: /* fdup */
550 value
= 1380; /* --> fdup. */
554 value
= 1695; /* --> orr. */
558 value
= 1696; /* --> orr. */
562 value
= 1698; /* --> orr. */
564 case 1226: /* movs */
565 case 1699: /* orrs */
566 value
= 1699; /* --> orrs. */
570 value
= 1761; /* --> sel. */
574 value
= 1762; /* --> sel. */
576 default: return NULL
;
579 return aarch64_opcode_table
+ value
;
583 aarch64_insert_operand (const aarch64_operand
*self
,
584 const aarch64_opnd_info
*info
,
585 aarch64_insn
*code
, const aarch64_inst
*inst
)
587 /* Use the index as the key. */
588 int key
= self
- aarch64_operands
;
637 return aarch64_ins_regno (self
, info
, code
, inst
);
639 return aarch64_ins_reg_extended (self
, info
, code
, inst
);
641 return aarch64_ins_reg_shifted (self
, info
, code
, inst
);
643 return aarch64_ins_ft (self
, info
, code
, inst
);
648 return aarch64_ins_reglane (self
, info
, code
, inst
);
650 return aarch64_ins_reglist (self
, info
, code
, inst
);
652 return aarch64_ins_ldst_reglist (self
, info
, code
, inst
);
654 return aarch64_ins_ldst_reglist_r (self
, info
, code
, inst
);
656 return aarch64_ins_ldst_elemlist (self
, info
, code
, inst
);
689 return aarch64_ins_imm (self
, info
, code
, inst
);
692 return aarch64_ins_advsimd_imm_shift (self
, info
, code
, inst
);
696 return aarch64_ins_advsimd_imm_modified (self
, info
, code
, inst
);
699 return aarch64_ins_fpimm (self
, info
, code
, inst
);
702 return aarch64_ins_limm (self
, info
, code
, inst
);
704 return aarch64_ins_aimm (self
, info
, code
, inst
);
706 return aarch64_ins_imm_half (self
, info
, code
, inst
);
708 return aarch64_ins_fbits (self
, info
, code
, inst
);
712 return aarch64_ins_imm_rotate2 (self
, info
, code
, inst
);
715 return aarch64_ins_imm_rotate1 (self
, info
, code
, inst
);
718 return aarch64_ins_cond (self
, info
, code
, inst
);
721 return aarch64_ins_addr_simple (self
, info
, code
, inst
);
723 return aarch64_ins_addr_regoff (self
, info
, code
, inst
);
727 return aarch64_ins_addr_simm (self
, info
, code
, inst
);
729 return aarch64_ins_addr_simm10 (self
, info
, code
, inst
);
731 return aarch64_ins_addr_uimm12 (self
, info
, code
, inst
);
733 return aarch64_ins_addr_offset (self
, info
, code
, inst
);
735 return aarch64_ins_simd_addr_post (self
, info
, code
, inst
);
737 return aarch64_ins_sysreg (self
, info
, code
, inst
);
739 return aarch64_ins_pstatefield (self
, info
, code
, inst
);
744 return aarch64_ins_sysins_op (self
, info
, code
, inst
);
747 return aarch64_ins_barrier (self
, info
, code
, inst
);
749 return aarch64_ins_prfop (self
, info
, code
, inst
);
751 return aarch64_ins_hint (self
, info
, code
, inst
);
753 return aarch64_ins_sve_addr_ri_s4 (self
, info
, code
, inst
);
758 return aarch64_ins_sve_addr_ri_s4xvl (self
, info
, code
, inst
);
760 return aarch64_ins_sve_addr_ri_s6xvl (self
, info
, code
, inst
);
762 return aarch64_ins_sve_addr_ri_s9xvl (self
, info
, code
, inst
);
767 return aarch64_ins_sve_addr_ri_u6 (self
, info
, code
, inst
);
780 return aarch64_ins_sve_addr_rr_lsl (self
, info
, code
, inst
);
789 return aarch64_ins_sve_addr_rz_xtw (self
, info
, code
, inst
);
794 return aarch64_ins_sve_addr_zi_u5 (self
, info
, code
, inst
);
796 return aarch64_ins_sve_addr_zz_lsl (self
, info
, code
, inst
);
798 return aarch64_ins_sve_addr_zz_sxtw (self
, info
, code
, inst
);
800 return aarch64_ins_sve_addr_zz_uxtw (self
, info
, code
, inst
);
802 return aarch64_ins_sve_aimm (self
, info
, code
, inst
);
804 return aarch64_ins_sve_asimm (self
, info
, code
, inst
);
806 return aarch64_ins_sve_float_half_one (self
, info
, code
, inst
);
808 return aarch64_ins_sve_float_half_two (self
, info
, code
, inst
);
810 return aarch64_ins_sve_float_zero_one (self
, info
, code
, inst
);
812 return aarch64_ins_inv_limm (self
, info
, code
, inst
);
814 return aarch64_ins_sve_limm_mov (self
, info
, code
, inst
);
816 return aarch64_ins_sve_scale (self
, info
, code
, inst
);
819 return aarch64_ins_sve_shlimm (self
, info
, code
, inst
);
822 return aarch64_ins_sve_shrimm (self
, info
, code
, inst
);
826 return aarch64_ins_sve_quad_index (self
, info
, code
, inst
);
828 return aarch64_ins_sve_index (self
, info
, code
, inst
);
831 return aarch64_ins_sve_reglist (self
, info
, code
, inst
);
832 default: assert (0); abort ();
This page took 0.04824 seconds and 4 git commands to generate.