From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com> Date: Tue, 18 Mar 2008 09:28:05 +1100 From: "Rob Pike" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <4b18090638333987bf2f2de39762c0e0@hamnavoe.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> Subject: Re: [9fans] ARM compiler Topicbox-Message-UUID: 7accd430-ead3-11e9-9d60-3106f5b1d025 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 , > > >