about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <numbksco@gmail.com>2023-06-08 15:05:55 +0800
committerGitHub <noreply@github.com>2023-06-08 09:05:55 +0200
commit4021f6d8c320c086fe7e6e4437414b646dda5062 (patch)
treefa75f87ada5924041c43e60a4846e842d2ef7b39 /src
parent2949e5cd8df2dfe07411475716c04fc8fd582740 (diff)
downloadbox64-4021f6d8c320c086fe7e6e4437414b646dda5062.tar.gz
box64-4021f6d8c320c086fe7e6e4437414b646dda5062.zip
[INTERPRETER] Added 66 0F 38 37 PCMPGTQ opcode (#827)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 29f36fcd..3083b7b0 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -591,7 +591,13 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr)
                 for(int i=1; i>=0; --i)

                     GX->q[i] = EX->ud[i];

                 break;

-

+            case 0x37: /* PCMPGTQ Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

+                for(int i=1; i>=0; --i)

+                    GX->sq[i] = (GX->sq[i]>EX->sq[i])?-1LL:0LL;

+                break;

             case 0x38:  /* PMINSB Gx, Ex */

                 nextop = F8;

                 GETEX(0);