Re: [PATCH] RISC-V: Fix pred_mov constraint for vle.v

2023-01-27 Thread Kito Cheng via Gcc-patches
Committed, thanks! On Thu, Jan 19, 2023 at 3:03 PM wrote: > From: Ju-Zhe Zhong > > The original constraint is incorrect in pred_mov pattern. > Take a look at Alternative 2, the operands[0] is "vr", > operands[1] which is mask operand can be "vm". > Such alternative matching will give the wrong

[PATCH] RISC-V: Fix pred_mov constraint for vle.v

2023-01-18 Thread juzhe . zhong
From: Ju-Zhe Zhong The original constraint is incorrect in pred_mov pattern. Take a look at Alternative 2, the operands[0] is "vr", operands[1] which is mask operand can be "vm". Such alternative matching will give the wrong codegen (vle.v v0,0(a5),v0.t) This is illegal according to RVV ISA. To