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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/s390/code-generator-s390.cc
diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc
index 2759c50dbdd649e2a85b132a4796385c9569a03a..a1114b6987de94d7057d493900399ccf06be61b8 100644
--- a/src/compiler/s390/code-generator-s390.cc
+++ b/src/compiler/s390/code-generator-s390.cc
@@ -929,11 +929,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
case kS390_RotRight64:
if (HasRegisterInput(instr, 1)) {
__ LoadComplementRR(kScratchReg, i.InputRegister(1));
- __ rll(i.OutputRegister(), i.InputRegister(0), kScratchReg,
- Operand(32));
- __ lgfr(i.OutputRegister(), i.OutputRegister());
+ __ rllg(i.OutputRegister(), i.InputRegister(0), kScratchReg);
} else {
- UNIMPLEMENTED(); // Not implemented for now
+ __ rllg(i.OutputRegister(), i.InputRegister(0),
+ Operand(64 - i.InputInt32(1)));
}
break;
#endif
« 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