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

Unified Diff: test/cctest/test-cpu.cc

Issue 151163005: A64: Synchronize with r16356. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | « test/cctest/test-code-stubs-arm.cc ('k') | test/cctest/test-cpu-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-cpu.cc
diff --git a/src/a64/frames-a64.cc b/test/cctest/test-cpu.cc
similarity index 75%
copy from src/a64/frames-a64.cc
copy to test/cctest/test-cpu.cc
index fc0ecb499594f06731abe87b29ab6df7f7f82ca0..1c61ab1c46fd151068caa40bdae559f7332efcb1 100644
--- a/src/a64/frames-a64.cc
+++ b/test/cctest/test-cpu.cc
@@ -27,25 +27,24 @@
#include "v8.h"
-#if V8_TARGET_ARCH_A64
+#include "cctest.h"
+#include "cpu.h"
-#include "assembler.h"
-#include "assembler-a64.h"
-#include "assembler-a64-inl.h"
-#include "frames.h"
+using namespace v8::internal;
-namespace v8 {
-namespace internal {
+TEST(FeatureImplications) {
+ // Test for features implied by other features.
+ CPU cpu;
-Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
-Register JavaScriptFrame::context_register() { return cp; }
+ // ia32 and x64 features
+ CHECK(!cpu.has_sse() || cpu.has_mmx());
+ CHECK(!cpu.has_sse2() || cpu.has_sse());
+ CHECK(!cpu.has_sse3() || cpu.has_sse2());
+ CHECK(!cpu.has_ssse3() || cpu.has_sse3());
+ CHECK(!cpu.has_sse41() || cpu.has_sse3());
+ CHECK(!cpu.has_sse42() || cpu.has_sse41());
-
-Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
-Register StubFailureTrampolineFrame::context_register() { return cp; }
-
-
-} } // namespace v8::internal
-
-#endif // V8_TARGET_ARCH_A64
+ // arm features
+ CHECK(!cpu.has_vfp3_d32() || cpu.has_vfp3());
+}
« no previous file with comments | « test/cctest/test-code-stubs-arm.cc ('k') | test/cctest/test-cpu-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698