x86: add kconfig symbols for assembler VAES and VPCLMULQDQ support
authorEric Biggers <ebiggers@google.com>
Fri, 29 Mar 2024 08:03:49 +0000 (01:03 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Apr 2024 07:46:33 +0000 (15:46 +0800)
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 <mingo@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/Kconfig.assembler

index 8ad41da301e53caf650460c2aceccac37f97400c..59aedf32c4eaa302dd12d76584ea406bc288f3a4 100644 (file)
@@ -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