diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-05-12 09:01:13 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-05-12 09:01:13 +0100 |
commit | 4c0283b9ad75b128b79c507d78d678123fe9f471 (patch) | |
tree | 577ba5e88c800118e7a7ebdf085ad2639c61ffe4 /gcc/ada/gcc-interface/utils.c | |
parent | 14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294 (diff) | |
download | gcc-4c0283b9ad75b128b79c507d78d678123fe9f471.zip gcc-4c0283b9ad75b128b79c507d78d678123fe9f471.tar.gz gcc-4c0283b9ad75b128b79c507d78d678123fe9f471.tar.bz2 |
tree-vect-generic: Fix bitfield widths [PR94980 3/3]
This third patch of three actually fixes the PR. We were using
8-bit BIT_FIELD_REFs to access single-bit elements, and multiplying
the vector index by 8 bits rather than 1 bit.
2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR tree-optimization/94980
* tree-vect-generic.c (expand_vector_comparison): Use
vector_element_bits_tree to get the element size in bits,
rather than using TYPE_SIZE.
(expand_vector_condition, vector_element): Likewise.
gcc/testsuite/
PR tree-optimization/94980
* gcc.target/i386/pr94980.c: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions