Re: limiting call clobbered registers for library functions

2015-02-05 Thread Paul Shortis
On 03/02/15 09:14, Joern Rennecke wrote: On 2 February 2015 at 21:54, Paul Shortis wrote: I could have avoided the expander and used a single instruction pattern for a)b)c) if if could have found a way to have alternative dependent clobbers in an instruction pattern. I investigated attributes b

Re: limiting call clobbered registers for library functions

2015-02-02 Thread Joern Rennecke
On 2 February 2015 at 21:54, Paul Shortis wrote: > I could have avoided the expander and used a single instruction pattern for > a)b)c) if if could have found a way to have alternative dependent clobbers > in an instruction pattern. I investigated attributes but couldn't see how I > would be able

Re: limiting call clobbered registers for library functions

2015-02-02 Thread Paul Shortis
On 02/02/15 18:55, Yury Gribov wrote: On 01/30/2015 11:16 AM, Matthew Fortune wrote: Yury Gribov writes: On 01/29/2015 08:32 PM, Richard Henderson wrote: On 01/29/2015 02:08 AM, Paul Shortis wrote: I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've handled variable / m

Re: limiting call clobbered registers for library functions

2015-02-02 Thread Yury Gribov
On 01/30/2015 11:16 AM, Matthew Fortune wrote: Yury Gribov writes: On 01/29/2015 08:32 PM, Richard Henderson wrote: On 01/29/2015 02:08 AM, Paul Shortis wrote: I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've handled variable / multi-bit shifts using a mix of inline s

RE: limiting call clobbered registers for library functions

2015-01-30 Thread Matthew Fortune
Yury Gribov writes: > On 01/29/2015 08:32 PM, Richard Henderson wrote: > > On 01/29/2015 02:08 AM, Paul Shortis wrote: > >> I've ported GCC to a small 16 bit CPU that has single bit shifts. So > >> I've handled variable / multi-bit shifts using a mix of inline shifts > >> and calls to assembler su

Re: limiting call clobbered registers for library functions

2015-01-29 Thread Yury Gribov
On 01/29/2015 08:32 PM, Richard Henderson wrote: On 01/29/2015 02:08 AM, Paul Shortis wrote: I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've handled variable / multi-bit shifts using a mix of inline shifts and calls to assembler support functions. The calls to the asm

Re: limiting call clobbered registers for library functions

2015-01-29 Thread Jeff Law
On 01/29/15 10:32, Richard Henderson wrote: On 01/29/2015 02:08 AM, Paul Shortis wrote: I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've handled variable / multi-bit shifts using a mix of inline shifts and calls to assembler support functions. The calls to the asm libra

Re: limiting call clobbered registers for library functions

2015-01-29 Thread Richard Henderson
On 01/29/2015 02:08 AM, Paul Shortis wrote: > I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've > handled variable / multi-bit shifts using a mix of inline shifts and calls to > assembler support functions. > > The calls to the asm library functions clobber only one (by con

limiting call clobbered registers for library functions

2015-01-29 Thread Paul Shortis
I've ported GCC to a small 16 bit CPU that has single bit shifts. So I've handled variable / multi-bit shifts using a mix of inline shifts and calls to assembler support functions. The calls to the asm library functions clobber only one (by const) or two (variable) registers but of course call