Spoilsport. -rob
On Tue, Mar 18, 2008 at 8:46 AM, Richard Miller <[EMAIL PROTECTED]> wrote:
> > speaking of arm:
> >
> > does the compiler emit conditional instructions
> > like subgt?
>
> term% cat t.c
> int
> f(int x)
> {
> int y = 0;
> if (x > 0)
> y -= 1;
> return y;
> }
> term% 5c -S t.c
> TEXT f+0(SB),0,$4
> MOVW $0,R2
> CMP $0,R0,
> SUB.GT $1,R2,R2
> MOVW R2,R0
> RET ,
> RET ,
> END ,
>
>
>
