+2017-02-23  Jan Beulich  <jbeulich@suse.com>
+
+       * i386-dis.c (get_valid_dis386): Don't special case VEX opcode
+       82. For 3-byte VEX only special case opcode 77 in VEX_0F space.
+
 2017-02-21  Jan Beulich  <jbeulich@suse.com>
 
        * aarch64-asm.c (convert_bfc_to_bfm): Copy operand 0 to operand
 
       vindex = *codep++;
       dp = &vex_table[vex_table_index][vindex];
       end_codep = codep;
-      /* There is no MODRM byte for VEX [82|77].  */
-      if (vindex != 0x77 && vindex != 0x82)
+      /* There is no MODRM byte for VEX0F 77.  */
+      if (vex_table_index != VEX_0F || vindex != 0x77)
        {
          FETCH_DATA (info, codep + 1);
          modrm.mod = (*codep >> 6) & 3;
       vindex = *codep++;
       dp = &vex_table[dp->op[1].bytemode][vindex];
       end_codep = codep;
-      /* There is no MODRM byte for VEX [82|77].  */
-      if (vindex != 0x77 && vindex != 0x82)
+      /* There is no MODRM byte for VEX 77.  */
+      if (vindex != 0x77)
        {
          FETCH_DATA (info, codep + 1);
          modrm.mod = (*codep >> 6) & 3;