fix crash bug in movddup-on-sse2-emulation
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@241 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ba684cabcd
commit
af7e0404ca
|
@ -1155,16 +1155,15 @@ namespace Gen
|
||||||
|
|
||||||
void MOVDDUP(X64Reg regOp, OpArg arg)
|
void MOVDDUP(X64Reg regOp, OpArg arg)
|
||||||
{
|
{
|
||||||
// TODO(ector): check SSE3 flag
|
|
||||||
if (cpu_info.bSSE3)
|
if (cpu_info.bSSE3)
|
||||||
{
|
{
|
||||||
WriteSSEOp(64, 0x12, false, regOp, arg); //SSE3
|
WriteSSEOp(64, 0x12, false, regOp, arg); //SSE3 movddup
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Simulate this instruction with SSE2 instructions
|
// Simulate this instruction with SSE2 instructions
|
||||||
if (!arg.IsSimpleReg(regOp))
|
if (!arg.IsSimpleReg(regOp))
|
||||||
MOVAPD(regOp, arg);
|
MOVQ_xmm(regOp, arg);
|
||||||
UNPCKLPD(regOp, R(regOp));
|
UNPCKLPD(regOp, R(regOp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue