Home | History | Annotate | Line # | Download | only in opcodes
s390-opc.c revision 1.7
      1  1.1  christos /* s390-opc.c -- S390 opcode list
      2  1.7  christos    Copyright (C) 2000-2017 Free Software Foundation, Inc.
      3  1.1  christos    Contributed by Martin Schwidefsky (schwidefsky (at) de.ibm.com).
      4  1.1  christos 
      5  1.1  christos    This file is part of the GNU opcodes library.
      6  1.1  christos 
      7  1.1  christos    This library is free software; you can redistribute it and/or modify
      8  1.1  christos    it under the terms of the GNU General Public License as published by
      9  1.1  christos    the Free Software Foundation; either version 3, or (at your option)
     10  1.1  christos    any later version.
     11  1.1  christos 
     12  1.1  christos    It is distributed in the hope that it will be useful, but WITHOUT
     13  1.1  christos    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     14  1.1  christos    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     15  1.1  christos    License for more details.
     16  1.1  christos 
     17  1.1  christos    You should have received a copy of the GNU General Public License
     18  1.1  christos    along with this file; see the file COPYING.  If not, write to the
     19  1.1  christos    Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
     20  1.1  christos    MA 02110-1301, USA.  */
     21  1.1  christos 
     22  1.1  christos #include <stdio.h>
     23  1.1  christos #include "ansidecl.h"
     24  1.1  christos #include "opcode/s390.h"
     25  1.1  christos 
     26  1.1  christos /* This file holds the S390 opcode table.  The opcode table
     27  1.1  christos    includes almost all of the extended instruction mnemonics.  This
     28  1.1  christos    permits the disassembler to use them, and simplifies the assembler
     29  1.1  christos    logic, at the cost of increasing the table size.  The table is
     30  1.1  christos    strictly constant data, so the compiler should be able to put it in
     31  1.1  christos    the .text section.
     32  1.1  christos 
     33  1.1  christos    This file also holds the operand table.  All knowledge about
     34  1.1  christos    inserting operands into instructions and vice-versa is kept in this
     35  1.1  christos    file.  */
     36  1.1  christos 
     37  1.1  christos /* The operands table.
     38  1.1  christos    The fields are bits, shift, insert, extract, flags.  */
     39  1.1  christos 
     40  1.1  christos const struct s390_operand s390_operands[] =
     41  1.1  christos {
     42  1.1  christos #define UNUSED 0
     43  1.1  christos   { 0, 0, 0 },                    /* Indicates the end of the operand list */
     44  1.1  christos 
     45  1.1  christos /* General purpose register operands.  */
     46  1.1  christos 
     47  1.5  christos #define R_8         1             /* GPR starting at position 8 */
     48  1.1  christos   { 4, 8, S390_OPERAND_GPR },
     49  1.5  christos #define R_12        2             /* GPR starting at position 12 */
     50  1.1  christos   { 4, 12, S390_OPERAND_GPR },
     51  1.5  christos #define R_16        3             /* GPR starting at position 16 */
     52  1.1  christos   { 4, 16, S390_OPERAND_GPR },
     53  1.5  christos #define R_20        4             /* GPR starting at position 20 */
     54  1.1  christos   { 4, 20, S390_OPERAND_GPR },
     55  1.5  christos #define R_24        5             /* GPR starting at position 24 */
     56  1.1  christos   { 4, 24, S390_OPERAND_GPR },
     57  1.5  christos #define R_28        6             /* GPR starting at position 28 */
     58  1.1  christos   { 4, 28, S390_OPERAND_GPR },
     59  1.5  christos #define R_32        7             /* GPR starting at position 32 */
     60  1.1  christos   { 4, 32, S390_OPERAND_GPR },
     61  1.1  christos 
     62  1.1  christos /* General purpose register pair operands.  */
     63  1.1  christos 
     64  1.5  christos #define RE_8        8             /* GPR starting at position 8 */
     65  1.1  christos   { 4, 8, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     66  1.5  christos #define RE_12       9             /* GPR starting at position 12 */
     67  1.1  christos   { 4, 12, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     68  1.5  christos #define RE_16       10            /* GPR starting at position 16 */
     69  1.1  christos   { 4, 16, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     70  1.5  christos #define RE_20       11            /* GPR starting at position 20 */
     71  1.1  christos   { 4, 20, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     72  1.5  christos #define RE_24       12            /* GPR starting at position 24 */
     73  1.1  christos   { 4, 24, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     74  1.5  christos #define RE_28       13            /* GPR starting at position 28 */
     75  1.1  christos   { 4, 28, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     76  1.5  christos #define RE_32       14            /* GPR starting at position 32 */
     77  1.1  christos   { 4, 32, S390_OPERAND_GPR | S390_OPERAND_REG_PAIR },
     78  1.1  christos 
     79  1.1  christos /* Floating point register operands.  */
     80  1.1  christos 
     81  1.5  christos #define F_8         15            /* FPR starting at position 8 */
     82  1.1  christos   { 4, 8, S390_OPERAND_FPR },
     83  1.5  christos #define F_12        16            /* FPR starting at position 12 */
     84  1.1  christos   { 4, 12, S390_OPERAND_FPR },
     85  1.5  christos #define F_16        17            /* FPR starting at position 16 */
     86  1.1  christos   { 4, 16, S390_OPERAND_FPR },
     87  1.6  christos #define F_24        18            /* FPR starting at position 24 */
     88  1.1  christos   { 4, 24, S390_OPERAND_FPR },
     89  1.6  christos #define F_28        19            /* FPR starting at position 28 */
     90  1.1  christos   { 4, 28, S390_OPERAND_FPR },
     91  1.6  christos #define F_32        20            /* FPR starting at position 32 */
     92  1.1  christos   { 4, 32, S390_OPERAND_FPR },
     93  1.1  christos 
     94  1.1  christos /* Floating point register pair operands.  */
     95  1.1  christos 
     96  1.6  christos #define FE_8        21            /* FPR starting at position 8 */
     97  1.1  christos   { 4, 8, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
     98  1.6  christos #define FE_12       22            /* FPR starting at position 12 */
     99  1.1  christos   { 4, 12, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
    100  1.6  christos #define FE_16       23            /* FPR starting at position 16 */
    101  1.1  christos   { 4, 16, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
    102  1.6  christos #define FE_24       24            /* FPR starting at position 24 */
    103  1.1  christos   { 4, 24, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
    104  1.6  christos #define FE_28       25            /* FPR starting at position 28 */
    105  1.1  christos   { 4, 28, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
    106  1.6  christos #define FE_32       26            /* FPR starting at position 32 */
    107  1.1  christos   { 4, 32, S390_OPERAND_FPR | S390_OPERAND_REG_PAIR },
    108  1.1  christos 
    109  1.5  christos /* Vector register operands.  */
    110  1.5  christos 
    111  1.5  christos /* For each of these operands and additional bit in the RXB operand is
    112  1.5  christos    needed.  */
    113  1.5  christos 
    114  1.6  christos #define V_8         27            /* Vector reg. starting at position 8 */
    115  1.5  christos   { 4, 8, S390_OPERAND_VR },
    116  1.6  christos #define V_12        28            /* Vector reg. starting at position 12 */
    117  1.5  christos   { 4, 12, S390_OPERAND_VR },
    118  1.6  christos #define V_CP16_12   29            /* Vector reg. starting at position 12 */
    119  1.5  christos   { 4, 12, S390_OPERAND_VR | S390_OPERAND_CP16 }, /* with a copy at pos 16 */
    120  1.6  christos #define V_16        30            /* Vector reg. starting at position 16 */
    121  1.5  christos   { 4, 16, S390_OPERAND_VR },
    122  1.6  christos #define V_32        31            /* Vector reg. starting at position 32 */
    123  1.5  christos   { 4, 32, S390_OPERAND_VR },
    124  1.1  christos 
    125  1.1  christos /* Access register operands.  */
    126  1.1  christos 
    127  1.6  christos #define A_8         32            /* Access reg. starting at position 8 */
    128  1.1  christos   { 4, 8, S390_OPERAND_AR },
    129  1.6  christos #define A_12        33            /* Access reg. starting at position 12 */
    130  1.1  christos   { 4, 12, S390_OPERAND_AR },
    131  1.6  christos #define A_24        34            /* Access reg. starting at position 24 */
    132  1.1  christos   { 4, 24, S390_OPERAND_AR },
    133  1.6  christos #define A_28        35            /* Access reg. starting at position 28 */
    134  1.1  christos   { 4, 28, S390_OPERAND_AR },
    135  1.1  christos 
    136  1.1  christos /* Control register operands.  */
    137  1.1  christos 
    138  1.6  christos #define C_8         36            /* Control reg. starting at position 8 */
    139  1.1  christos   { 4, 8, S390_OPERAND_CR },
    140  1.6  christos #define C_12        37            /* Control reg. starting at position 12 */
    141  1.1  christos   { 4, 12, S390_OPERAND_CR },
    142  1.1  christos 
    143  1.1  christos /* Base register operands.  */
    144  1.1  christos 
    145  1.6  christos #define B_16        38            /* Base register starting at position 16 */
    146  1.1  christos   { 4, 16, S390_OPERAND_BASE | S390_OPERAND_GPR },
    147  1.6  christos #define B_32        39            /* Base register starting at position 32 */
    148  1.1  christos   { 4, 32, S390_OPERAND_BASE | S390_OPERAND_GPR },
    149  1.1  christos 
    150  1.6  christos #define X_12        40            /* Index register starting at position 12 */
    151  1.1  christos   { 4, 12, S390_OPERAND_INDEX | S390_OPERAND_GPR },
    152  1.1  christos 
    153  1.6  christos #define VX_12       41     /* Vector index register starting at position 12 */
    154  1.5  christos   { 4, 12, S390_OPERAND_INDEX | S390_OPERAND_VR },
    155  1.5  christos 
    156  1.1  christos /* Address displacement operands.  */
    157  1.1  christos 
    158  1.6  christos #define D_20        42            /* Displacement starting at position 20 */
    159  1.1  christos   { 12, 20, S390_OPERAND_DISP },
    160  1.6  christos #define D_36        43            /* Displacement starting at position 36 */
    161  1.1  christos   { 12, 36, S390_OPERAND_DISP },
    162  1.6  christos #define D20_20      44		  /* 20 bit displacement starting at 20 */
    163  1.1  christos   { 20, 20, S390_OPERAND_DISP | S390_OPERAND_SIGNED },
    164  1.1  christos 
    165  1.1  christos /* Length operands.  */
    166  1.1  christos 
    167  1.6  christos #define L4_8        45            /* 4 bit length starting at position 8 */
    168  1.1  christos   { 4, 8, S390_OPERAND_LENGTH },
    169  1.6  christos #define L4_12       46            /* 4 bit length starting at position 12 */
    170  1.1  christos   { 4, 12, S390_OPERAND_LENGTH },
    171  1.6  christos #define L8_8        47            /* 8 bit length starting at position 8 */
    172  1.1  christos   { 8, 8, S390_OPERAND_LENGTH },
    173  1.1  christos 
    174  1.1  christos /* Signed immediate operands.  */
    175  1.1  christos 
    176  1.6  christos #define I8_8        48		  /* 8 bit signed value starting at 8 */
    177  1.1  christos   { 8, 8, S390_OPERAND_SIGNED },
    178  1.6  christos #define I8_32       49		  /* 8 bit signed value starting at 32 */
    179  1.1  christos   { 8, 32, S390_OPERAND_SIGNED },
    180  1.6  christos #define I12_12      50		  /* 12 bit signed value starting at 12 */
    181  1.1  christos   { 12, 12, S390_OPERAND_SIGNED },
    182  1.6  christos #define I16_16      51            /* 16 bit signed value starting at 16 */
    183  1.1  christos   { 16, 16, S390_OPERAND_SIGNED },
    184  1.6  christos #define I16_32      52            /* 16 bit signed value starting at 32 */
    185  1.1  christos   { 16, 32, S390_OPERAND_SIGNED },
    186  1.6  christos #define I24_24      53		  /* 24 bit signed value starting at 24 */
    187  1.1  christos   { 24, 24, S390_OPERAND_SIGNED },
    188  1.6  christos #define I32_16      54		  /* 32 bit signed value starting at 16 */
    189  1.1  christos   { 32, 16, S390_OPERAND_SIGNED },
    190  1.1  christos 
    191  1.1  christos /* Unsigned immediate operands.  */
    192  1.1  christos 
    193  1.6  christos #define U4_8        55            /* 4 bit unsigned value starting at 8 */
    194  1.1  christos   { 4, 8, 0 },
    195  1.6  christos #define U4_12       56            /* 4 bit unsigned value starting at 12 */
    196  1.1  christos   { 4, 12, 0 },
    197  1.6  christos #define U4_16       57            /* 4 bit unsigned value starting at 16 */
    198  1.1  christos   { 4, 16, 0 },
    199  1.6  christos #define U4_20       58            /* 4 bit unsigned value starting at 20 */
    200  1.1  christos   { 4, 20, 0 },
    201  1.6  christos #define U4_24       59            /* 4 bit unsigned value starting at 24 */
    202  1.1  christos   { 4, 24, 0 },
    203  1.6  christos #define U4_OR1_24   60            /* 4 bit unsigned value ORed with 1 */
    204  1.6  christos   { 4, 24, S390_OPERAND_OR1 },	  /* starting at 24 */
    205  1.6  christos #define U4_OR2_24   61            /* 4 bit unsigned value ORed with 2 */
    206  1.6  christos   { 4, 24, S390_OPERAND_OR2 },    /* starting at 24 */
    207  1.6  christos #define U4_OR3_24   62            /* 4 bit unsigned value ORed with 3 */
    208  1.6  christos   { 4, 24, S390_OPERAND_OR1 | S390_OPERAND_OR2 }, /* starting at 24 */
    209  1.6  christos #define U4_28       63            /* 4 bit unsigned value starting at 28 */
    210  1.1  christos   { 4, 28, 0 },
    211  1.6  christos #define U4_OR8_28   64            /* 4 bit unsigned value ORed with 8 */
    212  1.6  christos   { 4, 28, S390_OPERAND_OR8 },    /* starting at 28 */
    213  1.6  christos #define U4_32       65            /* 4 bit unsigned value starting at 32 */
    214  1.1  christos   { 4, 32, 0 },
    215  1.6  christos #define U4_36       66            /* 4 bit unsigned value starting at 36 */
    216  1.1  christos   { 4, 36, 0 },
    217  1.6  christos #define U8_8        67            /* 8 bit unsigned value starting at 8 */
    218  1.1  christos   { 8, 8, 0 },
    219  1.6  christos #define U8_16       68            /* 8 bit unsigned value starting at 16 */
    220  1.1  christos   { 8, 16, 0 },
    221  1.6  christos #define U8_24       69            /* 8 bit unsigned value starting at 24 */
    222  1.1  christos   { 8, 24, 0 },
    223  1.7  christos #define U8_28       70            /* 8 bit unsigned value starting at 28 */
    224  1.7  christos   { 8, 28, 0 },
    225  1.7  christos #define U8_32       71            /* 8 bit unsigned value starting at 32 */
    226  1.1  christos   { 8, 32, 0 },
    227  1.7  christos #define U12_16      72            /* 12 bit unsigned value starting at 16 */
    228  1.5  christos   { 12, 16, 0 },
    229  1.7  christos #define U16_16      73            /* 16 bit unsigned value starting at 16 */
    230  1.1  christos   { 16, 16, 0 },
    231  1.7  christos #define U16_32      74		  /* 16 bit unsigned value starting at 32 */
    232  1.1  christos   { 16, 32, 0 },
    233  1.7  christos #define U32_16      75		  /* 32 bit unsigned value starting at 16 */
    234  1.1  christos   { 32, 16, 0 },
    235  1.1  christos 
    236  1.1  christos /* PC-relative address operands.  */
    237  1.1  christos 
    238  1.7  christos #define J12_12      76            /* 12 bit PC relative offset at 12 */
    239  1.1  christos   { 12, 12, S390_OPERAND_PCREL },
    240  1.7  christos #define J16_16      77            /* 16 bit PC relative offset at 16 */
    241  1.1  christos   { 16, 16, S390_OPERAND_PCREL },
    242  1.7  christos #define J16_32      78            /* 16 bit PC relative offset at 32 */
    243  1.1  christos   { 16, 32, S390_OPERAND_PCREL },
    244  1.7  christos #define J24_24      79            /* 24 bit PC relative offset at 24 */
    245  1.1  christos   { 24, 24, S390_OPERAND_PCREL },
    246  1.7  christos #define J32_16      80            /* 32 bit PC relative offset at 16 */
    247  1.1  christos   { 32, 16, S390_OPERAND_PCREL },
    248  1.1  christos 
    249  1.1  christos };
    250  1.1  christos 
    251  1.1  christos 
    252  1.1  christos /* Macros used to form opcodes.  */
    253  1.1  christos 
    254  1.1  christos /* 8/16/48 bit opcodes.  */
    255  1.1  christos #define OP8(x) { x, 0x00, 0x00, 0x00, 0x00, 0x00 }
    256  1.1  christos #define OP16(x) { x >> 8, x & 255, 0x00, 0x00, 0x00, 0x00 }
    257  1.6  christos #define OP32(x) { x >> 24, (x >> 16) & 255, (x >> 8) & 255, x & 255,	\
    258  1.6  christos 		  0x00, 0x00 }
    259  1.1  christos #define OP48(x) { x >> 40, (x >> 32) & 255, (x >> 24) & 255, \
    260  1.5  christos 		  (x >> 16) & 255, (x >> 8) & 255, x & 255}
    261  1.1  christos 
    262  1.1  christos /* The new format of the INSTR_x_y and MASK_x_y defines is based
    263  1.1  christos    on the following rules:
    264  1.1  christos    1) the middle part of the definition (x in INSTR_x_y) is the official
    265  1.1  christos       names of the instruction format that you can find in the principals
    266  1.1  christos       of operation.
    267  1.1  christos    2) the last part of the definition (y in INSTR_x_y) gives you an idea
    268  1.1  christos       which operands the binary represenation of the instruction has.
    269  1.1  christos       The meanings of the letters in y are:
    270  1.1  christos       a - access register
    271  1.1  christos       c - control register
    272  1.1  christos       d - displacement, 12 bit
    273  1.1  christos       f - floating pointer register
    274  1.1  christos       fe - fpr extended operand, a valid floating pointer register pair
    275  1.1  christos       i - signed integer, 4, 8, 16 or 32 bit
    276  1.1  christos       l - length, 4 or 8 bit
    277  1.1  christos       p - pc relative
    278  1.1  christos       r - general purpose register
    279  1.1  christos       re - gpr extended operand, a valid general purpose register pair
    280  1.1  christos       u - unsigned integer, 4, 8, 16 or 32 bit
    281  1.1  christos       m - mode field, 4 bit
    282  1.1  christos       0 - operand skipped.
    283  1.1  christos       The order of the letters reflects the layout of the format in
    284  1.1  christos       storage and not the order of the paramaters of the instructions.
    285  1.1  christos       The use of the letters is not a 100% match with the PoP but it is
    286  1.1  christos       quite close.
    287  1.1  christos 
    288  1.1  christos       For example the instruction "mvo" is defined in the PoP as follows:
    289  1.5  christos 
    290  1.1  christos       MVO  D1(L1,B1),D2(L2,B2)   [SS]
    291  1.1  christos 
    292  1.1  christos       --------------------------------------
    293  1.1  christos       | 'F1' | L1 | L2 | B1 | D1 | B2 | D2 |
    294  1.1  christos       --------------------------------------
    295  1.1  christos        0      8    12   16   20   32   36
    296  1.1  christos 
    297  1.1  christos       The instruction format is: INSTR_SS_LLRDRD / MASK_SS_LLRDRD.  */
    298  1.1  christos 
    299  1.5  christos #define INSTR_E            2, { 0,0,0,0,0,0 }                    /* e.g. pr    */
    300  1.5  christos #define INSTR_IE_UU        4, { U4_24,U4_28,0,0,0,0 }            /* e.g. niai  */
    301  1.5  christos #define INSTR_MII_UPP      6, { U4_8,J12_12,J24_24 }             /* e.g. bprp  */
    302  1.5  christos #define INSTR_RIE_RRP      6, { R_8,R_12,J16_16,0,0,0 }          /* e.g. brxhg */
    303  1.5  christos #define INSTR_RIE_RRPU     6, { R_8,R_12,U4_32,J16_16,0,0 }      /* e.g. crj   */
    304  1.5  christos #define INSTR_RIE_RRP0     6, { R_8,R_12,J16_16,0,0,0 }          /* e.g. cgrjne */
    305  1.5  christos #define INSTR_RIE_RRI0     6, { R_8,R_12,I16_16,0,0,0 }          /* e.g. ahik  */
    306  1.5  christos #define INSTR_RIE_RUPI     6, { R_8,I8_32,U4_12,J16_16,0,0 }     /* e.g. cij   */
    307  1.5  christos #define INSTR_RIE_R0PI     6, { R_8,I8_32,J16_16,0,0,0 }         /* e.g. cijne */
    308  1.5  christos #define INSTR_RIE_RUPU     6, { R_8,U8_32,U4_12,J16_16,0,0 }     /* e.g. clij  */
    309  1.5  christos #define INSTR_RIE_R0PU     6, { R_8,U8_32,J16_16,0,0,0 }         /* e.g. clijne */
    310  1.5  christos #define INSTR_RIE_R0IU     6, { R_8,I16_16,U4_32,0,0,0 }         /* e.g. cit   */
    311  1.5  christos #define INSTR_RIE_R0I0     6, { R_8,I16_16,0,0,0,0 }             /* e.g. citne */
    312  1.5  christos #define INSTR_RIE_R0UU     6, { R_8,U16_16,U4_32,0,0,0 }         /* e.g. clfit */
    313  1.5  christos #define INSTR_RIE_R0U0     6, { R_8,U16_16,0,0,0,0 }             /* e.g. clfitne */
    314  1.5  christos #define INSTR_RIE_RUI0     6, { R_8,I16_16,U4_12,0,0,0 }         /* e.g. lochi */
    315  1.5  christos #define INSTR_RIE_RRUUU    6, { R_8,R_12,U8_16,U8_24,U8_32,0 }   /* e.g. rnsbg */
    316  1.5  christos #define INSTR_RIL_0P       6, { J32_16,0,0,0,0 }                 /* e.g. jg    */
    317  1.5  christos #define INSTR_RIL_RP       6, { R_8,J32_16,0,0,0,0 }             /* e.g. brasl */
    318  1.5  christos #define INSTR_RIL_UP       6, { U4_8,J32_16,0,0,0,0 }            /* e.g. brcl  */
    319  1.5  christos #define INSTR_RIL_RI       6, { R_8,I32_16,0,0,0,0 }             /* e.g. afi   */
    320  1.5  christos #define INSTR_RIL_RU       6, { R_8,U32_16,0,0,0,0 }             /* e.g. alfi  */
    321  1.5  christos #define INSTR_RI_0P        4, { J16_16,0,0,0,0,0 }               /* e.g. j     */
    322  1.5  christos #define INSTR_RI_RI        4, { R_8,I16_16,0,0,0,0 }             /* e.g. ahi   */
    323  1.5  christos #define INSTR_RI_RP        4, { R_8,J16_16,0,0,0,0 }             /* e.g. brct  */
    324  1.5  christos #define INSTR_RI_RU        4, { R_8,U16_16,0,0,0,0 }             /* e.g. tml   */
    325  1.5  christos #define INSTR_RI_UP        4, { U4_8,J16_16,0,0,0,0 }            /* e.g. brc   */
    326  1.5  christos #define INSTR_RIS_RURDI    6, { R_8,I8_32,U4_12,D_20,B_16,0 }    /* e.g. cib   */
    327  1.5  christos #define INSTR_RIS_R0RDI    6, { R_8,I8_32,D_20,B_16,0,0 }        /* e.g. cibne */
    328  1.5  christos #define INSTR_RIS_RURDU    6, { R_8,U8_32,U4_12,D_20,B_16,0 }    /* e.g. clib  */
    329  1.5  christos #define INSTR_RIS_R0RDU    6, { R_8,U8_32,D_20,B_16,0,0 }        /* e.g. clibne*/
    330  1.5  christos #define INSTR_RRE_00       4, { 0,0,0,0,0,0 }                    /* e.g. palb  */
    331  1.5  christos #define INSTR_RRE_0R       4, { R_28,0,0,0,0,0 }                 /* e.g. tb    */
    332  1.5  christos #define INSTR_RRE_AA       4, { A_24,A_28,0,0,0,0 }              /* e.g. cpya  */
    333  1.5  christos #define INSTR_RRE_AR       4, { A_24,R_28,0,0,0,0 }              /* e.g. sar   */
    334  1.5  christos #define INSTR_RRE_F0       4, { F_24,0,0,0,0,0 }                 /* e.g. lzer  */
    335  1.5  christos #define INSTR_RRE_FE0      4, { FE_24,0,0,0,0,0 }                /* e.g. lzxr  */
    336  1.5  christos #define INSTR_RRE_FF       4, { F_24,F_28,0,0,0,0 }              /* e.g. debr  */
    337  1.5  christos #define INSTR_RRE_FEF      4, { FE_24,F_28,0,0,0,0 }             /* e.g. lxdbr */
    338  1.5  christos #define INSTR_RRE_FFE      4, { F_24,FE_28,0,0,0,0 }             /* e.g. lexr  */
    339  1.5  christos #define INSTR_RRE_FEFE     4, { FE_24,FE_28,0,0,0,0 }            /* e.g. dxr   */
    340  1.5  christos #define INSTR_RRE_R0       4, { R_24,0,0,0,0,0 }                 /* e.g. ipm   */
    341  1.5  christos #define INSTR_RRE_RA       4, { R_24,A_28,0,0,0,0 }              /* e.g. ear   */
    342  1.5  christos #define INSTR_RRE_RF       4, { R_24,F_28,0,0,0,0 }              /* e.g. lgdr  */
    343  1.5  christos #define INSTR_RRE_RFE      4, { R_24,FE_28,0,0,0,0 }             /* e.g. csxtr */
    344  1.5  christos #define INSTR_RRE_RR       4, { R_24,R_28,0,0,0,0 }              /* e.g. lura  */
    345  1.5  christos #define INSTR_RRE_RER      4, { RE_24,R_28,0,0,0,0 }             /* e.g. tre   */
    346  1.5  christos #define INSTR_RRE_RERE     4, { RE_24,RE_28,0,0,0,0 }            /* e.g. cuse  */
    347  1.5  christos #define INSTR_RRE_FR       4, { F_24,R_28,0,0,0,0 }              /* e.g. ldgr  */
    348  1.5  christos #define INSTR_RRE_FER      4, { FE_24,R_28,0,0,0,0 }             /* e.g. cxfbr */
    349  1.5  christos #define INSTR_RRF_F0FF     4, { F_16,F_24,F_28,0,0,0 }           /* e.g. madbr */
    350  1.5  christos #define INSTR_RRF_FE0FF    4, { F_16,F_24,F_28,0,0,0 }           /* e.g. myr   */
    351  1.5  christos #define INSTR_RRF_F0FF2    4, { F_24,F_16,F_28,0,0,0 }           /* e.g. cpsdr */
    352  1.5  christos #define INSTR_RRF_F0FR     4, { F_24,F_16,R_28,0,0,0 }           /* e.g. iedtr */
    353  1.5  christos #define INSTR_RRF_FE0FER   4, { FE_24,FE_16,R_28,0,0,0 }         /* e.g. iextr */
    354  1.5  christos #define INSTR_RRF_FUFF     4, { F_24,F_16,F_28,U4_20,0,0 }       /* e.g. didbr */
    355  1.5  christos #define INSTR_RRF_FEUFEFE  4, { FE_24,FE_16,FE_28,U4_20,0,0 }    /* e.g. qaxtr */
    356  1.5  christos #define INSTR_RRF_FUFF2    4, { F_24,F_28,F_16,U4_20,0,0 }       /* e.g. adtra */
    357  1.5  christos #define INSTR_RRF_FEUFEFE2 4, { FE_24,FE_28,FE_16,U4_20,0,0 }    /* e.g. axtra */
    358  1.5  christos #define INSTR_RRF_RURR     4, { R_24,R_28,R_16,U4_20,0,0 }       /* e.g. .insn */
    359  1.5  christos #define INSTR_RRF_RURR2    4, { R_24,R_16,R_28,U4_20,0,0 }       /* e.g. lptea */
    360  1.5  christos #define INSTR_RRF_R0RR     4, { R_24,R_16,R_28,0,0,0 }           /* e.g. idte  */
    361  1.5  christos #define INSTR_RRF_R0RR2    4, { R_24,R_28,R_16,0,0,0 }           /* e.g. ark   */
    362  1.5  christos #define INSTR_RRF_U0FF     4, { F_24,U4_16,F_28,0,0,0 }          /* e.g. fidbr */
    363  1.5  christos #define INSTR_RRF_U0FEFE   4, { FE_24,U4_16,FE_28,0,0,0 }        /* e.g. fixbr */
    364  1.5  christos #define INSTR_RRF_U0RF     4, { R_24,U4_16,F_28,0,0,0 }          /* e.g. cfebr */
    365  1.5  christos #define INSTR_RRF_U0RFE    4, { R_24,U4_16,FE_28,0,0,0 }         /* e.g. cfxbr */
    366  1.5  christos #define INSTR_RRF_UUFF     4, { F_24,U4_16,F_28,U4_20,0,0 }      /* e.g. fidtr */
    367  1.5  christos #define INSTR_RRF_UUFFE    4, { F_24,U4_16,FE_28,U4_20,0,0 }     /* e.g. ldxtr */
    368  1.5  christos #define INSTR_RRF_UUFEFE   4, { FE_24,U4_16,FE_28,U4_20,0,0 }    /* e.g. fixtr */
    369  1.5  christos #define INSTR_RRF_0UFF     4, { F_24,F_28,U4_20,0,0,0 }          /* e.g. ldetr */
    370  1.5  christos #define INSTR_RRF_0UFEF    4, { FE_24,F_28,U4_20,0,0,0 }         /* e.g. lxdtr */
    371  1.5  christos #define INSTR_RRF_FFRU     4, { F_24,F_16,R_28,U4_20,0,0 }       /* e.g. rrdtr */
    372  1.5  christos #define INSTR_RRF_FEFERU   4, { FE_24,FE_16,R_28,U4_20,0,0 }     /* e.g. rrxtr */
    373  1.5  christos #define INSTR_RRF_U0RR     4, { R_24,R_28,U4_16,0,0,0 }          /* e.g. sske  */
    374  1.5  christos #define INSTR_RRF_U0RER    4, { RE_24,R_28,U4_16,0,0,0 }         /* e.g. trte  */
    375  1.6  christos #define INSTR_RRF_U0RERE   4, { RE_24,RE_28,U4_16,0,0,0 }        /* e.g. cu24  */
    376  1.5  christos #define INSTR_RRF_00RR     4, { R_24,R_28,0,0,0,0 }              /* e.g. clrtne */
    377  1.5  christos #define INSTR_RRF_UUFR     4, { F_24,U4_16,R_28,U4_20,0,0 }      /* e.g. cdgtra */
    378  1.5  christos #define INSTR_RRF_UUFER    4, { FE_24,U4_16,R_28,U4_20,0,0 }     /* e.g. cxfbra */
    379  1.5  christos #define INSTR_RRF_UURF     4, { R_24,U4_16,F_28,U4_20,0,0 }      /* e.g. cgdtra */
    380  1.5  christos #define INSTR_RRF_UURFE    4, { R_24,U4_16,FE_28,U4_20,0,0 }     /* e.g. cfxbra */
    381  1.5  christos #define INSTR_RR_0R        2, { R_12, 0,0,0,0,0 }                /* e.g. br    */
    382  1.5  christos #define INSTR_RR_FF        2, { F_8,F_12,0,0,0,0 }               /* e.g. adr   */
    383  1.5  christos #define INSTR_RR_FEF       2, { FE_8,F_12,0,0,0,0 }              /* e.g. mxdr  */
    384  1.5  christos #define INSTR_RR_FFE       2, { F_8,FE_12,0,0,0,0 }              /* e.g. ldxr  */
    385  1.5  christos #define INSTR_RR_FEFE      2, { FE_8,FE_12,0,0,0,0 }             /* e.g. axr   */
    386  1.5  christos #define INSTR_RR_R0        2, { R_8, 0,0,0,0,0 }                 /* e.g. spm   */
    387  1.5  christos #define INSTR_RR_RR        2, { R_8,R_12,0,0,0,0 }               /* e.g. lr    */
    388  1.5  christos #define INSTR_RR_RER       2, { RE_8,R_12,0,0,0,0 }              /* e.g. dr    */
    389  1.5  christos #define INSTR_RR_U0        2, { U8_8, 0,0,0,0,0 }                /* e.g. svc   */
    390  1.5  christos #define INSTR_RR_UR        2, { U4_8,R_12,0,0,0,0 }              /* e.g. bcr   */
    391  1.5  christos #define INSTR_RRR_F0FF     4, { F_24,F_28,F_16,0,0,0 }           /* e.g. ddtr  */
    392  1.5  christos #define INSTR_RRR_FE0FEFE  4, { FE_24,FE_28,FE_16,0,0,0 }        /* e.g. axtr  */
    393  1.5  christos #define INSTR_RRS_RRRDU    6, { R_8,R_12,U4_32,D_20,B_16 }       /* e.g. crb   */
    394  1.5  christos #define INSTR_RRS_RRRD0    6, { R_8,R_12,D_20,B_16,0 }           /* e.g. crbne */
    395  1.5  christos #define INSTR_RSE_RRRD     6, { R_8,R_12,D_20,B_16,0,0 }         /* e.g. lmh   */
    396  1.5  christos #define INSTR_RSE_RERERD   6, { RE_8,RE_12,D_20,B_16,0,0 }       /* e.g. mvclu */
    397  1.5  christos #define INSTR_RSE_CCRD     6, { C_8,C_12,D_20,B_16,0,0 }         /* e.g. stctg */
    398  1.5  christos #define INSTR_RSE_RURD     6, { R_8,U4_12,D_20,B_16,0,0 }        /* e.g. icmh  */
    399  1.5  christos #define INSTR_RSL_R0RD     6, { D_20,L4_8,B_16,0,0,0 }           /* e.g. tp    */
    400  1.5  christos #define INSTR_RSL_LRDFU    6, { F_32,D_20,L8_8,B_16,U4_36,0 }    /* e.g. cdzt  */
    401  1.5  christos #define INSTR_RSL_LRDFEU   6, { FE_32,D_20,L8_8,B_16,U4_36,0 }   /* e.g. cxzt  */
    402  1.5  christos #define INSTR_RSI_RRP      4, { R_8,R_12,J16_16,0,0,0 }          /* e.g. brxh  */
    403  1.5  christos #define INSTR_RSY_RRRD     6, { R_8,R_12,D20_20,B_16,0,0 }       /* e.g. stmy  */
    404  1.5  christos #define INSTR_RSY_RERERD   6, { RE_8,RE_12,D20_20,B_16,0,0 }     /* e.g. cdsy  */
    405  1.5  christos #define INSTR_RSY_RURD     6, { R_8,U4_12,D20_20,B_16,0,0 }      /* e.g. icmh  */
    406  1.5  christos #define INSTR_RSY_RURD2    6, { R_8,D20_20,B_16,U4_12,0,0 }      /* e.g. loc   */
    407  1.5  christos #define INSTR_RSY_R0RD     6, { R_8,D20_20,B_16,0,0,0 }          /* e.g. locne */
    408  1.5  christos #define INSTR_RSY_AARD     6, { A_8,A_12,D20_20,B_16,0,0 }       /* e.g. lamy  */
    409  1.5  christos #define INSTR_RSY_CCRD     6, { C_8,C_12,D20_20,B_16,0,0 }       /* e.g. stctg */
    410  1.5  christos #define INSTR_RS_AARD      4, { A_8,A_12,D_20,B_16,0,0 }         /* e.g. lam   */
    411  1.5  christos #define INSTR_RS_CCRD      4, { C_8,C_12,D_20,B_16,0,0 }         /* e.g. lctl  */
    412  1.5  christos #define INSTR_RS_R0RD      4, { R_8,D_20,B_16,0,0,0 }            /* e.g. sll   */
    413  1.5  christos #define INSTR_RS_RE0RD     4, { RE_8,D_20,B_16,0,0,0 }           /* e.g. slda  */
    414  1.5  christos #define INSTR_RS_RRRD      4, { R_8,R_12,D_20,B_16,0,0 }         /* e.g. cs    */
    415  1.5  christos #define INSTR_RS_RERERD    4, { RE_8,RE_12,D_20,B_16,0,0 }       /* e.g. cds   */
    416  1.5  christos #define INSTR_RS_RURD      4, { R_8,U4_12,D_20,B_16,0,0 }        /* e.g. icm   */
    417  1.5  christos #define INSTR_RXE_FRRD     6, { F_8,D_20,X_12,B_16,0,0 }         /* e.g. adb   */
    418  1.5  christos #define INSTR_RXE_FERRD    6, { FE_8,D_20,X_12,B_16,0,0 }        /* e.g. lxdb  */
    419  1.5  christos #define INSTR_RXE_RRRD     6, { R_8,D_20,X_12,B_16,0,0 }         /* e.g. lg    */
    420  1.5  christos #define INSTR_RXE_RRRDU    6, { R_8,D_20,X_12,B_16,U4_32,0 }     /* e.g. lcbb  */
    421  1.5  christos #define INSTR_RXE_RERRD    6, { RE_8,D_20,X_12,B_16,0,0 }        /* e.g. dsg   */
    422  1.5  christos #define INSTR_RXF_FRRDF    6, { F_32,F_8,D_20,X_12,B_16,0 }      /* e.g. madb  */
    423  1.5  christos #define INSTR_RXF_FRRDFE   6, { FE_32,F_8,D_20,X_12,B_16,0 }     /* e.g. my    */
    424  1.5  christos #define INSTR_RXF_FERRDFE  6, { FE_32,FE_8,D_20,X_12,B_16,0 }    /* e.g. slxt  */
    425  1.5  christos #define INSTR_RXF_RRRDR    6, { R_32,R_8,D_20,X_12,B_16,0 }      /* e.g. .insn */
    426  1.5  christos #define INSTR_RXY_RRRD     6, { R_8,D20_20,X_12,B_16,0,0 }       /* e.g. ly    */
    427  1.5  christos #define INSTR_RXY_RERRD    6, { RE_8,D20_20,X_12,B_16,0,0 }      /* e.g. dsg   */
    428  1.5  christos #define INSTR_RXY_FRRD     6, { F_8,D20_20,X_12,B_16,0,0 }       /* e.g. ley   */
    429  1.5  christos #define INSTR_RXY_URRD     6, { U4_8,D20_20,X_12,B_16,0,0 }      /* e.g. pfd   */
    430  1.7  christos #define INSTR_RXY_0RRD     6, { D20_20,X_12,B_16,0,0 }           /* e.g. bic   */
    431  1.5  christos #define INSTR_RX_0RRD      4, { D_20,X_12,B_16,0,0,0 }           /* e.g. be    */
    432  1.5  christos #define INSTR_RX_FRRD      4, { F_8,D_20,X_12,B_16,0,0 }         /* e.g. ae    */
    433  1.5  christos #define INSTR_RX_FERRD     4, { FE_8,D_20,X_12,B_16,0,0 }        /* e.g. mxd   */
    434  1.5  christos #define INSTR_RX_RRRD      4, { R_8,D_20,X_12,B_16,0,0 }         /* e.g. l     */
    435  1.5  christos #define INSTR_RX_RERRD     4, { RE_8,D_20,X_12,B_16,0,0 }        /* e.g. d     */
    436  1.5  christos #define INSTR_RX_URRD      4, { U4_8,D_20,X_12,B_16,0,0 }        /* e.g. bc    */
    437  1.5  christos #define INSTR_SI_URD       4, { D_20,B_16,U8_8,0,0,0 }           /* e.g. cli   */
    438  1.5  christos #define INSTR_SIY_URD      6, { D20_20,B_16,U8_8,0,0,0 }         /* e.g. tmy   */
    439  1.5  christos #define INSTR_SIY_IRD      6, { D20_20,B_16,I8_8,0,0,0 }         /* e.g. asi   */
    440  1.5  christos #define INSTR_SIL_RDI      6, { D_20,B_16,I16_32,0,0,0 }         /* e.g. chhsi */
    441  1.5  christos #define INSTR_SIL_RDU      6, { D_20,B_16,U16_32,0,0,0 }         /* e.g. clfhsi */
    442  1.5  christos #define INSTR_SMI_U0RDP    6, { U4_8,J16_32,D_20,B_16,0,0 }      /* e.g. bpp   */
    443  1.5  christos #define INSTR_SSE_RDRD     6, { D_20,B_16,D_36,B_32,0,0 }        /* e.g. mvcdk */
    444  1.5  christos #define INSTR_SS_L0RDRD    6, { D_20,L8_8,B_16,D_36,B_32,0     } /* e.g. mvc   */
    445  1.5  christos #define INSTR_SS_L2RDRD    6, { D_20,B_16,D_36,L8_8,B_32,0     } /* e.g. pka   */
    446  1.5  christos #define INSTR_SS_LIRDRD    6, { D_20,L4_8,B_16,D_36,B_32,U4_12 } /* e.g. srp   */
    447  1.5  christos #define INSTR_SS_LLRDRD    6, { D_20,L4_8,B_16,D_36,L4_12,B_32 } /* e.g. pack  */
    448  1.5  christos #define INSTR_SS_RRRDRD    6, { D_20,R_8,B_16,D_36,B_32,R_12 }   /* e.g. mvck  */
    449  1.5  christos #define INSTR_SS_RRRDRD2   6, { R_8,D_20,B_16,R_12,D_36,B_32 }   /* e.g. plo   */
    450  1.5  christos #define INSTR_SS_RRRDRD3   6, { R_8,R_12,D_20,B_16,D_36,B_32 }   /* e.g. lmd   */
    451  1.5  christos #define INSTR_SSF_RRDRD    6, { D_20,B_16,D_36,B_32,R_8,0 }      /* e.g. mvcos */
    452  1.5  christos #define INSTR_SSF_RERDRD2  6, { RE_8,D_20,B_16,D_36,B_32,0 }     /* e.g. lpd   */
    453  1.5  christos #define INSTR_S_00         4, { 0,0,0,0,0,0 }                    /* e.g. hsch  */
    454  1.5  christos #define INSTR_S_RD         4, { D_20,B_16,0,0,0,0 }              /* e.g. lpsw  */
    455  1.5  christos #define INSTR_VRV_VVXRDU   6, { V_8,D_20,VX_12,B_16,U4_32,0 }    /* e.g. vgef  */
    456  1.5  christos #define INSTR_VRI_V0U      6, { V_8,U16_16,0,0,0,0 }             /* e.g. vgbm  */
    457  1.5  christos #define INSTR_VRI_V        6, { V_8,0,0,0,0,0 }                  /* e.g. vzero */
    458  1.5  christos #define INSTR_VRI_V0UUU    6, { V_8,U8_16,U8_24,U4_32,0,0 }      /* e.g. vgm   */
    459  1.5  christos #define INSTR_VRI_V0UU     6, { V_8,U8_16,U8_24,0,0,0 }          /* e.g. vgmb  */
    460  1.7  christos #define INSTR_VRI_V0UU2    6, { V_8,U16_16,U4_32,0,0,0 }         /* e.g. vlip  */
    461  1.5  christos #define INSTR_VRI_VVUU     6, { V_8,V_12,U16_16,U4_32,0,0 }      /* e.g. vrep  */
    462  1.5  christos #define INSTR_VRI_VVU      6, { V_8,V_12,U16_16,0,0,0 }          /* e.g. vrepb */
    463  1.5  christos #define INSTR_VRI_VVU2     6, { V_8,V_12,U12_16,0,0,0 }          /* e.g. vftcidb */
    464  1.5  christos #define INSTR_VRI_V0IU     6, { V_8,I16_16,U4_32,0,0,0 }         /* e.g. vrepi */
    465  1.5  christos #define INSTR_VRI_V0I      6, { V_8,I16_16,0,0,0,0 }             /* e.g. vrepib */
    466  1.5  christos #define INSTR_VRI_VVV0UU   6, { V_8,V_12,V_16,U8_24,U4_32,0 }    /* e.g. verim */
    467  1.7  christos #define INSTR_VRI_VVV0UU2  6, { V_8,V_12,V_16,U8_28,U4_24,0 }    /* e.g. vap   */
    468  1.5  christos #define INSTR_VRI_VVV0U    6, { V_8,V_12,V_16,U8_24,0,0 }        /* e.g. verimb*/
    469  1.5  christos #define INSTR_VRI_VVUUU    6, { V_8,V_12,U12_16,U4_32,U4_28,0 }  /* e.g. vftci */
    470  1.7  christos #define INSTR_VRI_VVUUU2   6, { V_8,V_12,U8_28,U8_16,U4_24,0 }   /* e.g. vpsop */
    471  1.7  christos #define INSTR_VRI_VR0UU    6, { V_8,R_12,U8_28,U4_24,0,0 }       /* e.g. vcvd  */
    472  1.5  christos #define INSTR_VRX_VRRD     6, { V_8,D_20,X_12,B_16,0,0 }         /* e.g. vl    */
    473  1.5  christos #define INSTR_VRX_VV       6, { V_8,V_12,0,0,0,0 }               /* e.g. vlr   */
    474  1.7  christos #define INSTR_VRX_VRRDU    6, { V_8,D_20,X_12,B_16,U4_32,0 }     /* e.g. vlrep */
    475  1.5  christos #define INSTR_VRS_RVRDU    6, { R_8,V_12,D_20,B_16,U4_32,0 }     /* e.g. vlgv  */
    476  1.5  christos #define INSTR_VRS_RVRD     6, { R_8,V_12,D_20,B_16,0,0 }         /* e.g. vlgvb */
    477  1.5  christos #define INSTR_VRS_VVRDU    6, { V_8,V_12,D_20,B_16,U4_32,0 }     /* e.g. verll */
    478  1.5  christos #define INSTR_VRS_VVRD     6, { V_8,V_12,D_20,B_16,0,0 }         /* e.g. vlm   */
    479  1.5  christos #define INSTR_VRS_VRRDU    6, { V_8,R_12,D_20,B_16,U4_32,0 }     /* e.g. vlvg  */
    480  1.5  christos #define INSTR_VRS_VRRD     6, { V_8,R_12,D_20,B_16,0,0 }         /* e.g. vlvgb */
    481  1.7  christos #define INSTR_VRS_RRDV     6, { V_32,R_12,D_20,B_16,0,0 }        /* e.g. vlrlr */
    482  1.7  christos #define INSTR_VRR_0V       6, { V_12,0,0,0,0,0 }                 /* e.g. vtp   */
    483  1.5  christos #define INSTR_VRR_VRR      6, { V_8,R_12,R_16,0,0,0 }            /* e.g. vlvgp */
    484  1.5  christos #define INSTR_VRR_VVV0U    6, { V_8,V_12,V_16,U4_32,0,0 }        /* e.g. vmrh  */
    485  1.5  christos #define INSTR_VRR_VVV0U0   6, { V_8,V_12,V_16,U4_24,0,0 }        /* e.g. vfaeb */
    486  1.5  christos #define INSTR_VRR_VVV0U1   6, { V_8,V_12,V_16,U4_OR1_24,0,0 }    /* e.g. vfaebs*/
    487  1.5  christos #define INSTR_VRR_VVV0U2   6, { V_8,V_12,V_16,U4_OR2_24,0,0 }    /* e.g. vfaezb*/
    488  1.5  christos #define INSTR_VRR_VVV0U3   6, { V_8,V_12,V_16,U4_OR3_24,0,0 }    /* e.g. vfaezbs*/
    489  1.5  christos #define INSTR_VRR_VVV      6, { V_8,V_12,V_16,0,0,0 }            /* e.g. vmrhb */
    490  1.5  christos #define INSTR_VRR_VVV2     6, { V_8,V_CP16_12,0,0,0,0 }          /* e.g. vnot  */
    491  1.5  christos #define INSTR_VRR_VV0U     6, { V_8,V_12,U4_32,0,0,0 }           /* e.g. vseg  */
    492  1.5  christos #define INSTR_VRR_VV0U2    6, { V_8,V_12,U4_24,0,0,0 }           /* e.g. vistrb*/
    493  1.5  christos #define INSTR_VRR_VV0UU    6, { V_8,V_12,U4_28,U4_24,0,0 }       /* e.g. vcdgb */
    494  1.5  christos #define INSTR_VRR_VV0UU2   6, { V_8,V_12,U4_32,U4_28,0,0 }       /* e.g. wfc */
    495  1.5  christos #define INSTR_VRR_VV0UU8   6, { V_8,V_12,U4_OR8_28,U4_24,0,0 }   /* e.g. wcdgb */
    496  1.5  christos #define INSTR_VRR_VV       6, { V_8,V_12,0,0,0,0 }               /* e.g. vsegb */
    497  1.5  christos #define INSTR_VRR_VVVUU0V  6, { V_8,V_12,V_16,V_32,U4_20,U4_24 } /* e.g. vstrc */
    498  1.5  christos #define INSTR_VRR_VVVU0V   6, { V_8,V_12,V_16,V_32,U4_20,0 }     /* e.g. vac   */
    499  1.5  christos #define INSTR_VRR_VVVU0VB  6, { V_8,V_12,V_16,V_32,U4_24,0 }     /* e.g. vstrcb*/
    500  1.5  christos #define INSTR_VRR_VVVU0VB1 6, { V_8,V_12,V_16,V_32,U4_OR1_24,0 } /* e.g. vstrcbs*/
    501  1.5  christos #define INSTR_VRR_VVVU0VB2 6, { V_8,V_12,V_16,V_32,U4_OR2_24,0 } /* e.g. vstrczb*/
    502  1.5  christos #define INSTR_VRR_VVVU0VB3 6, { V_8,V_12,V_16,V_32,U4_OR3_24,0 } /* e.g. vstrczbs*/
    503  1.5  christos #define INSTR_VRR_VVV0V    6, { V_8,V_12,V_16,V_32,0,0 }         /* e.g. vacq  */
    504  1.5  christos #define INSTR_VRR_VVV0U0U  6, { V_8,V_12,V_16,U4_32,U4_24,0 }    /* e.g. vfae  */
    505  1.5  christos #define INSTR_VRR_VVVV     6, { V_8,V_12,V_16,V_32,0,0 }         /* e.g. vfmadb*/
    506  1.5  christos #define INSTR_VRR_VVV0UUU  6, { V_8,V_12,V_16,U4_32,U4_28,U4_24 }/* e.g. vfch  */
    507  1.5  christos #define INSTR_VRR_VVV0UU   6, { V_8,V_12,V_16,U4_32,U4_28,0 }    /* e.g. vfa   */
    508  1.5  christos #define INSTR_VRR_VV0UUU   6, { V_8,V_12,U4_32,U4_28,U4_24,0 }   /* e.g. vcdg  */
    509  1.5  christos #define INSTR_VRR_VVVU0UV  6, { V_8,V_12,V_16,V_32,U4_28,U4_20 } /* e.g. vfma  */
    510  1.5  christos #define INSTR_VRR_VV0U0U   6, { V_8,V_12,U4_32,U4_24,0,0 }       /* e.g. vistr */
    511  1.7  christos #define INSTR_VRR_0VV0U    6, { V_12,V_16,U4_24,0,0,0 }          /* e.g. vcp   */
    512  1.7  christos #define INSTR_VRR_RV0U     6, { R_8,V_12,U4_24,0,0,0 }           /* e.g. vcvb  */
    513  1.7  christos #define INSTR_VSI_URDV     6, { V_32,D_20,B_16,U8_8,0,0 }        /* e.g. vlrl  */
    514  1.5  christos 
    515  1.5  christos #define MASK_E            { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    516  1.5  christos #define MASK_IE_UU        { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    517  1.5  christos #define MASK_MII_UPP      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    518  1.5  christos #define MASK_RIE_RRP      { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    519  1.5  christos #define MASK_RIE_RRPU     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    520  1.5  christos #define MASK_RIE_RRP0     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    521  1.5  christos #define MASK_RIE_RRI0     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    522  1.5  christos #define MASK_RIE_RUPI     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    523  1.6  christos #define MASK_RIE_R0PI     { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    524  1.5  christos #define MASK_RIE_RUPU     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    525  1.6  christos #define MASK_RIE_R0PU     { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    526  1.5  christos #define MASK_RIE_R0IU     { 0xff, 0x0f, 0x00, 0x00, 0x0f, 0xff }
    527  1.5  christos #define MASK_RIE_R0I0     { 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff }
    528  1.5  christos #define MASK_RIE_R0UU     { 0xff, 0x0f, 0x00, 0x00, 0x0f, 0xff }
    529  1.5  christos #define MASK_RIE_R0U0     { 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff }
    530  1.5  christos #define MASK_RIE_RUI0     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    531  1.5  christos #define MASK_RIE_RRUUU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    532  1.5  christos #define MASK_RIL_0P       { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    533  1.5  christos #define MASK_RIL_RP       { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    534  1.5  christos #define MASK_RIL_UP       { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    535  1.5  christos #define MASK_RIL_RI       { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    536  1.5  christos #define MASK_RIL_RU       { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    537  1.5  christos #define MASK_RI_0P        { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    538  1.5  christos #define MASK_RI_RI        { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    539  1.5  christos #define MASK_RI_RP        { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    540  1.5  christos #define MASK_RI_RU        { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    541  1.5  christos #define MASK_RI_UP        { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    542  1.5  christos #define MASK_RIS_RURDI    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    543  1.5  christos #define MASK_RIS_R0RDI    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    544  1.5  christos #define MASK_RIS_RURDU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    545  1.5  christos #define MASK_RIS_R0RDU    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    546  1.5  christos #define MASK_RRE_00       { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 }
    547  1.5  christos #define MASK_RRE_0R       { 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00 }
    548  1.5  christos #define MASK_RRE_AA       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    549  1.5  christos #define MASK_RRE_AR       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    550  1.5  christos #define MASK_RRE_F0       { 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00 }
    551  1.5  christos #define MASK_RRE_FE0      { 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00 }
    552  1.5  christos #define MASK_RRE_FF       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    553  1.5  christos #define MASK_RRE_FEF      { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    554  1.5  christos #define MASK_RRE_FFE      { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    555  1.5  christos #define MASK_RRE_FEFE     { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    556  1.5  christos #define MASK_RRE_R0       { 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00 }
    557  1.5  christos #define MASK_RRE_RA       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    558  1.5  christos #define MASK_RRE_RF       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    559  1.5  christos #define MASK_RRE_RFE      { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    560  1.5  christos #define MASK_RRE_RR       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    561  1.5  christos #define MASK_RRE_RER      { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    562  1.5  christos #define MASK_RRE_RERE     { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    563  1.5  christos #define MASK_RRE_FR       { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    564  1.5  christos #define MASK_RRE_FER      { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    565  1.5  christos #define MASK_RRF_F0FF     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    566  1.5  christos #define MASK_RRF_FE0FF    { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    567  1.5  christos #define MASK_RRF_F0FF2    { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    568  1.5  christos #define MASK_RRF_F0FR     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    569  1.5  christos #define MASK_RRF_FE0FER   { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    570  1.5  christos #define MASK_RRF_FUFF     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    571  1.5  christos #define MASK_RRF_FEUFEFE  { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    572  1.5  christos #define MASK_RRF_FUFF2    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    573  1.1  christos #define MASK_RRF_FEUFEFE2 { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    574  1.5  christos #define MASK_RRF_RURR     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    575  1.5  christos #define MASK_RRF_RURR2    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    576  1.5  christos #define MASK_RRF_R0RR     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    577  1.5  christos #define MASK_RRF_R0RR2    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    578  1.5  christos #define MASK_RRF_U0FF     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    579  1.5  christos #define MASK_RRF_U0FEFE   { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    580  1.5  christos #define MASK_RRF_U0RF     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    581  1.5  christos #define MASK_RRF_U0RFE    { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    582  1.5  christos #define MASK_RRF_UUFF     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    583  1.5  christos #define MASK_RRF_UUFFE    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    584  1.5  christos #define MASK_RRF_UUFEFE   { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    585  1.5  christos #define MASK_RRF_0UFF     { 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00 }
    586  1.5  christos #define MASK_RRF_0UFEF    { 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00 }
    587  1.5  christos #define MASK_RRF_FFRU     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    588  1.5  christos #define MASK_RRF_FEFERU   { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    589  1.5  christos #define MASK_RRF_U0RR     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    590  1.5  christos #define MASK_RRF_U0RER    { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    591  1.5  christos #define MASK_RRF_U0RERE   { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    592  1.5  christos #define MASK_RRF_00RR     { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 }
    593  1.5  christos #define MASK_RRF_UUFR     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    594  1.5  christos #define MASK_RRF_UUFER    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    595  1.5  christos #define MASK_RRF_UURF     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    596  1.5  christos #define MASK_RRF_UURFE    { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    597  1.5  christos #define MASK_RR_0R        { 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00 }
    598  1.5  christos #define MASK_RR_FF        { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    599  1.5  christos #define MASK_RR_FEF       { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    600  1.5  christos #define MASK_RR_FFE       { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    601  1.5  christos #define MASK_RR_FEFE      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    602  1.5  christos #define MASK_RR_R0        { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    603  1.5  christos #define MASK_RR_RR        { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    604  1.5  christos #define MASK_RR_RER       { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    605  1.5  christos #define MASK_RR_U0        { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    606  1.5  christos #define MASK_RR_UR        { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    607  1.5  christos #define MASK_RRR_F0FF     { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    608  1.5  christos #define MASK_RRR_FE0FEFE  { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 }
    609  1.5  christos #define MASK_RRS_RRRDU    { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    610  1.5  christos #define MASK_RRS_RRRD0    { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    611  1.5  christos #define MASK_RSE_RRRD     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    612  1.5  christos #define MASK_RSE_RERERD   { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    613  1.5  christos #define MASK_RSE_CCRD     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    614  1.5  christos #define MASK_RSE_RURD     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    615  1.5  christos #define MASK_RSL_R0RD     { 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff }
    616  1.5  christos #define MASK_RSL_LRDFU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    617  1.5  christos #define MASK_RSL_LRDFEU   { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    618  1.5  christos #define MASK_RSI_RRP      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    619  1.5  christos #define MASK_RS_AARD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    620  1.5  christos #define MASK_RS_CCRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    621  1.5  christos #define MASK_RS_R0RD      { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    622  1.5  christos #define MASK_RS_RE0RD     { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    623  1.5  christos #define MASK_RS_RRRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    624  1.5  christos #define MASK_RS_RERERD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    625  1.5  christos #define MASK_RS_RURD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    626  1.5  christos #define MASK_RSY_RRRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    627  1.5  christos #define MASK_RSY_RERERD   { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    628  1.5  christos #define MASK_RSY_RURD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    629  1.5  christos #define MASK_RSY_RURD2    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    630  1.5  christos #define MASK_RSY_R0RD     { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    631  1.5  christos #define MASK_RSY_AARD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    632  1.5  christos #define MASK_RSY_CCRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    633  1.5  christos #define MASK_RXE_FRRD     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    634  1.5  christos #define MASK_RXE_FERRD    { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    635  1.5  christos #define MASK_RXE_RRRD     { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    636  1.5  christos #define MASK_RXE_RRRDU    { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    637  1.5  christos #define MASK_RXE_RERRD    { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
    638  1.5  christos #define MASK_RXF_FRRDF    { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    639  1.5  christos #define MASK_RXF_FRRDFE   { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    640  1.5  christos #define MASK_RXF_FERRDFE  { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    641  1.5  christos #define MASK_RXF_RRRDR    { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
    642  1.5  christos #define MASK_RXY_RRRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    643  1.5  christos #define MASK_RXY_RERRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    644  1.5  christos #define MASK_RXY_FRRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    645  1.5  christos #define MASK_RXY_URRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    646  1.7  christos #define MASK_RXY_0RRD     { 0xff, 0xf0, 0x00, 0x00, 0x00, 0xff }
    647  1.5  christos #define MASK_RX_0RRD      { 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00 }
    648  1.5  christos #define MASK_RX_FRRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    649  1.5  christos #define MASK_RX_FERRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    650  1.5  christos #define MASK_RX_RRRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    651  1.5  christos #define MASK_RX_RERRD     { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    652  1.5  christos #define MASK_RX_URRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    653  1.5  christos #define MASK_SI_URD       { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    654  1.5  christos #define MASK_SIY_URD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    655  1.5  christos #define MASK_SIY_IRD      { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    656  1.5  christos #define MASK_SIL_RDI      { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    657  1.5  christos #define MASK_SIL_RDU      { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    658  1.5  christos #define MASK_SMI_U0RDP    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    659  1.5  christos #define MASK_SSE_RDRD     { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    660  1.5  christos #define MASK_SS_L0RDRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    661  1.5  christos #define MASK_SS_L2RDRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    662  1.5  christos #define MASK_SS_LIRDRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    663  1.5  christos #define MASK_SS_LLRDRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    664  1.5  christos #define MASK_SS_RRRDRD    { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    665  1.5  christos #define MASK_SS_RRRDRD2   { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    666  1.5  christos #define MASK_SS_RRRDRD3   { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }
    667  1.5  christos #define MASK_SSF_RRDRD    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    668  1.5  christos #define MASK_SSF_RERDRD2  { 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00 }
    669  1.5  christos #define MASK_S_00         { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 }
    670  1.5  christos #define MASK_S_RD         { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }
    671  1.5  christos #define MASK_VRV_VVXRDU   { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    672  1.5  christos #define MASK_VRI_V0U      { 0xff, 0x0f, 0x00, 0x00, 0xf0, 0xff }
    673  1.5  christos #define MASK_VRI_V        { 0xff, 0x0f, 0xff, 0xff, 0xf0, 0xff }
    674  1.5  christos #define MASK_VRI_V0UUU    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    675  1.5  christos #define MASK_VRI_V0UU     { 0xff, 0x0f, 0x00, 0x00, 0xf0, 0xff }
    676  1.7  christos #define MASK_VRI_V0UU2    { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    677  1.5  christos #define MASK_VRI_VVUU     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    678  1.5  christos #define MASK_VRI_VVU      { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    679  1.5  christos #define MASK_VRI_VVU2     { 0xff, 0x00, 0x00, 0x0f, 0xf0, 0xff }
    680  1.5  christos #define MASK_VRI_V0IU     { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
    681  1.5  christos #define MASK_VRI_V0I      { 0xff, 0x0f, 0x00, 0x00, 0xf0, 0xff }
    682  1.5  christos #define MASK_VRI_VVV0UU   { 0xff, 0x00, 0x0f, 0x00, 0x00, 0xff }
    683  1.7  christos #define MASK_VRI_VVV0UU2  { 0xff, 0x00, 0x0f, 0x00, 0x00, 0xff }
    684  1.5  christos #define MASK_VRI_VVV0U    { 0xff, 0x00, 0x0f, 0x00, 0xf0, 0xff }
    685  1.5  christos #define MASK_VRI_VVUUU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    686  1.7  christos #define MASK_VRI_VVUUU2   { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    687  1.7  christos #define MASK_VRI_VR0UU    { 0xff, 0x00, 0xff, 0x00, 0x00, 0xff }
    688  1.5  christos #define MASK_VRX_VRRD     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    689  1.5  christos #define MASK_VRX_VV       { 0xff, 0x00, 0xff, 0xff, 0xf0, 0xff }
    690  1.5  christos #define MASK_VRX_VRRDU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    691  1.5  christos #define MASK_VRS_RVRDU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    692  1.5  christos #define MASK_VRS_RVRD     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    693  1.5  christos #define MASK_VRS_VVRDU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    694  1.5  christos #define MASK_VRS_VVRD     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    695  1.5  christos #define MASK_VRS_VRRDU    { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    696  1.5  christos #define MASK_VRS_VRRD     { 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff }
    697  1.7  christos #define MASK_VRS_RRDV     { 0xff, 0xf0, 0x00, 0x00, 0x00, 0xff }
    698  1.7  christos #define MASK_VRR_0V       { 0xff, 0xf0, 0xff, 0xff, 0xf0, 0xff }
    699  1.5  christos #define MASK_VRR_VRR      { 0xff, 0x00, 0x0f, 0xff, 0xf0, 0xff }
    700  1.5  christos #define MASK_VRR_VVV0U    { 0xff, 0x00, 0x0f, 0xff, 0x00, 0xff }
    701  1.5  christos #define MASK_VRR_VVV0U0   { 0xff, 0x00, 0x0f, 0x0f, 0xf0, 0xff }
    702  1.5  christos #define MASK_VRR_VVV0U1   { 0xff, 0x00, 0x0f, 0x1f, 0xf0, 0xff }
    703  1.5  christos #define MASK_VRR_VVV0U2   { 0xff, 0x00, 0x0f, 0x2f, 0xf0, 0xff }
    704  1.5  christos #define MASK_VRR_VVV0U3   { 0xff, 0x00, 0x0f, 0x3f, 0xf0, 0xff }
    705  1.5  christos #define MASK_VRR_VVV      { 0xff, 0x00, 0x0f, 0xff, 0xf0, 0xff }
    706  1.5  christos #define MASK_VRR_VVV2     { 0xff, 0x00, 0x0f, 0xff, 0xf0, 0xff }
    707  1.5  christos #define MASK_VRR_VVV0V    { 0xff, 0x00, 0x0f, 0xff, 0x00, 0xff }
    708  1.5  christos #define MASK_VRR_VV0U     { 0xff, 0x00, 0xff, 0xff, 0x00, 0xff }
    709  1.5  christos #define MASK_VRR_VV0U2    { 0xff, 0x00, 0xff, 0x0f, 0xf0, 0xff }
    710  1.5  christos #define MASK_VRR_VV0UU    { 0xff, 0x00, 0xff, 0x00, 0xf0, 0xff }
    711  1.5  christos #define MASK_VRR_VV0UU2   { 0xff, 0x00, 0xff, 0xf0, 0x00, 0xff }
    712  1.5  christos #define MASK_VRR_VV0UU8   { 0xff, 0x00, 0xff, 0x08, 0xf0, 0xff }
    713  1.5  christos #define MASK_VRR_VV       { 0xff, 0x00, 0xff, 0xff, 0xf0, 0xff }
    714  1.5  christos #define MASK_VRR_VVVUU0V  { 0xff, 0x00, 0x00, 0x0f, 0x00, 0xff }
    715  1.5  christos #define MASK_VRR_VVVU0V   { 0xff, 0x00, 0x00, 0xff, 0x00, 0xff }
    716  1.5  christos #define MASK_VRR_VVVU0VB  { 0xff, 0x00, 0x0f, 0x0f, 0x00, 0xff }
    717  1.5  christos #define MASK_VRR_VVVU0VB1 { 0xff, 0x00, 0x0f, 0x1f, 0x00, 0xff }
    718  1.5  christos #define MASK_VRR_VVVU0VB2 { 0xff, 0x00, 0x0f, 0x2f, 0x00, 0xff }
    719  1.5  christos #define MASK_VRR_VVVU0VB3 { 0xff, 0x00, 0x0f, 0x3f, 0x00, 0xff }
    720  1.5  christos #define MASK_VRR_VVV0U0U  { 0xff, 0x00, 0x0f, 0x0f, 0x00, 0xff }
    721  1.5  christos #define MASK_VRR_VVVV     { 0xff, 0x00, 0x0f, 0xff, 0x00, 0xff }
    722  1.5  christos #define MASK_VRR_VVV0UUU  { 0xff, 0x00, 0x0f, 0x00, 0x00, 0xff }
    723  1.5  christos #define MASK_VRR_VVV0UU   { 0xff, 0x00, 0x0f, 0xf0, 0x00, 0xff }
    724  1.5  christos #define MASK_VRR_VV0UUU   { 0xff, 0x00, 0xff, 0x00, 0x00, 0xff }
    725  1.5  christos #define MASK_VRR_VVVU0UV  { 0xff, 0x00, 0x00, 0xf0, 0x00, 0xff }
    726  1.5  christos #define MASK_VRR_VV0U0U   { 0xff, 0x00, 0xff, 0x0f, 0x00, 0xff }
    727  1.7  christos #define MASK_VRR_0VV0U    { 0xff, 0xf0, 0x0f, 0x0f, 0xf0, 0xff }
    728  1.7  christos #define MASK_VRR_RV0U     { 0xff, 0x00, 0xff, 0x0f, 0xf0, 0xff }
    729  1.7  christos #define MASK_VSI_URDV     { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
    730  1.7  christos 
    731  1.1  christos 
    732  1.1  christos /* The opcode formats table (blueprints for .insn pseudo mnemonic).  */
    733  1.1  christos 
    734  1.1  christos const struct s390_opcode s390_opformats[] =
    735  1.1  christos   {
    736  1.7  christos   { "e",    OP8(0x00LL), MASK_E,	   INSTR_E,	      3,  0 ,0 },
    737  1.7  christos   { "ri",   OP8(0x00LL), MASK_RI_RI,	   INSTR_RI_RI,	      3,  0 ,0 },
    738  1.7  christos   { "rie",  OP8(0x00LL), MASK_RIE_RRP,	   INSTR_RIE_RRP,     3,  0 ,0 },
    739  1.7  christos   { "ril",  OP8(0x00LL), MASK_RIL_RP,	   INSTR_RIL_RP,      3,  0 ,0 },
    740  1.7  christos   { "rilu", OP8(0x00LL), MASK_RIL_RU,	   INSTR_RIL_RU,      3,  0 ,0 },
    741  1.7  christos   { "ris",  OP8(0x00LL), MASK_RIS_RURDI,   INSTR_RIS_RURDI,   3,  6 ,0 },
    742  1.7  christos   { "rr",   OP8(0x00LL), MASK_RR_RR,	   INSTR_RR_RR,       3,  0 ,0 },
    743  1.7  christos   { "rre",  OP8(0x00LL), MASK_RRE_RR,	   INSTR_RRE_RR,      3,  0 ,0 },
    744  1.7  christos   { "rrf",  OP8(0x00LL), MASK_RRF_RURR,	   INSTR_RRF_RURR,    3,  0 ,0 },
    745  1.7  christos   { "rrs",  OP8(0x00LL), MASK_RRS_RRRDU,   INSTR_RRS_RRRDU,   3,  6 ,0 },
    746  1.7  christos   { "rs",   OP8(0x00LL), MASK_RS_RRRD,	   INSTR_RS_RRRD,     3,  0 ,0 },
    747  1.7  christos   { "rse",  OP8(0x00LL), MASK_RSE_RRRD,	   INSTR_RSE_RRRD,    3,  0 ,0 },
    748  1.7  christos   { "rsi",  OP8(0x00LL), MASK_RSI_RRP,	   INSTR_RSI_RRP,     3,  0 ,0 },
    749  1.7  christos   { "rsy",  OP8(0x00LL), MASK_RSY_RRRD,	   INSTR_RSY_RRRD,    3,  3 ,0 },
    750  1.7  christos   { "rx",   OP8(0x00LL), MASK_RX_RRRD,	   INSTR_RX_RRRD,     3,  0 ,0 },
    751  1.7  christos   { "rxe",  OP8(0x00LL), MASK_RXE_RRRD,	   INSTR_RXE_RRRD,    3,  0 ,0 },
    752  1.7  christos   { "rxf",  OP8(0x00LL), MASK_RXF_RRRDR,   INSTR_RXF_RRRDR,   3,  0 ,0 },
    753  1.7  christos   { "rxy",  OP8(0x00LL), MASK_RXY_RRRD,	   INSTR_RXY_RRRD,    3,  3 ,0 },
    754  1.7  christos   { "s",    OP8(0x00LL), MASK_S_RD,	   INSTR_S_RD,	      3,  0 ,0 },
    755  1.7  christos   { "si",   OP8(0x00LL), MASK_SI_URD,	   INSTR_SI_URD,      3,  0 ,0 },
    756  1.7  christos   { "siy",  OP8(0x00LL), MASK_SIY_URD,	   INSTR_SIY_URD,     3,  3 ,0 },
    757  1.7  christos   { "sil",  OP8(0x00LL), MASK_SIL_RDI,     INSTR_SIL_RDI,     3,  6 ,0 },
    758  1.7  christos   { "ss",   OP8(0x00LL), MASK_SS_RRRDRD,   INSTR_SS_RRRDRD,   3,  0 ,0 },
    759  1.7  christos   { "sse",  OP8(0x00LL), MASK_SSE_RDRD,	   INSTR_SSE_RDRD,    3,  0 ,0 },
    760  1.7  christos   { "ssf",  OP8(0x00LL), MASK_SSF_RRDRD,   INSTR_SSF_RRDRD,   3,  0 ,0 },
    761  1.7  christos   { "vrv",  OP8(0x00LL), MASK_VRV_VVXRDU,  INSTR_VRV_VVXRDU,  3,  9 ,0 },
    762  1.7  christos   { "vri",  OP8(0x00LL), MASK_VRI_VVUUU,   INSTR_VRI_VVUUU,   3,  9 ,0 },
    763  1.7  christos   { "vrx",  OP8(0x00LL), MASK_VRX_VRRDU,   INSTR_VRX_VRRDU,   3,  9 ,0 },
    764  1.7  christos   { "vrs",  OP8(0x00LL), MASK_VRS_RVRDU,   INSTR_VRS_RVRDU,   3,  9 ,0 },
    765  1.7  christos   { "vrr",  OP8(0x00LL), MASK_VRR_VVV0UUU, INSTR_VRR_VVV0UUU, 3,  9 ,0 },
    766  1.7  christos   { "vsi",  OP8(0x00LL), MASK_VSI_URDV,	   INSTR_VSI_URDV,    3, 10 ,0 },
    767  1.1  christos };
    768  1.1  christos 
    769  1.1  christos const int s390_num_opformats =
    770  1.1  christos   sizeof (s390_opformats) / sizeof (s390_opformats[0]);
    771  1.1  christos 
    772  1.1  christos #include "s390-opc.tab"
    773