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

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

Issue 1765973002: [turbofan] Implementation of Word32PairShl on arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-shift
Patch Set: Rebase. 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
« no previous file with comments | « src/compiler/arm/instruction-scheduler-arm.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 Emit(kArmSbfx, g.DefineAsRegister(node), 762 Emit(kArmSbfx, g.DefineAsRegister(node),
763 g.UseRegister(mleft.left().node()), g.TempImmediate(sar - shl), 763 g.UseRegister(mleft.left().node()), g.TempImmediate(sar - shl),
764 g.TempImmediate(32 - sar)); 764 g.TempImmediate(32 - sar));
765 return; 765 return;
766 } 766 }
767 } 767 }
768 } 768 }
769 VisitShift(this, node, TryMatchASR); 769 VisitShift(this, node, TryMatchASR);
770 } 770 }
771 771
772 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); } 772 void InstructionSelector::VisitWord32PairShl(Node* node) {
773 ArmOperandGenerator g(this);
774 Int32Matcher m(node->InputAt(2));
775 InstructionOperand shift_operand;
776 if (m.HasValue()) {
777 shift_operand = g.UseImmediate(m.node());
778 } else {
779 shift_operand = g.UseUniqueRegister(m.node());
780 }
781
782 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0)),
783 g.UseRegister(node->InputAt(1)),
784 shift_operand};
785
786 InstructionOperand outputs[] = {
787 g.DefineSameAsFirst(node),
788 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
789
790 Emit(kArmPairLsl, 2, outputs, 3, inputs);
791 }
773 792
774 void InstructionSelector::VisitWord32Ror(Node* node) { 793 void InstructionSelector::VisitWord32Ror(Node* node) {
775 VisitShift(this, node, TryMatchROR); 794 VisitShift(this, node, TryMatchROR);
776 } 795 }
777 796
778 797
779 void InstructionSelector::VisitWord32Clz(Node* node) { 798 void InstructionSelector::VisitWord32Clz(Node* node) {
780 VisitRR(this, kArmClz, node); 799 VisitRR(this, kArmClz, node);
781 } 800 }
782 801
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 MachineOperatorBuilder::kFloat64RoundTiesAway | 1732 MachineOperatorBuilder::kFloat64RoundTiesAway |
1714 MachineOperatorBuilder::kFloat32RoundTiesEven | 1733 MachineOperatorBuilder::kFloat32RoundTiesEven |
1715 MachineOperatorBuilder::kFloat64RoundTiesEven; 1734 MachineOperatorBuilder::kFloat64RoundTiesEven;
1716 } 1735 }
1717 return flags; 1736 return flags;
1718 } 1737 }
1719 1738
1720 } // namespace compiler 1739 } // namespace compiler
1721 } // namespace internal 1740 } // namespace internal
1722 } // namespace v8 1741 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-scheduler-arm.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698