Factor out fcmp and icmp translation into helper functions.
Factor out fcmp and icmp translation into helper functions.

sunfishcode/cretonne,sunfishcode/cretonne,stoklund/cretonne,sunfishcode/cretonne,stoklund/cretonne,stoklund/cretonne