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

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

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forgot to save a file. 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/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/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node), 718 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node),
719 g.UseRegister(mleft.left().node()), g.TempImmediate(sh), 719 g.UseRegister(mleft.left().node()), g.TempImmediate(sh),
720 g.TempImmediate(mb), g.TempImmediate(me)); 720 g.TempImmediate(mb), g.TempImmediate(me));
721 return; 721 return;
722 } 722 }
723 } 723 }
724 } 724 }
725 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm); 725 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm);
726 } 726 }
727 727
728 #if !V8_TARGET_ARCH_PPC64
729 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); }
730
731 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); }
732
733 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); }
734 #endif
728 735
729 #if V8_TARGET_ARCH_PPC64 736 #if V8_TARGET_ARCH_PPC64
730 void InstructionSelector::VisitWord64Shr(Node* node) { 737 void InstructionSelector::VisitWord64Shr(Node* node) {
731 PPCOperandGenerator g(this); 738 PPCOperandGenerator g(this);
732 Int64BinopMatcher m(node); 739 Int64BinopMatcher m(node);
733 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) { 740 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) {
734 // Try to absorb logical-and into rldic 741 // Try to absorb logical-and into rldic
735 Int64BinopMatcher mleft(m.left().node()); 742 Int64BinopMatcher mleft(m.left().node());
736 int sh = m.right().Value(); 743 int sh = m.right().Value();
737 int mb; 744 int mb;
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 MachineOperatorBuilder::kFloat64RoundTruncate | 1840 MachineOperatorBuilder::kFloat64RoundTruncate |
1834 MachineOperatorBuilder::kFloat64RoundTiesAway | 1841 MachineOperatorBuilder::kFloat64RoundTiesAway |
1835 MachineOperatorBuilder::kWord32Popcnt | 1842 MachineOperatorBuilder::kWord32Popcnt |
1836 MachineOperatorBuilder::kWord64Popcnt; 1843 MachineOperatorBuilder::kWord64Popcnt;
1837 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1844 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1838 } 1845 }
1839 1846
1840 } // namespace compiler 1847 } // namespace compiler
1841 } // namespace internal 1848 } // namespace internal
1842 } // namespace v8 1849 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698