Re: clobber CC for arithmetic instructions

2011-08-16 Thread Hans-Peter Nilsson
On Wed, 17 Aug 2011, Rohit Arul Raj wrote: > On Sat, Aug 13, 2011 at 5:20 AM, Hans-Peter Nilsson wrote: > >> On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj > >> wrote: > >> > Setting the CCR register is done by a built-in function. > > > > Why is this user-controllable? ? > > My first though

Re: clobber CC for arithmetic instructions

2011-08-16 Thread Rohit Arul Raj
On Sat, Aug 13, 2011 at 5:20 AM, Hans-Peter Nilsson wrote: > On Fri, 12 Aug 2011, Rohit Arul Raj wrote: >> On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj >> wrote: >> > Hello All, >> > >> > I am working on 32-bit target with gcc 4.6.0. I need some help on the >> > following: >> > >> > For my

Re: clobber CC for arithmetic instructions

2011-08-12 Thread Hans-Peter Nilsson
On Fri, 12 Aug 2011, Hans-Peter Nilsson wrote: > On Fri, 12 Aug 2011, Rohit Arul Raj wrote: > Assuming that you can indeed emit reasonable code for compares > and conditional branches without the "CCR register" set to the > do-not-update state, I'd suggest you implement that Sorry for the miswrite

Re: clobber CC for arithmetic instructions

2011-08-12 Thread Hans-Peter Nilsson
On Fri, 12 Aug 2011, Rohit Arul Raj wrote: > On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj > wrote: > > Hello All, > > > > I am working on 32-bit target with gcc 4.6.0. I need some help on the > > following: > > > > For my target, If my CCR register is set, all the arithmetic > > instructions

Re: clobber CC for arithmetic instructions

2011-08-12 Thread Richard Guenther
On Fri, Aug 12, 2011 at 11:48 AM, Rohit Arul Raj wrote: > On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj > wrote: >> Hello All, >> >> I am working on 32-bit target with gcc 4.6.0. I need some help on the >> following: >> >> For my target, If my CCR register is set, all the arithmetic >> instr

Re: clobber CC for arithmetic instructions

2011-08-12 Thread Rohit Arul Raj
On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj wrote: > Hello All, > > I am working on 32-bit target with gcc 4.6.0. I need some help on the > following: > > For my target, If my CCR register is set, all the arithmetic > instructions update the CC register else the don't update. > Setting the C

clobber CC for arithmetic instructions

2011-08-11 Thread Rohit Arul Raj
Hello All, I am working on 32-bit target with gcc 4.6.0. I need some help on the following: For my target, If my CCR register is set, all the arithmetic instructions update the CC register else the don't update. Setting the CCR register is done by a built-in function. Can any one help how to pro