On Wed, Mar 25, 2020 at 02:26:49PM +0100, Ard Biesheuvel wrote: > I think using macros wrapping .inst directives is the most hassle free > way to achieve this, assuming there is no need to encode registers or > immediates (which makes it slightly messy - refer to > arch/arm64/crypto/sm3-ce-core.S for an example) There isn't - you just have to encode the four target classes, of which we only use one.