mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
drcbex64: some micro-optimizations (nw)
This commit is contained in:
parent
e274bc02d2
commit
a51b58c0bd
1 changed files with 16 additions and 0 deletions
|
@ -5193,6 +5193,10 @@ void drcbe_x64::op_or(x86code *&dst, const instruction &inst)
|
|||
if (dstp.is_memory() && dstp == src1p)
|
||||
emit_or_m32_p32(dst, MABS(dstp.memory()), src2p, inst); // or [dstp],src2p
|
||||
|
||||
// dstp == src2p in memory
|
||||
else if (dstp.is_memory() && dstp == src2p)
|
||||
emit_or_m32_p32(dst, MABS(dstp.memory()), src1p, inst); // or [dstp],src1p
|
||||
|
||||
// general case
|
||||
else
|
||||
{
|
||||
|
@ -5209,6 +5213,10 @@ void drcbe_x64::op_or(x86code *&dst, const instruction &inst)
|
|||
if (dstp.is_memory() && dstp == src1p)
|
||||
emit_or_m64_p64(dst, MABS(dstp.memory()), src2p, inst); // or [dstp],src2p
|
||||
|
||||
// dstp == src2p in memory
|
||||
else if (dstp.is_memory() && dstp == src2p)
|
||||
emit_or_m64_p64(dst, MABS(dstp.memory()), src1p, inst); // or [dstp],src1p
|
||||
|
||||
// general case
|
||||
else
|
||||
{
|
||||
|
@ -5247,6 +5255,10 @@ void drcbe_x64::op_xor(x86code *&dst, const instruction &inst)
|
|||
if (dstp.is_memory() && dstp == src1p)
|
||||
emit_xor_m32_p32(dst, MABS(dstp.memory()), src2p, inst); // xor [dstp],src2p
|
||||
|
||||
// dstp == src2p in memory
|
||||
else if (dstp.is_memory() && dstp == src2p)
|
||||
emit_xor_m32_p32(dst, MABS(dstp.memory()), src1p, inst); // xor [dstp],src1p
|
||||
|
||||
// general case
|
||||
else
|
||||
{
|
||||
|
@ -5263,6 +5275,10 @@ void drcbe_x64::op_xor(x86code *&dst, const instruction &inst)
|
|||
if (dstp.is_memory() && dstp == src1p)
|
||||
emit_xor_m64_p64(dst, MABS(dstp.memory()), src2p, inst); // xor [dstp],src2p
|
||||
|
||||
// dstp == src2p in memory
|
||||
else if (dstp.is_memory() && dstp == src2p)
|
||||
emit_xor_m64_p64(dst, MABS(dstp.memory()), src1p, inst); // xor [dstp],src1p
|
||||
|
||||
// general case
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue