Chromium Code Reviews| Index: base/cpu_unittest.cc |
| diff --git a/base/cpu_unittest.cc b/base/cpu_unittest.cc |
| index ec14620f98c91a79a9e6ddc1e40a983cabd621b4..11cfcbe71dac9add22dea01ee9b3800f406d36d4 100644 |
| --- a/base/cpu_unittest.cc |
| +++ b/base/cpu_unittest.cc |
| @@ -100,6 +100,11 @@ TEST(CPU, RunExtendedInstructions) { |
| __asm crc32 eax, eax; |
| } |
| + if (cpu.has_popcnt()) { |
| + // Execute a POPCNT instruction. |
| + __asm popcnt eax, eax; |
| + } |
| + |
| // Visual C 2012 required for AVX. |
| #if _MSC_VER >= 1700 |
| if (cpu.has_avx()) { |