rs6000: Implement [u]avg<mode>3_ceil
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 24 Oct 2019 18:22:33 +0000 (20:22 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 24 Oct 2019 18:22:33 +0000 (20:22 +0200)
commit90a158075a6b4e26c2e1204c71aa7f49548c5bd7
tree10e83c6e11af9f914b2b55f459c9fea3900de1bc
parent1c95aee0a3e154a9583a7f2cfe987ef84344157c
rs6000: Implement [u]avg<mode>3_ceil

We already had those in fact, just under other names.  Use the standard
names so that the vectorizer can use it.

* 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.
* config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
VAVGUW, VAVGSW): Adjust.

From-SVN: r277421
gcc/ChangeLog
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000-builtin.def