From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <775b8d190803172116r27014084pc2c7c754037788c8@mail.gmail.com> Date: Tue, 18 Mar 2008 15:16:39 +1100 From: "Bruce Ellis" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d74d7c3630052c4e6a38187c3978582@quanstro.net> <4b18090638333987bf2f2de39762c0e0@hamnavoe.com> <7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com> Subject: Re: [9fans] ARM compiler Topicbox-Message-UUID: 7aea2aee-ead3-11e9-9d60-3106f5b1d025 rtfc(1) is on the rtfm(1) page. grep of /sys/src/cmd/5c/*.c may have been enough. brucee On Tue, Mar 18, 2008 at 9:28 AM, Rob Pike wrote: > 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 , > > > > > > > >