2000-04-21 22:22:24 +02:00
|
|
|
/* ia64-opc.h -- IA-64 opcode table.
|
2016-01-01 12:25:12 +01:00
|
|
|
Copyright (C) 1998-2016 Free Software Foundation, Inc.
|
2000-04-21 22:22:24 +02:00
|
|
|
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
|
|
|
|
2007-07-05 11:49:03 +02:00
|
|
|
This file is part of the GNU opcodes library.
|
2000-04-21 22:22:24 +02:00
|
|
|
|
2007-07-05 11:49:03 +02:00
|
|
|
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.
|
2000-04-21 22:22:24 +02:00
|
|
|
|
2007-07-05 11:49:03 +02:00
|
|
|
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.
|
2000-04-21 22:22:24 +02:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this file; see the file COPYING. If not, write to the
|
2007-07-05 11:49:03 +02:00
|
|
|
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
2000-04-21 22:22:24 +02:00
|
|
|
|
|
|
|
#ifndef IA64_OPC_H
|
|
|
|
#define IA64_OPC_H
|
|
|
|
|
|
|
|
#include "opcode/ia64.h"
|
|
|
|
|
|
|
|
/* define a couple of abbreviations: */
|
|
|
|
|
|
|
|
#define bOp(x) (((ia64_insn) ((x) & 0xf)) << 37)
|
|
|
|
#define mOp bOp (-1)
|
|
|
|
#define Op(x) bOp (x), mOp
|
|
|
|
|
|
|
|
#define FIRST IA64_OPCODE_FIRST
|
|
|
|
#define X_IN_MLX IA64_OPCODE_X_IN_MLX
|
|
|
|
#define LAST IA64_OPCODE_LAST
|
|
|
|
#define PRIV IA64_OPCODE_PRIV
|
|
|
|
#define NO_PRED IA64_OPCODE_NO_PRED
|
|
|
|
#define SLOT2 IA64_OPCODE_SLOT2
|
|
|
|
#define PSEUDO IA64_OPCODE_PSEUDO
|
|
|
|
#define F2_EQ_F3 IA64_OPCODE_F2_EQ_F3
|
|
|
|
#define LEN_EQ_64MCNT IA64_OPCODE_LEN_EQ_64MCNT
|
|
|
|
#define MOD_RRBS IA64_OPCODE_MOD_RRBS
|
2000-08-17 01:20:15 +02:00
|
|
|
#define POSTINC IA64_OPCODE_POSTINC
|
2000-04-21 22:22:24 +02:00
|
|
|
|
|
|
|
#define AR_CCV IA64_OPND_AR_CCV
|
|
|
|
#define AR_PFS IA64_OPND_AR_PFS
|
Patch to update IA-64 port to SDM 2.1.
bfd/ChangeLog
* cpu-ia64-opc.c: Add operand constant "ar.csd".
gas/ChangeLog
* config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
instruction.
(emit_one_bundle): Handle "hint" instruction.
(operand_match): Match IA64_OPND_AR_CSD.
gas/testsuite/ChangeLog
* gas/ia64/opc-b.d: Update for instructions added by SDM2.1.
* gas/ia64/opc-b.s: Ditto.
* gas/ia64/opc-f.d: Ditto.
* gas/ia64/opc-f.s: Ditto.
* gas/ia64/opc-i.d: Ditto.
* gas/ia64/opc-i.s: Ditto.
* gas/ia64/opc-m.d: Ditto.
* gas/ia64/opc-m.s: Ditto.
* gas/ia64/opc-x.d: Ditto.
* gas/ia64/opc-x.s: Ditto.
include/opcode/ChangeLog
* ia64.h: Fix copyright message.
(IA64_OPND_AR_CSD): New operand kind.
opcodes/ChangeLog
* ia64-opc-d.c (ia64_opcodes_d): Add "hint" instruction.
* ia64-opc-b.c: Add "hint.b" instruction.
* ia64-opc-f.c: Add "hint.f" instruction.
* ia64-opc-i.c: Add "hint.i" instruction.
* ia64-opc-m.c: Add "hint.m", "fc.i", "ld16", "st16", and
"cmp8xchg16" instructions.
* ia64-opc-x.c: Add "hint.x" instruction.
* ia64-opc.h (AR_CSD): New macro.
* ia64-ic.tbl: Update according to SDM2.1.
* ia64-raw.tbl: Ditto.
* ia64-waw.tbl: Ditto.
* ia64-gen.c (in_iclass): Handle "hint" like "nop".
(lookup_regindex): Recognize AR[FCR], AR[EFLAG], AR[CSD],
AR[SSD], AR[CFLG], AR[FSR], AR[FIR], and AR[FDR].
* ia64-asmtab.c: Regenerate.
2002-12-05 03:08:02 +01:00
|
|
|
#define AR_CSD IA64_OPND_AR_CSD
|
2000-04-21 22:22:24 +02:00
|
|
|
#define C1 IA64_OPND_C1
|
|
|
|
#define C8 IA64_OPND_C8
|
|
|
|
#define C16 IA64_OPND_C16
|
|
|
|
#define GR0 IA64_OPND_GR0
|
|
|
|
#define IP IA64_OPND_IP
|
|
|
|
#define PR IA64_OPND_PR
|
|
|
|
#define PR_ROT IA64_OPND_PR_ROT
|
|
|
|
#define PSR IA64_OPND_PSR
|
|
|
|
#define PSR_L IA64_OPND_PSR_L
|
|
|
|
#define PSR_UM IA64_OPND_PSR_UM
|
|
|
|
|
|
|
|
#define AR3 IA64_OPND_AR3
|
|
|
|
#define B1 IA64_OPND_B1
|
|
|
|
#define B2 IA64_OPND_B2
|
|
|
|
#define CR3 IA64_OPND_CR3
|
|
|
|
#define F1 IA64_OPND_F1
|
|
|
|
#define F2 IA64_OPND_F2
|
|
|
|
#define F3 IA64_OPND_F3
|
|
|
|
#define F4 IA64_OPND_F4
|
|
|
|
#define P1 IA64_OPND_P1
|
|
|
|
#define P2 IA64_OPND_P2
|
|
|
|
#define R1 IA64_OPND_R1
|
|
|
|
#define R2 IA64_OPND_R2
|
|
|
|
#define R3 IA64_OPND_R3
|
|
|
|
#define R3_2 IA64_OPND_R3_2
|
2012-09-04 15:52:06 +02:00
|
|
|
#define DAHR IA64_OPND_DAHR3
|
2000-04-21 22:22:24 +02:00
|
|
|
|
|
|
|
#define CPUID_R3 IA64_OPND_CPUID_R3
|
|
|
|
#define DBR_R3 IA64_OPND_DBR_R3
|
|
|
|
#define DTR_R3 IA64_OPND_DTR_R3
|
|
|
|
#define ITR_R3 IA64_OPND_ITR_R3
|
|
|
|
#define IBR_R3 IA64_OPND_IBR_R3
|
|
|
|
#define MR3 IA64_OPND_MR3
|
|
|
|
#define MSR_R3 IA64_OPND_MSR_R3
|
|
|
|
#define PKR_R3 IA64_OPND_PKR_R3
|
|
|
|
#define PMC_R3 IA64_OPND_PMC_R3
|
|
|
|
#define PMD_R3 IA64_OPND_PMD_R3
|
2012-09-04 15:52:06 +02:00
|
|
|
#define DAHR_R3 IA64_OPND_DAHR_R3
|
2000-04-21 22:22:24 +02:00
|
|
|
#define RR_R3 IA64_OPND_RR_R3
|
|
|
|
|
|
|
|
#define CCNT5 IA64_OPND_CCNT5
|
|
|
|
#define CNT2a IA64_OPND_CNT2a
|
|
|
|
#define CNT2b IA64_OPND_CNT2b
|
|
|
|
#define CNT2c IA64_OPND_CNT2c
|
|
|
|
#define CNT5 IA64_OPND_CNT5
|
|
|
|
#define CNT6 IA64_OPND_CNT6
|
|
|
|
#define CPOS6a IA64_OPND_CPOS6a
|
|
|
|
#define CPOS6b IA64_OPND_CPOS6b
|
|
|
|
#define CPOS6c IA64_OPND_CPOS6c
|
|
|
|
#define IMM1 IA64_OPND_IMM1
|
|
|
|
#define IMM14 IA64_OPND_IMM14
|
|
|
|
#define IMM17 IA64_OPND_IMM17
|
|
|
|
#define IMM22 IA64_OPND_IMM22
|
|
|
|
#define IMM44 IA64_OPND_IMM44
|
|
|
|
#define SOF IA64_OPND_SOF
|
|
|
|
#define SOL IA64_OPND_SOL
|
|
|
|
#define SOR IA64_OPND_SOR
|
|
|
|
#define IMM8 IA64_OPND_IMM8
|
|
|
|
#define IMM8U4 IA64_OPND_IMM8U4
|
|
|
|
#define IMM8M1 IA64_OPND_IMM8M1
|
|
|
|
#define IMM8M1U4 IA64_OPND_IMM8M1U4
|
|
|
|
#define IMM8M1U8 IA64_OPND_IMM8M1U8
|
|
|
|
#define IMM9a IA64_OPND_IMM9a
|
|
|
|
#define IMM9b IA64_OPND_IMM9b
|
|
|
|
#define IMMU2 IA64_OPND_IMMU2
|
2012-09-04 15:52:06 +02:00
|
|
|
#define IMMU16 IA64_OPND_IMMU16
|
|
|
|
#define IMMU19 IA64_OPND_IMMU19
|
2000-04-21 22:22:24 +02:00
|
|
|
#define IMMU21 IA64_OPND_IMMU21
|
|
|
|
#define IMMU24 IA64_OPND_IMMU24
|
|
|
|
#define IMMU62 IA64_OPND_IMMU62
|
|
|
|
#define IMMU64 IA64_OPND_IMMU64
|
2006-02-23 22:36:18 +01:00
|
|
|
#define IMMU5b IA64_OPND_IMMU5b
|
2000-04-21 22:22:24 +02:00
|
|
|
#define IMMU7a IA64_OPND_IMMU7a
|
|
|
|
#define IMMU7b IA64_OPND_IMMU7b
|
|
|
|
#define IMMU9 IA64_OPND_IMMU9
|
|
|
|
#define INC3 IA64_OPND_INC3
|
|
|
|
#define LEN4 IA64_OPND_LEN4
|
|
|
|
#define LEN6 IA64_OPND_LEN6
|
|
|
|
#define MBTYPE4 IA64_OPND_MBTYPE4
|
|
|
|
#define MHTYPE8 IA64_OPND_MHTYPE8
|
|
|
|
#define POS6 IA64_OPND_POS6
|
|
|
|
#define TAG13 IA64_OPND_TAG13
|
|
|
|
#define TAG13b IA64_OPND_TAG13b
|
|
|
|
#define TGT25 IA64_OPND_TGT25
|
|
|
|
#define TGT25b IA64_OPND_TGT25b
|
|
|
|
#define TGT25c IA64_OPND_TGT25c
|
|
|
|
#define TGT64 IA64_OPND_TGT64
|
2012-09-04 15:52:06 +02:00
|
|
|
#define CNT6a IA64_OPND_CNT6a
|
|
|
|
#define STRD5b IA64_OPND_STRD5b
|
2000-04-21 22:22:24 +02:00
|
|
|
|
|
|
|
#endif
|