re PR target/83789 (__builtin_altivec_lvx fails for powerpc for altivec-4.c)
authorPeter Bergner <bergner@vnet.ibm.com>
Tue, 20 Mar 2018 17:25:09 +0000 (12:25 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Tue, 20 Mar 2018 17:25:09 +0000 (12:25 -0500)
commit91d014fffae1fcf1eb750d40e622e5b80cd1a4ec
tree976be9886676b81facf0acac63d743ca7bb99c1b
parent770ebe99fe48aca10f3553c4195deba1757d328a
re PR target/83789 (__builtin_altivec_lvx fails for powerpc for altivec-4.c)

PR target/83789
* config/rs6000/altivec.md (altivec_lvx_<mode>_2op): Delete define_insn.
(altivec_lvx_<mode>_1op): Likewise.
(altivec_stvx_<mode>_2op): Likewise.
(altivec_stvx_<mode>_1op): Likewise.
(altivec_lvx_<VM2:mode>): New define_expand.
(altivec_stvx_<VM2:mode>): Likewise.
(altivec_lvx_<VM2:mode>_2op_<P:mptrsize>): New define_insn.
(altivec_lvx_<VM2:mode>_1op_<P:mptrsize>): Likewise.
(altivec_stvx_<VM2:mode>_2op_<P:mptrsize>): Likewise.
(altivec_stvx_<VM2:mode>_1op_<P:mptrsize>): Likewise.
* config/rs6000/rs6000-p8swap.c (rs6000_gen_stvx): Use new expanders.
(rs6000_gen_lvx): Likewise.
* config/rs6000/rs6000.c (altivec_expand_lv_builtin): Likewise.
(altivec_expand_stv_builtin): Likewise.
(altivec_expand_builtin): Likewise.
* config/rs6000/vector.md: Likewise.

From-SVN: r258688
gcc/ChangeLog
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000-p8swap.c
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/vector.md