diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 16:04:15 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 16:04:15 +0100 |
| commit | 5a52922cd2b9033f6f38ea1cbc78058cf6780cf5 (patch) | |
| tree | e8e289284871fc0dfbe142e8b3fbd558fa0d8bc5 /src/emu | |
| parent | 55edf30ecf0bfa127554b14a0c8149d0b1f70ded (diff) | |
| download | box64-5a52922cd2b9033f6f38ea1cbc78058cf6780cf5.tar.gz box64-5a52922cd2b9033f6f38ea1cbc78058cf6780cf5.zip | |
Added support for SSE4.1, and added a couple of opcode ([ARM64_DYNAREC] too)
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64run660f.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 57440997..91f54814 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -445,6 +445,19 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) GX->sq[i] = EX->sd[i]; break; + case 0x2B: /* PACKUSDW Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=3; i>=0; --i) + GX->uw[i] = ((GX->sd[i]<0)?0:(GX->sd[i]>65535)?65535:GX->sd[i]); + if(GX==EX) + GX->q[1] = GX->q[0]; + else + for(int i=0; i<4; ++i) + GX->uw[i+4] = ((EX->sd[i]<0)?0:(EX->sd[i]>65535)?65535:EX->sd[i]); + break; + case 0x30: /* PMOVZXBW Gx, Ex */ nextop = F8; GETEX(0); @@ -552,6 +565,14 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) if(GX->ud[i]<EX->ud[i]) GX->ud[i] = EX->ud[i]; break; + case 0x40: /* PMULLD Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<4; ++i) + if(GX->ud[i]<EX->ud[i]) + GX->ud[i] *= EX->ud[i]; + break; case 0xDB: /* AESIMC Gx, Ex */ nextop = F8; |