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

Side by Side Diff: src/compiler/arm/instruction-selector-arm.cc

Issue 1807273002: [wasm] Int64Lowering of Int64Mul on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-phi
Patch Set: Forgot to add the visit functions on mips, ppc, and x87. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)), 792 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)),
793 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))}; 793 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))};
794 794
795 InstructionOperand outputs[] = { 795 InstructionOperand outputs[] = {
796 g.DefineAsRegister(node), 796 g.DefineAsRegister(node),
797 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; 797 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
798 798
799 Emit(kArmSubPair, 2, outputs, 4, inputs); 799 Emit(kArmSubPair, 2, outputs, 4, inputs);
800 } 800 }
801 801
802 void InstructionSelector::VisitInt32PairMul(Node* node) {
803 ArmOperandGenerator g(this);
804 InstructionOperand inputs[] = {g.UseUniqueRegister(node->InputAt(0)),
805 g.UseUniqueRegister(node->InputAt(1)),
806 g.UseUniqueRegister(node->InputAt(2)),
807 g.UseRegister(node->InputAt(3))};
808
809 InstructionOperand outputs[] = {
810 g.DefineAsRegister(node),
811 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
812
813 InstructionOperand temps[] = {g.TempRegister(), g.TempRegister()};
814
815 Emit(kArmMulPair, 2, outputs, 4, inputs, 2, temps);
816 }
817
802 void InstructionSelector::VisitWord32PairShl(Node* node) { 818 void InstructionSelector::VisitWord32PairShl(Node* node) {
803 ArmOperandGenerator g(this); 819 ArmOperandGenerator g(this);
804 // We use g.UseUniqueRegister here for InputAt(0) to guarantee that there is 820 // We use g.UseUniqueRegister here for InputAt(0) to guarantee that there is
805 // no register aliasing with output registers. 821 // no register aliasing with output registers.
806 Int32Matcher m(node->InputAt(2)); 822 Int32Matcher m(node->InputAt(2));
807 InstructionOperand shift_operand; 823 InstructionOperand shift_operand;
808 if (m.HasValue()) { 824 if (m.HasValue()) {
809 shift_operand = g.UseImmediate(m.node()); 825 shift_operand = g.UseImmediate(m.node());
810 } else { 826 } else {
811 shift_operand = g.UseUniqueRegister(m.node()); 827 shift_operand = g.UseUniqueRegister(m.node());
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 MachineOperatorBuilder::kFloat64RoundTiesAway | 1827 MachineOperatorBuilder::kFloat64RoundTiesAway |
1812 MachineOperatorBuilder::kFloat32RoundTiesEven | 1828 MachineOperatorBuilder::kFloat32RoundTiesEven |
1813 MachineOperatorBuilder::kFloat64RoundTiesEven; 1829 MachineOperatorBuilder::kFloat64RoundTiesEven;
1814 } 1830 }
1815 return flags; 1831 return flags;
1816 } 1832 }
1817 1833
1818 } // namespace compiler 1834 } // namespace compiler
1819 } // namespace internal 1835 } // namespace internal
1820 } // namespace v8 1836 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698