RE: [PATCH 1/7]AArch64 Add combine patterns for right shift and narrow

2021-10-12 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Tamar Christina > Sent: Tuesday, October 12, 2021 5:18 PM > To: Richard Sandiford ; Kyrylo Tkachov > > Cc: gcc-patches@gcc.gnu.org; nd ; Richard Earnshaw > ; Marcus Shawcroft > > Subject: RE: [PATCH 1/7]AArch64 Add combine p

RE: [PATCH 1/7]AArch64 Add combine patterns for right shift and narrow

2021-10-12 Thread Tamar Christina via Gcc-patches
Hi All, Here's a new version with big-endian support and more tests > > > > I think this needs to be guarded on !BYTES_BIG_ENDIAN and a similar > pattern added for BYTES_BIG_ENDIAN with the vec_concat operands > swapped around. > > This is similar to the aarch64_xtn2_insn_be pattern, for example.

Re: [PATCH 1/7]AArch64 Add combine patterns for right shift and narrow

2021-10-06 Thread Richard Sandiford via Gcc-patches
ft ; Kyrylo Tkachov >> ; Richard Sandiford >> >> Subject: [PATCH 1/7]AArch64 Add combine patterns for right shift and >> narrow >> >> Hi All, >> >> This adds a simple pattern for combining right shifts and narrows into >> shifted narrows. >> >>

RE: [PATCH 1/7]AArch64 Add combine patterns for right shift and narrow

2021-09-30 Thread Kyrylo Tkachov via Gcc-patches
Hi Tamar, > -Original Message- > From: Tamar Christina > Sent: Wednesday, September 29, 2021 5:19 PM > To: gcc-patches@gcc.gnu.org > Cc: nd ; Richard Earnshaw ; > Marcus Shawcroft ; Kyrylo Tkachov > ; Richard Sandiford > > Subject: [PATCH 1/7]AArch64 Add combi

[PATCH 1/7]AArch64 Add combine patterns for right shift and narrow

2021-09-29 Thread Tamar Christina via Gcc-patches
Hi All, This adds a simple pattern for combining right shifts and narrows into shifted narrows. i.e. typedef short int16_t; typedef unsigned short uint16_t; void foo (uint16_t * restrict a, int16_t * restrict d, int n) { for( int i = 0; i < n; i++ ) d[i] = (a[i] * a[i]) >> 10; } now