diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md index da5d0e34d0a..1fff8ac2fc4 100644 --- a/gcc/config/riscv/autovec.md +++ b/gcc/config/riscv/autovec.md @@ -2489,7 +2489,8 @@ (sign_extend:VWEXTI (match_operand: 1 "register_operand")) (sign_extend:VWEXTI - (match_operand: 2 "register_operand"))))))] + (match_operand: 2 "register_operand"))) + (const_int 1))))] "TARGET_VECTOR" { insn_code icode = code_for_pred (UNSPEC_VAADD, mode); @@ -2522,7 +2523,8 @@ (match_operand: 1 "register_operand")) (sign_extend:VWEXTI (match_operand: 2 "register_operand"))) - (const_int 1)))))] + (const_int 1)) + (const_int 1))))] "TARGET_VECTOR" { insn_code icode = code_for_pred (UNSPEC_VAADD, mode);