This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386]: Improve mask op patterns a bit
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Alexander Ivchenko <aivchenk at gmail dot com>
- Date: Wed, 23 Nov 2016 20:23:12 +0100
- Subject: Re: [PATCH, i386]: Improve mask op patterns a bit
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aTV44tHJTHjT1aBumcM=6RAafhDBOJsXHjDaAJbQQUnw@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Nov 23, 2016 at 08:09:01PM +0100, Uros Bizjak wrote:
> Hello!
>
> This patch cleans and improves mask op patterns a bit. The patch uses
> insn mode attribute to control emission of word-mode operations and
> macroizes a couple of patterns.
>
> No functional changes.
>
> 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
>
> * gcc.target/config/i386.md (*movqi_internal): Calculate mode
s,gcc.target/config,config/i386,
> attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
> <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
> (*k<logic><mode>): Calculate mode attribute depending on
> TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
> (*andqi_1): Calculate mode attribute of alternative 3 depending
> on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
> (kandn<mode>): Calculate mode attribute of alternative 2 depending
> on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
> (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
> iterator. Calculate mode attribute of alternative 1 depending
> on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
> (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
> on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
Jakub