From 512f0a814c926320e20136e8c9ea74a36797d7a6 Mon Sep 17 00:00:00 2001 From: Malcolm Jestadt Date: Fri, 11 Aug 2023 18:34:50 -0400 Subject: [PATCH] SPU LLVM: Fix for AVX-512 CFLTU path - vcvvtps2udq doesn't turn negative numbers into 0, fix by using signed integer max with 0 instead of vrangeps --- rpcs3/Emu/Cell/SPURecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 49ff59a856..67a8be2cb4 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -9882,7 +9882,7 @@ public: if (m_use_avx512) { - const auto sc = clamp_smax(a); + const auto sc = eval(bitcast(max(bitcast(a),splat(0x0)))); r.value = m_ir->CreateFPToUI(sc.value, get_type()); set_vr(op.rt, r); return;