re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 8 Jan 2018 23:08:34 +0000 (23:08 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 8 Jan 2018 23:08:34 +0000 (23:08 +0000)
commita25811c8858901fe414333c836e622257d1506c0
treed24d8d082b79906add64da15b41dadc19f2166aa
parent68df9882b223146ffac2b3b5a939cfc090b72e5f
re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)

[gcc]

2018-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/83677
* config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
Reverse order of second and third operands in first alternative.
* config/rs6000/rs6000.c (rs6000_expand_vector_set): Reverse order
of first and second elements in UNSPEC_VPERMR vector.
(altivec_expand_vec_perm_le): Likewise.

[gcc/testsuite]

2018-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/83677
* gcc.target/powerpc/pr83677.c: New file.

From-SVN: r256358
gcc/ChangeLog
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr83677.c [new file with mode: 0644]