https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111815
--- Comment #1 from Maciej W. Rozycki <macro at orcam dot me.uk> --- Created attachment 56120 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56120&action=edit Reduced testcase This triggers the same ICE in `p'. Preincrements are required so that their results land in registers and consequently an indexed addressing mode is tried or otherwise doing operations piecemeal on stack-based function arguments as direct input operands turns out more profitable in terms of RTX costs and the ICE is avoided.