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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 1812473002: PPC: [wasm] Int64Lowering of Int64Sub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 #if !V8_TARGET_ARCH_PPC64 971 #if !V8_TARGET_ARCH_PPC64
972 case kPPC_AddPair: 972 case kPPC_AddPair:
973 // i.InputRegister(0) ... left low word. 973 // i.InputRegister(0) ... left low word.
974 // i.InputRegister(1) ... left high word. 974 // i.InputRegister(1) ... left high word.
975 // i.InputRegister(2) ... right low word. 975 // i.InputRegister(2) ... right low word.
976 // i.InputRegister(3) ... right high word. 976 // i.InputRegister(3) ... right high word.
977 __ addc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2)); 977 __ addc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2));
978 __ adde(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3)); 978 __ adde(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3));
979 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 979 DCHECK_EQ(LeaveRC, i.OutputRCBit());
980 break; 980 break;
981 case kPPC_SubPair:
982 // i.InputRegister(0) ... left low word.
983 // i.InputRegister(1) ... left high word.
984 // i.InputRegister(2) ... right low word.
985 // i.InputRegister(3) ... right high word.
986 __ subc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2));
987 __ sube(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3));
988 DCHECK_EQ(LeaveRC, i.OutputRCBit());
989 break;
981 case kPPC_ShiftLeftPair: 990 case kPPC_ShiftLeftPair:
982 if (instr->InputAt(2)->IsImmediate()) { 991 if (instr->InputAt(2)->IsImmediate()) {
983 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), 992 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1),
984 i.InputRegister(0), i.InputRegister(1), 993 i.InputRegister(0), i.InputRegister(1),
985 i.InputInt32(2)); 994 i.InputInt32(2));
986 } else { 995 } else {
987 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), 996 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1),
988 i.InputRegister(0), i.InputRegister(1), kScratchReg, 997 i.InputRegister(0), i.InputRegister(1), kScratchReg,
989 i.InputRegister(2)); 998 i.InputRegister(2));
990 } 999 }
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 padding_size -= v8::internal::Assembler::kInstrSize; 2007 padding_size -= v8::internal::Assembler::kInstrSize;
1999 } 2008 }
2000 } 2009 }
2001 } 2010 }
2002 2011
2003 #undef __ 2012 #undef __
2004 2013
2005 } // namespace compiler 2014 } // namespace compiler
2006 } // namespace internal 2015 } // namespace internal
2007 } // namespace v8 2016 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698