Commit 2279dda6 authored by Ivo Markovic's avatar Ivo Markovic Committed by Commit Bot

Mips[64] Use kScratchReg instead of at register

At is used in Macro Assembler, so we need other registers to hold temporary values.

Change-Id: Iffeddba7b3319666a605eea62ecc3cd01b065ad7
Reviewed-on: https://chromium-review.googlesource.com/1013978Reviewed-by: 's avatarIvica Bogosavljevic <ivica.bogosavljevic@mips.com>
Commit-Queue: Sreten Kovacevic <sreten.kovacevic@mips.com>
Cr-Commit-Position: refs/heads/master@{#52623}
parent abfcc112
......@@ -3373,8 +3373,8 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
if (bit_cast<int32_t>(src.ToFloat32()) == 0) {
__ sw(zero_reg, dst);
} else {
__ li(at, Operand(bit_cast<int32_t>(src.ToFloat32())));
__ sw(at, dst);
__ li(kScratchReg, Operand(bit_cast<int32_t>(src.ToFloat32())));
__ sw(kScratchReg, dst);
}
} else {
DCHECK(destination->IsFPRegister());
......
......@@ -3627,8 +3627,8 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
if (bit_cast<int32_t>(src.ToFloat32()) == 0) {
__ Sw(zero_reg, dst);
} else {
__ li(at, Operand(bit_cast<int32_t>(src.ToFloat32())));
__ Sw(at, dst);
__ li(kScratchReg, Operand(bit_cast<int32_t>(src.ToFloat32())));
__ Sw(kScratchReg, dst);
}
} else {
DCHECK(destination->IsFPRegister());
......
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