Merge pull request #20352 from xfan1024/riscv64-fix-fmv

Fix RiscVEmitter::QuickFLI (#20351)
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-05-17 09:33:39 +02:00
commit 10f742e123
1 file changed
+1 -1
+1 -1
View File
@@ -2497,7 +2497,7 @@ void RiscVEmitter::QuickFLI(int bits, RiscVReg rd, float v, RiscVReg scratchReg)
QuickFLI(32, rd, (double)v, scratchReg);
} else if (bits == 32) {
LI(scratchReg, v);
FMV(FMv::D, FMv::X, rd, scratchReg);
FMV(FMv::W, FMv::X, rd, scratchReg);
} else {
_assert_msg_(false, "Unsupported QuickFLI bits");
}