mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
SPU LLVM: Use get_known_bits() in SHUFB
This commit is contained in:
parent
ee7475a9d4
commit
50dad6801b
1 changed files with 7 additions and 2 deletions
|
@ -8572,8 +8572,13 @@ public:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// (TODO: implement via known-bits-lookup) Check whether shuffle mask doesn't contain fixed value selectors
|
// Check whether shuffle mask doesn't contain fixed value selectors
|
||||||
const auto [perm_only, dummy1] = match_expr(c, match<u8[16]>() & 31);
|
bool perm_only = false;
|
||||||
|
|
||||||
|
if (auto k = get_known_bits(c); !!(k.Zero & 0x80))
|
||||||
|
{
|
||||||
|
perm_only = true;
|
||||||
|
}
|
||||||
|
|
||||||
const auto a = get_vr<u8[16]>(op.ra);
|
const auto a = get_vr<u8[16]>(op.ra);
|
||||||
const auto b = get_vr<u8[16]>(op.rb);
|
const auto b = get_vr<u8[16]>(op.rb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue