clean up RIFEQ, RIFLT, and RIFGT