From 38e314eb064ae94318deaa9544c2da3f46f5d319 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 8 Mar 2018 08:34:09 +0100 Subject: x86: drop FloatD It can be expressed by D, when making the consumer look at operand size to tell apart both uses. --- gas/config/tc-i386.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 3a21a35..16f1174 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2027,7 +2027,7 @@ operand_size_match (const insn_template *t) if (match) return match; - else if (!t->opcode_modifier.d && !t->opcode_modifier.floatd) + else if (!t->opcode_modifier.d) { mismatch: i.error = operand_size_mismatch; @@ -5446,7 +5446,7 @@ match_template (char mnem_suffix) operand_types[1]))) { /* Check if other direction is valid ... */ - if (!t->opcode_modifier.d && !t->opcode_modifier.floatd) + if (!t->opcode_modifier.d) continue; check_reverse: @@ -5464,14 +5464,14 @@ check_reverse: /* Does not match either direction. */ continue; } - /* found_reverse_match holds which of D or FloatDR + /* found_reverse_match holds which of D or FloatR we've found. */ - if (t->opcode_modifier.d) - found_reverse_match = Opcode_D; - else if (t->opcode_modifier.floatd) + if (!t->opcode_modifier.d) + found_reverse_match = 0; + else if (operand_types[0].bitfield.tbyte) found_reverse_match = Opcode_FloatD; else - found_reverse_match = 0; + found_reverse_match = Opcode_D; if (t->opcode_modifier.floatr) found_reverse_match |= Opcode_FloatR; } -- cgit v1.1