aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorMichael Collison <collison@rivosinc.com>2023-05-06 12:37:50 -0600
committerJeff Law <jlaw@ventanamicro>2023-05-06 12:37:50 -0600
commit730909fa858bd691095bc23655077aa13b7941a9 (patch)
tree092dd666dadaf333295213729c2e003821b616bd /gcc/cp/constexpr.cc
parent9217e0dde1b7dbcff456d513334496404e626437 (diff)
downloadgcc-730909fa858bd691095bc23655077aa13b7941a9.zip
gcc-730909fa858bd691095bc23655077aa13b7941a9.tar.gz
gcc-730909fa858bd691095bc23655077aa13b7941a9.tar.bz2
RISC-V: autovec: Verify that GET_MODE_NUNITS is a multiple of 2.
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 evenly divisible by two. The RISC-V target has vector modes (e.g. VNx1DImode), where GET_MODE_NUNITS is equal to one. Tested on RISCV and x86_64-linux-gnu. Okay? gcc/ * tree-vect-slp.cc (can_duplicate_and_interleave_p): Check that GET_MODE_NUNITS is a multiple of 2.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions