Index: test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc |
diff --git a/test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc b/test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc |
index 5280f69aa030aa01c40bc8f46393430713f983cf..f2c9c2609b4f78b24d82b6d855196f4cf1a515e8 100644 |
--- a/test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc |
+++ b/test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc |
@@ -751,71 +751,6 @@ TEST_F(InstructionSelectorTest, Float64BinopArithmetic) { |
} |
} |
- |
-TEST_F(InstructionSelectorTest, Float32SubWithMinusZeroAndParameter) { |
- { |
- StreamBuilder m(this, MachineType::Float32(), MachineType::Float32()); |
- Node* const p0 = m.Parameter(0); |
- Node* const n = m.Float32Sub(m.Float32Constant(-0.0f), p0); |
- m.Return(n); |
- Stream s = m.Build(); |
- ASSERT_EQ(1U, s.size()); |
- EXPECT_EQ(kSSEFloat32Neg, s[0]->arch_opcode()); |
- ASSERT_EQ(1U, s[0]->InputCount()); |
- EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); |
- ASSERT_EQ(1U, s[0]->OutputCount()); |
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); |
- EXPECT_EQ(kFlags_none, s[0]->flags_mode()); |
- } |
- { |
- StreamBuilder m(this, MachineType::Float32(), MachineType::Float32()); |
- Node* const p0 = m.Parameter(0); |
- Node* const n = m.Float32Sub(m.Float32Constant(-0.0f), p0); |
- m.Return(n); |
- Stream s = m.Build(AVX); |
- ASSERT_EQ(1U, s.size()); |
- EXPECT_EQ(kAVXFloat32Neg, s[0]->arch_opcode()); |
- ASSERT_EQ(1U, s[0]->InputCount()); |
- EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); |
- ASSERT_EQ(1U, s[0]->OutputCount()); |
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); |
- EXPECT_EQ(kFlags_none, s[0]->flags_mode()); |
- } |
-} |
- |
- |
-TEST_F(InstructionSelectorTest, Float64SubWithMinusZeroAndParameter) { |
- { |
- StreamBuilder m(this, MachineType::Float64(), MachineType::Float64()); |
- Node* const p0 = m.Parameter(0); |
- Node* const n = m.Float64Sub(m.Float64Constant(-0.0), p0); |
- m.Return(n); |
- Stream s = m.Build(); |
- ASSERT_EQ(1U, s.size()); |
- EXPECT_EQ(kSSEFloat64Neg, s[0]->arch_opcode()); |
- ASSERT_EQ(1U, s[0]->InputCount()); |
- EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); |
- ASSERT_EQ(1U, s[0]->OutputCount()); |
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); |
- EXPECT_EQ(kFlags_none, s[0]->flags_mode()); |
- } |
- { |
- StreamBuilder m(this, MachineType::Float64(), MachineType::Float64()); |
- Node* const p0 = m.Parameter(0); |
- Node* const n = m.Float64Sub(m.Float64Constant(-0.0), p0); |
- m.Return(n); |
- Stream s = m.Build(AVX); |
- ASSERT_EQ(1U, s.size()); |
- EXPECT_EQ(kAVXFloat64Neg, s[0]->arch_opcode()); |
- ASSERT_EQ(1U, s[0]->InputCount()); |
- EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); |
- ASSERT_EQ(1U, s[0]->OutputCount()); |
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); |
- EXPECT_EQ(kFlags_none, s[0]->flags_mode()); |
- } |
-} |
- |
- |
// ----------------------------------------------------------------------------- |
// Miscellaneous. |