[EXT] Re: [PATCH v1] ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091)

Peter Bergner bergner@tenstorrent.com
Mon Oct 13 04:09:09 GMT 2025


On 10/11/25 4:42 PM, Segher Boessenkool wrote:
> So, why should it not be a register that is non-volatile in the calling
> convention here?  Please give us more context, hopefully something that
> makes this patch obviously correct and a good idea :-)

Well these asm functions don't save/restore any non-volatile vector registers,
so using v20 without restoring the old value on return breaks the ABI.
I agree that could be mentioned in the git log entry.

Peter




More information about the Libc-alpha mailing list