about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2024-12-23 04:50:05 +0800
committerGitHub <noreply@github.com>2024-12-22 21:50:05 +0100
commitcd3f5ca97db2a0a9103be83bcadba3e09b24e80e (patch)
tree300d52ccf820237729d7e51f34f491c2be6f13e5 /src
parentfc2a6d4dd19183a68f3d22270a58be683bd62266 (diff)
downloadbox64-cd3f5ca97db2a0a9103be83bcadba3e09b24e80e.tar.gz
box64-cd3f5ca97db2a0a9103be83bcadba3e09b24e80e.zip
[RV64_DYNAREC] Small optim to emit_and32c (#2189)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_emit_logic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_emit_logic.c b/src/dynarec/rv64/dynarec_rv64_emit_logic.c
index 76a4f9be..1010f38d 100644
--- a/src/dynarec/rv64/dynarec_rv64_emit_logic.c
+++ b/src/dynarec/rv64/dynarec_rv64_emit_logic.c
@@ -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);