[PATCH, rs6000]Add support to enable vmsumudm behind vec_msum builtin.
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 18 Jun 2020 20:14:00 +0000 (15:14 -0500)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Wed, 8 Jul 2020 15:33:09 +0000 (10:33 -0500)
commitc1a57681a64150d2fc336ba8e055c5f82e3737e8
tree95f68d09b3961d534a4573d744698203861a2556
parent30fdaead5b7880c4e9f140618e26ad1c545642d5
[PATCH, rs6000]Add support to enable vmsumudm behind vec_msum builtin.

gcc/ChangeLog:

2020-07-08  Will Schmidt  <will_schmidt@vnet.ibm.com>

* config/rs6000/altivec.h (vec_vmsumudm): New define.
* config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
  (altivec_vmsumudm): New define_insn.
* config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
  entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
* config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
  ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
* doc/extend.texi: Add document for vmsumudm behind vmsum.

gcc/testsuite/ChangeLog:

2020-07-08  Will Schmidt  <will_schmidt@vnet.ibm.com>

* gcc.target/powerpc/builtins-msum-runnable.c: New test.
* gcc.target/powerpc/vsx-builtin-msum.c: New test.
gcc/config/rs6000/altivec.h
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000-call.c
gcc/doc/extend.texi
gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-msum.c [new file with mode: 0644]