x86: Encode EVEX instructions with VEX128 if possible
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 9 Mar 2018 16:10:27 +0000 (08:10 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 9 Mar 2018 16:10:40 +0000 (08:10 -0800)
commit80c34c3812f8bae13fb902dbaaa287ca207857ac
treef1106d6442d81c4cc6c42be05836619614c45811
parentf657f8c4a1dc0ac69b16b1dc6eacbf5286f1f0a0
x86: Encode EVEX instructions with VEX128 if possible

If EVEX encoding isn't required, we can encode EVEX instructions with
VEX128.

* config/tc-i386.c (optimize_encoding): Encode EVEX instructions
with VEX128 if EVEX encoding isn't required.
* testsuite/gas/i386/optimize-1.d: Updated.
* testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/optimize-1.d
gas/testsuite/gas/i386/x86-64-optimize-2.d