Skip to content

Commit

Permalink
[LA64_DYNAREC] Added F3 0F 52 RSQRTSS opcode (#2343)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored Feb 11, 2025
1 parent 785d3ed commit 4b7e116
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/dynarec/la64/dynarec_la64_f30f.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,19 @@ uintptr_t dynarec64_F30F(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int
FSQRT_S(d1, d0);
VEXTRINS_W(v0, d1, 0);
break;
case 0x52:
INST_NAME("RSQRTSS Gx, Ex");
nextop = F8;
GETGX(v0, 1);
GETEXSS(v1, 0, 0);
q0 = fpu_get_scratch(dyn);
q1 = fpu_get_scratch(dyn);
LU12I_W(x3, 0x3f800); // 1.0f
MOVGR2FR_W(q0, x3);
FSQRT_S(q1, v1);
FDIV_S(q0, q0, q1);
VEXTRINS_W(v0, q0, 0);
break;
case 0x53:
INST_NAME("RCPSS Gx, Ex");
nextop = F8;
Expand Down

0 comments on commit 4b7e116

Please sign in to comment.