2012-08-13 22:52:54 +08:00
|
|
|
/* This file is automatically generated by aarch64-gen. Do not edit! */
|
2015-01-01 22:15:26 +08:00
|
|
|
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
2012-08-13 22:52:54 +08: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 */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 2: /* sbc */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 2; /* --> sbc. */
|
|
|
|
break;
|
|
|
|
case 5: /* ngcs */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 4: /* sbcs */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 4; /* --> sbcs. */
|
|
|
|
break;
|
|
|
|
case 8: /* cmn */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 7: /* adds */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 7; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 11: /* cmp */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 10: /* subs */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 10; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 13: /* mov */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 12: /* add */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 12; /* --> add. */
|
|
|
|
break;
|
|
|
|
case 15: /* cmn */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 14: /* adds */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 14; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 18: /* cmp */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 17: /* subs */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 17; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 21: /* cmn */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 20: /* adds */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 20; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 23: /* neg */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 22: /* sub */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 22; /* --> sub. */
|
|
|
|
break;
|
|
|
|
case 26: /* negs */
|
|
|
|
case 25: /* cmp */
|
2015-11-27 23:02:26 +08:00
|
|
|
case 24: /* subs */
|
2012-08-13 22:52:54 +08:00
|
|
|
value = 24; /* --> subs. */
|
|
|
|
break;
|
2015-12-15 01:01:56 +08:00
|
|
|
case 149: /* mov */
|
2015-12-15 01:16:50 +08:00
|
|
|
case 148: /* umov */
|
|
|
|
value = 148; /* --> umov. */
|
|
|
|
break;
|
|
|
|
case 151: /* mov */
|
|
|
|
case 150: /* ins */
|
|
|
|
value = 150; /* --> ins. */
|
|
|
|
break;
|
|
|
|
case 153: /* mov */
|
|
|
|
case 152: /* ins */
|
|
|
|
value = 152; /* --> ins. */
|
|
|
|
break;
|
|
|
|
case 235: /* mvn */
|
|
|
|
case 234: /* not */
|
|
|
|
value = 234; /* --> not. */
|
|
|
|
break;
|
|
|
|
case 310: /* mov */
|
|
|
|
case 309: /* orr */
|
|
|
|
value = 309; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 379: /* sxtl */
|
|
|
|
case 378: /* sshll */
|
|
|
|
value = 378; /* --> sshll. */
|
|
|
|
break;
|
|
|
|
case 381: /* sxtl2 */
|
|
|
|
case 380: /* sshll2 */
|
|
|
|
value = 380; /* --> sshll2. */
|
|
|
|
break;
|
|
|
|
case 401: /* uxtl */
|
|
|
|
case 400: /* ushll */
|
|
|
|
value = 400; /* --> ushll. */
|
|
|
|
break;
|
|
|
|
case 403: /* uxtl2 */
|
|
|
|
case 402: /* ushll2 */
|
|
|
|
value = 402; /* --> ushll2. */
|
|
|
|
break;
|
|
|
|
case 522: /* mov */
|
|
|
|
case 521: /* dup */
|
|
|
|
value = 521; /* --> dup. */
|
|
|
|
break;
|
|
|
|
case 600: /* sxtw */
|
|
|
|
case 599: /* sxth */
|
|
|
|
case 598: /* sxtb */
|
|
|
|
case 601: /* asr */
|
|
|
|
case 597: /* sbfx */
|
|
|
|
case 596: /* sbfiz */
|
|
|
|
case 595: /* sbfm */
|
|
|
|
value = 595; /* --> sbfm. */
|
|
|
|
break;
|
|
|
|
case 604: /* bfc */
|
|
|
|
case 605: /* bfxil */
|
|
|
|
case 603: /* bfi */
|
|
|
|
case 602: /* bfm */
|
|
|
|
value = 602; /* --> bfm. */
|
|
|
|
break;
|
|
|
|
case 610: /* uxth */
|
|
|
|
case 609: /* uxtb */
|
|
|
|
case 612: /* lsr */
|
|
|
|
case 611: /* lsl */
|
|
|
|
case 608: /* ubfx */
|
|
|
|
case 607: /* ubfiz */
|
|
|
|
case 606: /* ubfm */
|
|
|
|
value = 606; /* --> ubfm. */
|
|
|
|
break;
|
|
|
|
case 630: /* cset */
|
|
|
|
case 629: /* cinc */
|
|
|
|
case 628: /* csinc */
|
|
|
|
value = 628; /* --> csinc. */
|
|
|
|
break;
|
|
|
|
case 633: /* csetm */
|
|
|
|
case 632: /* cinv */
|
|
|
|
case 631: /* csinv */
|
|
|
|
value = 631; /* --> csinv. */
|
|
|
|
break;
|
|
|
|
case 635: /* cneg */
|
|
|
|
case 634: /* csneg */
|
|
|
|
value = 634; /* --> csneg. */
|
|
|
|
break;
|
|
|
|
case 653: /* rev */
|
|
|
|
case 654: /* rev64 */
|
|
|
|
value = 653; /* --> rev. */
|
|
|
|
break;
|
|
|
|
case 661: /* lsl */
|
|
|
|
case 660: /* lslv */
|
|
|
|
value = 660; /* --> lslv. */
|
|
|
|
break;
|
|
|
|
case 663: /* lsr */
|
|
|
|
case 662: /* lsrv */
|
|
|
|
value = 662; /* --> lsrv. */
|
|
|
|
break;
|
|
|
|
case 665: /* asr */
|
|
|
|
case 664: /* asrv */
|
|
|
|
value = 664; /* --> asrv. */
|
|
|
|
break;
|
|
|
|
case 667: /* ror */
|
|
|
|
case 666: /* rorv */
|
|
|
|
value = 666; /* --> rorv. */
|
|
|
|
break;
|
|
|
|
case 677: /* mul */
|
|
|
|
case 676: /* madd */
|
|
|
|
value = 676; /* --> madd. */
|
|
|
|
break;
|
|
|
|
case 679: /* mneg */
|
|
|
|
case 678: /* msub */
|
|
|
|
value = 678; /* --> msub. */
|
|
|
|
break;
|
|
|
|
case 681: /* smull */
|
|
|
|
case 680: /* smaddl */
|
|
|
|
value = 680; /* --> smaddl. */
|
|
|
|
break;
|
|
|
|
case 683: /* smnegl */
|
|
|
|
case 682: /* smsubl */
|
|
|
|
value = 682; /* --> smsubl. */
|
|
|
|
break;
|
|
|
|
case 686: /* umull */
|
|
|
|
case 685: /* umaddl */
|
|
|
|
value = 685; /* --> umaddl. */
|
|
|
|
break;
|
|
|
|
case 688: /* umnegl */
|
|
|
|
case 687: /* umsubl */
|
|
|
|
value = 687; /* --> umsubl. */
|
|
|
|
break;
|
|
|
|
case 699: /* ror */
|
|
|
|
case 698: /* extr */
|
|
|
|
value = 698; /* --> extr. */
|
|
|
|
break;
|
|
|
|
case 906: /* bic */
|
|
|
|
case 905: /* and */
|
|
|
|
value = 905; /* --> and. */
|
|
|
|
break;
|
|
|
|
case 908: /* mov */
|
|
|
|
case 907: /* orr */
|
|
|
|
value = 907; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 911: /* tst */
|
|
|
|
case 910: /* ands */
|
|
|
|
value = 910; /* --> ands. */
|
|
|
|
break;
|
|
|
|
case 916: /* uxtw */
|
|
|
|
case 915: /* mov */
|
|
|
|
case 914: /* orr */
|
|
|
|
value = 914; /* --> orr. */
|
|
|
|
break;
|
|
|
|
case 918: /* mvn */
|
|
|
|
case 917: /* orn */
|
|
|
|
value = 917; /* --> orn. */
|
|
|
|
break;
|
|
|
|
case 922: /* tst */
|
|
|
|
case 921: /* ands */
|
|
|
|
value = 921; /* --> ands. */
|
|
|
|
break;
|
|
|
|
case 1048: /* staddb */
|
|
|
|
case 952: /* ldaddb */
|
|
|
|
value = 952; /* --> ldaddb. */
|
|
|
|
break;
|
|
|
|
case 1049: /* staddh */
|
|
|
|
case 953: /* ldaddh */
|
|
|
|
value = 953; /* --> ldaddh. */
|
|
|
|
break;
|
|
|
|
case 1050: /* stadd */
|
|
|
|
case 954: /* ldadd */
|
|
|
|
value = 954; /* --> ldadd. */
|
2015-11-27 23:25:08 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1051: /* staddlb */
|
|
|
|
case 956: /* ldaddlb */
|
|
|
|
value = 956; /* --> ldaddlb. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1052: /* staddlh */
|
|
|
|
case 959: /* ldaddlh */
|
|
|
|
value = 959; /* --> ldaddlh. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1053: /* staddl */
|
|
|
|
case 962: /* ldaddl */
|
|
|
|
value = 962; /* --> ldaddl. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1054: /* stclrb */
|
|
|
|
case 964: /* ldclrb */
|
|
|
|
value = 964; /* --> ldclrb. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1055: /* stclrh */
|
|
|
|
case 965: /* ldclrh */
|
|
|
|
value = 965; /* --> ldclrh. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1056: /* stclr */
|
|
|
|
case 966: /* ldclr */
|
|
|
|
value = 966; /* --> ldclr. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1057: /* stclrlb */
|
|
|
|
case 968: /* ldclrlb */
|
|
|
|
value = 968; /* --> ldclrlb. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1058: /* stclrlh */
|
|
|
|
case 971: /* ldclrlh */
|
|
|
|
value = 971; /* --> ldclrlh. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1059: /* stclrl */
|
|
|
|
case 974: /* ldclrl */
|
|
|
|
value = 974; /* --> ldclrl. */
|
include/opcode/
2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64.h (aarch64_op): Add OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2.
opcodes/
2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64-tbl.h (aarch64_opcode_table): Flag sshll, sshll2, ushll and
ushll2 with F_HAS_ALIAS. Add entries for sxtl, sxtl2, uxtl and uxtl2.
* aarch64-asm.c (convert_xtl_to_shll): New function.
(convert_to_real): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
calling convert_xtl_to_shll.
* aarch64-dis.c (convert_shll_to_xtl): New function.
(convert_to_alias): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
calling convert_shll_to_xtl.
* aarch64-gen.c: Update copyright year.
* aarch64-asm-2.c: Re-generate.
* aarch64-dis-2.c: Re-generate.
* aarch64-opc-2.c: Re-generate.
gas/testsuite/
2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com>
* gas/aarch64/alias.s: Add new tests.
* gas/aarch64/alias.d: Update.
* gas/aarch64/no-aliases.d: Update.
2013-01-30 23:43:32 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1060: /* steorb */
|
|
|
|
case 976: /* ldeorb */
|
|
|
|
value = 976; /* --> ldeorb. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1061: /* steorh */
|
|
|
|
case 977: /* ldeorh */
|
|
|
|
value = 977; /* --> ldeorh. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1062: /* steor */
|
|
|
|
case 978: /* ldeor */
|
|
|
|
value = 978; /* --> ldeor. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1063: /* steorlb */
|
|
|
|
case 980: /* ldeorlb */
|
|
|
|
value = 980; /* --> ldeorlb. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1064: /* steorlh */
|
|
|
|
case 983: /* ldeorlh */
|
|
|
|
value = 983; /* --> ldeorlh. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1065: /* steorl */
|
|
|
|
case 986: /* ldeorl */
|
|
|
|
value = 986; /* --> ldeorl. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1066: /* stsetb */
|
|
|
|
case 988: /* ldsetb */
|
|
|
|
value = 988; /* --> ldsetb. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1067: /* stseth */
|
|
|
|
case 989: /* ldseth */
|
|
|
|
value = 989; /* --> ldseth. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1068: /* stset */
|
|
|
|
case 990: /* ldset */
|
|
|
|
value = 990; /* --> ldset. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1069: /* stsetlb */
|
|
|
|
case 992: /* ldsetlb */
|
|
|
|
value = 992; /* --> ldsetlb. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1070: /* stsetlh */
|
|
|
|
case 995: /* ldsetlh */
|
|
|
|
value = 995; /* --> ldsetlh. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1071: /* stsetl */
|
|
|
|
case 998: /* ldsetl */
|
|
|
|
value = 998; /* --> ldsetl. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1072: /* stsmaxb */
|
|
|
|
case 1000: /* ldsmaxb */
|
|
|
|
value = 1000; /* --> ldsmaxb. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1073: /* stsmaxh */
|
|
|
|
case 1001: /* ldsmaxh */
|
|
|
|
value = 1001; /* --> ldsmaxh. */
|
2014-09-03 21:40:41 +08:00
|
|
|
break;
|
2015-12-15 01:16:50 +08:00
|
|
|
case 1074: /* stsmax */
|
|
|
|
case 1002: /* ldsmax */
|
|
|
|
value = 1002; /* --> ldsmax. */
|
|
|
|
break;
|
|
|
|
case 1075: /* stsmaxlb */
|
|
|
|
case 1004: /* ldsmaxlb */
|
|
|
|
value = 1004; /* --> ldsmaxlb. */
|
|
|
|
break;
|
|
|
|
case 1076: /* stsmaxlh */
|
|
|
|
case 1007: /* ldsmaxlh */
|
|
|
|
value = 1007; /* --> ldsmaxlh. */
|
|
|
|
break;
|
|
|
|
case 1077: /* stsmaxl */
|
|
|
|
case 1010: /* ldsmaxl */
|
|
|
|
value = 1010; /* --> ldsmaxl. */
|
|
|
|
break;
|
|
|
|
case 1078: /* stsminb */
|
|
|
|
case 1012: /* ldsminb */
|
|
|
|
value = 1012; /* --> ldsminb. */
|
|
|
|
break;
|
|
|
|
case 1079: /* stsminh */
|
|
|
|
case 1013: /* ldsminh */
|
|
|
|
value = 1013; /* --> ldsminh. */
|
|
|
|
break;
|
|
|
|
case 1080: /* stsmin */
|
|
|
|
case 1014: /* ldsmin */
|
|
|
|
value = 1014; /* --> ldsmin. */
|
|
|
|
break;
|
|
|
|
case 1081: /* stsminlb */
|
|
|
|
case 1016: /* ldsminlb */
|
|
|
|
value = 1016; /* --> ldsminlb. */
|
|
|
|
break;
|
|
|
|
case 1082: /* stsminlh */
|
|
|
|
case 1019: /* ldsminlh */
|
|
|
|
value = 1019; /* --> ldsminlh. */
|
|
|
|
break;
|
|
|
|
case 1083: /* stsminl */
|
|
|
|
case 1022: /* ldsminl */
|
|
|
|
value = 1022; /* --> ldsminl. */
|
|
|
|
break;
|
|
|
|
case 1084: /* stumaxb */
|
|
|
|
case 1024: /* ldumaxb */
|
|
|
|
value = 1024; /* --> ldumaxb. */
|
|
|
|
break;
|
|
|
|
case 1085: /* stumaxh */
|
|
|
|
case 1025: /* ldumaxh */
|
|
|
|
value = 1025; /* --> ldumaxh. */
|
|
|
|
break;
|
|
|
|
case 1086: /* stumax */
|
|
|
|
case 1026: /* ldumax */
|
|
|
|
value = 1026; /* --> ldumax. */
|
|
|
|
break;
|
|
|
|
case 1087: /* stumaxlb */
|
|
|
|
case 1028: /* ldumaxlb */
|
|
|
|
value = 1028; /* --> ldumaxlb. */
|
|
|
|
break;
|
|
|
|
case 1088: /* stumaxlh */
|
|
|
|
case 1031: /* ldumaxlh */
|
|
|
|
value = 1031; /* --> ldumaxlh. */
|
|
|
|
break;
|
|
|
|
case 1089: /* stumaxl */
|
|
|
|
case 1034: /* ldumaxl */
|
|
|
|
value = 1034; /* --> ldumaxl. */
|
|
|
|
break;
|
|
|
|
case 1090: /* stuminb */
|
|
|
|
case 1036: /* lduminb */
|
|
|
|
value = 1036; /* --> lduminb. */
|
|
|
|
break;
|
|
|
|
case 1091: /* stuminh */
|
|
|
|
case 1037: /* lduminh */
|
|
|
|
value = 1037; /* --> lduminh. */
|
|
|
|
break;
|
|
|
|
case 1092: /* stumin */
|
|
|
|
case 1038: /* ldumin */
|
|
|
|
value = 1038; /* --> ldumin. */
|
|
|
|
break;
|
|
|
|
case 1093: /* stuminlb */
|
|
|
|
case 1040: /* lduminlb */
|
|
|
|
value = 1040; /* --> lduminlb. */
|
|
|
|
break;
|
|
|
|
case 1094: /* stuminlh */
|
|
|
|
case 1043: /* lduminlh */
|
|
|
|
value = 1043; /* --> lduminlh. */
|
|
|
|
break;
|
|
|
|
case 1095: /* stuminl */
|
|
|
|
case 1046: /* lduminl */
|
|
|
|
value = 1046; /* --> lduminl. */
|
|
|
|
break;
|
|
|
|
case 1097: /* mov */
|
|
|
|
case 1096: /* movn */
|
|
|
|
value = 1096; /* --> movn. */
|
|
|
|
break;
|
|
|
|
case 1099: /* mov */
|
|
|
|
case 1098: /* movz */
|
|
|
|
value = 1098; /* --> movz. */
|
|
|
|
break;
|
|
|
|
case 1112: /* psb */
|
|
|
|
case 1111: /* esb */
|
|
|
|
case 1110: /* sevl */
|
|
|
|
case 1109: /* sev */
|
|
|
|
case 1108: /* wfi */
|
|
|
|
case 1107: /* wfe */
|
|
|
|
case 1106: /* yield */
|
|
|
|
case 1105: /* nop */
|
|
|
|
case 1104: /* hint */
|
|
|
|
value = 1104; /* --> hint. */
|
|
|
|
break;
|
|
|
|
case 1121: /* tlbi */
|
|
|
|
case 1120: /* ic */
|
|
|
|
case 1119: /* dc */
|
|
|
|
case 1118: /* at */
|
|
|
|
case 1117: /* sys */
|
|
|
|
value = 1117; /* --> sys. */
|
2012-08-13 22:52:54 +08:00
|
|
|
break;
|
|
|
|
default: return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return aarch64_opcode_table + value;
|
|
|
|
}
|
|
|
|
|
|
|
|
const char*
|
|
|
|
aarch64_insert_operand (const aarch64_operand *self,
|
|
|
|
const aarch64_opnd_info *info,
|
|
|
|
aarch64_insn *code, const aarch64_inst *inst)
|
|
|
|
{
|
|
|
|
/* 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:
|
|
|
|
case 14:
|
|
|
|
case 15:
|
|
|
|
case 16:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 17:
|
2012-08-13 22:52:54 +08:00
|
|
|
case 19:
|
|
|
|
case 20:
|
|
|
|
case 21:
|
|
|
|
case 22:
|
|
|
|
case 23:
|
|
|
|
case 24:
|
|
|
|
case 25:
|
|
|
|
case 26:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 27:
|
2012-08-13 22:52:54 +08:00
|
|
|
case 35:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 36:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_regno (self, info, code, inst);
|
|
|
|
case 12:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_reg_extended (self, info, code, inst);
|
|
|
|
case 13:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_reg_shifted (self, info, code, inst);
|
2014-09-03 21:40:41 +08:00
|
|
|
case 18:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_ft (self, info, code, inst);
|
|
|
|
case 28:
|
|
|
|
case 29:
|
|
|
|
case 30:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_reglane (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 31:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_reglist (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 32:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_ldst_reglist (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 33:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_ldst_reglist_r (self, info, code, inst);
|
|
|
|
case 34:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_ldst_elemlist (self, info, code, inst);
|
2014-09-03 21:40:41 +08:00
|
|
|
case 37:
|
2012-08-13 22:52:54 +08:00
|
|
|
case 46:
|
|
|
|
case 47:
|
|
|
|
case 48:
|
|
|
|
case 49:
|
|
|
|
case 50:
|
|
|
|
case 51:
|
|
|
|
case 52:
|
|
|
|
case 53:
|
|
|
|
case 54:
|
|
|
|
case 55:
|
|
|
|
case 56:
|
|
|
|
case 57:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 58:
|
2012-08-13 22:52:54 +08:00
|
|
|
case 67:
|
|
|
|
case 68:
|
2013-11-06 04:50:18 +08:00
|
|
|
case 69:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 70:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_imm (self, info, code, inst);
|
|
|
|
case 38:
|
|
|
|
case 39:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_advsimd_imm_shift (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 40:
|
|
|
|
case 41:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 42:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_advsimd_imm_modified (self, info, code, inst);
|
|
|
|
case 59:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_limm (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 60:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_aimm (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 61:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_imm_half (self, info, code, inst);
|
|
|
|
case 62:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_fbits (self, info, code, inst);
|
2013-11-06 04:50:18 +08:00
|
|
|
case 64:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 65:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_cond (self, info, code, inst);
|
|
|
|
case 71:
|
2014-09-03 21:40:41 +08:00
|
|
|
case 77:
|
|
|
|
return aarch64_ins_addr_simple (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 72:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_addr_regoff (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 73:
|
|
|
|
case 74:
|
2013-11-06 04:50:18 +08:00
|
|
|
case 75:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_addr_simm (self, info, code, inst);
|
|
|
|
case 76:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_addr_uimm12 (self, info, code, inst);
|
|
|
|
case 78:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_simd_addr_post (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 79:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_sysreg (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 80:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_pstatefield (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 81:
|
|
|
|
case 82:
|
|
|
|
case 83:
|
|
|
|
case 84:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_sysins_op (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
case 85:
|
2013-11-06 04:50:18 +08:00
|
|
|
case 86:
|
2014-09-03 21:40:41 +08:00
|
|
|
return aarch64_ins_barrier (self, info, code, inst);
|
|
|
|
case 87:
|
2012-08-13 22:52:54 +08:00
|
|
|
return aarch64_ins_prfop (self, info, code, inst);
|
2015-12-11 18:22:40 +08:00
|
|
|
case 88:
|
|
|
|
return aarch64_ins_hint (self, info, code, inst);
|
2012-08-13 22:52:54 +08:00
|
|
|
default: assert (0); abort ();
|
|
|
|
}
|
|
|
|
}
|