Discrete symmetry and CP phase of the quark mixing matrix