[PATCH v4 12/25] s390: Add range check asm macro
Heiko Carstens
hca at linux.ibm.com
Fri Dec 4 04:02:50 PST 2026
On Fri, Nov 27, 2026 at 03:22:15PM +0100, Steffen Eiden wrote:
> From: Jens Remus <jremus at linux.ibm.com>
>
> The range check macro turns cryptic assembler errors into an easy to
> understand error if e.g. someone mistypes an input value in an asm
> macro.
>
> Add an asm macro that verifies that a given input value is in a specific
> range. Add macros which check for ranges often used when creating
> instructions. While at it, add a range check for the register numbers in
> the GR_NUM and VX_NUM macro.
>
> Signed-off-by: Jens Remus <jremus at linux.ibm.com>
> Signed-off-by: Steffen Eiden <seiden at linux.ibm.com>
> ---
> arch/s390/include/asm/insn-common-asm.h | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
Acked-by: Heiko Carstens <hca at linux.ibm.com>
More information about the linux-arm-kernel
mailing list