On Thu, Oct 24, 2019 at 06:19:03PM +0000, Segher Boessenkool wrote: > We already had those in fact, just under other names. Use the standard > names so that the vectorizer can use it. > > Committing to trunk; will backport to 9 and 8 later.
I've done those backports now. Segher > * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to... > (uavg<mode>3_ceil): ... This. > (altivec_vavgs<VI_char>): Rename to... > (avg<mode>3_ceil): ... This. > * rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH, VAVGUW, VAVGSW): > Adjust.