9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Rob Pike" <robpike@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] ARM compiler
Date: Tue, 18 Mar 2008 09:28:05 +1100	[thread overview]
Message-ID: <7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com> (raw)
In-Reply-To: <4b18090638333987bf2f2de39762c0e0@hamnavoe.com>

Spoilsport.

-rob

On Tue, Mar 18, 2008 at 8:46 AM, Richard Miller <9fans@hamnavoe.com> 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     ,
>
>
>


  reply	other threads:[~2008-03-17 22:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 21:14 [9fans] more bitsy stuff john
2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
2008-03-17 12:39   ` Charles Forsyth
2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
2008-03-17 21:46     ` Richard Miller
2008-03-17 22:28       ` Rob Pike [this message]
2008-03-18  4:16         ` Bruce Ellis
2008-03-18  5:07           ` erik quanstrom
2008-03-18  6:10             ` Bruce Ellis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com \
    --to=robpike@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).