mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-09 07:58:16 +01:00
TranslateArm: Implement QADD16/QSUB16/UQADD16/UQSUB16.
This commit is contained in:
parent
4b09c0d032
commit
8e68e6fdd9
7 changed files with 79 additions and 11 deletions
|
|
@ -1089,6 +1089,22 @@ void EmitX64::EmitPackedSaturatedSubS8(IR::Block& block, IR::Inst* inst) {
|
|||
EmitPackedOperation(code, reg_alloc, inst, &XEmitter::PSUBSB);
|
||||
}
|
||||
|
||||
void EmitX64::EmitPackedSaturatedAddU16(IR::Block& block, IR::Inst* inst) {
|
||||
EmitPackedOperation(code, reg_alloc, inst, &XEmitter::PADDUSW);
|
||||
}
|
||||
|
||||
void EmitX64::EmitPackedSaturatedAddS16(IR::Block& block, IR::Inst* inst) {
|
||||
EmitPackedOperation(code, reg_alloc, inst, &XEmitter::PADDSW);
|
||||
}
|
||||
|
||||
void EmitX64::EmitPackedSaturatedSubU16(IR::Block& block, IR::Inst* inst) {
|
||||
EmitPackedOperation(code, reg_alloc, inst, &XEmitter::PSUBUSW);
|
||||
}
|
||||
|
||||
void EmitX64::EmitPackedSaturatedSubS16(IR::Block& block, IR::Inst* inst) {
|
||||
EmitPackedOperation(code, reg_alloc, inst, &XEmitter::PSUBSW);
|
||||
}
|
||||
|
||||
static void DenormalsAreZero32(BlockOfCode* code, X64Reg xmm_value, X64Reg gpr_scratch) {
|
||||
// We need to report back whether we've found a denormal on input.
|
||||
// SSE doesn't do this for us when SSE's DAZ is enabled.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue