Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-10-05 Thread Sudi Das
BIC-imm and ORR-imm SIMD pattern   On Wed, 2017-10-04 at 16:41 +0100, Richard Earnshaw (lists) wrote: > On 02/10/17 10:05, Sudi Das wrote: > >  > > 2017-10-02 Sudakshina Das   > > > >  * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-10-04 Thread Steve Ellcey
On Wed, 2017-10-04 at 16:41 +0100, Richard Earnshaw (lists) wrote: > On 02/10/17 10:05, Sudi Das wrote: > >  > > 2017-10-02 Sudakshina Das   > > > > * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New > > check type > > for aarch64_simd_valid_immediate. > > (aarch64_out

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-10-04 Thread Richard Earnshaw (lists)
> > > 2017-10-02 Sudakshina Das > > * gcc.target/aarch64/bic_imm_1.c: New test. > * gcc.target/aarch64/orr_imm_1.c: Likewise. > OK. R. > > From: Richard Earnshaw (lists) > Sent: Thursday, September 28, 2017 9:55 AM > To: Sudi Das; James Greenhal

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-10-02 Thread Sudi Das
(lists) Sent: Thursday, September 28, 2017 9:55 AM To: Sudi Das; James Greenhalgh Cc: gcc-patches@gcc.gnu.org; nd; Marcus Shawcroft Subject: Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern   On 27/09/17 18:57, Sudi Das wrote: > > > Hi James > > I have made the reque

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-09-28 Thread Richard Earnshaw (lists)
ch64/orr_imm_1.c: Likewise. > > > Thanks > Sudi > > > From: James Greenhalgh > Sent: Tuesday, September 26, 2017 8:04:38 PM > To: Sudi Das > Cc: Richard Earnshaw; gcc-patches@gcc.gnu.org; nd; Marcus Shawcroft > Subject: Re: [PATCH][AArch64

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-09-27 Thread Sudi Das
; Marcus Shawcroft Subject: Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern   On Mon, Sep 25, 2017 at 11:13:57AM +0100, Sudi Das wrote: > > Hi James > > I put aarch64_output_simd_general_immediate looking at the similarities of > the immediates for mov/mvni and orr/bic.

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-09-26 Thread James Greenhalgh
On Mon, Sep 25, 2017 at 11:13:57AM +0100, Sudi Das wrote: > > Hi James > > I put aarch64_output_simd_general_immediate looking at the similarities of > the immediates for mov/mvni and orr/bic. The CHECK macro in > aarch64_simd_valid_immediate both checks > and converts the immediates in a manner

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-09-25 Thread Sudi Das
: Wednesday, September 20, 2017 11:39 AM To: Sudi Das Cc: Richard Earnshaw; gcc-patches@gcc.gnu.org; nd; Marcus Shawcroft Subject: Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern   On Mon, Aug 07, 2017 at 02:56:09PM +0100, Sudi Das wrote: > > Hi Richard > > I have updat

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-09-20 Thread James Greenhalgh
On Mon, Aug 07, 2017 at 02:56:09PM +0100, Sudi Das wrote: > > Hi Richard > > I have updated the patch according to your comments. Thanks for pointing it > out and sorry for the delay! Hi Sudi, I've taken a look at your patch - at a high level, I think that adding aarch64_output_simd_general_imm

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-08-07 Thread Sudi Das
Shawcroft; James Greenhalgh Subject: Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern   On 18/04/17 17:39, Sudi Das wrote: > > Hello all > > This patch adds the support for BIC (vector, immediate) and ORR (vector, > immediate) SIMD patterns to the AArch64 backend. > One

Re: [PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-05-05 Thread Richard Earnshaw (lists)
On 18/04/17 17:39, Sudi Das wrote: > > Hello all > > This patch adds the support for BIC (vector, immediate) and ORR (vector, > immediate) SIMD patterns to the AArch64 backend. > One of the examples of this is : (with -O2 -ftree-vectorize) > > void > bic_s (short *a) > { > for (int i = 0; i <

[PATCH][AArch64] Add BIC-imm and ORR-imm SIMD pattern

2017-04-18 Thread Sudi Das
Hello all This patch adds the support for BIC (vector, immediate) and ORR (vector, immediate) SIMD patterns to the AArch64 backend. One of the examples of this is : (with -O2 -ftree-vectorize) void bic_s (short *a) { for (int i = 0; i < 1024; i++) a[i] &= ~(0xff); } which now produces :