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

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

Issue 1842093003: S390: Implement RotRight64 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | 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/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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 __ rll(i.OutputRegister(), i.InputRegister(0), kScratchReg); 922 __ rll(i.OutputRegister(), i.InputRegister(0), kScratchReg);
923 } else { 923 } else {
924 __ rll(i.OutputRegister(), i.InputRegister(0), 924 __ rll(i.OutputRegister(), i.InputRegister(0),
925 Operand(32 - i.InputInt32(1))); 925 Operand(32 - i.InputInt32(1)));
926 } 926 }
927 break; 927 break;
928 #if V8_TARGET_ARCH_S390X 928 #if V8_TARGET_ARCH_S390X
929 case kS390_RotRight64: 929 case kS390_RotRight64:
930 if (HasRegisterInput(instr, 1)) { 930 if (HasRegisterInput(instr, 1)) {
931 __ LoadComplementRR(kScratchReg, i.InputRegister(1)); 931 __ LoadComplementRR(kScratchReg, i.InputRegister(1));
932 __ rll(i.OutputRegister(), i.InputRegister(0), kScratchReg, 932 __ rllg(i.OutputRegister(), i.InputRegister(0), kScratchReg);
933 Operand(32));
934 __ lgfr(i.OutputRegister(), i.OutputRegister());
935 } else { 933 } else {
936 UNIMPLEMENTED(); // Not implemented for now 934 __ rllg(i.OutputRegister(), i.InputRegister(0),
935 Operand(64 - i.InputInt32(1)));
937 } 936 }
938 break; 937 break;
939 #endif 938 #endif
940 case kS390_Not: 939 case kS390_Not:
941 __ LoadRR(i.OutputRegister(), i.InputRegister(0)); 940 __ LoadRR(i.OutputRegister(), i.InputRegister(0));
942 __ NotP(i.OutputRegister()); 941 __ NotP(i.OutputRegister());
943 break; 942 break;
944 case kS390_RotLeftAndMask32: 943 case kS390_RotLeftAndMask32:
945 if (CpuFeatures::IsSupported(GENERAL_INSTR_EXT)) { 944 if (CpuFeatures::IsSupported(GENERAL_INSTR_EXT)) {
946 int shiftAmount = i.InputInt32(1); 945 int shiftAmount = i.InputInt32(1);
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 padding_size -= 2; 2066 padding_size -= 2;
2068 } 2067 }
2069 } 2068 }
2070 } 2069 }
2071 2070
2072 #undef __ 2071 #undef __
2073 2072
2074 } // namespace compiler 2073 } // namespace compiler
2075 } // namespace internal 2074 } // namespace internal
2076 } // namespace v8 2075 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698