This patch does the following optimization of mul with a constant in RV64.
(sext_inreg (mul x, 3 * power_of_2), i32) -> (SLLIW (SH1ADD x, x), bits)
(sext_inreg (mul x, 5 * power_of_2), i32) -> (SLLIW (SH2ADD x, x), bits)
(sext_inreg (mul x, 9 * power_of_2), i32) -> (SLLIW (SH3ADD x, x), bits)