RISC-V: Add patterns to convert AND mask to two shifts.