mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #1550 from FernandoS27/fmul32
Added Saturation to FMUL32I
This commit is contained in:
commit
496d155d7b
|
@ -563,6 +563,10 @@ union Instruction {
|
||||||
BitField<48, 1, u64> negate_b;
|
BitField<48, 1, u64> negate_b;
|
||||||
} fmul;
|
} fmul;
|
||||||
|
|
||||||
|
union {
|
||||||
|
BitField<55, 1, u64> saturate;
|
||||||
|
} fmul32;
|
||||||
|
|
||||||
union {
|
union {
|
||||||
BitField<48, 1, u64> is_signed;
|
BitField<48, 1, u64> is_signed;
|
||||||
} shift;
|
} shift;
|
||||||
|
|
|
@ -1460,9 +1460,10 @@ private:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OpCode::Id::FMUL32_IMM: {
|
case OpCode::Id::FMUL32_IMM: {
|
||||||
regs.SetRegisterToFloat(
|
regs.SetRegisterToFloat(instr.gpr0, 0,
|
||||||
instr.gpr0, 0,
|
regs.GetRegisterAsFloat(instr.gpr8) + " * " +
|
||||||
regs.GetRegisterAsFloat(instr.gpr8) + " * " + GetImmediate32(instr), 1, 1);
|
GetImmediate32(instr),
|
||||||
|
1, 1, instr.fmul32.saturate);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OpCode::Id::FADD32I: {
|
case OpCode::Id::FADD32I: {
|
||||||
|
|
Loading…
Reference in a new issue