about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu
diff options
context:
space:
mode:
authorOndřej Hošek <ondra.hosek@gmail.com>2020-08-26 04:26:50 +0200
committerH.J. Lu <hjl.tools@gmail.com>2020-09-02 05:07:37 -0700
commit23af890b3f04e80da783ba64e6b6d94822e01d54 (patch)
tree2993e2e50209282a48b9a687b85a64124555a2d8 /sysdeps/x86_64/fpu
parent323592fdc92a0021319419f210a6052542856654 (diff)
downloadglibc-23af890b3f04e80da783ba64e6b6d94822e01d54.tar.gz
glibc-23af890b3f04e80da783ba64e6b6d94822e01d54.tar.xz
glibc-23af890b3f04e80da783ba64e6b6d94822e01d54.zip
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.
Diffstat (limited to 'sysdeps/x86_64/fpu')
-rw-r--r--sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h2
1 files changed, 1 insertions, 1 deletions
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);