Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3750)

Unified Diff: base/cpu_unittest.cc

Issue 2458333002: Add popcnt support for pnacl (Closed)
Patch Set: fix initializer Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/cpu.cc ('k') | components/nacl/renderer/platform_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « base/cpu.cc ('k') | components/nacl/renderer/platform_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698