mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 05:34:42 +01:00
IR: Implement VectorTranspose
This commit is contained in:
parent
9cc11681dc
commit
7d1e103ff5
4 changed files with 82 additions and 0 deletions
|
|
@ -1761,6 +1761,20 @@ U128 IREmitter::VectorTableLookup(const U128& defaults, const Table& table, cons
|
|||
return Inst<U128>(Opcode::VectorTableLookup128, defaults, table, indices);
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorTranspose(size_t esize, const U128& a, const U128& b, bool part) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorTranspose8, a, b, Imm1(part));
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorTranspose16, a, b, Imm1(part));
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorTranspose32, a, b, Imm1(part));
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::VectorTranspose64, a, b, Imm1(part));
|
||||
}
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue