Define VEX128 and VEX256.
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Dec 2009 16:36:59 +0000 (16:36 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Dec 2009 16:36:59 +0000 (16:36 +0000)
gas/

2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_vex_prefix): Use VEX256.

opcodes/

2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (VEX128): New.
(VEX256): Likewise.

gas/ChangeLog
gas/config/tc-i386.c
opcodes/ChangeLog
opcodes/i386-opc.h

index 330787a5945ec233e90c698e365fbdc9e2d179fd..1bc25c8bd7c64ac8e720b129e0aebcea47124115 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386.c (build_vex_prefix): Use VEX256.
+
 2009-12-14  Yoshinori Sato  <ysato@users.sourceforge.jp>
 
        PR gas/11086
index efdd8c242d100d1b812f1290f0486f46a438ea32..1b96a5ff3ba99c537b16fa8a6fa74f615f0202fb 100644 (file)
@@ -2701,7 +2701,7 @@ build_vex_prefix (const insn_template *t)
       i.tm = t[1];
     }
 
-  vector_length = i.tm.opcode_modifier.vex == 2 ? 1 : 0;
+  vector_length = i.tm.opcode_modifier.vex == VEX256 ? 1 : 0;
 
   switch ((i.tm.base_opcode >> 8) & 0xff)
     {
index 9ede42916ae9ff6a89041798382946ba0a25cae1..653ae2576fa3e941d93421cd190930bb690b6dd5 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-opc.h (VEX128): New.
+       (VEX256): Likewise.
+
 2009-12-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-dis.c (vex_len_table): Reformat.
index a8f3fd2229b83ec236f6378f29d3fb4d1ee73710..3b0f2c6bc1bf67389c12875beb9f0b41abfe81e5 100644 (file)
@@ -274,6 +274,8 @@ enum
        1: 128bit VEX prefix.
        2: 256bit VEX prefix.
    */
+#define VEX128 1
+#define VEX256 2
   Vex,
   /* insn has VEX NDS. Register-only source is encoded in Vex prefix.
      We use VexNDS on insns with VEX DDS since the register-only source
This page took 0.033021 seconds and 4 git commands to generate.