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

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

Issue 1849543003: S390: [wasm] Int64Lowering of Int64Mul on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Re-implement using msgr Created 4 years, 8 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
« no previous file with comments | « src/compiler/s390/instruction-scheduler-s390.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/s390/frames-s390.h" 9 #include "src/s390/frames-s390.h"
10 10
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 } 772 }
773 773
774 void InstructionSelector::VisitInt32PairAdd(Node* node) { 774 void InstructionSelector::VisitInt32PairAdd(Node* node) {
775 VisitPairBinop(this, kS390_AddPair, node); 775 VisitPairBinop(this, kS390_AddPair, node);
776 } 776 }
777 777
778 void InstructionSelector::VisitInt32PairSub(Node* node) { 778 void InstructionSelector::VisitInt32PairSub(Node* node) {
779 VisitPairBinop(this, kS390_SubPair, node); 779 VisitPairBinop(this, kS390_SubPair, node);
780 } 780 }
781 781
782 void InstructionSelector::VisitInt32PairMul(Node* node) {
783 S390OperandGenerator g(this);
784 InstructionOperand inputs[] = {g.UseUniqueRegister(node->InputAt(0)),
785 g.UseUniqueRegister(node->InputAt(1)),
786 g.UseUniqueRegister(node->InputAt(2)),
787 g.UseUniqueRegister(node->InputAt(3))};
788
789 InstructionOperand outputs[] = {
790 g.DefineAsRegister(node),
791 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
792
793 Emit(kS390_MulPair, 2, outputs, 4, inputs);
794 }
795
782 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, 796 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode,
783 Node* node) { 797 Node* node) {
784 S390OperandGenerator g(selector); 798 S390OperandGenerator g(selector);
785 Int32Matcher m(node->InputAt(2)); 799 Int32Matcher m(node->InputAt(2));
786 InstructionOperand shift_operand; 800 InstructionOperand shift_operand;
787 if (m.HasValue()) { 801 if (m.HasValue()) {
788 shift_operand = g.UseImmediate(m.node()); 802 shift_operand = g.UseImmediate(m.node());
789 } else { 803 } else {
790 shift_operand = g.UseUniqueRegister(m.node()); 804 shift_operand = g.UseUniqueRegister(m.node());
791 } 805 }
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 MachineOperatorBuilder::kFloat32RoundTruncate | 1756 MachineOperatorBuilder::kFloat32RoundTruncate |
1743 MachineOperatorBuilder::kFloat64RoundTruncate | 1757 MachineOperatorBuilder::kFloat64RoundTruncate |
1744 MachineOperatorBuilder::kFloat64RoundTiesAway | 1758 MachineOperatorBuilder::kFloat64RoundTiesAway |
1745 MachineOperatorBuilder::kWord32Popcnt | 1759 MachineOperatorBuilder::kWord32Popcnt |
1746 MachineOperatorBuilder::kWord64Popcnt; 1760 MachineOperatorBuilder::kWord64Popcnt;
1747 } 1761 }
1748 1762
1749 } // namespace compiler 1763 } // namespace compiler
1750 } // namespace internal 1764 } // namespace internal
1751 } // namespace v8 1765 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/s390/instruction-scheduler-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698