LDP and STP instructions for ARM getting generated despite using --param aarch64-stp-policy=never
Segher Boessenkool
segher@kernel.crashing.org
Wed Oct 15 18:15:06 GMT 2025
Hi!
On Mon, Oct 13, 2025 at 12:59:25PM +0100, Richard Earnshaw via Gcc-help wrote:
> I suspect the policy name of 'never' is misleading. The compiler will
> always use ldp and stp in the prologue and epilogue of a function regardless
> of the setting of this parameter.
Yeah, but the documentation literally says
> With '--param=aarch64-ldp-policy=never', do not emit ldp.
and
> With '--param=aarch64-stp-policy=never', do not emit stp.
so some documentation clarification could help here :-) "Do not
automatically generate ldp/stp" or equally vague wording might help?
Or maybe you can think of some nice, clear, succinct, correct and
helpful wording :-)
Segher
More information about the Gcc-help
mailing list