about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-29 12:01:40 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-03-29 12:01:40 +0200
commit0a8bbe93a52ce4d454e0eb8ee6c71384e0b5fb94 (patch)
treee1365bcff9cb6cdfa696e2962e356e1878a0d206 /src
parent1beba3e27a3bed8add918cd7eac896428b629b11 (diff)
downloadbox64-0a8bbe93a52ce4d454e0eb8ee6c71384e0b5fb94.tar.gz
box64-0a8bbe93a52ce4d454e0eb8ee6c71384e0b5fb94.zip
Added 66 0F 38 30..35 opcodes ([DYNAREC] too) (for #260)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/dynarec/arm64/dynarec_arm64_660f.c47
-rw-r--r--src/emu/x64run660f.c43
2 files changed, 90 insertions, 0 deletions
diff --git a/src/dynarec/arm64/dynarec_arm64_660f.c b/src/dynarec/arm64/dynarec_arm64_660f.c
index 39143bf9..aa8a724a 100755
--- a/src/dynarec/arm64/dynarec_arm64_660f.c
+++ b/src/dynarec/arm64/dynarec_arm64_660f.c
@@ -395,6 +395,53 @@ uintptr_t dynarec64_660F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int n
                     SXTL_32(q0, q1);     // 32bits->64bits

                     break;

 

+                case 0x30:

+                    INST_NAME("PMOVZXBW Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_8(q0, q1);     // 8bits->16bits

+                    break;

+                case 0x31:

+                    INST_NAME("PMOVZXBD Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_8(q0, q1);     // 8bits->16bits

+                    UXTL_16(q0, q0);    //16bits->32bits

+                    break;

+                case 0x32:

+                    INST_NAME("PMOVZXBQ Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_8(q0, q1);     // 8bits->16bits

+                    UXTL_16(q0, q0);    //16bits->32bits

+                    UXTL_32(q0, q0);    //32bits->64bits

+                    break;

+                case 0x33:

+                    INST_NAME("PMOVZXWD Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_16(q0, q1);     // 16bits->32bits

+                    break;

+                case 0x34:

+                    INST_NAME("PMOVZXWQ Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_16(q0, q1);     // 16bits->32bits

+                    UXTL_32(q0, q1);     // 32bits->64bits

+                    break;

+                case 0x35:

+                    INST_NAME("PMOVZXDQ Gx, Ex");  // SSE4 opcode!

+                    nextop = F8;

+                    GETEX(q1, 0);

+                    GETGX_empty(q0);

+                    UXTL_32(q0, q1);     // 32bits->64bits

+                    break;

+

                 case 0x39:

                     INST_NAME("PMINSD Gx, Ex");  // SSE4 opcode!

                     nextop = F8;

diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 44948ed0..0f7f252b 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -429,6 +429,49 @@ int Run660F(x64emu_t *emu, rex_t rex)
                 for(int i=1; i>=0; --i)

                     GX->sq[i] = EX->sd[i];

                 break;

+            

+            case 0x30: /* PMOVZXBW Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    GX->uw[i] = EX->ub[i];

+                break;

+            case 0x31: /* PMOVZXBD Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    GX->ud[i] = EX->ub[i];

+                break;

+            case 0x32: /* PMOVZXBQ Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    GX->q[i] = EX->ub[i];

+                break;

+            case 0x33: /* PMOVZXWD Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    GX->ud[i] = EX->uw[i];

+                break;

+            case 0x34: /* PMOVZXWQ Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    GX->q[i] = EX->uw[i];

+                break;

+            case 0x35: /* PMOVZXDQ Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

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

+                break;

 

             case 0x39:  /* PMINSD Gx, Ex */

                 nextop = F8;