Re: [PATCH]AArch64 Optimize right shift rounding narrowing

2021-11-30 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: > Hi All, > > This optimizes right shift rounding narrow instructions to > rounding add narrow high where one vector is 0 when the shift amount is half > that of the original input type. > > i.e. > > uint32x4_t foo (uint64x2_t a, uint64x2_t b) > { > return vrshrn_high_n_u

RE: [PATCH]AArch64 Optimize right shift rounding narrowing

2021-11-23 Thread Tamar Christina via Gcc-patches
hes@gcc.gnu.org > > Cc: Richard Earnshaw ; nd ; > > Richard Sandiford ; Marcus Shawcroft > > > > Subject: [PATCH]AArch64 Optimize right shift rounding narrowing > > > > Hi All, > > > > This optimizes right shift rounding narrow instructions to

[PATCH]AArch64 Optimize right shift rounding narrowing

2021-11-12 Thread Tamar Christina via Gcc-patches
Hi All, This optimizes right shift rounding narrow instructions to rounding add narrow high where one vector is 0 when the shift amount is half that of the original input type. i.e. uint32x4_t foo (uint64x2_t a, uint64x2_t b) { return vrshrn_high_n_u64 (vrshrn_n_u64 (a, 32), b, 32); } now gen