Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-25 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 25, 2021 at 8:48 AM Richard Biener wrote: > > On Thu, 24 Jun 2021, Uros Bizjak wrote: > > > On Thu, Jun 24, 2021 at 1:07 PM Richard Biener wrote: > > > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > > instructions which compute { v0[0] - v1[0],

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-25 Thread Richard Biener
On Thu, 24 Jun 2021, Uros Bizjak wrote: > On Thu, Jun 24, 2021 at 1:07 PM Richard Biener wrote: > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > > thus subtract, add alternating on lanes,

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-24 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 24, 2021 at 1:07 PM Richard Biener wrote: > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > thus subtract, add alternating on lanes, starting with subtract. > > It adds a corresponding

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-24 Thread Richard Biener
On Tue, 22 Jun 2021, Uros Bizjak wrote: > On Tue, Jun 22, 2021 at 12:34 PM Richard Biener wrote: > > > > On Tue, 22 Jun 2021, Uros Bizjak wrote: > > > > > On Tue, Jun 22, 2021 at 11:42 AM Richard Sandiford > > > wrote: > > > > > > > >> Well, the pattern is called addsub in the x86 world because

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-22 Thread Uros Bizjak via Gcc-patches
On Tue, Jun 22, 2021 at 12:34 PM Richard Biener wrote: > > On Tue, 22 Jun 2021, Uros Bizjak wrote: > > > On Tue, Jun 22, 2021 at 11:42 AM Richard Sandiford > > wrote: > > > > > >> Well, the pattern is called addsub in the x86 world because highpart > > > >> does add and lowpart does sub. In

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-22 Thread Richard Biener
On Tue, 22 Jun 2021, Uros Bizjak wrote: > On Tue, Jun 22, 2021 at 11:42 AM Richard Sandiford > wrote: > > > >> Well, the pattern is called addsub in the x86 world because highpart > > >> does add and lowpart does sub. In left-to-right writing systems > > >> highpart comes before lowpart, so you

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-22 Thread Uros Bizjak via Gcc-patches
On Tue, Jun 22, 2021 at 11:42 AM Richard Sandiford wrote: > >> Well, the pattern is called addsub in the x86 world because highpart > >> does add and lowpart does sub. In left-to-right writing systems > >> highpart comes before lowpart, so you have addsub. > > > > The other targets mentioned do

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-22 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Thu, 17 Jun 2021, Uros Bizjak wrote: > >> On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: >> > >> > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 >> > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } >> > thus

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Richard Biener
On Thu, 17 Jun 2021, Richard Biener wrote: > On Thu, 17 Jun 2021, Uros Bizjak wrote: > > > On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > > > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > > instructions which compute { v0[0] - v1[0], v0[1], +

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Richard Biener
On Thu, 17 Jun 2021, Uros Bizjak wrote: > On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > > thus subtract, add alternating on lanes,

RE: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Tamar Christina via Gcc-patches
> -Original Message- > From: Richard Biener > Sent: Thursday, June 17, 2021 10:45 AM > To: gcc-patches@gcc.gnu.org > Cc: hongtao@intel.com; ubiz...@gmail.com; Tamar Christina > > Subject: [PATCH][RFC] Add x86 subadd SLP pattern > > This addds SLP pattern recognition for the SSE3/AVX

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 17, 2021 at 12:00 PM Richard Biener wrote: > > On Thu, 17 Jun 2021, Uros Bizjak wrote: > > > On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > > > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > > instructions which compute { v0[0] - v1[0],

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Richard Biener
On Thu, 17 Jun 2021, Uros Bizjak wrote: > On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > > thus subtract, add alternating on lanes,

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > thus subtract, add alternating on lanes, starting with subtract. > > It adds a corresponding

Re: [PATCH][RFC] Add x86 subadd SLP pattern

2021-06-17 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 17, 2021 at 11:44 AM Richard Biener wrote: > > This addds SLP pattern recognition for the SSE3/AVX [v]addsubp{ds} v0, v1 > instructions which compute { v0[0] - v1[0], v0[1], + v1[1], ... } > thus subtract, add alternating on lanes, starting with subtract. > > It adds a corresponding