riscv: Implement Zfa encoding.

Not yet enabled/detected.
This commit is contained in:
Unknown W. Brackets committed 2023-12-29 09:42:23 -08:00
1 parent ecb7f93418
commit 15cb782f85
6 files changed
+248 -47

No files matched your search

+3 -7
View File
@@ -50,14 +50,10 @@ void RiscVJitBackend::CompIR_Basic(IRInst inst) {
case IROp::SetConstF:
regs_.Map(inst);
if (inst.constant == 0) {
if (inst.constant == 0)
FCVT(FConv::S, FConv::W, regs_.F(inst.dest), R_ZERO);
} else {
// TODO: In the future, could use FLI if it's approved.
// Also, is FCVT faster?
LI(SCRATCH1, (int32_t)inst.constant);
FMV(FMv::W, FMv::X, regs_.F(inst.dest), SCRATCH1);
}
else
QuickFLI(32, regs_.F(inst.dest), inst.constant, SCRATCH1);
break;
case IROp::Downcount: