Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-07 Thread Richard Biener
On Wed, 7 Jul 2021, Hongtao Liu wrote: > > > > > and I have no easy way to test things there. Handling AVX512 > > > > > should be easy as followup though. > > Here's the patch adding avx512f tests for FMADDSUB/FMSUBADD slp patterns. > Pushed to the trunk. Thanks! Richard.

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-07 Thread Hongtao Liu via Gcc-patches
> > > > and I have no easy way to test things there. Handling AVX512 > > > > should be easy as followup though. Here's the patch adding avx512f tests for FMADDSUB/FMSUBADD slp patterns. Pushed to the trunk. -- BR, Hongtao From 2dc666974cca3a62686f4d7135ca36c25d61a802 Mon Sep 17 00:00:00 2001 F

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-06 Thread Hongtao Liu via Gcc-patches
On Tue, Jul 6, 2021 at 3:42 PM Richard Biener wrote: > > On Tue, 6 Jul 2021, Hongtao Liu wrote: > > > On Mon, Jul 5, 2021 at 10:09 PM Richard Biener wrote: > > > > > > This adds named expanders for vec_fmaddsub4 and > > > vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and > > > vfmsubaddXXXp{ds

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-06 Thread Richard Biener
On Tue, 6 Jul 2021, Hongtao Liu wrote: > On Mon, Jul 5, 2021 at 10:09 PM Richard Biener wrote: > > > > This adds named expanders for vec_fmaddsub4 and > > vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and > > vfmsubaddXXXp{ds} instructions. This complements the previous > > addition of ADDSUB

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-05 Thread Hongtao Liu via Gcc-patches
On Mon, Jul 5, 2021 at 10:09 PM Richard Biener wrote: > > This adds named expanders for vec_fmaddsub4 and > vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and > vfmsubaddXXXp{ds} instructions. This complements the previous > addition of ADDSUB support. > > x86 lacks SUBADD and the negate varian

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-05 Thread Richard Biener
On Mon, 5 Jul 2021, Richard Biener wrote: > On Mon, Jul 5, 2021 at 4:09 PM Richard Biener wrote: > > > > This adds named expanders for vec_fmaddsub4 and > > vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and > > vfmsubaddXXXp{ds} instructions. This complements the previous > > addition of ADDS

Re: [PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-05 Thread Richard Biener via Gcc-patches
On Mon, Jul 5, 2021 at 4:09 PM Richard Biener wrote: > > This adds named expanders for vec_fmaddsub4 and > vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and > vfmsubaddXXXp{ds} instructions. This complements the previous > addition of ADDSUB support. > > x86 lacks SUBADD and the negate variant

[PATCH] Add FMADDSUB and FMSUBADD SLP vectorization patterns and optabs

2021-07-05 Thread Richard Biener
This adds named expanders for vec_fmaddsub4 and vec_fmsubadd4 which map to x86 vfmaddsubXXXp{ds} and vfmsubaddXXXp{ds} instructions. This complements the previous addition of ADDSUB support. x86 lacks SUBADD and the negate variants of FMA with mixed plus minus so I did not add optabs or patterns