MIPS: Fixing floating point register clobbering
Fixing floating point register clobbering for MIPSr6 (32 and 64) due to using of f31 floating point register as double compare register, without saving the value of the register before using it. TEST=cctest/test-debug/* BUG= Review URL: https://codereview.chromium.org/1346623002 Cr-Commit-Position: refs/heads/master@{#30765}
This commit is contained in:
parent
92903d0a19
commit
2d8d02f555
@ -335,7 +335,8 @@ const FPURegister f31 = { 31 };
|
||||
#define kLithiumScratchDouble f30
|
||||
#define kDoubleRegZero f28
|
||||
// Used on mips32r6 for compare operations.
|
||||
#define kDoubleCompareReg f31
|
||||
// We use the last non-callee saved odd register for O32 ABI
|
||||
#define kDoubleCompareReg f19
|
||||
|
||||
// FPU (coprocessor 1) control registers.
|
||||
// Currently only FCSR (#31) is implemented.
|
||||
|
@ -327,7 +327,8 @@ const FPURegister f31 = { 31 };
|
||||
#define kLithiumScratchDouble f30
|
||||
#define kDoubleRegZero f28
|
||||
// Used on mips64r6 for compare operations.
|
||||
#define kDoubleCompareReg f31
|
||||
// We use the last non-callee saved odd register for N64 ABI
|
||||
#define kDoubleCompareReg f23
|
||||
|
||||
// FPU (coprocessor 1) control registers.
|
||||
// Currently only FCSR (#31) is implemented.
|
||||
|
Loading…
Reference in New Issue
Block a user