[ARC] atomics: Add operand to DMB instruction
authorVineet Gupta <vgupta@synopsys.com>
Wed, 23 Jan 2019 11:04:19 +0000 (11:04 +0000)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Wed, 23 Jan 2019 11:04:19 +0000 (12:04 +0100)
commitb3e5901b625df90e3618b2e5a06cccc36cd84b6a
tree76b5ee0771dae452216e9af6b4a27080b182af63
parent3f5d2012fb0ba2306b8f0799b50ccee6dc3762fc
[ARC] atomics: Add operand to DMB instruction

Atomics use DMB instruction to enforce ordering of loads/stores.
Currently gcc generates DMB w/o any arg which is a no-op. Fix that by
generating DMB 3 which enforces R+W ordering. It is stricter than what
acq/rel expect, but there's no other way.

gcc/

2019-xx-xx  Vineet Gupta <vgupta@synopsys.com>

       * config/arc/atomic.md: Add operand to DMB instruction

From-SVN: r268181
gcc/ChangeLog
gcc/config/arc/atomic.md