On 8/11/24 4:43 AM, pan2...@intel.com wrote:
Isn't this wrong for SImode on rv64? It seems to me the right test is mode != word_mode?+static rtx +riscv_gen_zero_extend_rtx (rtx x, machine_mode mode) +{ + if (mode != HImode && mode != QImode) + return gen_lowpart (Xmode, x);
Assuming that works, it's OK for the trunk. jeff