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

Unified Diff: test/unittests/base/cpu-unittest.cc

Issue 878063002: [x86] Disable AVX unless the operating system explicitly claims to support it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation. Created 5 years, 11 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 | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/base/cpu-unittest.cc
diff --git a/test/unittests/base/cpu-unittest.cc b/test/unittests/base/cpu-unittest.cc
index 5c58f862381f8e585ddaafd4b5b7627977990cbd..c12e339701c865a4fe7e4abcbc6a5fbe9570321f 100644
--- a/test/unittests/base/cpu-unittest.cc
+++ b/test/unittests/base/cpu-unittest.cc
@@ -18,6 +18,8 @@ TEST(CPUTest, FeatureImplications) {
EXPECT_TRUE(!cpu.has_ssse3() || cpu.has_sse3());
EXPECT_TRUE(!cpu.has_sse41() || cpu.has_sse3());
EXPECT_TRUE(!cpu.has_sse42() || cpu.has_sse41());
+ EXPECT_TRUE(!cpu.has_avx() || cpu.has_sse2());
+ EXPECT_TRUE(!cpu.has_fma3() || cpu.has_avx());
// arm features
EXPECT_TRUE(!cpu.has_vfp3_d32() || cpu.has_vfp3());
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698