This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] BZ #14059 - HAS_FMA4 check needs to also check for AVX
On Monday, May 14, 2012 09:52:17 Andreas Jaeger wrote:
> Btw. here's a small test program to show that the values are setup
> correctly.
>
> Currently it fails on my system (/proc/cpuinfo contains avx but
> glibc test reports it does not).
>
> Hope it's usefull,
Yes, was helpfull for me;)
I found the problem, the assignments to set the bits are wrong.
Instead of
__cpu_features.feature[index_AVX_Usable] = 1;
use
__cpu_features.feature[index_AVX_Usable]
|= bit_AVX_Usable;
The same for the FMA4 test.
Carlos, I suggest to add the test to glibc as well,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126