Re: [PATCH v4 1/3] riscv: Add support for the Zfa extension

2023-06-30 Thread Christoph Müllner
On Fri, Jun 30, 2023 at 11:53 AM Richard Henderson wrote: > > On 6/30/23 11:13, Christoph Muellner wrote: > > +static bool trans_fli_h(DisasContext *ctx, arg_fli_h *a) > > +{ > > +REQUIRE_FPU; > > +REQUIRE_ZFA(ctx); > > +REQUIRE_ZFH(ctx); > > + > > +/* Values below are NaN-boxed to

Re: [PATCH v4 1/3] riscv: Add support for the Zfa extension

2023-06-30 Thread Richard Henderson
On 6/30/23 11:13, Christoph Muellner wrote: +static bool trans_fli_h(DisasContext *ctx, arg_fli_h *a) +{ +REQUIRE_FPU; +REQUIRE_ZFA(ctx); +REQUIRE_ZFH(ctx); + +/* Values below are NaN-boxed to avoid a gen_nanbox_h(). */ +const uint64_t fli_h_table[] = { static const. r~

[PATCH v4 1/3] riscv: Add support for the Zfa extension

2023-06-30 Thread Christoph Muellner
From: Christoph Müllner This patch introduces the RISC-V Zfa extension, which introduces additional floating-point extensions: * fli (load-immediate) with pre-defined immediates * fminm/fmaxm (like fmin/fmax but with different NaN behaviour) * fround/froundmx (round to integer) * fcvtmod.w.d (Mod