]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Refactor expand_vec_cmp [NFC]
authordemin.han <demin.han@starfivetech.com>
Mon, 26 Feb 2024 06:50:15 +0000 (14:50 +0800)
committerdemin.han <demin.han@starfivetech.com>
Thu, 7 Mar 2024 05:23:02 +0000 (13:23 +0800)
commit1cd8254ebad7b73993d2acee80a7caf37c21878a
treea1059eef613e142e048220c3ed7a8f5de4498941
parent03932d3203bce244edd812b81921c2f16ea18d86
RISC-V: Refactor expand_vec_cmp [NFC]

There are two expand_vec_cmp functions.
They have same structure and similar code.
We can use default arguments instead of overloading.

Tested on RV32 and RV64.

gcc/ChangeLog:

* config/riscv/riscv-protos.h (expand_vec_cmp): Change proto
* config/riscv/riscv-v.cc (expand_vec_cmp): Use default arguments
(expand_vec_cmp_float): Adapt arguments

Signed-off-by: demin.han <demin.han@starfivetech.com>
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv-v.cc