[Bug target/52941] SH Target: Add support for movco.l / movli.l atomics on SH4A

kkojima at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 17 00:54:00 GMT 2012


--- Comment #8 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2012-04-17 00:54:00 UTC ---
(In reply to comment #7)
> Created attachment 27173 [details]
> Proposed patch

Looks even better.

> Only one thing ... is it safe to do the
> "@-r15", "@+r15" stuff in the atomic sequence?  I remember there were some
> border cases where things would blow up, but can't recall.  I've also briefly
> checked with atomic vars being on the stack and it looks OK.

I don't know about such restrictions, though my knowledge of
SH4A is very limited.  Perhaps some weired interaction of ll/sc
and cache?  Anyway, if it's a border issue, the patch is OK.
I'd like to pre-approve it.

More information about the Gcc-bugs mailing list