[Bug target/79261] vec_xxpermdi appears to have endian issues

2017-02-22 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79261

--- Comment #3 from Bill Schmidt  ---
Author: wschmidt
Date: Wed Feb 22 22:52:36 2017
New Revision: 245663

URL: https://gcc.gnu.org/viewcvs?rev=245663=gcc=rev
Log:
[gcc]

2017-02-22  Bill Schmidt  

Backport from mainline
2017-02-17  Bill Schmidt  

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): Call
generator for vsx_xxpermdi__be.
* config/rs6000/vsx.md (vsx_xxpermdi_): Remove logic to
force big-endian semantics.
(vsx_xxpermdi__be): New define_expand with same
implementation as previous version of vsx_xxpermdi_.

[gcc/testsuite]

2017-02-22  Bill Schmidt  

Backport from mainline
2017-02-17  Bill Schmidt  

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


Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/rs6000/rs6000.c
branches/gcc-6-branch/gcc/config/rs6000/rs6000.md
branches/gcc-6-branch/gcc/config/rs6000/vsx.md
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug target/79261] vec_xxpermdi appears to have endian issues

2017-02-22 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79261

Bill Schmidt  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Bill Schmidt  ---
Fixed everywhere.

[Bug target/79261] vec_xxpermdi appears to have endian issues

2017-02-22 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79261

--- Comment #4 from Bill Schmidt  ---
Author: wschmidt
Date: Wed Feb 22 22:54:56 2017
New Revision: 245664

URL: https://gcc.gnu.org/viewcvs?rev=245664=gcc=rev
Log:
[gcc]

2017-02-22  Bill Schmidt  

Backport from mainline
2017-02-17  Bill Schmidt  

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): Call
generator for vsx_xxpermdi__be.
* config/rs6000/vsx.md (vsx_xxpermdi_): Remove logic to
force big-endian semantics.
(vsx_xxpermdi__be): New define_expand with same
implementation as previous version of vsx_xxpermdi_.

[gcc/testsuite]

2017-02-22  Bill Schmidt  

Backport from mainline
2017-02-17  Bill Schmidt  

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


Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
branches/gcc-5-branch/gcc/config/rs6000/rs6000.md
branches/gcc-5-branch/gcc/config/rs6000/vsx.md
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug target/79261] vec_xxpermdi appears to have endian issues

2017-02-17 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79261

Bill Schmidt  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-02-17
   Assignee|unassigned at gcc dot gnu.org  |wschmidt at gcc dot 
gnu.org
   Target Milestone|--- |7.0
 Ever confirmed|0   |1

--- Comment #2 from Bill Schmidt  ---
Fixed in trunk so far.  Backports needed for GCC 5 and 6 after a short wait.

[Bug target/79261] vec_xxpermdi appears to have endian issues

2017-02-17 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79261

--- Comment #1 from Bill Schmidt  ---
Author: wschmidt
Date: Fri Feb 17 19:11:06 2017
New Revision: 245545

URL: https://gcc.gnu.org/viewcvs?rev=245545=gcc=rev
Log:
[gcc]

2017-02-17  Bill Schmidt  

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): Call
generator for vsx_xxpermdi__be.
* config/rs6000/vsx.md (vsx_xxpermdi_): Remove logic to
force big-endian semantics.
(vsx_xxpermdi__be): New define_expand with same
implementation as previous version of vsx_xxpermdi_.

[gcc/testsuite]

2017-02-17  Bill Schmidt  

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


Added:
trunk/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
trunk/gcc/config/rs6000/rs6000.md
trunk/gcc/config/rs6000/vsx.md
trunk/gcc/testsuite/ChangeLog