rs6000: Fix infinite loop building ghostscript and icu [PR93658]
authorPeter Bergner <bergner@linux.ibm.com>
Thu, 20 Feb 2020 17:08:02 +0000 (11:08 -0600)
committerPeter Bergner <bergner@linux.ibm.com>
Thu, 20 Feb 2020 17:08:02 +0000 (11:08 -0600)
commitb82d426662469ee8b78ec7e8f74abe950485c9d5
tree66e258a5c502762dc948af558256aad54a00705a
parente817c23f6806a6b9201a0a1f77b51cb863af51e9
rs6000: Fix infinite loop building ghostscript and icu [PR93658]

Fix rs6000_legitimate_address_p(), which erroneously marks a valid Altivec
address as being invalid, which causes LRA's process_address()  to go into
an infinite loop spilling the same address over and over again.

gcc/
PR target/93658
* config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
vector modes.

gcc/testsuite/
PR target/93658
* gcc.target/powerpc/pr93658.c: New test.
gcc/testsuite/gcc.target/powerpc/pr93658.c [new file with mode: 0644]