Re: [PATCH v1] RISC-V: Fix scalar code-gen of unsigned SAT_MUL

2025-08-04 Thread Jeff Law
On 8/3/25 8:19 PM, Li, Pan2 wrote: Thanks Jeff. OK. Any change we could get run test for this in addition to the scanners? I tried to add run test target this but seems happen to work here for mulhsu. Here we only cares the result(high bits of mul) has values or not, looks like mulhsu wi

RE: [PATCH v1] RISC-V: Fix scalar code-gen of unsigned SAT_MUL

2025-08-03 Thread Li, Pan2
v1] RISC-V: Fix scalar code-gen of unsigned SAT_MUL On 7/30/25 11:22 PM, pan2...@intel.com wrote: > From: Pan Li > > The previous code-gen of scalar unsigned SAT_MUL, aka usmul. > Leverage the mulhs by mistake, it should be mulhu for the > hight bit result of mul. Thus, this patch

Re: [PATCH v1] RISC-V: Fix scalar code-gen of unsigned SAT_MUL

2025-08-03 Thread Jeff Law
On 7/30/25 11:22 PM, pan2...@intel.com wrote: From: Pan Li The previous code-gen of scalar unsigned SAT_MUL, aka usmul. Leverage the mulhs by mistake, it should be mulhu for the hight bit result of mul. Thus, this patch would like to make it correct. gcc/ChangeLog: * config/riscv/

[PATCH v1] RISC-V: Fix scalar code-gen of unsigned SAT_MUL

2025-07-30 Thread pan2 . li
From: Pan Li The previous code-gen of scalar unsigned SAT_MUL, aka usmul. Leverage the mulhs by mistake, it should be mulhu for the hight bit result of mul. Thus, this patch would like to make it correct. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_expand_xmode_usmul): Take u