From 4c664d7bf7005e368a8ee5183ee018924acf0f9b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 23 Feb 2009 20:41:46 +0000 Subject: gas/ 2009-02-23 H.J. Lu * config/tc-i386.c (vex_imm4): Removed. (VEX_check_operands): Likewise. (match_template): Updated. opcodes/ 2009-02-23 H.J. Lu * i386-gen.c (operand_type_init): Remove OPERAND_TYPE_VEX_IMM4. (operand_types): Remove Vex_Imm4. * i386-opc.h (Vex_Imm4): Removed. (OTMax): Updated. (i386_operand_type): Remove vex_imm4. * i386-opc.tbl: Remove Vex_Imm4 comments. * i386-init.h: Regenerated. * i386-tbl.h: Likewise. --- gas/ChangeLog | 6 ++++++ gas/config/tc-i386.c | 28 ---------------------------- 2 files changed, 6 insertions(+), 28 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index b0b54b7..af97f65 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2009-02-23 H.J. Lu + + * config/tc-i386.c (vex_imm4): Removed. + (VEX_check_operands): Likewise. + (match_template): Updated. + 2009-02-23 Martin Schwidefsky * doc/all.texi: Set S390. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 9b6af4e..486c734 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1398,7 +1398,6 @@ static const i386_operand_type imm64 = OPERAND_TYPE_IMM64; static const i386_operand_type imm16_32 = OPERAND_TYPE_IMM16_32; static const i386_operand_type imm16_32s = OPERAND_TYPE_IMM16_32S; static const i386_operand_type imm16_32_32s = OPERAND_TYPE_IMM16_32_32S; -static const i386_operand_type vex_imm4 = OPERAND_TYPE_VEX_IMM4; enum operand_type { @@ -3572,29 +3571,6 @@ optimize_disp (void) } } -/* Check if operands are valid for the instrucrtion. Update VEX - operand types. */ - -static int -VEX_check_operands (const template *t) -{ - if (!t->opcode_modifier.vex) - return 0; - - /* Only check VEX_Imm4, which must be the first operand. */ - if (t->operand_types[0].bitfield.vex_imm4) - { - if (i.op[0].imms->X_op != O_constant - || !fits_in_imm4 (i.op[0].imms->X_add_number)) - return 1; - - /* Turn off Imm8 so that update_imm won't complain. */ - i.types[0] = vex_imm4; - } - - return 0; -} - static const template * match_template (void) { @@ -3899,10 +3875,6 @@ check_reverse: continue; } - /* Check if VEX operands are valid. */ - if (VEX_check_operands (t)) - continue; - /* We've found a match; break out of loop. */ break; } -- cgit v1.1