aarch64: fix strict alignment for vector load/stores (PR 91927)
authorAndrew Pinski <apinski@marvell.com>
Sat, 8 Feb 2020 15:57:54 +0000 (15:57 +0000)
committerAndrew Pinski <apinski@marvell.com>
Sat, 8 Feb 2020 23:48:06 +0000 (15:48 -0800)
commitc2a4bf2d6edde8b148421668a4c07c844b994271
tree6b67937e3ef6af840977f62d1005ed88b53bd37e
parent4b39d801b2698d0f756231f6f8fa0be5a36f0c05
aarch64: fix strict alignment for vector load/stores (PR 91927)

Hi,
  The problem here is that the vector mode version of movmisalign<mode>
was only conditionalized on if SIMD was enabled instead of being
also conditionalized on STRICT_ALIGNMENT too.

Applied as pre-approved in the bug report by Richard Sandiford
after a bootstrap/test on aarch64-linux-gnu.

Thanks,
Andrew Pinski

ChangeLog:
PR target/91927
* config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
STRICT_ALIGNMENT also.

testsuite/ChangeLog:
PR target/91927
* gcc.target/aarch64/pr91927.c: New testcase.
gcc/ChangeLog
gcc/config/aarch64/aarch64-simd.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr91927.c [new file with mode: 0644]