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

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

Issue 2170343002: [turbofan] Change Float64Max/Float64Min to JavaScript semantics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips/mips64 ports. Created 4 years, 5 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/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc
diff --git a/test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc b/test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc
index b252b4fe7e8b6ea9a48c9f39395e6e25482dc40d..739700679eb95a5e9549a94e9985c20e2f563983 100644
--- a/test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc
+++ b/test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc
@@ -1409,40 +1409,6 @@ TEST_F(InstructionSelectorTest, Float64Abs) {
}
-TEST_F(InstructionSelectorTest, Float32Max) {
- StreamBuilder m(this, MachineType::Float32(), MachineType::Float32(),
- MachineType::Float32());
- Node* const p0 = m.Parameter(0);
- Node* const p1 = m.Parameter(1);
- Node* const n = m.Float32Max(p0, p1);
- m.Return(n);
- Stream s = m.Build();
- // Float32Max is `(b < a) ? a : b`.
- ASSERT_EQ(1U, s.size());
- EXPECT_EQ(kMips64Float32Max, s[0]->arch_opcode());
- ASSERT_EQ(2U, s[0]->InputCount());
- ASSERT_EQ(1U, s[0]->OutputCount());
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output()));
-}
-
-
-TEST_F(InstructionSelectorTest, Float32Min) {
- StreamBuilder m(this, MachineType::Float32(), MachineType::Float32(),
- MachineType::Float32());
- Node* const p0 = m.Parameter(0);
- Node* const p1 = m.Parameter(1);
- Node* const n = m.Float32Min(p0, p1);
- m.Return(n);
- Stream s = m.Build();
- // Float32Min is `(a < b) ? a : b`.
- ASSERT_EQ(1U, s.size());
- EXPECT_EQ(kMips64Float32Min, s[0]->arch_opcode());
- ASSERT_EQ(2U, s[0]->InputCount());
- ASSERT_EQ(1U, s[0]->OutputCount());
- EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output()));
-}
-
-
TEST_F(InstructionSelectorTest, Float64Max) {
StreamBuilder m(this, MachineType::Float64(), MachineType::Float64(),
MachineType::Float64());
@@ -1451,7 +1417,6 @@ TEST_F(InstructionSelectorTest, Float64Max) {
Node* const n = m.Float64Max(p0, p1);
m.Return(n);
Stream s = m.Build();
- // Float64Max is `(b < a) ? a : b`.
ASSERT_EQ(1U, s.size());
EXPECT_EQ(kMips64Float64Max, s[0]->arch_opcode());
ASSERT_EQ(2U, s[0]->InputCount());
@@ -1468,7 +1433,6 @@ TEST_F(InstructionSelectorTest, Float64Min) {
Node* const n = m.Float64Min(p0, p1);
m.Return(n);
Stream s = m.Build();
- // Float64Min is `(a < b) ? a : b`.
ASSERT_EQ(1U, s.size());
EXPECT_EQ(kMips64Float64Min, s[0]->arch_opcode());
ASSERT_EQ(2U, s[0]->InputCount());
« no previous file with comments | « test/unittests/compiler/mips/instruction-selector-mips-unittest.cc ('k') | test/unittests/compiler/node-test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698