re PR target/79261 (vec_xxpermdi appears to have endian issues)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 17 Feb 2017 19:11:06 +0000 (19:11 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 17 Feb 2017 19:11:06 +0000 (19:11 +0000)
commita530e1816779c1c8d4fe5ddaeb5cc313f2136152
tree08f29c1cda19589836dde18eb48f6f3cbc49f440
parentedf1849aa6b55871d799a0e8a574eb752f0b4c8a
re PR target/79261 (vec_xxpermdi appears to have endian issues)

[gcc]

2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/79261
* config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
* config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
generator for vsx_xxpermdi_<mode>_be.
* config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
force big-endian semantics.
(vsx_xxpermdi_<mode>_be): New define_expand with same
implementation as previous version of vsx_xxpermdi_<mode>.

[gcc/testsuite]

2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/79261
* gcc.target/powerpc/vec-xxpermdi.c: New file.

From-SVN: r245545
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/vsx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c [new file with mode: 0644]