mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 22:23:52 +08:00
x86-64: Fix FMA4 detection in ifunc [BZ #26534]
A typo in commit107e6a3c22
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 commit23af890b3f
)
This commit is contained in:
parent
3de512be7e
commit
cebc01cbfd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user