1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

BufferUtils: fix SSE2 path for byteswaps

This commit is contained in:
Ivan Chikish 2023-04-18 12:20:17 +03:00 committed by Ivan
parent 9ff6003dfc
commit 1f19804cab

View File

@ -126,8 +126,8 @@ namespace
c.emit(x86::Inst::kIdPsrlw, c.v0, 8);
c.emit(x86::Inst::kIdPsllw, c.v1, 8);
c.emit(x86::Inst::kIdPor, c.v0, c.v1);
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b10110001);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b10110001);
}
if constexpr (Compare)
@ -251,8 +251,8 @@ namespace
if constexpr (sizeof(T) == 4)
{
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b10110001);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b10110001);
}
}
@ -353,8 +353,8 @@ namespace
if constexpr (sizeof(T) == 4)
{
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b01001110);
c.emit(x86::Inst::kIdPshuflw, c.v0, c.v0, 0b10110001);
c.emit(x86::Inst::kIdPshufhw, c.v0, c.v0, 0b10110001);
}
}