mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 18:39:57 +00:00
SPU LLVM: fix vrangeps usage in clamp_smax
This commit is contained in:
parent
280aa6da91
commit
cb2c0733e2
@ -7914,14 +7914,14 @@ public:
|
||||
{
|
||||
return eval(clamp_positive_smax(v));
|
||||
}
|
||||
|
||||
|
||||
if (auto [ok, data] = get_const_vector(v.value, m_pos); ok)
|
||||
{
|
||||
// Avoid pessimation when input is constant
|
||||
return eval(clamp_positive_smax(clamp_negative_smax(v)));
|
||||
}
|
||||
|
||||
return eval(vrangeps(v, fsplat<f32[4]>(0x7f7fffff), 0x2, 0Xff));
|
||||
return eval(vrangeps(v, fsplat<f32[4]>(std::bit_cast<f32, u32>(0x7f7fffff)), 0x2, 0xff));
|
||||
}
|
||||
|
||||
return eval(clamp_positive_smax(clamp_negative_smax(v)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user