rs6000.c (swap_web_entry): Enlarge special_handling bitfield.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 31 Aug 2015 01:02:47 +0000 (01:02 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 31 Aug 2015 01:02:47 +0000 (01:02 +0000)
commitbabb13f5cc83ae685fdea4824a51f6de5345b2aa
treed546465b3429dfc52021e9aeee424d468077a316
parent5ba02681ad4a19634c81f304c158c150b1df241a
rs6000.c (swap_web_entry): Enlarge special_handling bitfield.

[gcc]

2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (swap_web_entry): Enlarge
special_handling bitfield.
(special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
(rtx_is_swappable_p): Add handling for vec_select/vec_concat form
that represents a general xxpermdi.
(insn_is_swappable_p): Add handling for vec_concat of two
doublewords, which maps to a specific xxpermdi.
(adjust_xxpermdi): New function.
(adjust_concat): Likewise.
(handle_special_swappables): Call adjust_xxpermdi and
adjust_concat.
(dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.

[gcc/testsuite]

2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

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