[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:
Lu Yahan 2022-06-23 08:45:53 +08:00 committed by V8 LUCI CQ
parent 384e764a78
commit f099ba84cf

View File

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