mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-09 11:36:28 +00:00
IR: Implement VectorZeroExtend
This commit is contained in:
@@ -919,6 +919,21 @@ U128 IREmitter::VectorPairedAdd(size_t esize, const U128& a, const U128& b) {
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorZeroExtend(size_t original_esize, const U128& a) {
|
||||
switch (original_esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorZeroExtend8, a);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorZeroExtend16, a);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorZeroExtend32, a);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::VectorZeroExtend64, a);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorZeroUpper(const U128& a) {
|
||||
return Inst<U128>(Opcode::VectorZeroUpper, a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user