From: Pan Li Date: Thu, 25 Apr 2024 00:55:08 +0000 (+0800) Subject: RISC-V: Add early clobber to the dest of vwsll X-Git-Tag: basepoints/gcc-15~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10ad46bc191f8aa90b0d7b00963bfd52c6d7b09c;p=thirdparty%2Fgcc.git RISC-V: Add early clobber to the dest of vwsll We missed the existing early clobber for the dest operand of vwsll pattern when resolve the conflict of revert register overlap. Thus add it back to the pattern. Unfortunately, we have no test to cover this part and will improve this after GCC-15 open. The below tests are passed for this patch: * The rv64gcv fully regression test with isl build. gcc/ChangeLog: * config/riscv/vector-crypto.md: Add early clobber to the dest operand of vwsll. Signed-off-by: Pan Li --- diff --git a/gcc/config/riscv/vector-crypto.md b/gcc/config/riscv/vector-crypto.md index 8a4888a76535..e474ddf5da73 100755 --- a/gcc/config/riscv/vector-crypto.md +++ b/gcc/config/riscv/vector-crypto.md @@ -303,7 +303,7 @@ (set_attr "mode" "")]) (define_insn "@pred_vwsll_scalar" - [(set (match_operand:VWEXTI 0 "register_operand" "=vr, vr") + [(set (match_operand:VWEXTI 0 "register_operand" "=&vr, &vr") (if_then_else:VWEXTI (unspec: [(match_operand: 1 "vector_mask_operand" "vmWc1, vmWc1")