]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/riscv/riscv-protos.h
RISC-V: Adjust expand_cond_len_{unary,binop,op} api
authorLehua Ding <lehua.ding@rivai.ai>
Fri, 1 Sep 2023 02:51:43 +0000 (10:51 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Fri, 1 Sep 2023 11:28:42 +0000 (19:28 +0800)
commit4d1c8b04ec8731b57ddbc80d76e40a61d8fa3324
tree4d344125d6851e51b9dddeb7a6f0647cb9df21e6
parentc07d82c12f2f17427a89188abad69af195590309
RISC-V: Adjust expand_cond_len_{unary,binop,op} api

This patch change expand_cond_len_{unary,binop}'s argument `rtx_code code`
to `unsigned icode` and use the icode directly to determine whether the
rounding_mode operand is required.

gcc/ChangeLog:

* config/riscv/autovec.md: Adjust.
* config/riscv/riscv-protos.h (expand_cond_len_unop): Ditto.
(expand_cond_len_binop): Ditto.
* config/riscv/riscv-v.cc (needs_fp_rounding): Ditto.
(expand_cond_len_op): Ditto.
(expand_cond_len_unop): Ditto.
(expand_cond_len_binop): Ditto.
(expand_cond_len_ternop): Ditto.
gcc/config/riscv/autovec.md
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv-v.cc