diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2023-08-31 09:18:00 +0200 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2023-09-01 12:59:56 +0200 |
commit | ffbb19c6afc016f6dc001ad0f567d3216ff601b1 (patch) | |
tree | 549bc512e4ee9796dbbe993de1f916b753615301 /libcpp | |
parent | e40edf6499576993862801640227e076b868241b (diff) | |
download | gcc-ffbb19c6afc016f6dc001ad0f567d3216ff601b1.zip gcc-ffbb19c6afc016f6dc001ad0f567d3216ff601b1.tar.gz gcc-ffbb19c6afc016f6dc001ad0f567d3216ff601b1.tar.bz2 |
RISC-V: Add vec_extract for BI -> QI.
This patch adds a vec_extract expander that extracts a QImode from a
vector mask mode. In doing so, it helps recognize a "live
operation"/extract last idiom for mask modes. It fixes the ICE in
tree-vect-live-6.c by circumventing the fallback code in
extract_bit_field_1. The problem there is still latent, though, and
needs to be addressed separately.
gcc/ChangeLog:
* config/riscv/autovec.md (vec_extract<mode>qi): New expander.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/partial/live-2.c: New test.
* gcc.target/riscv/rvv/autovec/partial/live_run-2.c: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions