This is the mail archive of the gcc@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: clobber CC for arithmetic instructions


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


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