mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-22 04:25:19 +00: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;
|
||||
}
|
||||
|
||||
// (TODO: implement via known-bits-lookup) Check whether shuffle mask doesn't contain fixed value selectors
|
||||
const auto [perm_only, dummy1] = match_expr(c, match<u8[16]>() & 31);
|
||||
// Check whether shuffle mask doesn't contain fixed value selectors
|
||||
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 b = get_vr<u8[16]>(op.rb);
|
||||
|
|
Loading…
Add table
Reference in a new issue