binutils-gdb/opcodes/aarch64-asm-2.c
Matthew Wahab f3aa142b8b [AArch64][PATCH 4/14] Support FP16 Vector Two Register Misc. instructions.
ARMv8.2 adds 16-bit floating point operations as an optional extension
to the floating point and Adv.SIMD support. This patch adds FP16
instructions to the group Vector Two Register Misc, making them
available when +simd+fp16 is enabled.

The instructions added are: FCMGT, FCMGE, FCMEQ, FCMLE, FCMLT, FABS,
FNEG, FRINTN, FRINTA, FRINTP, FRINTM, FRINTX, FRINTZ, FRINTI, FCVTNS,
FCVTNU, FCVTPS, FCVTPU, FCVTMS, FCVTMU, FCVTZS, FCVTZU, FCVTAS, FCVTAU,
SCVTF, UCVTF, FRECPE, FRSQRTE and FSQRT.

The general form for these instructions is
  <OP> <Vd>.<T>, <Vs>.<T>
  where T is 4h or 8h.

gas/testsuite/
2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>

	* gas/aarch64/advsimd-fp16.d: Update expected output.
	* gas/aarch64/advsimd-fp16.s: Add tests for vector two register misc.
	instructions.

opcodes/
2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>

	* aarch64-asm-2.c: Regenerate.
	* aarch64-dis-2.c: Regenerate.
	* aarch64-opc-2.c: Regenerate.
	* aarch64-tbl.h (QL_V2SAMEH): New.
	(aarch64_opcode_table): Add fp16 versions of frintn, frintm,
	fcvtns, fcvtms, fcvtas, scvtf, fcmgt, fcmeq, fcmlt, fabs, frintp,
	frintz, fcvtps, fcvtzs, frecpe, frinta, frintx, fcvtnu, fcvtmu,
	fcvtau, ucvtf, fcmge, fcmle, fneg, frinti, fcvtpu, fcvtzu, frsqrte
	and fsqrt to the vector register misc. group.

Change-Id: I0267511a7f7ea14247504d29fe4752e84c9af9ad
2015-12-14 16:54:38 +00:00

571 lines
14 KiB
C

