From: Eric Biggers Date: Fri, 29 Mar 2024 08:03:49 +0000 (-0700) Subject: x86: add kconfig symbols for assembler VAES and VPCLMULQDQ support X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7d4700d16186b9295d1419625c822cfa1d27fb7b;p=users%2Fhch%2Fblock.git 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: Ingo Molnar Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/arch/x86/Kconfig.assembler b/arch/x86/Kconfig.assembler index 8ad41da301e5..59aedf32c4ea 100644 --- a/arch/x86/Kconfig.assembler +++ b/arch/x86/Kconfig.assembler @@ -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