diff options
| author | Aurelien Jarno <aurelien@aurel32.net> | 2025-04-19 20:45:07 +0200 |
|---|---|---|
| committer | Aurelien Jarno <aurelien@aurel32.net> | 2025-04-22 23:39:59 +0200 |
| commit | e78caeb4ff812ae19d24d65f4d4d48508154277b (patch) | |
| tree | 93f383fac56bce4a5346038d7deca4969efd34ba /string/test-strncmp.c | |
| parent | 4e24e4d936b57f6e7809032f55cc95a4cf4d2396 (diff) | |
| download | glibc-e78caeb4ff812ae19d24d65f4d4d48508154277b.tar.xz glibc-e78caeb4ff812ae19d24d65f4d4d48508154277b.zip | |
elf: tst-audit10: split AVX512F code into dedicated functions [BZ #32882]
"Recent" GCC versions (since commit fc62716fe8d1, backported to stable
branches) emit a vzeroupper instruction at the end of functions
containing AVX instructions. This causes the tst-audit10 test to fail
on CPUs lacking AVX instructions, despite the AVX512F check. The crash
occurs in the pltenter function of tst-auditmod10b.c.
Fix that by moving the code guarded by the check_avx512 function into
specific functions using the target ("avx512f") attribute. Note that
since commit 5359c3bc91cc ("x86-64: Remove compiler -mavx512f check") it
is safe to assume that the compiler has AVX512F support, thus the
__AVX512F__ checks can be dropped.
Tested on non-AVX, AVX2 and AVX512F machines.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'string/test-strncmp.c')
0 files changed, 0 insertions, 0 deletions
