Skip to content

Commit e9e070c

Browse files
committed
x86: add comments about the binutils version to support code in as-instr
We raise the minimal supported binutils version from time to time. The last bump was commit 1fb12b3 ("kbuild: Raise the minimum required binutils version to 2.21"). We have these as-instr tests because binutils 2.21 does not support them. When we bump the binutils version next time, this will be a good hint to find out which one can be dropped. As for the Clang/LLVM builds, we require very new LLVM version, so the LLVM integrated assembler supports all of them. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Jason A. Donenfeld <[email protected]> Acked-by: Ingo Molnar <[email protected]> Acked-by: Nick Desaulniers <[email protected]>
1 parent 5e8ebd8 commit e9e070c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/x86/Kconfig.assembler

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,25 @@
33

44
config AS_AVX2
55
def_bool $(as-instr,vpbroadcastb %xmm0$(comma)%ymm1)
6+
help
7+
Supported by binutils >= 2.22 and LLVM integrated assembler
68

79
config AS_AVX512
810
def_bool $(as-instr,vpmovm2b %k1$(comma)%zmm5)
11+
help
12+
Supported by binutils >= 2.25 and LLVM integrated assembler
913

1014
config AS_SHA1_NI
1115
def_bool $(as-instr,sha1msg1 %xmm0$(comma)%xmm1)
16+
help
17+
Supported by binutils >= 2.24 and LLVM integrated assembler
1218

1319
config AS_SHA256_NI
1420
def_bool $(as-instr,sha256msg1 %xmm0$(comma)%xmm1)
21+
help
22+
Supported by binutils >= 2.24 and LLVM integrated assembler
1523

1624
config AS_ADX
1725
def_bool $(as-instr,adox %eax$(comma)%eax)
26+
help
27+
Supported by binutils >= 2.23 and LLVM integrated assembler

0 commit comments

Comments
 (0)