Re: [PATCH v5 07/14] target/riscv: Add instructions of the Zbc-extension

2021-08-25 Thread Philipp Tomsich
Resent as a v6 with this change and a bug-fix for orc.b. This now again passes all of SPEC 2017 w/ a compiler that makes good use of the Zb[abcs] instructions, including orc.b for string-functions. On Wed, 25 Aug 2021 at 15:40, Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/23/21

[PATCH v5 07/14] target/riscv: Add instructions of the Zbc-extension

2021-08-25 Thread Philipp Tomsich
The following instructions are part of Zbc: - clmul - clmulh - clmulr Note that these instructions were already defined in the pre-0.93 and the 0.93 draft-B proposals, but had not been omitted in the earlier addition of draft-B to QEmu. Signed-off-by: Philipp Tomsich Reviewed-by: Richard Hend

Re: [PATCH v5 07/14] target/riscv: Add instructions of the Zbc-extension

2021-08-25 Thread Richard Henderson
On 8/23/21 11:42 AM, Philipp Tomsich wrote: +static bool trans_clmul(DisasContext *ctx, arg_clmul *a) +{ +REQUIRE_ZBC(ctx); +return gen_arith(ctx, a, gen_helper_clmul); +} + + +static bool trans_clmulh(DisasContext *ctx, arg_clmulr *a) +{ +REQUIRE_ZBC(ctx); +return gen_arith(ctx,

[PATCH v5 07/14] target/riscv: Add instructions of the Zbc-extension

2021-08-23 Thread Philipp Tomsich
The following instructions are part of Zbc: - clmul - clmulh - clmulr Note that these instructions were already defined in the pre-0.93 and the 0.93 draft-B proposals, but had not been omitted in the earlier addition of draft-B to QEmu. Signed-off-by: Philipp Tomsich --- Changes in v5: - Int