Re: [PATCH] tree: Add vector_element_bits(_tree) [PR94980 1/3]

2020-05-11 Thread Richard Biener via Gcc-patches
On May 11, 2020 6:35:58 PM GMT+02:00, Richard Sandiford wrote: >A lot of code that wants to know the number of bits in a vector >element gets that information from the element's TYPE_SIZE, >which is always equal to TYPE_SIZE_UNIT * BITS_PER_UNIT. >This doesn't work for SVE and AVX512-style packed

[PATCH] tree: Add vector_element_bits(_tree) [PR94980 1/3]

2020-05-11 Thread Richard Sandiford
A lot of code that wants to know the number of bits in a vector element gets that information from the element's TYPE_SIZE, which is always equal to TYPE_SIZE_UNIT * BITS_PER_UNIT. This doesn't work for SVE and AVX512-style packed boolean vectors, where several elements can occupy a single byte. T