x86: don't open code is_any_vex_encoding()

Message ID 5D10D282020000780023AA57@prv1-mh.provo.novell.com
State New
Headers show
Series
  • x86: don't open code is_any_vex_encoding()
Related show

Commit Message

Jan Beulich June 24, 2019, 1:39 p.m.
gas/
2019-06-24  Jan Beulich  <jbeulich@suse.com>

	* tc-i386.c (process_suffix): Use is_any_vex_encoding().

Comments

H.J. Lu June 24, 2019, 4:18 p.m. | #1
On Mon, Jun 24, 2019 at 6:39 AM Jan Beulich <JBeulich@suse.com> wrote:
>

> gas/

> 2019-06-24  Jan Beulich  <jbeulich@suse.com>

>

>         * tc-i386.c (process_suffix): Use is_any_vex_encoding().

>

> --- a/gas/config/tc-i386.c

> +++ b/gas/config/tc-i386.c

> @@ -6386,9 +6386,7 @@ process_suffix (void)

>        else if (i.suffix != QWORD_MNEM_SUFFIX

>                && !i.tm.opcode_modifier.ignoresize

>                && !i.tm.opcode_modifier.floatmf

> -              && !i.tm.opcode_modifier.vex

> -              && !i.tm.opcode_modifier.vexopcode

> -              && !is_evex_encoding (&i.tm)

> +              && !is_any_vex_encoding (&i.tm)

>                && ((i.suffix == LONG_MNEM_SUFFIX) == (flag_code == CODE_16BIT)

>                    || (flag_code == CODE_64BIT

>                        && i.tm.opcode_modifier.jumpbyte)))

>

>


OK.

Thanks.

-- 
H.J.

Patch

--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -6386,9 +6386,7 @@  process_suffix (void)
       else if (i.suffix != QWORD_MNEM_SUFFIX
 	       && !i.tm.opcode_modifier.ignoresize
 	       && !i.tm.opcode_modifier.floatmf
-	       && !i.tm.opcode_modifier.vex
-	       && !i.tm.opcode_modifier.vexopcode
-	       && !is_evex_encoding (&i.tm)
+	       && !is_any_vex_encoding (&i.tm)
 	       && ((i.suffix == LONG_MNEM_SUFFIX) == (flag_code == CODE_16BIT)
 		   || (flag_code == CODE_64BIT
 		       && i.tm.opcode_modifier.jumpbyte)))