altivec.h (vec_bperm): Change #define.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 18 Jan 2017 15:04:50 +0000 (15:04 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Wed, 18 Jan 2017 15:04:50 +0000 (15:04 +0000)
commitdfc42f08cec61d355f2e1fc24d37b1300c68dceb
tree7beadc6702b0430cca8d29c83dee51f8d2972a75
parentf3981e7ecd207d68bdb246587c7ca1c71a083e85
altivec.h (vec_bperm): Change #define.

[gcc]

2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/altivec.h (vec_bperm): Change #define.
* config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
(altivec_vbpermq2): New define_insn.
(altivec_vbpermd): Likewise.
* config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
function interface.
(VBPERMD): Likewise.
(VBPERM): New polymorphic function interface.
* config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
Add entries for P9V_BUILTIN_VEC_VBPERM.
* doc/extend.texi: Add interfaces for vec_bperm.

[gcc/testsuite]

2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/p8vector-builtin-8.c: Add new form for
vec_bperm.
* gcc.target/powerpc/p9-vbpermd.c: New file.

From-SVN: r244578
gcc/ChangeLog
gcc/config/rs6000/altivec.h
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000-c.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/p8vector-builtin-8.c
gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c [new file with mode: 0644]