d6efacc255ae33b802113f9c897cc798d4a8e57e
1 /* This file is automatically generated by aarch64-gen. Do not edit! */
2 /* Copyright (C) 2012-2016 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
= 149; /* --> umov. */
80 value
= 151; /* --> ins. */
84 value
= 153; /* --> ins. */
88 value
= 235; /* --> not. */
92 value
= 310; /* --> orr. */
96 value
= 379; /* --> sshll. */
99 case 381: /* sshll2 */
100 value
= 381; /* --> sshll2. */
103 case 403: /* ushll */
104 value
= 403; /* --> ushll. */
106 case 406: /* uxtl2 */
107 case 405: /* ushll2 */
108 value
= 405; /* --> ushll2. */
112 value
= 526; /* --> dup. */
119 case 610: /* sbfiz */
121 value
= 609; /* --> sbfm. */
124 case 619: /* bfxil */
127 value
= 616; /* --> bfm. */
134 case 621: /* ubfiz */
136 value
= 620; /* --> ubfm. */
140 case 642: /* csinc */
141 value
= 642; /* --> csinc. */
143 case 647: /* csetm */
145 case 645: /* csinv */
146 value
= 645; /* --> csinv. */
149 case 648: /* csneg */
150 value
= 648; /* --> csneg. */
153 case 668: /* rev64 */
154 value
= 667; /* --> rev. */
158 value
= 692; /* --> lslv. */
162 value
= 694; /* --> lsrv. */
166 value
= 696; /* --> asrv. */
170 value
= 698; /* --> rorv. */
174 value
= 708; /* --> madd. */
178 value
= 710; /* --> msub. */
180 case 713: /* smull */
181 case 712: /* smaddl */
182 value
= 712; /* --> smaddl. */
184 case 715: /* smnegl */
185 case 714: /* smsubl */
186 value
= 714; /* --> smsubl. */
188 case 718: /* umull */
189 case 717: /* umaddl */
190 value
= 717; /* --> umaddl. */
192 case 720: /* umnegl */
193 case 719: /* umsubl */
194 value
= 719; /* --> umsubl. */
198 value
= 730; /* --> extr. */
202 value
= 937; /* --> and. */
206 value
= 939; /* --> orr. */
210 value
= 942; /* --> ands. */
215 value
= 946; /* --> orr. */
219 value
= 949; /* --> orn. */
223 value
= 953; /* --> ands. */
225 case 1080: /* staddb */
226 case 984: /* ldaddb */
227 value
= 984; /* --> ldaddb. */
229 case 1081: /* staddh */
230 case 985: /* ldaddh */
231 value
= 985; /* --> ldaddh. */
233 case 1082: /* stadd */
234 case 986: /* ldadd */
235 value
= 986; /* --> ldadd. */
237 case 1083: /* staddlb */
238 case 988: /* ldaddlb */
239 value
= 988; /* --> ldaddlb. */
241 case 1084: /* staddlh */
242 case 991: /* ldaddlh */
243 value
= 991; /* --> ldaddlh. */
245 case 1085: /* staddl */
246 case 994: /* ldaddl */
247 value
= 994; /* --> ldaddl. */
249 case 1086: /* stclrb */
250 case 996: /* ldclrb */
251 value
= 996; /* --> ldclrb. */
253 case 1087: /* stclrh */
254 case 997: /* ldclrh */
255 value
= 997; /* --> ldclrh. */
257 case 1088: /* stclr */
258 case 998: /* ldclr */
259 value
= 998; /* --> ldclr. */
261 case 1089: /* stclrlb */
262 case 1000: /* ldclrlb */
263 value
= 1000; /* --> ldclrlb. */
265 case 1090: /* stclrlh */
266 case 1003: /* ldclrlh */
267 value
= 1003; /* --> ldclrlh. */
269 case 1091: /* stclrl */
270 case 1006: /* ldclrl */
271 value
= 1006; /* --> ldclrl. */
273 case 1092: /* steorb */
274 case 1008: /* ldeorb */
275 value
= 1008; /* --> ldeorb. */
277 case 1093: /* steorh */
278 case 1009: /* ldeorh */
279 value
= 1009; /* --> ldeorh. */
281 case 1094: /* steor */
282 case 1010: /* ldeor */
283 value
= 1010; /* --> ldeor. */
285 case 1095: /* steorlb */
286 case 1012: /* ldeorlb */
287 value
= 1012; /* --> ldeorlb. */
289 case 1096: /* steorlh */
290 case 1015: /* ldeorlh */
291 value
= 1015; /* --> ldeorlh. */
293 case 1097: /* steorl */
294 case 1018: /* ldeorl */
295 value
= 1018; /* --> ldeorl. */
297 case 1098: /* stsetb */
298 case 1020: /* ldsetb */
299 value
= 1020; /* --> ldsetb. */
301 case 1099: /* stseth */
302 case 1021: /* ldseth */
303 value
= 1021; /* --> ldseth. */
305 case 1100: /* stset */
306 case 1022: /* ldset */
307 value
= 1022; /* --> ldset. */
309 case 1101: /* stsetlb */
310 case 1024: /* ldsetlb */
311 value
= 1024; /* --> ldsetlb. */
313 case 1102: /* stsetlh */
314 case 1027: /* ldsetlh */
315 value
= 1027; /* --> ldsetlh. */
317 case 1103: /* stsetl */
318 case 1030: /* ldsetl */
319 value
= 1030; /* --> ldsetl. */
321 case 1104: /* stsmaxb */
322 case 1032: /* ldsmaxb */
323 value
= 1032; /* --> ldsmaxb. */
325 case 1105: /* stsmaxh */
326 case 1033: /* ldsmaxh */
327 value
= 1033; /* --> ldsmaxh. */
329 case 1106: /* stsmax */
330 case 1034: /* ldsmax */
331 value
= 1034; /* --> ldsmax. */
333 case 1107: /* stsmaxlb */
334 case 1036: /* ldsmaxlb */
335 value
= 1036; /* --> ldsmaxlb. */
337 case 1108: /* stsmaxlh */
338 case 1039: /* ldsmaxlh */
339 value
= 1039; /* --> ldsmaxlh. */
341 case 1109: /* stsmaxl */
342 case 1042: /* ldsmaxl */
343 value
= 1042; /* --> ldsmaxl. */
345 case 1110: /* stsminb */
346 case 1044: /* ldsminb */
347 value
= 1044; /* --> ldsminb. */
349 case 1111: /* stsminh */
350 case 1045: /* ldsminh */
351 value
= 1045; /* --> ldsminh. */
353 case 1112: /* stsmin */
354 case 1046: /* ldsmin */
355 value
= 1046; /* --> ldsmin. */
357 case 1113: /* stsminlb */
358 case 1048: /* ldsminlb */
359 value
= 1048; /* --> ldsminlb. */
361 case 1114: /* stsminlh */
362 case 1051: /* ldsminlh */
363 value
= 1051; /* --> ldsminlh. */
365 case 1115: /* stsminl */
366 case 1054: /* ldsminl */
367 value
= 1054; /* --> ldsminl. */
369 case 1116: /* stumaxb */
370 case 1056: /* ldumaxb */
371 value
= 1056; /* --> ldumaxb. */
373 case 1117: /* stumaxh */
374 case 1057: /* ldumaxh */
375 value
= 1057; /* --> ldumaxh. */
377 case 1118: /* stumax */
378 case 1058: /* ldumax */
379 value
= 1058; /* --> ldumax. */
381 case 1119: /* stumaxlb */
382 case 1060: /* ldumaxlb */
383 value
= 1060; /* --> ldumaxlb. */
385 case 1120: /* stumaxlh */
386 case 1063: /* ldumaxlh */
387 value
= 1063; /* --> ldumaxlh. */
389 case 1121: /* stumaxl */
390 case 1066: /* ldumaxl */
391 value
= 1066; /* --> ldumaxl. */
393 case 1122: /* stuminb */
394 case 1068: /* lduminb */
395 value
= 1068; /* --> lduminb. */
397 case 1123: /* stuminh */
398 case 1069: /* lduminh */
399 value
= 1069; /* --> lduminh. */
401 case 1124: /* stumin */
402 case 1070: /* ldumin */
403 value
= 1070; /* --> ldumin. */
405 case 1125: /* stuminlb */
406 case 1072: /* lduminlb */
407 value
= 1072; /* --> lduminlb. */
409 case 1126: /* stuminlh */
410 case 1075: /* lduminlh */
411 value
= 1075; /* --> lduminlh. */
413 case 1127: /* stuminl */
414 case 1078: /* lduminl */
415 value
= 1078; /* --> lduminl. */
418 case 1128: /* movn */
419 value
= 1128; /* --> movn. */
422 case 1130: /* movz */
423 value
= 1130; /* --> movz. */
425 case 1169: /* autibsp */
426 case 1168: /* autibz */
427 case 1167: /* autiasp */
428 case 1166: /* autiaz */
429 case 1165: /* pacibsp */
430 case 1164: /* pacibz */
431 case 1163: /* paciasp */
432 case 1162: /* paciaz */
435 case 1147: /* autib1716 */
436 case 1146: /* autia1716 */
437 case 1145: /* pacib1716 */
438 case 1144: /* pacia1716 */
439 case 1143: /* xpaclri */
440 case 1142: /* sevl */
444 case 1138: /* yield */
446 case 1136: /* hint */
447 value
= 1136; /* --> hint. */
449 case 1158: /* tlbi */
454 value
= 1154; /* --> sys. */
458 value
= 1217; /* --> and. */
462 value
= 1219; /* --> and. */
464 case 1204: /* movs */
465 case 1220: /* ands */
466 value
= 1220; /* --> ands. */
468 case 1913: /* cmple */
469 case 1255: /* cmpge */
470 value
= 1255; /* --> cmpge. */
472 case 1916: /* cmplt */
473 case 1258: /* cmpgt */
474 value
= 1258; /* --> cmpgt. */
476 case 1914: /* cmplo */
477 case 1260: /* cmphi */
478 value
= 1260; /* --> cmphi. */
480 case 1915: /* cmpls */
481 case 1263: /* cmphs */
482 value
= 1263; /* --> cmphs. */
486 value
= 1285; /* --> cpy. */
490 value
= 1286; /* --> cpy. */
492 case 1923: /* fmov */
495 value
= 1287; /* --> cpy. */
499 value
= 1299; /* --> dup. */
504 value
= 1300; /* --> dup. */
506 case 1922: /* fmov */
509 value
= 1301; /* --> dup. */
512 case 1302: /* dupm */
513 value
= 1302; /* --> dupm. */
517 value
= 1304; /* --> eor. */
521 value
= 1306; /* --> eor. */
523 case 1206: /* nots */
524 case 1307: /* eors */
525 value
= 1307; /* --> eors. */
527 case 1918: /* facle */
528 case 1312: /* facge */
529 value
= 1312; /* --> facge. */
531 case 1919: /* faclt */
532 case 1313: /* facgt */
533 value
= 1313; /* --> facgt. */
535 case 1920: /* fcmle */
536 case 1322: /* fcmge */
537 value
= 1322; /* --> fcmge. */
539 case 1921: /* fcmlt */
540 case 1324: /* fcmgt */
541 value
= 1324; /* --> fcmgt. */
543 case 1189: /* fmov */
544 case 1330: /* fcpy */
545 value
= 1330; /* --> fcpy. */
547 case 1188: /* fmov */
548 case 1347: /* fdup */
549 value
= 1347; /* --> fdup. */
553 value
= 1645; /* --> orr. */
557 value
= 1646; /* --> orr. */
561 value
= 1648; /* --> orr. */
563 case 1203: /* movs */
564 case 1649: /* orrs */
565 value
= 1649; /* --> orrs. */
569 value
= 1705; /* --> sel. */
573 value
= 1706; /* --> sel. */
575 default: return NULL
;
578 return aarch64_opcode_table
+ value
;
582 aarch64_insert_operand (const aarch64_operand
*self
,
583 const aarch64_opnd_info
*info
,
584 aarch64_insn
*code
, const aarch64_inst
*inst
)
586 /* Use the index as the key. */
587 int key
= self
- aarch64_operands
;
636 return aarch64_ins_regno (self
, info
, code
, inst
);
638 return aarch64_ins_reg_extended (self
, info
, code
, inst
);
640 return aarch64_ins_reg_shifted (self
, info
, code
, inst
);
642 return aarch64_ins_ft (self
, info
, code
, inst
);
646 return aarch64_ins_reglane (self
, info
, code
, inst
);
648 return aarch64_ins_reglist (self
, info
, code
, inst
);
650 return aarch64_ins_ldst_reglist (self
, info
, code
, inst
);
652 return aarch64_ins_ldst_reglist_r (self
, info
, code
, inst
);
654 return aarch64_ins_ldst_elemlist (self
, info
, code
, inst
);
683 return aarch64_ins_imm (self
, info
, code
, inst
);
686 return aarch64_ins_advsimd_imm_shift (self
, info
, code
, inst
);
690 return aarch64_ins_advsimd_imm_modified (self
, info
, code
, inst
);
693 return aarch64_ins_fpimm (self
, info
, code
, inst
);
696 return aarch64_ins_limm (self
, info
, code
, inst
);
698 return aarch64_ins_aimm (self
, info
, code
, inst
);
700 return aarch64_ins_imm_half (self
, info
, code
, inst
);
702 return aarch64_ins_fbits (self
, info
, code
, inst
);
705 return aarch64_ins_cond (self
, info
, code
, inst
);
708 return aarch64_ins_addr_simple (self
, info
, code
, inst
);
710 return aarch64_ins_addr_regoff (self
, info
, code
, inst
);
714 return aarch64_ins_addr_simm (self
, info
, code
, inst
);
716 return aarch64_ins_addr_uimm12 (self
, info
, code
, inst
);
718 return aarch64_ins_simd_addr_post (self
, info
, code
, inst
);
720 return aarch64_ins_sysreg (self
, info
, code
, inst
);
722 return aarch64_ins_pstatefield (self
, info
, code
, inst
);
727 return aarch64_ins_sysins_op (self
, info
, code
, inst
);
730 return aarch64_ins_barrier (self
, info
, code
, inst
);
732 return aarch64_ins_prfop (self
, info
, code
, inst
);
734 return aarch64_ins_hint (self
, info
, code
, inst
);
739 return aarch64_ins_sve_addr_ri_s4xvl (self
, info
, code
, inst
);
741 return aarch64_ins_sve_addr_ri_s6xvl (self
, info
, code
, inst
);
743 return aarch64_ins_sve_addr_ri_s9xvl (self
, info
, code
, inst
);
748 return aarch64_ins_sve_addr_ri_u6 (self
, info
, code
, inst
);
761 return aarch64_ins_sve_addr_rr_lsl (self
, info
, code
, inst
);
770 return aarch64_ins_sve_addr_rz_xtw (self
, info
, code
, inst
);
775 return aarch64_ins_sve_addr_zi_u5 (self
, info
, code
, inst
);
777 return aarch64_ins_sve_addr_zz_lsl (self
, info
, code
, inst
);
779 return aarch64_ins_sve_addr_zz_sxtw (self
, info
, code
, inst
);
781 return aarch64_ins_sve_addr_zz_uxtw (self
, info
, code
, inst
);
783 return aarch64_ins_sve_aimm (self
, info
, code
, inst
);
785 return aarch64_ins_sve_asimm (self
, info
, code
, inst
);
787 return aarch64_ins_sve_float_half_one (self
, info
, code
, inst
);
789 return aarch64_ins_sve_float_half_two (self
, info
, code
, inst
);
791 return aarch64_ins_sve_float_zero_one (self
, info
, code
, inst
);
793 return aarch64_ins_inv_limm (self
, info
, code
, inst
);
795 return aarch64_ins_sve_limm_mov (self
, info
, code
, inst
);
797 return aarch64_ins_sve_scale (self
, info
, code
, inst
);
800 return aarch64_ins_sve_shlimm (self
, info
, code
, inst
);
803 return aarch64_ins_sve_shrimm (self
, info
, code
, inst
);
805 return aarch64_ins_sve_index (self
, info
, code
, inst
);
808 return aarch64_ins_sve_reglist (self
, info
, code
, inst
);
809 default: assert (0); abort ();
This page took 0.046887 seconds and 4 git commands to generate.