vect: Reject non-byte offsets for gather/scatters [PR107346]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 28 Oct 2022 14:05:11 +0000 (15:05 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 28 Oct 2022 14:05:11 +0000 (15:05 +0100)
commit95decac3ce8c8c7c5302cd6fac005a10463de165
tree797fec6601837fcb59311e112d626ae2d57458e8
parent031a400e49d8db156c43f9ec0b21ab0c2aee8c6d
vect: Reject non-byte offsets for gather/scatters [PR107346]

The ada failure reported in the PR was being caused by vect_check_gather_scatter
failing to deal with bit offsets that weren't multiples of BITS_PER_UNIT. This
patch makes vect_check_gather_scatter reject memory accesses with such offsets.

gcc/ChangeLog:

PR tree-optimization/107346
* tree-vect-data-refs.cc (vect_check_gather_scatter): Reject offsets
that aren't multiples of BITS_PER_UNIT.
gcc/tree-vect-data-refs.cc