clobber CC for arithmetic instructions
Hans-Peter Nilsson
hp@bitrange.com
Wed Aug 17 06:57:00 GMT 2011
On Wed, 17 Aug 2011, Rohit Arul Raj wrote:
> On Sat, Aug 13, 2011 at 5:20 AM, Hans-Peter Nilsson <hp@bitrange.com> wrote:
> >> On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj <rohitarulraj@gmail.com> wrote:
> >> > Setting the CCR register is done by a built-in function.
> >
> > Why is this user-controllable?
?
> > My first thought is that this is misguided.
> > Is this just a sketch or do you already have code using it?
> >
>
> We already have code using this :).
Hm. Well, I don't see how user code can observe the state other
than through asms or called functions so you could supposedly
just set a variable in the builtin and set CCR to that value
before an asm, call or return... But now I'm telling you
obvious things. Good luck.
brgds, H-P
More information about the Gcc
mailing list