diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-08 09:59:25 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-08 09:59:25 +0200 |
| commit | 5ab1606c4734f1c8acecce45cfc33848ab038b7c (patch) | |
| tree | 464296cc8fed845823fbc3e89fff80db5f1d6122 /src | |
| parent | b83ab97a8a74d0d138727458a3ab864c86f2c3c6 (diff) | |
| download | box64-5ab1606c4734f1c8acecce45cfc33848ab038b7c.tar.gz box64-5ab1606c4734f1c8acecce45cfc33848ab038b7c.zip | |
Added 66 0F 38 0C opcode ([ARM64_DYNAREC] too)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/dynarec/arm64/dynarec_arm64_660f.c | 16 | ||||
| -rw-r--r-- | src/emu/x64run660f.c | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/dynarec/arm64/dynarec_arm64_660f.c b/src/dynarec/arm64/dynarec_arm64_660f.c index 57c092b5..ef10924c 100755 --- a/src/dynarec/arm64/dynarec_arm64_660f.c +++ b/src/dynarec/arm64/dynarec_arm64_660f.c @@ -737,6 +737,22 @@ uintptr_t dynarec64_660F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int n VMOVeD(q0, 0, v1, 0); break; + case 0x0C: + INST_NAME("PBLENDPS Gx, Ex, Ib"); + nextop = F8; + GETGX(q0, 1); + GETEX(q1, 0, 1); + u8 = F8&0b1111; + if(u8==0b0011) { + VMOVeD(q0, 0, q1, 0); + } else if(u8==0b1100) { + VMOVeD(q0, 1, q1, 1); + } else for(int i=0; i<4; ++i) + if(u8&(1<<i)) { + VMOVeS(q0, i, q1, i); + } + break; + case 0x0E: INST_NAME("PBLENDW Gx, Ex, Ib"); nextop = F8; diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 384e82d6..a21d9bd3 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -828,6 +828,17 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) } break; + case 0x0C: /* PBLENDPS Gx, Ex, Ib */ + nextop = F8; + GETEX(1); + GETGX; + tmp8u = F8; + for (int i=0; i<4; ++i) { + if(tmp8u&(1<<i)) + GX->ud[i] = EX->ud[i]; + } + break; + case 0x0E: /* PBLENDW Gx, Ex, Ib */ nextop = F8; GETEX(1); |