Commit f099ba84 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64]Fix about nan error

Change-Id: Ib606da34b76b28fd55811225de47e407a1ebd8ef
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3717551Reviewed-by: 's avatarji 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}
parent 384e764a
......@@ -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);
}
}
......
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