diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 9beda9cd2a..13cb3c432d 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -7695,7 +7695,7 @@ public: if (auto [ok, bs] = match_expr(b, byteswap(match())); ok) { // Undo endian swapping, and rely on pshufb/vperm2b to re-reverse endianness - if (false) + if (m_use_avx512_icl) { if (perm_only) { @@ -7703,7 +7703,7 @@ public: return; } - const auto m = gf2p8affineqb(c, build(0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40), 0x7f); + const auto m = gf2p8affineqb(c, build(0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20), 0x7f); const auto mm = select(noncast(m) >= 0, splat(0), m); const auto ab = vperm2b256to128(as, bs, c); set_vr(op.rt4, select(noncast(c) >= 0, ab, mm)); @@ -7757,7 +7757,7 @@ public: } } - if (false) + if (m_use_avx512_icl) { if (perm_only) { @@ -7765,7 +7765,7 @@ public: return; } - const auto m = gf2p8affineqb(c, build(0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40), 0x7f); + const auto m = gf2p8affineqb(c, build(0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20), 0x7f); const auto mm = select(noncast(m) >= 0, splat(0), m); const auto cr = eval(~c); const auto ab = vperm2b256to128(b, a, cr);