]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86-64: Fix FMA4 detection in ifunc [BZ #26534]
authorOndřej Hošek <ondra.hosek@gmail.com>
Wed, 26 Aug 2020 02:26:50 +0000 (04:26 +0200)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Sep 2020 12:07:37 +0000 (05:07 -0700)
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

index 7659758972206cd3e404f12b75ab779f1459032c..e5fd5ac9cb57bb2036f48e25d3354d679253bf95 100644 (file)
@@ -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);