This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86: Encode AVX256/AVX512 vpsub[bwdq] with VEX128/EVEX128
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 1 Mar 2018 06:04:56 -0800
- Subject: Re: [PATCH] x86: Encode AVX256/AVX512 vpsub[bwdq] with VEX128/EVEX128
- Authentication-results: sourceware.org; auth=none
- References: <20180227162017.GA8009@intel.com>
On Tue, Feb 27, 2018 at 8:20 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> When 2 source registers are identical, AVX256 and AVX512 vpsub[bwdq]
> instructions can be encoded with VEX128 or EVEX128 encodings.
>
> Any comments?
>
> H.J.
> gas/
>
> * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
> AVX512 vpsub[bwdq] instructions.
> * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
> AVX512 vpsub[bwdq] instructions.
> * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
> * testsuite/gas/i386/optimize-1.d: Updated.
> * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
>
> opcodes/
>
> * * i386-opc.tbl: Add "Optimize" to AVX256 and AVX512
> vpsub[bwdq] instructions.
> * i386-tbl.h: Regenerated.
I am checking it in.
--
H.J.