Skip to content

Commit

Permalink
[DYNAREC_RV64] Fixed emit_ror32 (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored Nov 26, 2023
1 parent 8cee527 commit 6b390ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dynarec/rv64/dynarec_rv64_emit_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ void emit_ror32(dynarec_rv64_t* dyn, int ninst, rex_t rex, int s1, int s2, int s
SDxw(s1, xEmu, offsetof(x64emu_t, res));
}
IFX(X_CF) {
SRLI(s3, s1, rex.w?63:31);
AND(xFlags, xFlags, s3);
SRLIxw(s3, s1, rex.w?63:31);
OR(xFlags, xFlags, s3);
}
IFX(X_OF) {
ADDI(s3, xZR, 1);
Expand Down Expand Up @@ -479,8 +479,8 @@ void emit_ror32c(dynarec_rv64_t* dyn, int ninst, rex_t rex, int s1, uint32_t c,
SDxw(s1, xEmu, offsetof(x64emu_t, res));
}
IFX(X_CF) {
SRLI(s3, s1, rex.w?63:31);
AND(xFlags, xFlags, s3);
SRLIxw(s3, s1, rex.w?63:31);
OR(xFlags, xFlags, s3);
}
IFX(X_OF) {
if(c==1) {
Expand Down

0 comments on commit 6b390ca

Please sign in to comment.