Commit 555c4611 authored by joransiu's avatar joransiu Committed by Commit bot

S390: Implement RotRight64

Properly implement Rotate Right sequence for S390, to use the 64-bit
RLLG instruction.

R=jyan@ca.ibm.com,michael_dawson@ca.ibm.com,mbrandy@us.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1842093003

Cr-Commit-Position: refs/heads/master@{#35142}
parent a3f941ae
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment