mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 14:32:57 +00:00
ir: Add opcodes for performing vector unsigned absolute differences
This commit is contained in:
@@ -1160,6 +1160,19 @@ U128 IREmitter::VectorSub(size_t esize, const U128& a, const U128& b) {
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorUnsignedAbsoluteDifference8, a, b);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorUnsignedAbsoluteDifference16, a, b);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorUnsignedAbsoluteDifference32, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorZeroExtend(size_t original_esize, const U128& a) {
|
||||
switch (original_esize) {
|
||||
case 8:
|
||||
|
||||
Reference in New Issue
Block a user