rs6000.c (swap_web_entry): Update preceding commentary to simplify permute mask adjus...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 10 Sep 2015 20:22:37 +0000 (20:22 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Thu, 10 Sep 2015 20:22:37 +0000 (20:22 +0000)
commit9a21c05d8d2a58a23782dbcedb4aa6df62282aa0
tree852f3146ea8487a44df261e0f0362cbc3695e8ea
parenta7890973856c5d2e49392b6c4a1175ccb222a030
rs6000.c (swap_web_entry): Update preceding commentary to simplify permute mask adjustment equation.

[gcc]

2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (swap_web_entry): Update preceding
commentary to simplify permute mask adjustment equation.
(special_handling_values): Add SH_VPERM.
(const_load_sequence_p): New function.
(insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
the mask loaded from the constant pool.
(adjust_vperm): New function.
(handle_special_swappables): Call adjust_vperm.
(dump_swap_insn_table): Handle SH_VPERM.

[gcc/testsuite]

2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/swaps-p8-20.c: New test.
* gcc.target/powerpc/swaps-p8-21.c: New test.

From-SVN: r227664
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/swaps-p8-21.c [new file with mode: 0644]