/* This file is automatically generated by aarch64-gen. Do not edit! */
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
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 */
case 2: /* sbc */
value = 2; /* --> sbc. */
break;
case 5: /* ngcs */
case 4: /* sbcs */
value = 4; /* --> sbcs. */
break;
case 8: /* cmn */
case 7: /* adds */
value = 7; /* --> adds. */
break;
case 11: /* cmp */
case 10: /* subs */
value = 10; /* --> subs. */
break;
case 13: /* mov */
case 12: /* add */
value = 12; /* --> add. */
break;
case 15: /* cmn */
case 14: /* adds */
value = 14; /* --> adds. */
break;
case 18: /* cmp */
case 17: /* subs */
value = 17; /* --> subs. */
break;
case 21: /* cmn */
case 20: /* adds */
value = 20; /* --> adds. */
break;
case 23: /* neg */
case 22: /* sub */
value = 22; /* --> sub. */
break;
case 26: /* negs */
case 25: /* cmp */
case 24: /* subs */
value = 24; /* --> subs. */
break;
case 141: /* mov */
case 140: /* umov */
value = 140; /* --> umov. */
break;
case 143: /* mov */
case 142: /* ins */
value = 142; /* --> ins. */
break;
case 145: /* mov */
case 144: /* ins */
value = 144; /* --> ins. */
break;
case 227: /* mvn */
case 226: /* not */
value = 226; /* --> not. */
break;
case 302: /* mov */
case 301: /* orr */
value = 301; /* --> orr. */
break;
case 371: /* sxtl */
case 370: /* sshll */
value = 370; /* --> sshll. */
break;
case 373: /* sxtl2 */
case 372: /* sshll2 */
value = 372; /* --> sshll2. */
break;
case 393: /* uxtl */
case 392: /* ushll */
value = 392; /* --> ushll. */
break;
case 395: /* uxtl2 */
case 394: /* ushll2 */
value = 394; /* --> ushll2. */
break;
case 490: /* mov */
case 489: /* dup */
value = 489; /* --> dup. */
break;
case 568: /* sxtw */
case 567: /* sxth */
case 566: /* sxtb */
case 569: /* asr */
case 565: /* sbfx */
case 564: /* sbfiz */
case 563: /* sbfm */
value = 563; /* --> sbfm. */
break;
case 572: /* bfc */
case 573: /* bfxil */
case 571: /* bfi */
case 570: /* bfm */
value = 570; /* --> bfm. */
break;
case 578: /* uxth */
case 577: /* uxtb */
case 580: /* lsr */
case 579: /* lsl */
case 576: /* ubfx */
case 575: /* ubfiz */
case 574: /* ubfm */
value = 574; /* --> ubfm. */
break;
case 598: /* cset */
case 597: /* cinc */
case 596: /* csinc */
value = 596; /* --> csinc. */
break;
case 601: /* csetm */
case 600: /* cinv */
case 599: /* csinv */
value = 599; /* --> csinv. */
break;
case 603: /* cneg */
case 602: /* csneg */
value = 602; /* --> csneg. */
break;
case 621: /* rev */
case 622: /* rev64 */
value = 621; /* --> rev. */
break;
case 629: /* lsl */
case 628: /* lslv */
value = 628; /* --> lslv. */
break;
case 631: /* lsr */
case 630: /* lsrv */
value = 630; /* --> lsrv. */
break;
case 633: /* asr */
case 632: /* asrv */
value = 632; /* --> asrv. */
break;
case 635: /* ror */
case 634: /* rorv */
value = 634; /* --> rorv. */
break;
case 645: /* mul */
case 644: /* madd */
value = 644; /* --> madd. */
break;
case 647: /* mneg */
case 646: /* msub */
value = 646; /* --> msub. */
break;
case 649: /* smull */
case 648: /* smaddl */
value = 648; /* --> smaddl. */
break;
case 651: /* smnegl */
case 650: /* smsubl */
value = 650; /* --> smsubl. */
break;
case 654: /* umull */
case 653: /* umaddl */
value = 653; /* --> umaddl. */
break;
case 656: /* umnegl */
case 655: /* umsubl */
value = 655; /* --> umsubl. */
break;
case 667: /* ror */
case 666: /* extr */
value = 666; /* --> extr. */
break;
case 874: /* bic */
case 873: /* and */
value = 873; /* --> and. */
break;
case 876: /* mov */
case 875: /* orr */
value = 875; /* --> orr. */
break;
case 879: /* tst */
case 878: /* ands */
value = 878; /* --> ands. */
break;
case 884: /* uxtw */
case 883: /* mov */
case 882: /* orr */
value = 882; /* --> orr. */
break;
case 886: /* mvn */
case 885: /* orn */
value = 885; /* --> orn. */
break;
case 890: /* tst */
case 889: /* ands */
value = 889; /* --> ands. */
break;
case 1016: /* staddb */
case 920: /* ldaddb */
value = 920; /* --> ldaddb. */
break;
case 1017: /* staddh */
case 921: /* ldaddh */
value = 921; /* --> ldaddh. */
break;
case 1018: /* stadd */
case 922: /* ldadd */
value = 922; /* --> ldadd. */
break;
case 1019: /* staddlb */
case 924: /* ldaddlb */
value = 924; /* --> ldaddlb. */
break;
case 1020: /* staddlh */
case 927: /* ldaddlh */
value = 927; /* --> ldaddlh. */
break;
case 1021: /* staddl */
case 930: /* ldaddl */
value = 930; /* --> ldaddl. */
break;
case 1022: /* stclrb */
case 932: /* ldclrb */
value = 932; /* --> ldclrb. */
break;
case 1023: /* stclrh */
case 933: /* ldclrh */
value = 933; /* --> ldclrh. */
break;
case 1024: /* stclr */
case 934: /* ldclr */
value = 934; /* --> ldclr. */
break;
case 1025: /* stclrlb */
case 936: /* ldclrlb */
value = 936; /* --> ldclrlb. */
break;
case 1026: /* stclrlh */
case 939: /* ldclrlh */
value = 939; /* --> ldclrlh. */
break;
case 1027: /* stclrl */
case 942: /* ldclrl */
value = 942; /* --> ldclrl. */
break;
case 1028: /* steorb */
case 944: /* ldeorb */
value = 944; /* --> ldeorb. */
break;
case 1029: /* steorh */
case 945: /* ldeorh */
value = 945; /* --> ldeorh. */
break;
case 1030: /* steor */
case 946: /* ldeor */
value = 946; /* --> ldeor. */
break;
case 1031: /* steorlb */
case 948: /* ldeorlb */
value = 948; /* --> ldeorlb. */
break;
case 1032: /* steorlh */
case 951: /* ldeorlh */
value = 951; /* --> ldeorlh. */
break;
case 1033: /* steorl */
case 954: /* ldeorl */
value = 954; /* --> ldeorl. */
break;
case 1034: /* stsetb */
case 956: /* ldsetb */
value = 956; /* --> ldsetb. */
break;
case 1035: /* stseth */
case 957: /* ldseth */
value = 957; /* --> ldseth. */
break;
case 1036: /* stset */
case 958: /* ldset */
value = 958; /* --> ldset. */
break;
case 1037: /* stsetlb */
case 960: /* ldsetlb */
value = 960; /* --> ldsetlb. */
break;
case 1038: /* stsetlh */
case 963: /* ldsetlh */
value = 963; /* --> ldsetlh. */
break;
case 1039: /* stsetl */
case 966: /* ldsetl */
value = 966; /* --> ldsetl. */
break;
case 1040: /* stsmaxb */
case 968: /* ldsmaxb */
value = 968; /* --> ldsmaxb. */
break;
case 1041: /* stsmaxh */
case 969: /* ldsmaxh */
value = 969; /* --> ldsmaxh. */
break;
case 1042: /* stsmax */
case 970: /* ldsmax */
value = 970; /* --> ldsmax. */
break;
case 1043: /* stsmaxlb */
case 972: /* ldsmaxlb */
value = 972; /* --> ldsmaxlb. */
break;
case 1044: /* stsmaxlh */
case 975: /* ldsmaxlh */
value = 975; /* --> ldsmaxlh. */
break;
case 1045: /* stsmaxl */
case 978: /* ldsmaxl */
value = 978; /* --> ldsmaxl. */
break;
case 1046: /* stsminb */
case 980: /* ldsminb */
value = 980; /* --> ldsminb. */
break;
case 1047: /* stsminh */
case 981: /* ldsminh */
value = 981; /* --> ldsminh. */
break;
case 1048: /* stsmin */
case 982: /* ldsmin */
value = 982; /* --> ldsmin. */
break;
case 1049: /* stsminlb */
case 984: /* ldsminlb */
value = 984; /* --> ldsminlb. */
break;
case 1050: /* stsminlh */
case 987: /* ldsminlh */
value = 987; /* --> ldsminlh. */
break;
case 1051: /* stsminl */
case 990: /* ldsminl */
value = 990; /* --> ldsminl. */
break;
case 1052: /* stumaxb */
case 992: /* ldumaxb */
value = 992; /* --> ldumaxb. */
break;
case 1053: /* stumaxh */
case 993: /* ldumaxh */
value = 993; /* --> ldumaxh. */
break;
case 1054: /* stumax */
case 994: /* ldumax */
value = 994; /* --> ldumax. */
break;
case 1055: /* stumaxlb */
case 996: /* ldumaxlb */
value = 996; /* --> ldumaxlb. */
break;
case 1056: /* stumaxlh */
case 999: /* ldumaxlh */
value = 999; /* --> ldumaxlh. */
break;
case 1057: /* stumaxl */
case 1002: /* ldumaxl */
value = 1002; /* --> ldumaxl. */
break;
case 1058: /* stuminb */
case 1004: /* lduminb */
value = 1004; /* --> lduminb. */
break;
case 1059: /* stuminh */
case 1005: /* lduminh */
value = 1005; /* --> lduminh. */
break;
case 1060: /* stumin */
case 1006: /* ldumin */
value = 1006; /* --> ldumin. */
break;
case 1061: /* stuminlb */
case 1008: /* lduminlb */
value = 1008; /* --> lduminlb. */
break;
case 1062: /* stuminlh */
case 1011: /* lduminlh */
value = 1011; /* --> lduminlh. */
break;
case 1063: /* stuminl */
case 1014: /* lduminl */
value = 1014; /* --> lduminl. */
break;
case 1065: /* mov */
case 1064: /* movn */
value = 1064; /* --> movn. */
break;
case 1067: /* mov */
case 1066: /* movz */
value = 1066; /* --> movz. */
break;
case 1080: /* psb */
case 1079: /* esb */
case 1078: /* sevl */
case 1077: /* sev */
case 1076: /* wfi */
case 1075: /* wfe */
case 1074: /* yield */
case 1073: /* nop */
case 1072: /* hint */
value = 1072; /* --> hint. */
break;
case 1089: /* tlbi */
case 1088: /* ic */
case 1087: /* dc */
case 1086: /* at */
case 1085: /* sys */
value = 1085; /* --> sys. */
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:
case 17:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 35:
case 36:
return aarch64_ins_regno (self, info, code, inst);
case 12:
return aarch64_ins_reg_extended (self, info, code, inst);
case 13:
return aarch64_ins_reg_shifted (self, info, code, inst);
case 18:
return aarch64_ins_ft (self, info, code, inst);
case 28:
case 29:
case 30:
return aarch64_ins_reglane (self, info, code, inst);
case 31:
return aarch64_ins_reglist (self, info, code, inst);
case 32:
return aarch64_ins_ldst_reglist (self, info, code, inst);
case 33:
return aarch64_ins_ldst_reglist_r (self, info, code, inst);
case 34:
return aarch64_ins_ldst_elemlist (self, info, code, inst);
case 37:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 67:
case 68:
case 69:
case 70:
return aarch64_ins_imm (self, info, code, inst);
case 38:
case 39:
return aarch64_ins_advsimd_imm_shift (self, info, code, inst);
case 40:
case 41:
case 42:
return aarch64_ins_advsimd_imm_modified (self, info, code, inst);
case 59:
return aarch64_ins_limm (self, info, code, inst);
case 60:
return aarch64_ins_aimm (self, info, code, inst);
case 61:
return aarch64_ins_imm_half (self, info, code, inst);
case 62:
return aarch64_ins_fbits (self, info, code, inst);
case 64:
case 65:
return aarch64_ins_cond (self, info, code, inst);
case 71:
case 77:
return aarch64_ins_addr_simple (self, info, code, inst);
case 72:
return aarch64_ins_addr_regoff (self, info, code, inst);
case 73:
case 74:
case 75:
return aarch64_ins_addr_simm (self, info, code, inst);
case 76:
return aarch64_ins_addr_uimm12 (self, info, code, inst);
case 78:
return aarch64_ins_simd_addr_post (self, info, code, inst);
case 79:
return aarch64_ins_sysreg (self, info, code, inst);
case 80:
return aarch64_ins_pstatefield (self, info, code, inst);
case 81:
case 82:
case 83:
case 84:
return aarch64_ins_sysins_op (self, info, code, inst);
case 85:
case 86:
return aarch64_ins_barrier (self, info, code, inst);
case 87:
return aarch64_ins_prfop (self, info, code, inst);
case 88:
return aarch64_ins_hint (self, info, code, inst);
default: assert (0); abort ();
}
}