altivec.h (vec_slv): New macro.
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Wed, 1 Jun 2016 14:01:10 +0000 (14:01 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Wed, 1 Jun 2016 14:01:10 +0000 (14:01 +0000)
commite342b9d826f4e7bea5bd409b795c210ab9910899
treed3c058d0e569e3388ddb7c5d17a23931eb285bd0
parent4bdf739d7146908d64d9a2020df5263a10bedb9c
altivec.h (vec_slv): New macro.

gcc/ChangeLog:

2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/altivec.h (vec_slv): New macro.
(vec_srv): New macro.
* config/rs6000/altivec.md (UNSPEC_VSLV): New value.
(UNSPEC_VSRV): New value.
(vslv): New insn.
(vsrv): New insn.
* config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
(vsrv): New builtin definition.
* config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
define argument types for new builtin.
(P9V_BUILTIN_VSRV): Macro expansion to define argument types for
new builtin.
* doc/extend.texi: Document the new vec_vslv and vec_srv built-in
functions.

gcc/testsuite/ChangeLog:

2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/vslv-0.c: New test.
* gcc.target/powerpc/vslv-1.c: New test.
* gcc.target/powerpc/vsrv-0.c: New test.
* gcc.target/powerpc/vsrv-1.c: New test.

From-SVN: r236992
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/vslv-0.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vslv-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsrv-0.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsrv-1.c [new file with mode: 0644]