From 67649d7976f4c7f4a3869d332666248a51d4ec1c Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 21 Apr 2021 13:33:44 +0300 Subject: [PATCH] SPU LLVM: restore lost comment --- rpcs3/Emu/Cell/SPURecompiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 154330dd02..10ef662aab 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -7418,6 +7418,8 @@ public: { if (auto [ok, bs] = match_expr(b, byteswap(match())); ok) { + // Undo endian swapping, and rely on pshufb/vperm2b to re-reverse endianness + if (m_use_avx512_icl && (op.ra != op.rb)) { const auto m = gf2p8affineqb(c, build(0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20), 0x7f); @@ -7426,7 +7428,7 @@ public: set_vr(op.rt4, select(noncast(c) >= 0, ab, mm)); return; } - + const auto x = avg(noncast(sext((c & 0xc0) == 0xc0)), noncast(sext((c & 0xe0) == 0xc0))); const auto ax = pshufb(as, c); const auto bx = pshufb(bs, c);