forked from pool/glibc
Andreas Schwab
07fe597177
- Keep nsswitch.conf in /etc for SLES15 - syslog-locking.patch: Correct locking and cancellation cleanup in syslog functions (bsc#1172085, BZ #26100) - ifunc-fma4.patch: x86-64: Fix FMA4 detection in ifunc (BZ #26534) OBS-URL: https://build.opensuse.org/request/show/832940 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=568
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 23af890b3f04e80da783ba64e6b6d94822e01d54 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= <ondra.hosek@gmail.com>
|
|
Date: Wed, 26 Aug 2020 04:26:50 +0200
|
|
Subject: [PATCH] x86-64: Fix FMA4 detection in ifunc [BZ #26534]
|
|
|
|
A typo in commit 107e6a3c2212ba7a3a4ec7cae8d82d73f7c95d0b causes the
|
|
FMA4 code path to be taken on systems that support FMA, even if they do
|
|
not support FMA4. Fix this to detect FMA4.
|
|
---
|
|
sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h b/sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h
|
|
index 7659758972..e5fd5ac9cb 100644
|
|
--- a/sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h
|
|
+++ b/sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h
|
|
@@ -32,7 +32,7 @@ IFUNC_SELECTOR (void)
|
|
&& CPU_FEATURE_USABLE_P (cpu_features, AVX2))
|
|
return OPTIMIZE (fma);
|
|
|
|
- if (CPU_FEATURE_USABLE_P (cpu_features, FMA))
|
|
+ if (CPU_FEATURE_USABLE_P (cpu_features, FMA4))
|
|
return OPTIMIZE (fma4);
|
|
|
|
return OPTIMIZE (sse2);
|
|
--
|
|
2.28.0
|
|
|