]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix compress shuffle pattern [PR117383].
authorRobin Dapp <rdapp@ventanamicro.com>
Wed, 11 Dec 2024 19:48:30 +0000 (20:48 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Mon, 16 Dec 2024 14:25:27 +0000 (15:25 +0100)
commitec870d3b5f378172006104bad674d7875463da18
tree25159ea6eb8f627eea1666cdad7c2477c4bbe092
parentce199a952bfef3e27354a4586a17bc55274c1d3c
RISC-V: Fix compress shuffle pattern [PR117383].

This patch makes vcompress use the tail-undisturbed policy by default
and also uses the proper VL.

PR target/117383

gcc/ChangeLog:

* config/riscv/riscv-protos.h (enum insn_type): Use TU policy.
* config/riscv/riscv-v.cc (shuffle_compress_patterns): Set VL.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c:
Expect tu.
* gcc.target/riscv/rvv/autovec/pr117383.c: New test.
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv-v.cc
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr117383.c [new file with mode: 0644]