diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2024-09-16 22:22:14 +0200 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-12-13 10:12:16 +0100 |
commit | 71bfc8c33e63f4a566079d34ed3bc98f45133e96 (patch) | |
tree | 9bd70ddad15c121e154e1a517f536078b90bba3e /libgo | |
parent | cfdab86f20f6e77d9c8bf982989f78ef975c7611 (diff) | |
download | gcc-71bfc8c33e63f4a566079d34ed3bc98f45133e96.zip gcc-71bfc8c33e63f4a566079d34ed3bc98f45133e96.tar.gz gcc-71bfc8c33e63f4a566079d34ed3bc98f45133e96.tar.bz2 |
RISC-V: Add slide to perm_const strategies.
This patch adds a shuffle_slide_patterns to expand_vec_perm_const.
It recognizes permutations like
{0, 1, 4, 5}
or
{2, 3, 6, 7}
which can be constructed by a slideup or slidedown of one of the vectors
into the other one.
gcc/ChangeLog:
* config/riscv/riscv-v.cc (shuffle_slide_patterns): New.
(expand_vec_perm_const_1): Call new function.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/vls-vlmax/shuffle-slide-run.c: New test.
* gcc.target/riscv/rvv/autovec/vls-vlmax/shuffle-slide.c: New test.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions