mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user