Re: [PATCH] RISC-V: Fix using wrong mode to get reduction insn vlmax

2023-09-15 Thread Lehua Ding
.zh...@rivai.ai>, kito.ch...@gmail.com <mailto:kito.ch...@gmail.com>, rdapp@gmail.com <mailto:rdapp@gmail.com>, pal...@rivosinc.com <mailto:pal...@rivosinc.com>, jeffreya...@gmail.com <mailto:jeffreya...@gmail.com>, lehua.d...@rivai.ai <mailto:lehua.d...@rivai.ai>

[PATCH] RISC-V: Fix using wrong mode to get reduction insn vlmax

2023-09-15 Thread Lehua Ding
This patch fix using wrong mode when emit vlmax reduction insn. We should use src operand instead dest operand (which always LMUL=m1) to get the vlmax length. This patch alse remove dest_mode and mask_mode from insn_expander constructor, which can be geted by insn_flags. gcc/ChangeLog: *