Scalar multiply is not part of the most basic RISC-V ISA. Use a and+setcc+select for these targets. The and+setcc+select is also beneficial for targets with bit test instructions. RISC-V may not get the full benefit here due to not having a cmove-like instruction without Zicond. Co-authored-by: fbrv <Fabio.Baravalle@gmail.com>