Re: [PATCH] arm: Auto-vectorization for MVE: vaddv

2021-05-26 Thread Christophe Lyon via Gcc-patches
On Wed, 26 May 2021 at 11:32, Richard Sandiford wrote: > > Christophe Lyon writes: > > This patch adds support for the reduc_plus_scal optab with MVE, which > > maps to the vaddv instruction. > > > > It moves the reduc_plus_scal_ expander from neon.md to > > vec-common.md and adds support for MVE

Re: [PATCH] arm: Auto-vectorization for MVE: vaddv

2021-05-26 Thread Richard Sandiford via Gcc-patches
Christophe Lyon writes: > This patch adds support for the reduc_plus_scal optab with MVE, which > maps to the vaddv instruction. > > It moves the reduc_plus_scal_ expander from neon.md to > vec-common.md and adds support for MVE to it. > > Since vaddv uses a 32-bits accumulator, we have to truncat

[PATCH] arm: Auto-vectorization for MVE: vaddv

2021-05-25 Thread Christophe Lyon via Gcc-patches
This patch adds support for the reduc_plus_scal optab with MVE, which maps to the vaddv instruction. It moves the reduc_plus_scal_ expander from neon.md to vec-common.md and adds support for MVE to it. Since vaddv uses a 32-bits accumulator, we have to truncate it's result. For instance: int32_t