This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: atomic ops for powerpc
>>>>> Geoffrey Keating writes:
Geoff> GNU as has supported lwsync since 2003, it's in 2.15 and 2.16. I
Geoff> presume AIX as has supported it for even longer than that since the
Geoff> instruction originated at IBM.
One could test at configure time if lwsync mnemonic is recognized
and emit a "sync" instruction if it is not.
Geoff> What do you suggest? Again, we could use a .long, or I guess 'bne-
Geoff> .-16', if that works everywhere.
One could use "bne- $-16" and "bne- $+16", or explicitly generate
and emit labels, as is done by other patterns in rs6000.md.
Thanks, David