[riscv64]Fix about nan error
Change-Id: Ib606da34b76b28fd55811225de47e407a1ebd8ef Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3717551 Reviewed-by: ji qiu <qiuji@iscas.ac.cn> Auto-Submit: Yahan Lu <yahan@iscas.ac.cn> Commit-Queue: ji qiu <qiuji@iscas.ac.cn> Cr-Commit-Position: refs/heads/main@{#81319}
This commit is contained in:
parent
384e764a78
commit
f099ba84cf
@ -3637,7 +3637,7 @@ void TurboAssembler::FPUCanonicalizeNaN(const DoubleRegister dst,
|
||||
if (IsDoubleZeroRegSet()) {
|
||||
fsub_d(dst, src, kDoubleRegZero);
|
||||
} else {
|
||||
LoadFPRImmediate(kDoubleRegZero, 0.0f);
|
||||
LoadFPRImmediate(kDoubleRegZero, 0.0);
|
||||
fsub_d(dst, src, kDoubleRegZero);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user