rv40: change a logical test into a bitwise one.