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/1013978
Reviewed-by: Ivica Bogosavljevic <ivica.bogosavljevic@mips.com>
Commit-Queue: Sreten Kovacevic <sreten.kovacevic@mips.com>
Cr-Commit-Position: refs/heads/master@{#52623}
This commit is contained in:
Ivo Markovic 2018-04-16 14:45:23 +02:00 committed by Commit Bot
parent abfcc1124c
commit 2279dda63c
2 changed files with 4 additions and 4 deletions

View File

@ -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());

View File

@ -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());