Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 96422f6863fa86b90b655f3568680a48e61f6731..e4d099392c1ceae5da6eea3389018e18d6dbea81 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -60,15 +60,20 @@ void CpuFeatures::ProbeImpl(bool cross_compile) { |
if (cpu.has_sahf() && FLAG_enable_sahf) supported_ |= 1u << SAHF; |
if (cpu.has_avx() && EnableAVX()) supported_ |= 1u << AVX; |
if (cpu.has_fma3() && FLAG_enable_fma3) supported_ |= 1u << FMA3; |
+ if (strcmp(FLAG_mcpu, "auto") == 0) { |
+ if (cpu.is_atom()) supported_ |= 1u << ATOM; |
+ } else if (strcmp(FLAG_mcpu, "atom") == 0) { |
+ supported_ |= 1u << ATOM; |
+ } |
} |
void CpuFeatures::PrintTarget() { } |
void CpuFeatures::PrintFeatures() { |
- printf("SSE3=%d SSE4_1=%d SAHF=%d AVX=%d FMA3=%d\n", |
+ printf("SSE3=%d SSE4_1=%d SAHF=%d AVX=%d FMA3=%d ATOM=%d\n", |
CpuFeatures::IsSupported(SSE3), CpuFeatures::IsSupported(SSE4_1), |
CpuFeatures::IsSupported(SAHF), CpuFeatures::IsSupported(AVX), |
- CpuFeatures::IsSupported(FMA3)); |
+ CpuFeatures::IsSupported(FMA3), CpuFeatures::IsSupported(ATOM)); |
} |