Fix comparison handling.

The implementation would incorrectly leave x0 unitialized in the case
that the comparison was equal.