aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-02-23 20:41:46 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-02-23 20:41:46 +0000
commit4c664d7bf7005e368a8ee5183ee018924acf0f9b (patch)
tree5b377fb8113b8cfcf72182124ceb80c2b1418269 /gas
parent7bcbeb0f1cba175ad4b8b3990fd1a0e81a4dcefd (diff)
downloadgdb-4c664d7bf7005e368a8ee5183ee018924acf0f9b.zip
gdb-4c664d7bf7005e368a8ee5183ee018924acf0f9b.tar.gz
gdb-4c664d7bf7005e368a8ee5183ee018924acf0f9b.tar.bz2
gas/
2009-02-23 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (vex_imm4): Removed. (VEX_check_operands): Likewise. (match_template): Updated. opcodes/ 2009-02-23 H.J. Lu <hongjiu.lu@intel.com> * 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.
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;
}