View | Details | Raw Unified | Return to bug 14059 | Differences between
and this patch

Collapse All | Expand All

(-)eglibc-2.15-fma4-orig/sysdeps/x86_64/multiarch/init-arch.c (+5 lines)
Lines 156-161 Link Here
156
	__cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx &= ~bit_AVX;
156
	__cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx &= ~bit_AVX;
157
    }
157
    }
158
158
159
  /* FMA4 depends on AVX support */
160
  if (__cpu_features.cpuid[COMMON_CPUID_INDEX_80000001].ecx & bit_FMA4
161
      && (__cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx & bit_AVX) == 0)
162
    __cpu_features.cpuid[COMMON_CPUID_INDEX_80000001].ecx &= ~bit_FMA4;
163
159
  __cpu_features.family = family;
164
  __cpu_features.family = family;
160
  __cpu_features.model = model;
165
  __cpu_features.model = model;
161
  atomic_write_barrier ();
166
  atomic_write_barrier ();

Return to bug 14059