[RFC PATCH] LoongArch: Fix intermittent nptl/tst-cancel32 failure

Wilco Dijkstra Wilco.Dijkstra@arm.com
Tue Aug 4 13:50:07 GMT 2026


Hi Mengqinggang,

> 	REG_L t0, a0, 0*SZREG
> -	PTR_DEMANGLE (ra, t0, t1)
> +	PTR_DEMANGLE (ra, t0, t1, t2)
>	REG_L t0, a0, 1*SZREG
>-	PTR_DEMANGLE2 (sp, t0, t1)
>+	PTR_DEMANGLE2 (sp, t0, t1, t2)

Isn't t0 already a temporary in PTR_DEMANGE as the code above shows?
For mangling, dst is the temporary (and thus cannot be SP), for demangling,
src is the temporary (and thus cannot be SP).

Cheers,
Wilco


More information about the Libc-alpha mailing list