Re: [PATCH] [ARC] atomics: Add operand to DMB instruction

2019-01-28 Thread Vineet Gupta
On 1/20/19 8:19 AM, Claudiu Zissulescu wrote: > Hi, >> 2019-01-18 Vineet Gupta >> >>* config/arc/atomic.md: Add operand to DMB instruction >> > This is ok. I'll push it asap, > Claudiu Thx, I see it merged into mainline. Can you please backport this to gcc-8-branch as well ? Thx, -Vinee

RE: [PATCH] [ARC] atomics: Add operand to DMB instruction

2019-01-20 Thread Claudiu Zissulescu
Hi, > > 2019-01-18 Vineet Gupta > >* config/arc/atomic.md: Add operand to DMB instruction > This is ok. I'll push it asap, Claudiu

[PATCH] [ARC] atomics: Add operand to DMB instruction

2019-01-18 Thread Vineet Gupta
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-01-18 Vineet Gupta * config/a