aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2023-04-24 08:27:52 +0200
committerRobin Dapp <rdapp@ventanamicro.com>2023-05-11 14:23:26 +0200
commitb75c9e10379481b1b1e9dfdcc6aa81c9ba58cb1a (patch)
tree855691579e37a3a48cc41b8d9b1dcca3dc860c2f /gcc/go
parentaf595613acbd9863198ae69c7b1c9e856bca9e4f (diff)
downloadgcc-b75c9e10379481b1b1e9dfdcc6aa81c9ba58cb1a.zip
gcc-b75c9e10379481b1b1e9dfdcc6aa81c9ba58cb1a.tar.gz
gcc-b75c9e10379481b1b1e9dfdcc6aa81c9ba58cb1a.tar.bz2
RISC-V: Add vectorized binops and insn_expander helpers.
This patch adds basic binary integer operations support. It is based on Michael Collison's work and makes use of the existing helpers in riscv-c.cc. It introduces emit_nonvlmax_binop which, in turn, uses emit_pred_binop. Setting the destination as well as the mask and the length are factored out into separate functions. gcc/ChangeLog: * config/riscv/autovec.md (<optab><mode>3): Add integer binops. * config/riscv/riscv-protos.h (emit_nonvlmax_binop): Declare. * config/riscv/riscv-v.cc (emit_pred_op): New function. (set_expander_dest_and_mask): New function. (emit_pred_binop): New function. (emit_nonvlmax_binop): New function. Co-authored-by: Michael Collison <collison@rivosinc.com>
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions