diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-09-18 15:26:03 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-09-18 15:26:03 +0000 |
commit | dd25e724a475caffa4372f911d15536d09c342c8 (patch) | |
tree | 35419b5f93ee6ecc7296335c8c6c3bb68672d001 /gcc/tree-vect-data-refs.c | |
parent | 68a0f2ffff4fdb05cfe110b3828124bcbe6d611f (diff) | |
download | gcc-dd25e724a475caffa4372f911d15536d09c342c8.zip gcc-dd25e724a475caffa4372f911d15536d09c342c8.tar.gz gcc-dd25e724a475caffa4372f911d15536d09c342c8.tar.bz2 |
Fix vectorizable_live_operation handling of vector booleans
vectorizable_live_operation needs to use BIT_FIELD_REF to extract one
element of a vector. For a packed vector boolean type, the number of
bits to extract should be taken from TYPE_PRECISION rather than TYPE_SIZE.
This is shown by existing tests once SVE is added.
2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* tree-vect-loop.c (vectorizable_live_operation): Fix element size
calculation for vector booleans.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r252930
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
0 files changed, 0 insertions, 0 deletions