Commit d5f253cc authored by bjaideep's avatar bjaideep Committed by Commit bot

s390: preserve src register in MovIntToFloat

The conversion instr was being called twice and
the src register was not restored after the shift.

R=joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Review-Url: https://codereview.chromium.org/2527873003
Cr-Commit-Position: refs/heads/master@{#41269}
parent 4ec41c35
......@@ -3831,8 +3831,8 @@ void MacroAssembler::SubP(Register dst, const MemOperand& opnd) {
}
void MacroAssembler::MovIntToFloat(DoubleRegister dst, Register src) {
sllg(src, src, Operand(32));
ldgr(dst, src);
sllg(r0, src, Operand(32));
ldgr(dst, r0);
}
void MacroAssembler::MovFloatToInt(Register dst, DoubleRegister src) {
......
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