[PATCH v3] riscv: asm: use .insn for making custom instructions
Nathan Chancellor
nathan at kernel.org
Fri Oct 31 13:27:11 PDT 2025
On Fri, Oct 31, 2025 at 02:08:33PM -0500, Andrew Jones wrote:
> Or we can change the test in 'config AS_HAS_INSN' to use the hex encoded
> input. We'd completely stop using .insn for LLVM older than 19 and GNU
> binutils older than 2.38, but that's probably better than adding yet
> another config.
Yeah, that would obviously work too. I was not sure how tolerable it was
to lose the use of .insn altogether for those versions hence the split
suggestion but if it is not that big of a deal, might as well check for
the extended .insn upfront.
Cheers,
Nathan
More information about the linux-riscv
mailing list