aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-i386.c28
2 files changed, 6 insertions, 28 deletions
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 <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (vex_imm4): Removed.
+ (VEX_check_operands): Likewise.
+ (match_template): Updated.
+
2009-02-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
* 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;
}