x86: Set Vex=1 on VEX.128 only vmovd and vmovq
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Sep 2018 16:31:07 +0000 (09:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Sep 2018 16:31:17 +0000 (09:31 -0700)
commitd5f787c2bc90793c1d781b7291758e77067daad5
tree34235175996f43e3eb0ab24daae34b3038073613
parent03751133023c5623cf60f8d3222cb79a376331f9
x86: Set Vex=1 on VEX.128 only vmovd and vmovq

AVX "VMOVD xmm1, r32/m32", "VMOVD r32/m32, xmm2", "VMOVQ xmm1, r64/m64"
and "VMOVD r64/m64, xmm2" can only be encoded with VEX.128.  Set Vex=1
on VEX.128 only vmovd and vmovq.

gas/

PR gas/23665
* testsuite/gas/i386/avx-scalar.s: Remove vmovq and vmovd tests.
* testsuite/gas/i386/x86-64-avx-scalar.s: Likewise.
* testsuite/gas/i386/avx-scalar-intel.d: Updated.
* testsuite/gas/i386/avx-scalar.d: Likewise.
* testsuite/gas/i386/x86-64-avx-scalar-intel.d: Likewise.
* testsuite/gas/i386/x86-64-avx-scalar.d: Likewise.
* testsuite/gas/i386/i386.exp: Run avx-scalar2 and
x86-64-avx-scalar2.
* testsuite/gas/i386/avx-scalar-2.d: New file.
* testsuite/gas/i386/avx-scalar-2.s: Likewise.
* testsuite/gas/i386/x86-64-avx-scalar-2.d: Likewise.
* testsuite/gas/i386/x86-64-avx-scalar-2.s: Likewise.

opcodes/

PR gas/23665
* i386-dis.c (vex_len_table): Update VEX_LEN_0F6E_P_2 and
VEX_LEN_0F7E_P_2 entries.
* i386-opc.tbl: Set Vex=1 on VEX.128 only vmovd and vmovq.
* i386-tbl.h: Regenerated.
16 files changed:
gas/ChangeLog
gas/testsuite/gas/i386/avx-scalar-2.d [new file with mode: 0644]
gas/testsuite/gas/i386/avx-scalar-2.s [new file with mode: 0644]
gas/testsuite/gas/i386/avx-scalar-intel.d
gas/testsuite/gas/i386/avx-scalar.d
gas/testsuite/gas/i386/avx-scalar.s
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-avx-scalar-2.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx-scalar-2.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx-scalar-intel.d
gas/testsuite/gas/i386/x86-64-avx-scalar.d
gas/testsuite/gas/i386/x86-64-avx-scalar.s
opcodes/ChangeLog
opcodes/i386-dis.c
opcodes/i386-opc.tbl
opcodes/i386-tbl.h