aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-11-22 18:53:22 +0800
committerPan Li <pan2.li@intel.com>2023-11-22 20:30:53 +0800
commitde6f3e12bd188fee30bc79a5e323e16e0dbbe8ca (patch)
tree47dc0aaf5b71b23c304b9663397352bae6c9bd96 /gcc/expr.cc
parentce966ae66067d8d365431ef7a323f4207fcb729a (diff)
downloadgcc-de6f3e12bd188fee30bc79a5e323e16e0dbbe8ca.zip
gcc-de6f3e12bd188fee30bc79a5e323e16e0dbbe8ca.tar.gz
gcc-de6f3e12bd188fee30bc79a5e323e16e0dbbe8ca.tar.bz2
RISC-V: Fix incorrect use of vcompress in permutation auto-vectorization
This patch fixes following FAILs on zvl512b of RV32 system: FAIL: gcc.target/riscv/rvv/autovec/struct/struct_vect_run-12.c execution test FAIL: gcc.target/riscv/rvv/autovec/struct/struct_vect_run-9.c execution test The root cause is that for permutation indice = {0,3,7,0} use vcompress optimization which is incorrect. Fix vcompress optimization bug. PR target/112598 gcc/ChangeLog: * config/riscv/riscv-v.cc (shuffle_compress_patterns): Fix vcompress bug. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr112598-3.c: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions