2012-08-13 16:52:54 +02:00
|
|
|
/* This file is automatically generated by aarch64-gen. Do not edit! */
|
2015-01-01 15:15:26 +01:00
|
|
|
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
2012-08-13 16:52:54 +02: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 16:02:26 +01:00
|
|
|
case 2: /* sbc */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 2; /* --> sbc. */
|
|
|
|
break;
|
|
|
|
case 5: /* ngcs */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 4: /* sbcs */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 4; /* --> sbcs. */
|
|
|
|
break;
|
|
|
|
case 8: /* cmn */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 7: /* adds */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 7; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 11: /* cmp */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 10: /* subs */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 10; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 13: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 12: /* add */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 12; /* --> add. */
|
|
|
|
break;
|
|
|
|
case 15: /* cmn */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 14: /* adds */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 14; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 18: /* cmp */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 17: /* subs */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 17; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 21: /* cmn */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 20: /* adds */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 20; /* --> adds. */
|
|
|
|
break;
|
|
|
|
case 23: /* neg */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 22: /* sub */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 22; /* --> sub. */
|
|
|
|
break;
|
|
|
|
case 26: /* negs */
|
|
|
|
case 25: /* cmp */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 24: /* subs */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 24; /* --> subs. */
|
|
|
|
break;
|
|
|
|
case 141: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 140: /* umov */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 140; /* --> umov. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
|
|
|
case 143: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 142: /* ins */
|
2012-08-13 16:52:54 +02:00
|
|
|
value = 142; /* --> ins. */
|
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 145: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 144: /* ins */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 144; /* --> ins. */
|
|
|
|
break;
|
|
|
|
case 206: /* mvn */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 205: /* not */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 205; /* --> not. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 261: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 260: /* orr */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 260; /* --> orr. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 318: /* sxtl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 317: /* sshll */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 317; /* --> sshll. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 320: /* sxtl2 */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 319: /* sshll2 */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 319; /* --> sshll2. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 340: /* uxtl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 339: /* ushll */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 339; /* --> ushll. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 342: /* uxtl2 */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 341: /* ushll2 */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 341; /* --> ushll2. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 437: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 436: /* dup */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 436; /* --> dup. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 506: /* sxtw */
|
|
|
|
case 505: /* sxth */
|
|
|
|
case 504: /* sxtb */
|
|
|
|
case 507: /* asr */
|
|
|
|
case 503: /* sbfx */
|
|
|
|
case 502: /* sbfiz */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 501: /* sbfm */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 501; /* --> sbfm. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 510: /* bfxil */
|
|
|
|
case 509: /* bfi */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 508: /* bfm */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 508; /* --> bfm. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 515: /* uxth */
|
|
|
|
case 514: /* uxtb */
|
|
|
|
case 517: /* lsr */
|
|
|
|
case 516: /* lsl */
|
|
|
|
case 513: /* ubfx */
|
|
|
|
case 512: /* ubfiz */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 511: /* ubfm */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 511; /* --> ubfm. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 535: /* cset */
|
|
|
|
case 534: /* cinc */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 533: /* csinc */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 533; /* --> csinc. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 538: /* csetm */
|
|
|
|
case 537: /* cinv */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 536: /* csinv */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 536; /* --> csinv. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 540: /* cneg */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 539: /* csneg */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 539; /* --> csneg. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 565: /* lsl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 564: /* lslv */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 564; /* --> lslv. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 567: /* lsr */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 566: /* lsrv */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 566; /* --> lsrv. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 569: /* asr */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 568: /* asrv */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 568; /* --> asrv. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 571: /* ror */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 570: /* rorv */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 570; /* --> rorv. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 581: /* mul */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 580: /* madd */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 580; /* --> madd. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 583: /* mneg */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 582: /* msub */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 582; /* --> msub. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 585: /* smull */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 584: /* smaddl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 584; /* --> smaddl. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 587: /* smnegl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 586: /* smsubl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 586; /* --> smsubl. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 590: /* umull */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 589: /* umaddl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 589; /* --> umaddl. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 592: /* umnegl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 591: /* umsubl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 591; /* --> umsubl. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 603: /* ror */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 602: /* extr */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 602; /* --> extr. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 760: /* bic */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 759: /* and */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 759; /* --> and. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 762: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 761: /* orr */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 761; /* --> orr. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 765: /* tst */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 764: /* ands */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 764; /* --> ands. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 770: /* uxtw */
|
|
|
|
case 769: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 768: /* orr */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 768; /* --> orr. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 772: /* mvn */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 771: /* orn */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 771; /* --> orn. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 776: /* tst */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 775: /* ands */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 775; /* --> ands. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 902: /* staddb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 806: /* ldaddb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 806; /* --> ldaddb. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 903: /* staddh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 807: /* ldaddh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 807; /* --> ldaddh. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 904: /* stadd */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 808: /* ldadd */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 808; /* --> ldadd. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 905: /* staddlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 810: /* ldaddlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 810; /* --> ldaddlb. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 906: /* staddlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 813: /* ldaddlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 813; /* --> ldaddlh. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 907: /* staddl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 816: /* ldaddl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 816; /* --> ldaddl. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 908: /* stclrb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 818: /* ldclrb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 818; /* --> ldclrb. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 909: /* stclrh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 819: /* ldclrh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 819; /* --> ldclrh. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 910: /* stclr */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 820: /* ldclr */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 820; /* --> ldclr. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 911: /* stclrlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 822: /* ldclrlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 822; /* --> ldclrlb. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 912: /* stclrlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 825: /* ldclrlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 825; /* --> ldclrlh. */
|
2012-08-13 16:52:54 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 913: /* stclrl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 828: /* ldclrl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 828; /* --> 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 16:43:32 +01:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 914: /* steorb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 830: /* ldeorb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 830; /* --> ldeorb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 915: /* steorh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 831: /* ldeorh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 831; /* --> ldeorh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 916: /* steor */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 832: /* ldeor */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 832; /* --> ldeor. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 917: /* steorlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 834: /* ldeorlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 834; /* --> ldeorlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 918: /* steorlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 837: /* ldeorlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 837; /* --> ldeorlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 919: /* steorl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 840: /* ldeorl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 840; /* --> ldeorl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 920: /* stsetb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 842: /* ldsetb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 842; /* --> ldsetb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 921: /* stseth */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 843: /* ldseth */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 843; /* --> ldseth. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 922: /* stset */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 844: /* ldset */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 844; /* --> ldset. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 923: /* stsetlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 846: /* ldsetlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 846; /* --> ldsetlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 924: /* stsetlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 849: /* ldsetlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 849; /* --> ldsetlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 925: /* stsetl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 852: /* ldsetl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 852; /* --> ldsetl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 926: /* stsmaxb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 854: /* ldsmaxb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 854; /* --> ldsmaxb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 927: /* stsmaxh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 855: /* ldsmaxh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 855; /* --> ldsmaxh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 928: /* stsmax */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 856: /* ldsmax */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 856; /* --> ldsmax. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 929: /* stsmaxlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 858: /* ldsmaxlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 858; /* --> ldsmaxlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 930: /* stsmaxlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 861: /* ldsmaxlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 861; /* --> ldsmaxlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 931: /* stsmaxl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 864: /* ldsmaxl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 864; /* --> ldsmaxl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 932: /* stsminb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 866: /* ldsminb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 866; /* --> ldsminb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 933: /* stsminh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 867: /* ldsminh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 867; /* --> ldsminh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 934: /* stsmin */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 868: /* ldsmin */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 868; /* --> ldsmin. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 935: /* stsminlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 870: /* ldsminlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 870; /* --> ldsminlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 936: /* stsminlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 873: /* ldsminlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 873; /* --> ldsminlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 937: /* stsminl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 876: /* ldsminl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 876; /* --> ldsminl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 938: /* stumaxb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 878: /* ldumaxb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 878; /* --> ldumaxb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 939: /* stumaxh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 879: /* ldumaxh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 879; /* --> ldumaxh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 940: /* stumax */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 880: /* ldumax */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 880; /* --> ldumax. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 941: /* stumaxlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 882: /* ldumaxlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 882; /* --> ldumaxlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 942: /* stumaxlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 885: /* ldumaxlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 885; /* --> ldumaxlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 943: /* stumaxl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 888: /* ldumaxl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 888; /* --> ldumaxl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 944: /* stuminb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 890: /* lduminb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 890; /* --> lduminb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 945: /* stuminh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 891: /* lduminh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 891; /* --> lduminh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 946: /* stumin */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 892: /* ldumin */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 892; /* --> ldumin. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 947: /* stuminlb */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 894: /* lduminlb */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 894; /* --> lduminlb. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 948: /* stuminlh */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 897: /* lduminlh */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 897; /* --> lduminlh. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 949: /* stuminl */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 900: /* lduminl */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 900; /* --> lduminl. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 951: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 950: /* movn */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 950; /* --> movn. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 953: /* mov */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 952: /* movz */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 952; /* --> movz. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 964: /* sevl */
|
|
|
|
case 963: /* sev */
|
|
|
|
case 962: /* wfi */
|
|
|
|
case 961: /* wfe */
|
|
|
|
case 960: /* yield */
|
|
|
|
case 959: /* nop */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 958: /* hint */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 958; /* --> hint. */
|
2014-09-03 15:40:41 +02:00
|
|
|
break;
|
2015-06-02 13:20:00 +02:00
|
|
|
case 973: /* tlbi */
|
|
|
|
case 972: /* ic */
|
|
|
|
case 971: /* dc */
|
|
|
|
case 970: /* at */
|
2015-11-27 16:02:26 +01:00
|
|
|
case 969: /* sys */
|
2015-06-02 13:20:00 +02:00
|
|
|
value = 969; /* --> sys. */
|
2012-08-13 16:52:54 +02: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 15:40:41 +02:00
|
|
|
case 17:
|
2012-08-13 16:52:54 +02:00
|
|
|
case 19:
|
|
|
|
case 20:
|
|
|
|
case 21:
|
|
|
|
case 22:
|
|
|
|
case 23:
|
|
|
|
case 24:
|
|
|
|
case 25:
|
|
|
|
case 26:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 27:
|
2012-08-13 16:52:54 +02:00
|
|
|
case 35:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 36:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_regno (self, info, code, inst);
|
|
|
|
case 12:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_reg_extended (self, info, code, inst);
|
|
|
|
case 13:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_reg_shifted (self, info, code, inst);
|
2014-09-03 15:40:41 +02:00
|
|
|
case 18:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_ft (self, info, code, inst);
|
|
|
|
case 28:
|
|
|
|
case 29:
|
|
|
|
case 30:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_reglane (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 31:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_reglist (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 32:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_ldst_reglist (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 33:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_ldst_reglist_r (self, info, code, inst);
|
|
|
|
case 34:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_ldst_elemlist (self, info, code, inst);
|
2014-09-03 15:40:41 +02:00
|
|
|
case 37:
|
2012-08-13 16:52:54 +02: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 15:40:41 +02:00
|
|
|
case 58:
|
2012-08-13 16:52:54 +02:00
|
|
|
case 67:
|
|
|
|
case 68:
|
2013-11-05 21:50:18 +01:00
|
|
|
case 69:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 70:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_imm (self, info, code, inst);
|
|
|
|
case 38:
|
|
|
|
case 39:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_advsimd_imm_shift (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 40:
|
|
|
|
case 41:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 42:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_advsimd_imm_modified (self, info, code, inst);
|
|
|
|
case 59:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_limm (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 60:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_aimm (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 61:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_imm_half (self, info, code, inst);
|
|
|
|
case 62:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_fbits (self, info, code, inst);
|
2013-11-05 21:50:18 +01:00
|
|
|
case 64:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 65:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_cond (self, info, code, inst);
|
|
|
|
case 71:
|
2014-09-03 15:40:41 +02:00
|
|
|
case 77:
|
|
|
|
return aarch64_ins_addr_simple (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 72:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_addr_regoff (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 73:
|
|
|
|
case 74:
|
2013-11-05 21:50:18 +01:00
|
|
|
case 75:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_addr_simm (self, info, code, inst);
|
|
|
|
case 76:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_addr_uimm12 (self, info, code, inst);
|
|
|
|
case 78:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_simd_addr_post (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 79:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_sysreg (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 80:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_pstatefield (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 81:
|
|
|
|
case 82:
|
|
|
|
case 83:
|
|
|
|
case 84:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_sysins_op (self, info, code, inst);
|
2012-08-13 16:52:54 +02:00
|
|
|
case 85:
|
2013-11-05 21:50:18 +01:00
|
|
|
case 86:
|
2014-09-03 15:40:41 +02:00
|
|
|
return aarch64_ins_barrier (self, info, code, inst);
|
|
|
|
case 87:
|
2012-08-13 16:52:54 +02:00
|
|
|
return aarch64_ins_prfop (self, info, code, inst);
|
|
|
|
default: assert (0); abort ();
|
|
|
|
}
|
|
|
|
}
|