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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 136303012: Updates refactoring of CPU feature detection (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32_test.cc
===================================================================
--- runtime/vm/assembler_ia32_test.cc (revision 32974)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -6,6 +6,7 @@
#if defined(TARGET_ARCH_IA32)
#include "vm/assembler.h"
+#include "vm/cpu.h"
#include "vm/os.h"
#include "vm/unit_test.h"
#include "vm/virtual_memory.h"
@@ -2808,7 +2809,7 @@
ASSEMBLER_TEST_GENERATE(Pextrd0, assembler) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
__ movsd(XMM0, Address(ESP, kWordSize));
__ pextrd(EAX, XMM0, Immediate(0));
}
@@ -2817,7 +2818,7 @@
ASSEMBLER_TEST_RUN(Pextrd0, test) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
typedef int32_t (*PextrdCode0)(double d);
int32_t res = reinterpret_cast<PextrdCode0>(test->entry())(123456789);
EXPECT_EQ(0x54000000, res);
@@ -2826,7 +2827,7 @@
ASSEMBLER_TEST_GENERATE(Pextrd1, assembler) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
__ movsd(XMM0, Address(ESP, kWordSize));
__ pextrd(EAX, XMM0, Immediate(1));
}
@@ -2835,7 +2836,7 @@
ASSEMBLER_TEST_RUN(Pextrd1, test) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
typedef int32_t (*PextrdCode1)(double d);
int32_t res = reinterpret_cast<PextrdCode1>(test->entry())(123456789);
EXPECT_EQ(0x419d6f34, res);
@@ -2844,7 +2845,7 @@
ASSEMBLER_TEST_GENERATE(Pmovsxdq, assembler) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
__ movsd(XMM0, Address(ESP, kWordSize));
__ pmovsxdq(XMM0, XMM0);
__ pextrd(EAX, XMM0, Immediate(1));
@@ -2854,7 +2855,7 @@
ASSEMBLER_TEST_RUN(Pmovsxdq, test) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
typedef int32_t (*PmovsxdqCode)(double d);
int32_t res = reinterpret_cast<PmovsxdqCode>(test->entry())(123456789);
EXPECT_EQ(0, res);
@@ -2863,7 +2864,7 @@
ASSEMBLER_TEST_GENERATE(Pcmpeqq, assembler) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
__ movsd(XMM0, Address(ESP, kWordSize));
__ xorpd(XMM1, XMM1);
__ pcmpeqq(XMM0, XMM1);
@@ -2874,7 +2875,7 @@
ASSEMBLER_TEST_RUN(Pcmpeqq, test) {
- if (CPUFeatures::sse4_1_supported()) {
+ if (TargetCPUFeatures::sse4_1_supported()) {
typedef int32_t (*PcmpeqqCode)(double d);
int32_t res = reinterpret_cast<PcmpeqqCode>(test->entry())(0);
EXPECT_EQ(-1, res);
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698