+2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
+
+ * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
+ options when bit_LWP is set.
+
2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
* config/i386/cpuid.h (bit_ABM): New.
unsigned int has_longmode = 0, has_3dnowp = 0, has_3dnow = 0;
unsigned int has_movbe = 0, has_sse4_1 = 0, has_sse4_2 = 0;
unsigned int has_popcnt = 0, has_aes = 0, has_avx = 0;
- unsigned int has_pclmul = 0, has_abm = 0;
+ unsigned int has_pclmul = 0, has_abm = 0, has_lwp = 0;
bool arch;
has_lahf_lm = ecx & bit_LAHF_LM;
has_sse4a = ecx & bit_SSE4a;
has_abm = ecx & bit_ABM;
+ has_lwp = ecx & bit_LWP;
has_longmode = edx & bit_LM;
has_3dnowp = edx & bit_3DNOWP;
options = concat (options, " -mpopcnt", NULL);
if (has_abm)
options = concat (options, " -mabm", NULL);
+ if (has_lwp)
+ options = concat (options, " -mlwp", NULL);
if (has_avx)
options = concat (options, " -mavx", NULL);