about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2023-05-24 23:47:49 +0800
committerGitHub <noreply@github.com>2023-05-24 17:47:49 +0200
commit52d1a09b8a1516fac33bd55732d38fb181fef29a (patch)
tree23954cc0e6ee6c7f61e0eae19b06e213203e419d /src
parent1d98aa54d5e462e2d13a2bd6795d587e4c523caf (diff)
downloadbox64-52d1a09b8a1516fac33bd55732d38fb181fef29a.tar.gz
box64-52d1a09b8a1516fac33bd55732d38fb181fef29a.zip
[RV64_DYNAREC] Fixed 66 0F 38 2B PACKUSDW opcode (#802)
* [RV64_DYNAREC] Fixed 66 0F 38 2B PACKUSDW opcode

* [RCFILE] Remove invalid options
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_660f.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_660f.c b/src/dynarec/rv64/dynarec_rv64_660f.c
index ee84bd68..d1f343b1 100644
--- a/src/dynarec/rv64/dynarec_rv64_660f.c
+++ b/src/dynarec/rv64/dynarec_rv64_660f.c
@@ -463,9 +463,9 @@ uintptr_t dynarec64_660F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
                             MIN(x3, x3, x5);
                             MAX(x3, x3, xZR);
                         } else {
-                            BLT(x3, xZR, 4+4);
+                            BGE(x3, xZR, 4+4);
                             MV(x3, xZR);
-                            BGE(x3, x5, 4+4);
+                            BLT(x3, x5, 4+4);
                             MV(x3, x5);
                         }
                         SH(x3, gback, i*2);
@@ -479,9 +479,9 @@ uintptr_t dynarec64_660F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
                             MIN(x3, x3, x5);
                             MAX(x3, x3, xZR);
                         } else {
-                            BLT(x3, xZR, 4+4);
+                            BGE(x3, xZR, 4+4);
                             MV(x3, xZR);
-                            BGE(x3, x5, 4+4);
+                            BLT(x3, x5, 4+4);
                             MV(x3, x5);
                         }
                         SH(x3, gback, 8+i*2);