mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2026-04-27 12:11:41 +00:00
Implement vpkuhus/vpkuhus128
This commit is contained in:
parent
004a6dabeb
commit
39003f075e
1 changed files with 7 additions and 0 deletions
|
|
@ -2378,6 +2378,13 @@ bool Recompiler::Recompile(
|
||||||
v(insn.operands[0]), v(insn.operands[2]), v(insn.operands[1]));
|
v(insn.operands[0]), v(insn.operands[2]), v(insn.operands[1]));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PPC_INST_VPKUHUS:
|
||||||
|
case PPC_INST_VPKUHUS128:
|
||||||
|
// Pack unsigned halfwords to unsigned bytes with saturation
|
||||||
|
println("\t_mm_store_si128((__m128i*){}.u8, _mm_packus_epi16(_mm_load_si128((__m128i*){}.u16), _mm_load_si128((__m128i*){}.u16)));",
|
||||||
|
v(insn.operands[0]), v(insn.operands[2]), v(insn.operands[1]));
|
||||||
|
break;
|
||||||
|
|
||||||
case PPC_INST_VPKUWUM:
|
case PPC_INST_VPKUWUM:
|
||||||
case PPC_INST_VPKUWUM128:
|
case PPC_INST_VPKUWUM128:
|
||||||
println("\t_mm_store_si128((__m128i*){}.u32, _mm_load_si128((__m128i*){}.u32));", vTemp(), v(insn.operands[2]));
|
println("\t_mm_store_si128((__m128i*){}.u32, _mm_load_si128((__m128i*){}.u32));", vTemp(), v(insn.operands[2]));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue