[Bug middle-end/118384] [14/15/16/17 Regression] unexpected call to __muldi3 generated for riscv target
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jun 7 18:40:57 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118384
--- Comment #14 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Huaqi from comment #6)
> Thanks Kito, this `-fno-ssa-phiopt` option also works.
What you can try is to defeat the pattern with a source hack, like so:
if (a & 1) {
__asm ("");
Product += b;
}
-fno-ssa-phiopt might spill the baby with the bath.
More information about the Gcc-bugs
mailing list