compare binary expression