Fix wrong sign condition check

Fix wrong sign condition check (C_P) in condition() function. The condition only depends on the sign flag (F_S).