RE: ARC Assembler: bundle_align_mode directive support

2019-06-19 Thread Claudiu Zissulescu
> > And x86 static calls implementation uses '.bundle_align_mode' directive > too. > > Ok then we have a case for pushing for this feature in tools ! Still, I cannot understand how you want to use bundle_align_mode without the align directive.

Re: ARC Assembler: bundle_align_mode directive support

2019-06-13 Thread Vineet Gupta
On 6/13/19 11:14 AM, Eugeniy Paltsev wrote: > BTW: > there is discussion in Linux ML about implementation of static calls. > The idea is to patch immediate operand in jump instruction instead of using > function pointers to optimize hot code. > @vineet I bet you'll like this :) > > Current v3 patc

Re: ARC Assembler: bundle_align_mode directive support

2019-06-13 Thread Eugeniy Paltsev
On Tue, 2019-06-11 at 16:01 -0700, Vineet Gupta wrote: > On 6/11/19 11:47 AM, Eugeniy Paltsev wrote: > > Hi Vineet, > > > > On Mon, 2019-06-10 at 15:55 +, Vineet Gupta wrote: > > > On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: > > > > Hi Cupertino, > > > > > > > > I tried to use ".bundle_align_m

Re: ARC Assembler: bundle_align_mode directive support

2019-06-11 Thread Vineet Gupta
On 6/11/19 1:40 PM, Cupertino Miranda wrote: > Hi Eugeniy, > > If I understand well what this optimization would do is ... this > optimization would replace conditional code by fixed jumps that would > turn out to be always happening. Like fixed ARC build aux registers > based conditional jumps. >

Re: ARC Assembler: bundle_align_mode directive support

2019-06-11 Thread Vineet Gupta
On 6/11/19 11:47 AM, Eugeniy Paltsev wrote: > Hi Vineet, > > On Mon, 2019-06-10 at 15:55 +, Vineet Gupta wrote: >> On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: >>> Hi Cupertino, >>> >>> I tried to use ".bundle_align_mode" directive in ARC assembly, but I got >>> following error: >>> ---

Re: ARC Assembler: bundle_align_mode directive support

2019-06-11 Thread Cupertino Miranda
Hi Eugeniy, If I understand well what this optimization would do is ... this optimization would replace conditional code by fixed jumps that would turn out to be always happening. Like fixed ARC build aux registers based conditional jumps. I don't understand several things: 1st. Can't we invalid

Re: ARC Assembler: bundle_align_mode directive support

2019-06-11 Thread Eugeniy Paltsev
Hi Vineet, On Mon, 2019-06-10 at 15:55 +, Vineet Gupta wrote: > On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: > > Hi Cupertino, > > > > I tried to use ".bundle_align_mode" directive in ARC assembly, but I got > > following error: > > ->8-- > > Assembler messages: > >

Re: ARC Assembler: bundle_align_mode directive support

2019-06-10 Thread Vineet Gupta
On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: > Hi Cupertino, > > I tried to use ".bundle_align_mode" directive in ARC assembly, but I got > following error: > ->8-- > Assembler messages: > Error: unknown pseudo-op: `.bundle_align_mode' > ->8--