Correctly set condition codes in operations that affect them.