Skip to content

Commit

Permalink
x86: add kconfig symbols for assembler VAES and VPCLMULQDQ support
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ebiggers authored and herbertx committed Apr 5, 2024
1 parent 73e5984 commit 7d4700d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/x86/Kconfig.assembler
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d4700d

Please sign in to comment.