Re: [PATCH v2 08/13] RISC-V: add U-type imm parsing to parse_asm header

Andrew Jones
2022-11-30T16:02:31Z

On Mon, Nov 28, 2022 at 11:26:27AM +0100, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@vrull.eu>
>
> Similar to other existing types, allow extracting the immediate
> for a U-type instruction.
>
> U-type immediates are special in that regard, that the value
> in the instruction in bits [31:12] already represents the same
> bits of the immediate, so no shifting is required.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
> ---
> arch/riscv/include/asm/insn.h | 13 +++++++++++++
> 1 file changed, 13 insertions(+)

With the s/parse_asm/insn/ <<<$SUBJECT that Conor pointed out.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>