mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
LLVM DSL: implement absd and match helpers
Matcheable expression absd(a, b) (absolute difference).
This commit is contained in:
parent
2268aa9093
commit
67b3fc70f8
2 changed files with 61 additions and 1 deletions
|
@ -6417,7 +6417,7 @@ public:
|
|||
void ABSDB(spu_opcode_t op)
|
||||
{
|
||||
const auto [a, b] = get_vrs<u8[16]>(op.ra, op.rb);
|
||||
set_vr(op.rt, max(a, b) - min(a, b));
|
||||
set_vr(op.rt, absd(a, b));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue