Fix the gdb build with GCC 7
[deliverable/binutils-gdb.git] / opcodes / ia64-opc-x.c
index 9d9a6c109cc87344909a975a9317d9deaab5619c..16ccbfb241e2f50fe1f12db5fe8788844d9afa0c 100644 (file)
@@ -1,23 +1,23 @@
 /* ia64-opc-x.c -- IA-64 `X' opcode table.
-   Copyright 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998-2019 Free Software Foundation, Inc.
    Contributed by Timothy Wall <twall@cygnus.com>
 
-   This file is part of GDB, GAS, and the GNU binutils.
+   This file is part of the GNU opcodes library.
 
-   GDB, GAS, and the GNU binutils are free software; you can redistribute
-   them and/or modify them under the terms of the GNU General Public
-   License as published by the Free Software Foundation; either version
-   2, or (at your option) any later version.
+   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.
 
-   GDB, GAS, and the GNU binutils are distributed in the hope that they
-   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.
+   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 file; see the file COPYING.  If not, write to the
-   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.  */
+   Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
 
 #include "ia64-opc.h"
 
@@ -34,6 +34,7 @@
 #define bWha(x)                (((ia64_insn) ((x) & 0x3)) << 33)
 #define bX3(x)         (((ia64_insn) ((x) & 0x7)) << 33)
 #define bX6(x)         (((ia64_insn) ((x) & 0x3f)) << 27)
+#define bY(x)          (((ia64_insn) ((x) & 0x1)) << 26)
 
 #define mBtype         bBtype (-1)
 #define mD             bD (-1)
 #define mWha           bWha (-1)
 #define mX3             bX3 (-1)
 #define mX6            bX6 (-1)
+#define mY             bY (-1)
 
 #define OpX3X6(a,b,c)          (bOp (a) | bX3 (b) | bX6(c)), \
                                (mOp | mX3 | mX6)
+#define OpX3X6Y(a,b,c,d)       (bOp (a) | bX3 (b) | bX6(c) | bY(d)), \
+                               (mOp | mX3 | mX6 | mY)
 #define OpVc(a,b)              (bOp (a) | bVc (b)), (mOp | mVc)
 #define OpPaWhaD(a,b,c,d) \
        (bOp (a) | bPa (b) | bWha (c) | bD (d)), (mOp | mPa | mWha | mD)
@@ -58,8 +62,9 @@
 
 struct ia64_opcode ia64_opcodes_x[] =
   {
-    {"break.x", X0, OpX3X6 (0, 0, 0x00), {IMMU62}, 0, 0, NULL},
-    {"nop.x",   X0, OpX3X6 (0, 0, 0x01), {IMMU62}, 0, 0, NULL},
+    {"break.x",        X0, OpX3X6 (0, 0, 0x00), {IMMU62}, 0, 0, NULL},
+    {"nop.x",  X0, OpX3X6Y (0, 0, 0x01, 0), {IMMU62}, 0, 0, NULL},
+    {"hint.x", X0, OpX3X6Y (0, 0, 0x01, 1), {IMMU62}, 0, 0, NULL},
     {"movl",   X,  OpVc (6, 0), {R1, IMMU64}, 0, 0, NULL},
 #define BRL(a,b) \
       X0, OpBtypePaWhaDPr (0xC, 0, a, 0, b, 0), {TGT64}, PSEUDO, 0, NULL
This page took 0.024373 seconds and 4 git commands to generate.