Port-mips archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: __atomic_test_and_set() and mips o32 - help wanted
> On Nov 19, 2025, at 2:05 AM, Maciej W. Rozycki <macro%orcam.me.uk@localhost> wrote:
>
> Conversely the compiler is happy to inline LL/SC sequences as they map
> directly to RTL and at worst you need to maintain emulation. It seems
> like a good compromise.
I’m not disagreeing that inline ll/sc is more efficient on systems that support it. But if the compiler is targeted at a MIPS-I target, this is generally considered an acceptable compromise. Sure, if you build with -mmips3 or whatever the flag is, inline it. But if -mmips1, a libcall doesn’t seem unreasonable.
-- thorpej
Home |
Main Index |
Thread Index |
Old Index