Skip to content
Commit 8b7419c4 authored by Christoph Müllner's avatar Christoph Müllner Committed by Philipp Tomsich
Browse files

RISC-V: Add support for arbitrary immediate encoding formats



This patch introduces support for arbitrary signed or unsigned immediate
encoding formats. The formats have the form "XsN@S" and "XuN@S" with N
being the number of bits and S the LSB position.

For example an immediate field of 5 bytes that encodes a signed value
and is stored in the bits 24-20 of the instruction word can use the
format specifier "Xs5@20".

Co-developed-by: default avatarLifang Xia <lifang_xia@linux.alibaba.com>
Signed-off-by: default avatarChristoph Müllner <christoph.muellner@vrull.eu>
parent 547c18d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment