In the case when RD === RN, RD was updated before AddOverflow was called to check for an overflow, resulting in an incorrect state of the Q flag. This is reapplying a patch from f12578b9ab21843b33a78ed6082b08f379230f45 that was lost during the 20e253ece2f2c110a28245f252ce184863432c88 update