Set the first 3byte VEX prefix individually.
[external/binutils.git] / gas / config / tc-i386.c
index 2529c54..7f5ced7 100644 (file)
@@ -2749,18 +2749,20 @@ build_vex_prefix (const insn_template *t)
       unsigned int m, w;
 
       i.vex.length = 3;
-      i.vex.bytes[0] = 0xc4;
 
       switch (i.tm.opcode_modifier.vexopcode)
        {
        case VEX0F:
          m = 0x1;
+         i.vex.bytes[0] = 0xc4;
          break;
        case VEX0F38:
          m = 0x2;
+         i.vex.bytes[0] = 0xc4;
          break;
        case VEX0F3A:
          m = 0x3;
+         i.vex.bytes[0] = 0xc4;
          break;
        case XOP08:
          m = 0x8;