This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [i386, PR50740] CPUID leaf 7 for BMI/BMI2/AVX2 feature detection not qualified with max_level and doesn't use subleaf
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 21 Oct 2011 14:56:34 +0200
- Subject: Re: [i386, PR50740] CPUID leaf 7 for BMI/BMI2/AVX2 feature detection not qualified with max_level and doesn't use subleaf
- References: <CAGs3RfsyqpiwA7apko4_MybxJYcz+pgZKWqGg9Ci12fao79JGw@mail.gmail.com>
On Fri, Oct 21, 2011 at 12:46 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
> Here is the patch which checks CPUID correctly to get BMI/BMI2/AVX2 feature.
>
> ChangeLog entry is:
> 2011-10-21 ?H.J. Lu ?<hongjiu.lu@intel.com>
> ? ? ? ? ? ?Kirill Yukhin ?<kirill.yukhin@intel.com>
>
> ? ? ? ?* config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
> ? ? ? ?if max_level allows that.
>
> testsuite/ChangeLg entry is
> 2011-10-21 ?H.J. Lu ?<hongjiu.lu@intel.com>
> ? ? ? ? ? ?Kirill Yukhin ?<kirill.yukhin@intel.com>
>
> ? ? ? ?* gcc.target/i386/avx2-check.h (main): Check CPU level
> ? ? ? ?correctly.
Chech CPUID level ...
> ? ? ? ?* gcc.target/i386/bmi2-check.h: Ditto.
>
> Bootstrap has passed.
OK.
Thanks,
Uros.