Re: [PATCH] vect: Verify that GET_MODE_NUNITS is power-of-2

2023-03-13 Thread Richard Biener via Gcc-patches
On Fri, Mar 10, 2023 at 9:16 PM Michael Collison wrote: > > While working on autovectorizing for the RISCV port I encountered an issue > where can_duplicate_and_interleave_p assumes that GET_MODE_NUNITS is a > power of two. The RISC-V target has vector modes (e.g. VNx1DImode) that > are not a powe

[PATCH] vect: Verify that GET_MODE_NUNITS is power-of-2

2023-03-10 Thread Michael Collison
While working on autovectorizing for the RISCV port I encountered an issue where can_duplicate_and_interleave_p assumes that GET_MODE_NUNITS is a power of two. The RISC-V target has vector modes (e.g. VNx1DImode) that are not a power of two. Tested on RISCV and x86_64-linux-gnu. Okay? 2023-03-09