mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
SPU LLVM: fix vrangeps usage in clamp_smax
This commit is contained in:
parent
280aa6da91
commit
cb2c0733e2
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue