Commit 7d4700d1 authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu
Browse files

x86: add kconfig symbols for assembler VAES and VPCLMULQDQ support



Add config symbols AS_VAES and AS_VPCLMULQDQ that expose whether the
assembler supports the vector AES and carryless multiplication
cryptographic extensions.

Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 73e5984e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -25,6 +25,16 @@ config AS_GFNI
	help
	  Supported by binutils >= 2.30 and LLVM integrated assembler

config AS_VAES
	def_bool $(as-instr,vaesenc %ymm0$(comma)%ymm1$(comma)%ymm2)
	help
	  Supported by binutils >= 2.30 and LLVM integrated assembler

config AS_VPCLMULQDQ
	def_bool $(as-instr,vpclmulqdq \$0x10$(comma)%ymm0$(comma)%ymm1$(comma)%ymm2)
	help
	  Supported by binutils >= 2.30 and LLVM integrated assembler

config AS_WRUSS
	def_bool $(as-instr,wrussq %rax$(comma)(%rbx))
	help