Index: test/unittests/compiler/mips/instruction-selector-mips-unittest.cc |
diff --git a/test/unittests/compiler/mips/instruction-selector-mips-unittest.cc b/test/unittests/compiler/mips/instruction-selector-mips-unittest.cc |
index 45b140e0a5d1ff6d32d87e870d796c2c029a3b8a..dc14b8536146a0f4f0947d0c26e060ce6c48503e 100644 |
--- a/test/unittests/compiler/mips/instruction-selector-mips-unittest.cc |
+++ b/test/unittests/compiler/mips/instruction-selector-mips-unittest.cc |
@@ -1180,6 +1180,9 @@ TEST_F(InstructionSelectorTest, Float64Abs) { |
} |
TEST_F(InstructionSelectorTest, Float32AddWithFloat32Mul) { |
+ if (!IsMipsArchVariant(kMips32r2) && !IsMipsArchVariant(kMips32r6)) { |
+ return; |
+ } |
{ |
StreamBuilder m(this, MachineType::Float32(), MachineType::Float32(), |
MachineType::Float32(), MachineType::Float32()); |
@@ -1243,6 +1246,9 @@ TEST_F(InstructionSelectorTest, Float32AddWithFloat32Mul) { |
} |
TEST_F(InstructionSelectorTest, Float64AddWithFloat64Mul) { |
+ if (!IsMipsArchVariant(kMips32r2) && !IsMipsArchVariant(kMips32r6)) { |
+ return; |
+ } |
{ |
StreamBuilder m(this, MachineType::Float64(), MachineType::Float64(), |
MachineType::Float64(), MachineType::Float64()); |
@@ -1311,7 +1317,12 @@ TEST_F(InstructionSelectorTest, Float32SubWithFloat32Mul) { |
Node* const p0 = m.Parameter(0); |
Node* const p1 = m.Parameter(1); |
Node* const p2 = m.Parameter(2); |
- Node* n; |
+ Node* n = nullptr; |
+ |
+ if (!IsMipsArchVariant(kMips32r2) && !IsMipsArchVariant(kMips32r6)) { |
+ return; |
+ } |
+ |
if (IsMipsArchVariant(kMips32r2)) { |
n = m.Float32Sub(m.Float32Mul(p1, p2), p0); |
} else if (IsMipsArchVariant(kMips32r6)) { |
@@ -1347,7 +1358,12 @@ TEST_F(InstructionSelectorTest, Float64SubWithFloat64Mul) { |
Node* const p0 = m.Parameter(0); |
Node* const p1 = m.Parameter(1); |
Node* const p2 = m.Parameter(2); |
- Node* n; |
+ Node* n = nullptr; |
+ |
+ if (!IsMipsArchVariant(kMips32r2) && !IsMipsArchVariant(kMips32r6)) { |
+ return; |
+ } |
+ |
if (IsMipsArchVariant(kMips32r2)) { |
n = m.Float64Sub(m.Float64Mul(p1, p2), p0); |
} else if (IsMipsArchVariant(kMips32r6)) { |