[Bug driver/50740] CPUID leaf 7 for BMI/BMI2/AVX2 feature detection not qualified with max_level and doesn't use subleaf
uros at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 21 14:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50740
--- Comment #2 from uros at gcc dot gnu.org 2011-10-21 14:32:36 UTC ---
Author: uros
Date: Fri Oct 21 14:32:32 2011
New Revision: 180304
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180304
Log:
PR target/50740
* config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
if max_level allows that.
testsuite/ChangeLog:
PR target/50740
* gcc.target/i386/avx2-check.h (main): Check CPUID level correctly.
* gcc.target/i386/bmi2-check.h: Ditto.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/driver-i386.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.target/i386/avx2-check.h
trunk/gcc/testsuite/gcc.target/i386/bmi2-check.h
More information about the Gcc-bugs
mailing list