This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4] BZ #14059 - Fix AVX and FMA4 detection.


On 05/16/2012 09:31 PM, Carlos O'Donell wrote:

2012-05-16  Andreas Jaeger<aj@suse.de>
            Carlos O'Donell<carlos_odonell@mentor.com>

        [BZ #14059]
        * sysdeps/x86_64/multiarch/init-arch.h
        (bit_YMM_Usable): Rename to...
        (bit_AVX_Usable): ... this.
        (bit_FMA4_Usable): New macro.
        (bit_XMM_state): New macro.
        (bit_YMM_state): New macro.
        [__ASSEMBLER__] (index_YMM_Usable): Rename to...
        [__ASSEMBLER__] (index_AVX_Usable): ... this.
        [__ASSEMBLER__] (index_FMA4_Usable): New macro.
        (CPUID_OSXSAVE): New macro.
        (CPUID_AVX): New macro.
        (CPUID_FMA4): New macro.
        (index_YMM_Usable): Rename to...
        (index_AVX_Usable): ... this.
        (HAS_AVX): Use HAS_ARCH_FEATURE.
        (HAS_FMA4): Likewise.
        (HAS_YMM_USABLE): Remove.
        * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
        Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
        are present.
        * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
        * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
        * sysdeps/x86_64/multiarch/Makefile: Likewise.
        * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
        * sysdeps/x86_64/multiarch/test-multiarch.c: New file.

Patch attached to avoid mailer mangling on forwarding.
I know it's late, but this version is working fine in Fedora Rawhide. Local hacks removed, goodness :-)

Thanks for sorting through this stuff.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]