Index: src/ia32/assembler-ia32.h |
=================================================================== |
--- src/ia32/assembler-ia32.h (revision 3027) |
+++ src/ia32/assembler-ia32.h (working copy) |
@@ -367,6 +367,10 @@ |
static void Probe(); |
// Check whether a feature is supported by the target CPU. |
static bool IsSupported(Feature f) { |
+ if (f == SSE2 && !FLAG_enable_sse2) return false; |
+ if (f == SSE3 && !FLAG_enable_sse3) return false; |
+ if (f == CMOV && !FLAG_enable_cmov) return false; |
+ if (f == RDTSC && !FLAG_enable_rdtsc) return false; |
return (supported_ & (static_cast<uint64_t>(1) << f)) != 0; |
} |
// Check whether a feature is currently enabled. |