x86-64: Fix FMA4 detection in ifunc [BZ #26534]

A typo in commit 107e6a3c22 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.

(cherry picked from commit 23af890b3f)
This commit is contained in:
Ondřej Hošek 2020-08-26 04:26:50 +02:00 committed by Adhemerval Zanella
parent 3de512be7e
commit cebc01cbfd

View 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);