mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
riscv: Implement Zfa encoding.
Not yet enabled/detected.
This commit is contained in:
1 parent
ecb7f93418
commit
15cb782f85
6 files changed
+248
-47
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user