]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add vandn combine helper.
authorRobin Dapp <rdapp@ventanamicro.com>
Wed, 15 May 2024 13:01:35 +0000 (15:01 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Fri, 31 May 2024 19:54:49 +0000 (21:54 +0200)
commitf48448276f29a3823827292c72b7fc8e9cd39e1e
tree993e8c40c2cb60bb01b585f70398919ab9e1e2f3
parent309ee005aa871286c8daccbce7586f82be347440
RISC-V: Add vandn combine helper.

This patch adds a combine pattern for vandn as well as tests for it.

gcc/ChangeLog:

* config/riscv/autovec-opt.md (*vandn_<mode>): New pattern.
* config/riscv/vector.md: Add vandn to mode_idx.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/binop/vandn-1.c: New test.
* gcc.target/riscv/rvv/autovec/binop/vandn-run.c: New test.
* gcc.target/riscv/rvv/autovec/binop/vandn-template.h: New test.
gcc/config/riscv/autovec-opt.md
gcc/config/riscv/vector.md
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vandn-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vandn-run.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vandn-template.h [new file with mode: 0644]