Re: [PATCH] Asm memory constraints

2017-10-12 Thread Jeff Law
On 08/20/2017 06:59 PM, Alan Modra wrote: > On Sun, Aug 20, 2017 at 08:00:53AM -0500, Segher Boessenkool wrote: >> Hi Alan, >> >> On Sat, Aug 19, 2017 at 12:19:35AM +0930, Alan Modra wrote: >>> +Flushing registers to memory has performance implications and may be >>> +an issue for time-sensitive co

Re: [PATCH] Asm memory constraints

2017-09-28 Thread Alan Modra
On Mon, Aug 21, 2017 at 10:29:30AM +0930, Alan Modra wrote: > Fixed in this revised patch. The only controversial aspect now should > be whether those array casts ought to be officially blessed. I've > checked that "=m" (*(T (*)[]) ptr), "=m" (*(T (*)[n]) ptr), and > "=m" (*(T (*)[10]) ptr), all

Re: [PATCH] Asm memory constraints

2017-08-20 Thread Alan Modra
On Sun, Aug 20, 2017 at 08:00:53AM -0500, Segher Boessenkool wrote: > Hi Alan, > > On Sat, Aug 19, 2017 at 12:19:35AM +0930, Alan Modra wrote: > > +Flushing registers to memory has performance implications and may be > > +an issue for time-sensitive code. You can provide better information > > +t

Re: [PATCH] Asm memory constraints

2017-08-20 Thread Segher Boessenkool
Hi Alan, On Sat, Aug 19, 2017 at 12:19:35AM +0930, Alan Modra wrote: > +Flushing registers to memory has performance implications and may be > +an issue for time-sensitive code. You can provide better information > +to GCC to avoid this, as shown in the following examples. At a > +minimum, alias