CRIS: Purify some of the flag evaluation helpers.