]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Eliminate the magic number in riscv-v.cc
authorPan Li <pan2.li@intel.com>
Fri, 26 May 2023 00:40:26 +0000 (08:40 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 29 May 2023 10:27:27 +0000 (18:27 +0800)
commit3f4c3c929fe6a5c3b24a886ffb8380cbe4d09896
treee119e03945daf1d476e8fb9ce67aec56385c5b99
parenta99dc11fe272f6a1214f357b82f3f7eb5c7dabc3
RISC-V: Eliminate the magic number in riscv-v.cc

This patch would like to remove the magic number in the riscv-v.cc, and
align the same value to one macro.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/ChangeLog:

* config/riscv/riscv-v.cc (emit_vlmax_insn): Eliminate the
magic number.
(emit_nonvlmax_insn): Ditto.
(emit_vlmax_merge_insn): Ditto.
(emit_vlmax_cmp_insn): Ditto.
(emit_vlmax_cmp_mu_insn): Ditto.
(expand_vec_series): Ditto.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/riscv-v.cc