2014-09-12 22:14:23 +00:00
|
|
|
/* This file is automatically generated by aarch64-gen. Do not edit! */
|
2018-12-28 15:25:28 +00:00
|
|
|
/* Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
2014-09-12 22:14:23 +00:00
|
|
|
Contributed by ARM Ltd.
|
|
|
|
|
|
|
|
This file is part of the GNU opcodes library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
|
|
License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; see the file COPYING3. If not,
|
|
|
|
see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
|
|
|
#include "sysdep.h"
|
|
|
|
#include "aarch64-asm.h"
|
|
|
|
|
|
|
|
|
|
|
|
const aarch64_opcode *
|
|
|
|
aarch64_find_real_opcode (const aarch64_opcode *opcode)
|
|
|
|
{
|
|
|
|
/* Use the index as the key to locate the real opcode. */
|
|
|
|
int key = opcode - aarch64_opcode_table;
|
|
|
|
int value;
|
|
|
|
switch (key)
|
|
|
|
{
|
|
|
|
case 3: /* ngc */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 2: /* sbc */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 2; /* --> sbc. */
|
|
|
|
break;
|
|
|
|
case 5: /* ngcs */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 4: /* sbcs */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 4; /* --> sbcs. */
|
|
|
|
break;
|
|
|
|
case 8: /* cmn */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 7: /* adds */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 7; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 11: /* cmp */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 10: /* subs */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 10; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 13: /* mov */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 12: /* add */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 12; /* --> add. */
|
|
|
|
break;
|
|
|
|
case 15: /* cmn */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 14: /* adds */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 14; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 18: /* cmp */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 17: /* subs */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 17; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 21: /* cmn */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 20: /* adds */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 20; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 23: /* neg */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 22: /* sub */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 22; /* --> sub. */
|
|
|
|
break;
|
|
|
|
case 25: /* cmp */
|
2018-12-28 15:25:28 +00:00
|
|
|
case 26: /* negs */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 24: /* subs */
|
2014-09-12 22:14:23 +00:00
|
|
|
value = 24; /* --> subs. */
|
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 151: /* mov */
|
|
|
|
case 150: /* umov */
|
|
|
|
value = 150; /* --> umov. */
|
|
|
|
break;
|
|
|
|
case 153: /* mov */
|
|
|
|
case 152: /* ins */
|
|
|
|
value = 152; /* --> ins. */
|
|
|
|
break;
|
|
|
|
case 155: /* mov */
|
|
|
|
case 154: /* ins */
|
|
|
|
value = 154; /* --> ins. */
|
|
|
|
break;
|
|
|
|
case 237: /* mvn */
|
|
|
|
case 236: /* not */
|
|
|
|
value = 236; /* --> not. */
|
|
|
|
break;
|
|
|
|
case 312: /* mov */
|
|
|
|
case 311: /* orr */
|
|
|
|
value = 311; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 383: /* sxtl */
|
|
|
|
case 382: /* sshll */
|
|
|
|
value = 382; /* --> sshll. */
|
|
|
|
break;
|
|
|
|
case 385: /* sxtl2 */
|
|
|
|
case 384: /* sshll2 */
|
|
|
|
value = 384; /* --> sshll2. */
|
|
|
|
break;
|
|
|
|
case 407: /* uxtl */
|
|
|
|
case 406: /* ushll */
|
|
|
|
value = 406; /* --> ushll. */
|
|
|
|
break;
|
|
|
|
case 409: /* uxtl2 */
|
|
|
|
case 408: /* ushll2 */
|
|
|
|
value = 408; /* --> ushll2. */
|
|
|
|
break;
|
|
|
|
case 530: /* mov */
|
|
|
|
case 529: /* dup */
|
|
|
|
value = 529; /* --> dup. */
|
|
|
|
break;
|
|
|
|
case 617: /* sxtw */
|
|
|
|
case 616: /* sxth */
|
|
|
|
case 615: /* sxtb */
|
|
|
|
case 618: /* asr */
|
|
|
|
case 614: /* sbfx */
|
|
|
|
case 613: /* sbfiz */
|
|
|
|
case 612: /* sbfm */
|
|
|
|
value = 612; /* --> sbfm. */
|
|
|
|
break;
|
|
|
|
case 621: /* bfc */
|
|
|
|
case 622: /* bfxil */
|
|
|
|
case 620: /* bfi */
|
|
|
|
case 619: /* bfm */
|
|
|
|
value = 619; /* --> bfm. */
|
|
|
|
break;
|
|
|
|
case 627: /* uxth */
|
|
|
|
case 626: /* uxtb */
|
|
|
|
case 629: /* lsr */
|
|
|
|
case 628: /* lsl */
|
|
|
|
case 625: /* ubfx */
|
|
|
|
case 624: /* ubfiz */
|
|
|
|
case 623: /* ubfm */
|
|
|
|
value = 623; /* --> ubfm. */
|
|
|
|
break;
|
|
|
|
case 659: /* cset */
|
|
|
|
case 658: /* cinc */
|
|
|
|
case 657: /* csinc */
|
|
|
|
value = 657; /* --> csinc. */
|
|
|
|
break;
|
|
|
|
case 662: /* csetm */
|
|
|
|
case 661: /* cinv */
|
|
|
|
case 660: /* csinv */
|
|
|
|
value = 660; /* --> csinv. */
|
|
|
|
break;
|
|
|
|
case 664: /* cneg */
|
|
|
|
case 663: /* csneg */
|
|
|
|
value = 663; /* --> csneg. */
|
|
|
|
break;
|
|
|
|
case 682: /* rev */
|
|
|
|
case 683: /* rev64 */
|
|
|
|
value = 682; /* --> rev. */
|
|
|
|
break;
|
|
|
|
case 708: /* lsl */
|
|
|
|
case 707: /* lslv */
|
|
|
|
value = 707; /* --> lslv. */
|
|
|
|
break;
|
|
|
|
case 710: /* lsr */
|
|
|
|
case 709: /* lsrv */
|
|
|
|
value = 709; /* --> lsrv. */
|
|
|
|
break;
|
|
|
|
case 712: /* asr */
|
|
|
|
case 711: /* asrv */
|
|
|
|
value = 711; /* --> asrv. */
|
|
|
|
break;
|
|
|
|
case 714: /* ror */
|
|
|
|
case 713: /* rorv */
|
|
|
|
value = 713; /* --> rorv. */
|
|
|
|
break;
|
|
|
|
case 725: /* mul */
|
|
|
|
case 724: /* madd */
|
|
|
|
value = 724; /* --> madd. */
|
|
|
|
break;
|
|
|
|
case 727: /* mneg */
|
|
|
|
case 726: /* msub */
|
|
|
|
value = 726; /* --> msub. */
|
|
|
|
break;
|
|
|
|
case 729: /* smull */
|
|
|
|
case 728: /* smaddl */
|
|
|
|
value = 728; /* --> smaddl. */
|
|
|
|
break;
|
|
|
|
case 731: /* smnegl */
|
|
|
|
case 730: /* smsubl */
|
|
|
|
value = 730; /* --> smsubl. */
|
|
|
|
break;
|
|
|
|
case 734: /* umull */
|
|
|
|
case 733: /* umaddl */
|
|
|
|
value = 733; /* --> umaddl. */
|
|
|
|
break;
|
|
|
|
case 736: /* umnegl */
|
|
|
|
case 735: /* umsubl */
|
|
|
|
value = 735; /* --> umsubl. */
|
|
|
|
break;
|
|
|
|
case 747: /* ror */
|
|
|
|
case 746: /* extr */
|
|
|
|
value = 746; /* --> extr. */
|
|
|
|
break;
|
|
|
|
case 960: /* bic */
|
|
|
|
case 959: /* and */
|
|
|
|
value = 959; /* --> and. */
|
|
|
|
break;
|
|
|
|
case 962: /* mov */
|
|
|
|
case 961: /* orr */
|
|
|
|
value = 961; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 965: /* tst */
|
|
|
|
case 964: /* ands */
|
|
|
|
value = 964; /* --> ands. */
|
|
|
|
break;
|
|
|
|
case 970: /* uxtw */
|
|
|
|
case 969: /* mov */
|
|
|
|
case 968: /* orr */
|
|
|
|
value = 968; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 972: /* mvn */
|
|
|
|
case 971: /* orn */
|
|
|
|
value = 971; /* --> orn. */
|
|
|
|
break;
|
|
|
|
case 976: /* tst */
|
|
|
|
case 975: /* ands */
|
|
|
|
value = 975; /* --> ands. */
|
|
|
|
break;
|
|
|
|
case 1102: /* staddb */
|
|
|
|
case 1006: /* ldaddb */
|
|
|
|
value = 1006; /* --> ldaddb. */
|
|
|
|
break;
|
|
|
|
case 1103: /* staddh */
|
|
|
|
case 1007: /* ldaddh */
|
|
|
|
value = 1007; /* --> ldaddh. */
|
|
|
|
break;
|
|
|
|
case 1104: /* stadd */
|
|
|
|
case 1008: /* ldadd */
|
|
|
|
value = 1008; /* --> ldadd. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1105: /* staddlb */
|
|
|
|
case 1010: /* ldaddlb */
|
|
|
|
value = 1010; /* --> ldaddlb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1106: /* staddlh */
|
|
|
|
case 1013: /* ldaddlh */
|
|
|
|
value = 1013; /* --> ldaddlh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1107: /* staddl */
|
|
|
|
case 1016: /* ldaddl */
|
|
|
|
value = 1016; /* --> ldaddl. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1108: /* stclrb */
|
|
|
|
case 1018: /* ldclrb */
|
|
|
|
value = 1018; /* --> ldclrb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1109: /* stclrh */
|
|
|
|
case 1019: /* ldclrh */
|
|
|
|
value = 1019; /* --> ldclrh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1110: /* stclr */
|
|
|
|
case 1020: /* ldclr */
|
|
|
|
value = 1020; /* --> ldclr. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1111: /* stclrlb */
|
|
|
|
case 1022: /* ldclrlb */
|
|
|
|
value = 1022; /* --> ldclrlb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1112: /* stclrlh */
|
|
|
|
case 1025: /* ldclrlh */
|
|
|
|
value = 1025; /* --> ldclrlh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1113: /* stclrl */
|
|
|
|
case 1028: /* ldclrl */
|
|
|
|
value = 1028; /* --> ldclrl. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1114: /* steorb */
|
|
|
|
case 1030: /* ldeorb */
|
|
|
|
value = 1030; /* --> ldeorb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1115: /* steorh */
|
|
|
|
case 1031: /* ldeorh */
|
|
|
|
value = 1031; /* --> ldeorh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1116: /* steor */
|
|
|
|
case 1032: /* ldeor */
|
|
|
|
value = 1032; /* --> ldeor. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1117: /* steorlb */
|
|
|
|
case 1034: /* ldeorlb */
|
|
|
|
value = 1034; /* --> ldeorlb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1118: /* steorlh */
|
|
|
|
case 1037: /* ldeorlh */
|
|
|
|
value = 1037; /* --> ldeorlh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1119: /* steorl */
|
|
|
|
case 1040: /* ldeorl */
|
|
|
|
value = 1040; /* --> ldeorl. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1120: /* stsetb */
|
|
|
|
case 1042: /* ldsetb */
|
|
|
|
value = 1042; /* --> ldsetb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1121: /* stseth */
|
|
|
|
case 1043: /* ldseth */
|
|
|
|
value = 1043; /* --> ldseth. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1122: /* stset */
|
|
|
|
case 1044: /* ldset */
|
|
|
|
value = 1044; /* --> ldset. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1123: /* stsetlb */
|
|
|
|
case 1046: /* ldsetlb */
|
|
|
|
value = 1046; /* --> ldsetlb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1124: /* stsetlh */
|
|
|
|
case 1049: /* ldsetlh */
|
|
|
|
value = 1049; /* --> ldsetlh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1125: /* stsetl */
|
|
|
|
case 1052: /* ldsetl */
|
|
|
|
value = 1052; /* --> ldsetl. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1126: /* stsmaxb */
|
|
|
|
case 1054: /* ldsmaxb */
|
|
|
|
value = 1054; /* --> ldsmaxb. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1127: /* stsmaxh */
|
|
|
|
case 1055: /* ldsmaxh */
|
|
|
|
value = 1055; /* --> ldsmaxh. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1128: /* stsmax */
|
|
|
|
case 1056: /* ldsmax */
|
|
|
|
value = 1056; /* --> ldsmax. */
|
|
|
|
break;
|
|
|
|
case 1129: /* stsmaxlb */
|
|
|
|
case 1058: /* ldsmaxlb */
|
|
|
|
value = 1058; /* --> ldsmaxlb. */
|
|
|
|
break;
|
|
|
|
case 1130: /* stsmaxlh */
|
|
|
|
case 1061: /* ldsmaxlh */
|
|
|
|
value = 1061; /* --> ldsmaxlh. */
|
|
|
|
break;
|
|
|
|
case 1131: /* stsmaxl */
|
|
|
|
case 1064: /* ldsmaxl */
|
|
|
|
value = 1064; /* --> ldsmaxl. */
|
|
|
|
break;
|
|
|
|
case 1132: /* stsminb */
|
|
|
|
case 1066: /* ldsminb */
|
|
|
|
value = 1066; /* --> ldsminb. */
|
|
|
|
break;
|
|
|
|
case 1133: /* stsminh */
|
|
|
|
case 1067: /* ldsminh */
|
|
|
|
value = 1067; /* --> ldsminh. */
|
|
|
|
break;
|
|
|
|
case 1134: /* stsmin */
|
|
|
|
case 1068: /* ldsmin */
|
|
|
|
value = 1068; /* --> ldsmin. */
|
|
|
|
break;
|
|
|
|
case 1135: /* stsminlb */
|
|
|
|
case 1070: /* ldsminlb */
|
|
|
|
value = 1070; /* --> ldsminlb. */
|
|
|
|
break;
|
|
|
|
case 1136: /* stsminlh */
|
|
|
|
case 1073: /* ldsminlh */
|
|
|
|
value = 1073; /* --> ldsminlh. */
|
|
|
|
break;
|
|
|
|
case 1137: /* stsminl */
|
|
|
|
case 1076: /* ldsminl */
|
|
|
|
value = 1076; /* --> ldsminl. */
|
|
|
|
break;
|
|
|
|
case 1138: /* stumaxb */
|
|
|
|
case 1078: /* ldumaxb */
|
|
|
|
value = 1078; /* --> ldumaxb. */
|
|
|
|
break;
|
|
|
|
case 1139: /* stumaxh */
|
|
|
|
case 1079: /* ldumaxh */
|
|
|
|
value = 1079; /* --> ldumaxh. */
|
|
|
|
break;
|
|
|
|
case 1140: /* stumax */
|
|
|
|
case 1080: /* ldumax */
|
|
|
|
value = 1080; /* --> ldumax. */
|
|
|
|
break;
|
|
|
|
case 1141: /* stumaxlb */
|
|
|
|
case 1082: /* ldumaxlb */
|
|
|
|
value = 1082; /* --> ldumaxlb. */
|
|
|
|
break;
|
|
|
|
case 1142: /* stumaxlh */
|
|
|
|
case 1085: /* ldumaxlh */
|
|
|
|
value = 1085; /* --> ldumaxlh. */
|
|
|
|
break;
|
|
|
|
case 1143: /* stumaxl */
|
|
|
|
case 1088: /* ldumaxl */
|
|
|
|
value = 1088; /* --> ldumaxl. */
|
|
|
|
break;
|
|
|
|
case 1144: /* stuminb */
|
|
|
|
case 1090: /* lduminb */
|
|
|
|
value = 1090; /* --> lduminb. */
|
|
|
|
break;
|
|
|
|
case 1145: /* stuminh */
|
|
|
|
case 1091: /* lduminh */
|
|
|
|
value = 1091; /* --> lduminh. */
|
|
|
|
break;
|
|
|
|
case 1146: /* stumin */
|
|
|
|
case 1092: /* ldumin */
|
|
|
|
value = 1092; /* --> ldumin. */
|
|
|
|
break;
|
|
|
|
case 1147: /* stuminlb */
|
|
|
|
case 1094: /* lduminlb */
|
|
|
|
value = 1094; /* --> lduminlb. */
|
|
|
|
break;
|
|
|
|
case 1148: /* stuminlh */
|
|
|
|
case 1097: /* lduminlh */
|
|
|
|
value = 1097; /* --> lduminlh. */
|
|
|
|
break;
|
|
|
|
case 1149: /* stuminl */
|
|
|
|
case 1100: /* lduminl */
|
|
|
|
value = 1100; /* --> lduminl. */
|
|
|
|
break;
|
|
|
|
case 1151: /* mov */
|
|
|
|
case 1150: /* movn */
|
|
|
|
value = 1150; /* --> movn. */
|
|
|
|
break;
|
|
|
|
case 1153: /* mov */
|
|
|
|
case 1152: /* movz */
|
|
|
|
value = 1152; /* --> movz. */
|
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1194: /* autibsp */
|
|
|
|
case 1193: /* autibz */
|
|
|
|
case 1192: /* autiasp */
|
|
|
|
case 1191: /* autiaz */
|
|
|
|
case 1190: /* pacibsp */
|
|
|
|
case 1189: /* pacibz */
|
|
|
|
case 1188: /* paciasp */
|
|
|
|
case 1187: /* paciaz */
|
|
|
|
case 1172: /* psb */
|
|
|
|
case 1171: /* esb */
|
|
|
|
case 1170: /* autib1716 */
|
|
|
|
case 1169: /* autia1716 */
|
|
|
|
case 1168: /* pacib1716 */
|
|
|
|
case 1167: /* pacia1716 */
|
|
|
|
case 1166: /* xpaclri */
|
|
|
|
case 1165: /* sevl */
|
|
|
|
case 1164: /* sev */
|
|
|
|
case 1163: /* wfi */
|
|
|
|
case 1162: /* wfe */
|
|
|
|
case 1161: /* yield */
|
|
|
|
case 1160: /* csdb */
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1159: /* nop */
|
|
|
|
case 1158: /* hint */
|
|
|
|
value = 1158; /* --> hint. */
|
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1176: /* pssbb */
|
|
|
|
case 1175: /* ssbb */
|
|
|
|
case 1174: /* dsb */
|
|
|
|
value = 1174; /* --> dsb. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1183: /* tlbi */
|
|
|
|
case 1182: /* ic */
|
|
|
|
case 1181: /* dc */
|
|
|
|
case 1180: /* at */
|
|
|
|
case 1179: /* sys */
|
|
|
|
value = 1179; /* --> sys. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1992: /* bic */
|
|
|
|
case 1242: /* and */
|
|
|
|
value = 1242; /* --> and. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1225: /* mov */
|
|
|
|
case 1244: /* and */
|
|
|
|
value = 1244; /* --> and. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1229: /* movs */
|
|
|
|
case 1245: /* ands */
|
|
|
|
value = 1245; /* --> ands. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1993: /* cmple */
|
|
|
|
case 1280: /* cmpge */
|
|
|
|
value = 1280; /* --> cmpge. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1996: /* cmplt */
|
|
|
|
case 1283: /* cmpgt */
|
|
|
|
value = 1283; /* --> cmpgt. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1994: /* cmplo */
|
|
|
|
case 1285: /* cmphi */
|
|
|
|
value = 1285; /* --> cmphi. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1995: /* cmpls */
|
|
|
|
case 1288: /* cmphs */
|
|
|
|
value = 1288; /* --> cmphs. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1222: /* mov */
|
|
|
|
case 1310: /* cpy */
|
|
|
|
value = 1310; /* --> cpy. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
|
|
|
case 1224: /* mov */
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1311: /* cpy */
|
|
|
|
value = 1311; /* --> cpy. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 2003: /* fmov */
|
|
|
|
case 1227: /* mov */
|
|
|
|
case 1312: /* cpy */
|
|
|
|
value = 1312; /* --> cpy. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
|
|
|
case 1217: /* mov */
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1324: /* dup */
|
|
|
|
value = 1324; /* --> dup. */
|
|
|
|
break;
|
|
|
|
case 1219: /* mov */
|
|
|
|
case 1216: /* mov */
|
|
|
|
case 1325: /* dup */
|
|
|
|
value = 1325; /* --> dup. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 2002: /* fmov */
|
|
|
|
case 1221: /* mov */
|
|
|
|
case 1326: /* dup */
|
|
|
|
value = 1326; /* --> dup. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1220: /* mov */
|
|
|
|
case 1327: /* dupm */
|
|
|
|
value = 1327; /* --> dupm. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1997: /* eon */
|
|
|
|
case 1329: /* eor */
|
|
|
|
value = 1329; /* --> eor. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1230: /* not */
|
|
|
|
case 1331: /* eor */
|
|
|
|
value = 1331; /* --> eor. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1231: /* nots */
|
|
|
|
case 1332: /* eors */
|
|
|
|
value = 1332; /* --> eors. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1998: /* facle */
|
|
|
|
case 1337: /* facge */
|
|
|
|
value = 1337; /* --> facge. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1999: /* faclt */
|
|
|
|
case 1338: /* facgt */
|
|
|
|
value = 1338; /* --> facgt. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 2000: /* fcmle */
|
|
|
|
case 1351: /* fcmge */
|
|
|
|
value = 1351; /* --> fcmge. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 2001: /* fcmlt */
|
|
|
|
case 1353: /* fcmgt */
|
|
|
|
value = 1353; /* --> fcmgt. */
|
2017-04-10 11:32:00 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1214: /* fmov */
|
|
|
|
case 1359: /* fcpy */
|
|
|
|
value = 1359; /* --> fcpy. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1213: /* fmov */
|
|
|
|
case 1382: /* fdup */
|
|
|
|
value = 1382; /* --> fdup. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1215: /* mov */
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1713: /* orr */
|
|
|
|
value = 1713; /* --> orr. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 2004: /* orn */
|
|
|
|
case 1714: /* orr */
|
|
|
|
value = 1714; /* --> orr. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1218: /* mov */
|
|
|
|
case 1716: /* orr */
|
|
|
|
value = 1716; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 1228: /* movs */
|
|
|
|
case 1717: /* orrs */
|
|
|
|
value = 1717; /* --> orrs. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
2017-04-10 11:32:00 +00:00
|
|
|
case 1223: /* mov */
|
2018-12-28 15:25:28 +00:00
|
|
|
case 1779: /* sel */
|
|
|
|
value = 1779; /* --> sel. */
|
|
|
|
break;
|
|
|
|
case 1226: /* mov */
|
|
|
|
case 1780: /* sel */
|
|
|
|
value = 1780; /* --> sel. */
|
2014-09-12 22:14:23 +00:00
|
|
|
break;
|
|
|
|
default: return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return aarch64_opcode_table + value;
|
|
|
|
}
|
|
|
|
|
2018-12-28 15:25:28 +00:00
|
|
|
bfd_boolean
|
2014-09-12 22:14:23 +00:00
|
|
|
aarch64_insert_operand (const aarch64_operand *self,
|
|
|
|
const aarch64_opnd_info *info,
|
2018-12-28 15:25:28 +00:00
|
|
|
aarch64_insn *code, const aarch64_inst *inst,
|
|
|
|
aarch64_operand_error *errors)
|
2014-09-12 22:14:23 +00:00
|
|
|
{
|
|
|
|
/* Use the index as the key. */
|
|
|
|
int key = self - aarch64_operands;
|
|
|
|
switch (key)
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
case 3:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
case 6:
|
|
|
|
case 7:
|
|
|
|
case 8:
|
|
|
|
case 9:
|
|
|
|
case 10:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 11:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 15:
|
|
|
|
case 16:
|
2015-08-28 15:32:19 +00:00
|
|
|
case 17:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 18:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 20:
|
|
|
|
case 21:
|
|
|
|
case 22:
|
|
|
|
case 23:
|
|
|
|
case 24:
|
|
|
|
case 25:
|
|
|
|
case 26:
|
2015-08-28 15:32:19 +00:00
|
|
|
case 27:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 28:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 29:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 153:
|
|
|
|
case 154:
|
|
|
|
case 155:
|
|
|
|
case 156:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 157:
|
|
|
|
case 158:
|
|
|
|
case 159:
|
|
|
|
case 160:
|
|
|
|
case 161:
|
|
|
|
case 162:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 175:
|
|
|
|
case 176:
|
|
|
|
case 177:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 178:
|
|
|
|
case 179:
|
|
|
|
case 180:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 181:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 182:
|
|
|
|
case 183:
|
|
|
|
case 187:
|
|
|
|
case 190:
|
|
|
|
return aarch64_ins_regno (self, info, code, inst, errors);
|
2015-08-28 15:32:19 +00:00
|
|
|
case 13:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_reg_extended (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 14:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_reg_shifted (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 19:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_ft (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 30:
|
|
|
|
case 31:
|
|
|
|
case 32:
|
|
|
|
case 33:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 192:
|
|
|
|
return aarch64_ins_reglane (self, info, code, inst, errors);
|
2015-08-28 15:32:19 +00:00
|
|
|
case 34:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_reglist (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 35:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_ldst_reglist (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 36:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_ldst_reglist_r (self, info, code, inst, errors);
|
2015-08-28 15:32:19 +00:00
|
|
|
case 37:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_ldst_elemlist (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 38:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 39:
|
|
|
|
case 40:
|
|
|
|
case 41:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 51:
|
|
|
|
case 52:
|
|
|
|
case 53:
|
|
|
|
case 54:
|
|
|
|
case 55:
|
|
|
|
case 56:
|
|
|
|
case 57:
|
2015-08-28 15:32:19 +00:00
|
|
|
case 58:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 59:
|
|
|
|
case 60:
|
|
|
|
case 61:
|
|
|
|
case 62:
|
|
|
|
case 63:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 64:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 76:
|
|
|
|
case 77:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 78:
|
|
|
|
case 79:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 150:
|
|
|
|
case 152:
|
|
|
|
case 167:
|
|
|
|
case 168:
|
|
|
|
case 169:
|
|
|
|
case 170:
|
|
|
|
case 171:
|
|
|
|
case 172:
|
|
|
|
case 173:
|
|
|
|
case 174:
|
|
|
|
return aarch64_ins_imm (self, info, code, inst, errors);
|
|
|
|
case 42:
|
|
|
|
case 43:
|
|
|
|
return aarch64_ins_advsimd_imm_shift (self, info, code, inst, errors);
|
|
|
|
case 44:
|
|
|
|
case 45:
|
|
|
|
case 46:
|
|
|
|
return aarch64_ins_advsimd_imm_modified (self, info, code, inst, errors);
|
|
|
|
case 50:
|
|
|
|
case 141:
|
|
|
|
return aarch64_ins_fpimm (self, info, code, inst, errors);
|
|
|
|
case 65:
|
|
|
|
case 148:
|
|
|
|
return aarch64_ins_limm (self, info, code, inst, errors);
|
|
|
|
case 66:
|
|
|
|
return aarch64_ins_aimm (self, info, code, inst, errors);
|
|
|
|
case 67:
|
|
|
|
return aarch64_ins_imm_half (self, info, code, inst, errors);
|
|
|
|
case 68:
|
|
|
|
return aarch64_ins_fbits (self, info, code, inst, errors);
|
|
|
|
case 70:
|
|
|
|
case 71:
|
|
|
|
case 146:
|
|
|
|
return aarch64_ins_imm_rotate2 (self, info, code, inst, errors);
|
|
|
|
case 72:
|
|
|
|
case 145:
|
|
|
|
return aarch64_ins_imm_rotate1 (self, info, code, inst, errors);
|
|
|
|
case 73:
|
|
|
|
case 74:
|
|
|
|
return aarch64_ins_cond (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 80:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 87:
|
|
|
|
return aarch64_ins_addr_simple (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 81:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_addr_regoff (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 82:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 83:
|
2014-09-12 22:14:23 +00:00
|
|
|
case 84:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_addr_simm (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 85:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_addr_simm10 (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
case 86:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_addr_uimm12 (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 88:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_addr_offset (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 89:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_simd_addr_post (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 90:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sysreg (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 91:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_pstatefield (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 92:
|
|
|
|
case 93:
|
|
|
|
case 94:
|
|
|
|
case 95:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sysins_op (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 96:
|
|
|
|
case 97:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_barrier (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 98:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_prfop (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 99:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_hint (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 100:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_ri_s4 (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 101:
|
|
|
|
case 102:
|
|
|
|
case 103:
|
|
|
|
case 104:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_ri_s4xvl (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 105:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_ri_s6xvl (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 106:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_ri_s9xvl (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 107:
|
|
|
|
case 108:
|
|
|
|
case 109:
|
|
|
|
case 110:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_ri_u6 (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 111:
|
|
|
|
case 112:
|
|
|
|
case 113:
|
|
|
|
case 114:
|
|
|
|
case 115:
|
|
|
|
case 116:
|
|
|
|
case 117:
|
|
|
|
case 118:
|
|
|
|
case 119:
|
|
|
|
case 120:
|
|
|
|
case 121:
|
|
|
|
case 122:
|
|
|
|
case 123:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_rr_lsl (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 124:
|
|
|
|
case 125:
|
|
|
|
case 126:
|
|
|
|
case 127:
|
|
|
|
case 128:
|
|
|
|
case 129:
|
|
|
|
case 130:
|
|
|
|
case 131:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_rz_xtw (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 132:
|
|
|
|
case 133:
|
|
|
|
case 134:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 135:
|
|
|
|
return aarch64_ins_sve_addr_zi_u5 (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 136:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_zz_lsl (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 137:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_zz_sxtw (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 138:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_addr_zz_uxtw (self, info, code, inst, errors);
|
|
|
|
case 139:
|
|
|
|
return aarch64_ins_sve_aimm (self, info, code, inst, errors);
|
|
|
|
case 140:
|
|
|
|
return aarch64_ins_sve_asimm (self, info, code, inst, errors);
|
|
|
|
case 142:
|
|
|
|
return aarch64_ins_sve_float_half_one (self, info, code, inst, errors);
|
2017-04-10 11:32:00 +00:00
|
|
|
case 143:
|
2018-12-28 15:25:28 +00:00
|
|
|
return aarch64_ins_sve_float_half_two (self, info, code, inst, errors);
|
|
|
|
case 144:
|
|
|
|
return aarch64_ins_sve_float_zero_one (self, info, code, inst, errors);
|
|
|
|
case 147:
|
|
|
|
return aarch64_ins_inv_limm (self, info, code, inst, errors);
|
|
|
|
case 149:
|
|
|
|
return aarch64_ins_sve_limm_mov (self, info, code, inst, errors);
|
|
|
|
case 151:
|
|
|
|
return aarch64_ins_sve_scale (self, info, code, inst, errors);
|
|
|
|
case 163:
|
|
|
|
case 164:
|
|
|
|
return aarch64_ins_sve_shlimm (self, info, code, inst, errors);
|
|
|
|
case 165:
|
|
|
|
case 166:
|
|
|
|
return aarch64_ins_sve_shrimm (self, info, code, inst, errors);
|
|
|
|
case 184:
|
2017-04-10 11:32:00 +00:00
|
|
|
case 185:
|
2018-12-28 15:25:28 +00:00
|
|
|
case 186:
|
|
|
|
return aarch64_ins_sve_quad_index (self, info, code, inst, errors);
|
|
|
|
case 188:
|
|
|
|
return aarch64_ins_sve_index (self, info, code, inst, errors);
|
|
|
|
case 189:
|
|
|
|
case 191:
|
|
|
|
return aarch64_ins_sve_reglist (self, info, code, inst, errors);
|
2014-09-12 22:14:23 +00:00
|
|
|
default: assert (0); abort ();
|
|
|
|
}
|
|
|
|
}
|