mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
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
This commit is contained in:
parent
5668b1bd7a
commit
512f0a814c
1 changed files with 1 additions and 1 deletions
|
@ -9882,7 +9882,7 @@ public:
|
||||||
|
|
||||||
if (m_use_avx512)
|
if (m_use_avx512)
|
||||||
{
|
{
|
||||||
const auto sc = clamp_smax(a);
|
const auto sc = eval(bitcast<f32[4]>(max(bitcast<s32[4]>(a),splat<s32[4]>(0x0))));
|
||||||
r.value = m_ir->CreateFPToUI(sc.value, get_type<s32[4]>());
|
r.value = m_ir->CreateFPToUI(sc.value, get_type<s32[4]>());
|
||||||
set_vr(op.rt, r);
|
set_vr(op.rt, r);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue