tcg/riscv: Accept constant first argument to sub_vec
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 15 Oct 2024 19:04:55 +0000 (19:04 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Oct 2024 18:57:25 +0000 (11:57 -0700)
commitdc9cd4ec12074a762ca9f41a822a27aa702284d4
treea9b774c6b60987344dbe5b36667b9697990389c5
parentc283c0748a01ec05f24d5aa24409f42b459e8938
tcg/riscv: Accept constant first argument to sub_vec

Use vrsub.vi to subtract from a constant.

Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/riscv/tcg-target-con-set.h
tcg/riscv/tcg-target.c.inc