RISC-V: Optimze the reverse conditions of rotate shift