From e3c58833bf3e173b040ae267d6ee060cee9c4ba5 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 15 Dec 2009 16:36:59 +0000 Subject: [PATCH] Define VEX128 and VEX256. gas/ 2009-12-15 H.J. Lu * config/tc-i386.c (build_vex_prefix): Use VEX256. opcodes/ 2009-12-15 H.J. Lu * i386-opc.h (VEX128): New. (VEX256): Likewise. --- gas/ChangeLog | 4 ++++ gas/config/tc-i386.c | 2 +- opcodes/ChangeLog | 5 +++++ opcodes/i386-opc.h | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 330787a5945..1bc25c8bd7c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-12-15 H.J. Lu + + * config/tc-i386.c (build_vex_prefix): Use VEX256. + 2009-12-14 Yoshinori Sato PR gas/11086 diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index efdd8c242d1..1b96a5ff3ba 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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) { diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9ede42916ae..653ae2576fa 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2009-12-15 H.J. Lu + + * i386-opc.h (VEX128): New. + (VEX256): Likewise. + 2009-12-14 H.J. Lu * i386-dis.c (vex_len_table): Reformat. diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index a8f3fd2229b..3b0f2c6bc1b 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -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 -- 2.30.2