Commit 7634d1aa authored by ahaas's avatar ahaas Committed by Commit bot

[wasm] Some cleanup in the Int64Lowering.

I removed some stale comments and added a missing unit test.

R=titzer@chromium.org

Review URL: https://codereview.chromium.org/1772843003

Cr-Commit-Position: refs/heads/master@{#34586}
parent 1b096975
......@@ -333,7 +333,6 @@ void Int64Lowering::LowerNode(Node* node) {
ReplaceNode(node, replacement, nullptr);
break;
}
// kExprI64Ne:
// kExprI64LtS:
case IrOpcode::kInt64LessThan: {
LowerComparison(node, machine()->Int32LessThan(),
......@@ -366,14 +365,6 @@ void Int64Lowering::LowerNode(Node* node) {
// kExprI64Ctz:
// kExprI64Popcnt:
// kExprF32SConvertI64:
// kExprF32UConvertI64:
// kExprF64SConvertI64:
// kExprF64UConvertI64:
// kExprI64SConvertF32:
// kExprI64SConvertF64:
// kExprI64UConvertF32:
// kExprI64UConvertF64:
default: { DefaultLowering(node); }
}
}
......
......@@ -499,8 +499,6 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left,
// kExprI64DivU:
// kExprI64RemS:
// kExprI64RemU:
// kExprI64And:
// kExprI64Ior:
case wasm::kExprI64Ior:
op = m->Word64Or();
break;
......
......@@ -308,7 +308,6 @@ TEST_F(Int64LoweringTest, CallI64Parameter) {
// kExprI64DivU:
// kExprI64RemS:
// kExprI64RemU:
// kExprI64And:
// kExprI64Ior:
TEST_F(Int64LoweringTest, Int64Ior) {
LowerGraph(graph()->NewNode(machine()->Word64Or(), Int64Constant(value(0)),
......@@ -368,7 +367,6 @@ TEST_F(Int64LoweringTest, Int64Eq) {
start(), start()));
}
// kExprI64Ne:
// kExprI64LtS:
TEST_F(Int64LoweringTest, Int64LtS) {
TestComparison(machine()->Int64LessThan(), IsInt32LessThan, IsUint32LessThan);
......@@ -390,6 +388,13 @@ TEST_F(Int64LoweringTest, Int64LeU) {
}
// kExprI32ConvertI64:
TEST_F(Int64LoweringTest, I32ConvertI64) {
LowerGraph(graph()->NewNode(machine()->TruncateInt64ToInt32(),
Int64Constant(value(0))),
MachineRepresentation::kWord32);
EXPECT_THAT(graph()->end()->InputAt(1),
IsReturn(IsInt32Constant(low_word_value(0)), start(), start()));
}
// kExprI64SConvertI32:
// kExprI64UConvertI32:
......@@ -399,16 +404,6 @@ TEST_F(Int64LoweringTest, Int64LeU) {
// kExprI64Clz:
// kExprI64Ctz:
// kExprI64Popcnt:
// kExprF32SConvertI64:
// kExprF32UConvertI64:
// kExprF64SConvertI64:
// kExprF64UConvertI64:
// kExprI64SConvertF32:
// kExprI64SConvertF64:
// kExprI64UConvertF32:
// kExprI64UConvertF64:
} // namespace compiler
} // namespace internal
} // namespace v8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment