diff options
author | Pan Li <pan2.li@intel.com> | 2023-11-29 14:31:30 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-11-29 14:50:29 +0800 |
commit | 25a51e98fdd504826a40775a5e5b9ffb336b5aa1 (patch) | |
tree | ae499715ac0816cc62fd9b681a33f7f4eb2c22ee /gcc/expr.cc | |
parent | 4ed0740c6e807460ce79a351094329fdeb551545 (diff) | |
download | gcc-25a51e98fdd504826a40775a5e5b9ffb336b5aa1.zip gcc-25a51e98fdd504826a40775a5e5b9ffb336b5aa1.tar.gz gcc-25a51e98fdd504826a40775a5e5b9ffb336b5aa1.tar.bz2 |
RISC-V: Bugfix for ICE in block move when zve32f
The exact_div requires the exactly multiple of the divider.
Unfortunately, the condition will be broken when zve32f in
some cases. For example,
potential_ew is 8
BYTES_PER_RISCV_VECTOR * lmul1 is [4, 4]
This patch would like to ensure the precondition of exact_div
when get_vec_mode.
PR target/112743
gcc/ChangeLog:
* config/riscv/riscv-string.cc (expand_block_move): Add
precondition check for exact_div.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/pr112743-1.c: New test.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions