Fix RiscVEmitter::QuickFLI (#20351)

using `fmv.w.x` intead of `fmv.d.x` when load Float32 to float register

Signed-off-by: xiaofan <xiaofan@iscas.ac.cn>
This commit is contained in:
xiaofan
2025-05-17 13:46:18 +08:00
parent 67ebee1483
commit 885f078bb7
+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");
}