numam-dpdk/buildtools
Bruce Richardson 68b1f1cda5 build: check AVX512 rather than binutils version
Rather than checking the binutils version number, which can lead to
unnecessary disabling of AVX512 if fixes have been backported to distro
versions, we can instead check the output of "as" from binutils to see if
it is correct.

The check in the script uses the minimal assembly reproduction code posted
to the public bug tracker for gcc/binutils for those issues [1]. If the
binutils bug is present, the instruction parameters - specifically the
displacement parameter - will be different in the disassembled output
compared to the input. Therefore the check involves assembling a single
instruction and disassembling it again, checking that the two match.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Harry van Haaren <harry.van.haaren@intel.com>
2020-07-05 21:32:40 +02:00
..
pkg-config build/pkg-config: prevent overlinking 2020-07-01 19:30:52 +02:00
pmdinfogen build: replace meson OS detection with variable 2020-06-30 15:29:59 +02:00
auto-config-h.sh buildtools: fix build for some mktemp 2018-10-27 15:30:25 +02:00
binutils-avx512-check.sh build: check AVX512 rather than binutils version 2020-07-05 21:32:40 +02:00
call-sphinx-build.py doc: rebuild with meson whenever a file changes 2020-01-15 08:50:28 +01:00
check-symbols.sh compat: provide experimental alias for matured ABI 2020-05-18 19:46:25 +02:00
gen-build-mk.sh mk: allow renaming of build directories 2018-11-14 01:46:00 +01:00
gen-config-h.sh tools: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
gen-pmdinfo-cfile.sh buildtools: allow pedantic empty pmdinfo 2020-02-05 18:19:00 +01:00
list-dir-globs.py build: allow using wildcards to disable drivers 2020-02-06 09:17:24 +01:00
Makefile buildtools: change license to SPDX 2018-07-26 22:45:17 +02:00
map_to_win.py build: generate version map file for MinGW 2020-06-30 00:02:53 +02:00
map-list-symbol.sh buildtools: detect discrepancies for experimental symbols 2019-06-29 19:04:32 +02:00
meson.build build: check AVX512 rather than binutils version 2020-07-05 21:32:40 +02:00
options-ibverbs-static.sh buildtools: get static mlx dependencies for meson 2020-02-14 12:42:13 +01:00
relpath.sh tools: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
symlink-drivers-solibs.sh build: fix ninja install on FreeBSD 2019-05-02 23:07:04 +02:00