Skip to content

Commit

Permalink
[RV64_DYNAREC] Small optim to emit_and32c (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored Dec 22, 2024
1 parent fc2a6d4 commit cd3f5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynarec/rv64/dynarec_rv64_emit_logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ void emit_and32c(dynarec_rv64_t* dyn, int ninst, rex_t rex, int s1, int64_t c, i
MOV64xw(s3, c);
AND(s1, s1, s3); // res = s1 & s2
}
if (!rex.w && (c > 2047 || c < 0)) ZEROUP(s1);
if (!rex.w && c < 0) ZEROUP(s1);

if (dyn->insts[ninst].nat_flags_fusion) NAT_FLAGS_OPS(s1, xZR);

Expand Down

0 comments on commit cd3f5ca

Please sign in to comment.