mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-10 20:06:28 +00:00
ir: Add opcodes for signed absolute differences
This commit is contained in:
@@ -1225,6 +1225,19 @@ U128 IREmitter::VectorSignExtend(size_t original_esize, const U128& a) {
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorSignedAbsoluteDifference(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorSignedAbsoluteDifference8, a, b);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorSignedAbsoluteDifference16, a, b);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorSignedAbsoluteDifference32, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorSub(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
|
||||
@@ -240,6 +240,7 @@ public:
|
||||
U128 VectorShuffleLowHalfwords(const U128& a, u8 mask);
|
||||
U128 VectorShuffleWords(const U128& a, u8 mask);
|
||||
U128 VectorSignExtend(size_t original_esize, const U128& a);
|
||||
U128 VectorSignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorSub(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorZeroExtend(size_t original_esize, const U128& a);
|
||||
|
||||
@@ -332,6 +332,9 @@ OPCODE(VectorSignExtend8, T::U128, T::U128
|
||||
OPCODE(VectorSignExtend16, T::U128, T::U128 )
|
||||
OPCODE(VectorSignExtend32, T::U128, T::U128 )
|
||||
OPCODE(VectorSignExtend64, T::U128, T::U128 )
|
||||
OPCODE(VectorSignedAbsoluteDifference8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorSignedAbsoluteDifference16, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorSignedAbsoluteDifference32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorSub8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorSub16, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorSub32, T::U128, T::U128, T::U128 )
|
||||
|
||||
Reference in New Issue
Block a user