| Index: src/compiler/x64/instruction-selector-x64.cc
|
| diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc
|
| index 5c63f6330102146f6bb6c7ee0c6356ea719481b5..539ab7f3ad29755f97893fd1ac44061cb1853156 100644
|
| --- a/src/compiler/x64/instruction-selector-x64.cc
|
| +++ b/src/compiler/x64/instruction-selector-x64.cc
|
| @@ -1371,6 +1371,41 @@ void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) {
|
| }
|
|
|
|
|
| +void InstructionSelector::VisitFloat64ExtractWord32(Node* node) {
|
| + X64OperandGenerator g(this);
|
| + InstructionCode opcode = (OpParameter<int>(node) == 0)
|
| + ? kSSEFloat64ExtractLowWord32
|
| + : kSSEFloat64ExtractHighWord32;
|
| + Emit(opcode, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
|
| +}
|
| +
|
| +
|
| +void InstructionSelector::VisitFloat64InsertWord32(Node* node) {
|
| + X64OperandGenerator g(this);
|
| + Node* left = node->InputAt(0);
|
| + Node* right = node->InputAt(1);
|
| + InstructionCode opcode;
|
| + switch (OpParameter<int>(node)) {
|
| + case 0: {
|
| + Float64Matcher mleft(left);
|
| + if (mleft.HasValue() && (bit_cast<uint64_t>(mleft.Value()) >> 32) == 0u) {
|
| + Emit(kSSEFloat64LoadLowWord32, g.DefineAsRegister(node), g.Use(right));
|
| + return;
|
| + }
|
| + opcode = kSSEFloat64InsertLowWord32;
|
| + break;
|
| + }
|
| + case 1:
|
| + opcode = kSSEFloat64InsertHighWord32;
|
| + break;
|
| + default:
|
| + UNREACHABLE();
|
| + return;
|
| + }
|
| + Emit(opcode, g.DefineSameAsFirst(node), g.UseRegister(left), g.Use(right));
|
| +}
|
| +
|
| +
|
| // static
|
| MachineOperatorBuilder::Flags
|
| InstructionSelector::SupportedMachineOperatorFlags() {
|
|
|