Re: [PATCH V2] RISC-V: Fix error combine of pred_mov pattern

2023-08-28 Thread Jeff Law via Gcc-patches
On 8/10/23 06:21, Lehua Ding wrote: +;; vle.v/vse.v,vmv.v.v +(define_insn_and_split "*pred_mov" + [(set (match_operand:V_VLS 0 "nonimmediate_operand""=vr,vr, vd, m,vr,vr") +(if_then_else:V_VLS + (unspec: +[(match_operand: 1 "vector_mask_operan

Re: [PATCH V2] RISC-V: Fix error combine of pred_mov pattern

2023-08-27 Thread Lehua Ding
Hi, Jeff, Ping this patch since 18 days have passed. Is there any problem with this patch after the last discussion? This is a bugfix patch, it will affect the correctness, hope to have another look, thank you very much. There seems to be a major question at the moment as to why I add a forc

[PATCH V2] RISC-V: Fix error combine of pred_mov pattern

2023-08-10 Thread Lehua Ding
Hi, This patch fix PR110943 which will produce some error code. This is because the error combine of some pred_mov pattern. Consider this code: ``` void foo9 (void *base, void *out, size_t vl) { int64_t scalar = *(int64_t*)(base + 100); vint64m2_t v = __riscv_vmv_v_x_i64m2 (0, 1); *(