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

Unified Diff: test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc

Issue 470593002: Unify MachineType and RepType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
Index: test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc
diff --git a/test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc b/test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc
index bb53bd501f169a2311f9376f7d0336a4d07c4c76..c9431eaadb0e4c139804c6b6bb66830635c37357 100644
--- a/test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc
+++ b/test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc
@@ -19,7 +19,7 @@ static const int32_t kImmediates[] = {
TEST_F(InstructionSelectorTest, Int32AddWithParameter) {
- StreamBuilder m(this, kMachineWord32, kMachineWord32, kMachineWord32);
+ StreamBuilder m(this, kMachInt32, kMachInt32, kMachInt32);
m.Return(m.Int32Add(m.Parameter(0), m.Parameter(1)));
Stream s = m.Build();
ASSERT_EQ(1U, s.size());
@@ -30,7 +30,7 @@ TEST_F(InstructionSelectorTest, Int32AddWithParameter) {
TEST_F(InstructionSelectorTest, Int32AddWithImmediate) {
TRACED_FOREACH(int32_t, imm, kImmediates) {
{
- StreamBuilder m(this, kMachineWord32, kMachineWord32);
+ StreamBuilder m(this, kMachInt32, kMachInt32);
m.Return(m.Int32Add(m.Parameter(0), m.Int32Constant(imm)));
Stream s = m.Build();
ASSERT_EQ(1U, s.size());
@@ -39,7 +39,7 @@ TEST_F(InstructionSelectorTest, Int32AddWithImmediate) {
EXPECT_EQ(imm, s.ToInt32(s[0]->InputAt(1)));
}
{
- StreamBuilder m(this, kMachineWord32, kMachineWord32);
+ StreamBuilder m(this, kMachInt32, kMachInt32);
m.Return(m.Int32Add(m.Int32Constant(imm), m.Parameter(0)));
Stream s = m.Build();
ASSERT_EQ(1U, s.size());
@@ -52,7 +52,7 @@ TEST_F(InstructionSelectorTest, Int32AddWithImmediate) {
TEST_F(InstructionSelectorTest, Int32SubWithParameter) {
- StreamBuilder m(this, kMachineWord32, kMachineWord32, kMachineWord32);
+ StreamBuilder m(this, kMachInt32, kMachInt32, kMachInt32);
m.Return(m.Int32Sub(m.Parameter(0), m.Parameter(1)));
Stream s = m.Build();
ASSERT_EQ(1U, s.size());
@@ -63,7 +63,7 @@ TEST_F(InstructionSelectorTest, Int32SubWithParameter) {
TEST_F(InstructionSelectorTest, Int32SubWithImmediate) {
TRACED_FOREACH(int32_t, imm, kImmediates) {
- StreamBuilder m(this, kMachineWord32, kMachineWord32);
+ StreamBuilder m(this, kMachInt32, kMachInt32);
m.Return(m.Int32Sub(m.Parameter(0), m.Int32Constant(imm)));
Stream s = m.Build();
ASSERT_EQ(1U, s.size());
« no previous file with comments | « test/compiler-unittests/change-lowering-unittest.cc ('k') | test/compiler-unittests/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698