9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] ARM compiler
Date: Mon, 17 Mar 2008 21:46:20 +0000	[thread overview]
Message-ID: <4b18090638333987bf2f2de39762c0e0@hamnavoe.com> (raw)
In-Reply-To: <1d74d7c3630052c4e6a38187c3978582@quanstro.net>

> 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 21:46 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 [this message]
2008-03-17 22:28       ` Rob Pike
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=4b18090638333987bf2f2de39762c0e0@hamnavoe.com \
    --to=9fans@hamnavoe.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).