2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Shader/F2I: Implemented the negate bit in the I2F instruction

This commit is contained in:
Subv 2018-08-15 09:18:55 -05:00
parent 5ef447cc0e
commit 40ecdda19e

View file

@ -1261,6 +1261,10 @@ private:
op_a = "abs(" + op_a + ')'; op_a = "abs(" + op_a + ')';
} }
if (instr.conversion.negate_a) {
op_a = "-(" + op_a + ')';
}
regs.SetRegisterToFloat(instr.gpr0, 0, op_a, 1, 1); regs.SetRegisterToFloat(instr.gpr0, 0, op_a, 1, 1);
break; break;
} }