This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] asm non-code template parts (alternative to asm inline)


On Mon, Oct 15, 2018 at 10:45:08PM +0300, Alexander Monakov wrote:
> On Mon, 15 Oct 2018, Segher Boessenkool wrote:
> > On Sun, Oct 14, 2018 at 11:07:20PM +0300, Alexander Monakov wrote:
> > > For Basic asms, no similar mechanism is necessary since they are antithetical
> > > to efficiency in the first place.
> > 
> > I missed this part.
> > 
> >   asm("bla");
> > 
> > means almost the same as
> > 
> >   asm("bla" : );
> > 
> > and there is nothing in there that is bad for optimisation.
> 
> The extended asm does not clobber all memory, unlike its basic counterpart.

Yeah, that's new in GCC 7, and I keep forgetting.  I'm still in the
denial phase for this.


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]