From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Tue, 21 Oct 2014 17:34:52 +0000 Message-ID: References: In-Reply-To: Content-Type: multipart/alternative; boundary="_000_A50BE10181944F1B9EE56EFA58F22D3Cfbcom_" MIME-Version: 1.0 Subject: Re: [9fans] copy paste bug in cc.y? Topicbox-Message-UUID: 1f6b7d48-ead9-11e9-9d60-3106f5b1d025 --_000_A50BE10181944F1B9EE56EFA58F22D3Cfbcom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable but (0:int + x) would not do the same thing? What is special about using = SUB instead of ADD? On Oct 17, 2014, at 12:07 PM, Charles Forsyth > wrote: On 17 October 2014 18:48, Yoann Padioleau > w= rote: Somehow? Would be nice to have a comment explaining this =93somehow" then because it looks tricky. it's building a tree for (0:int-(0:int-x)) which later transformations will= simplify to x, but having done "the usual arithmetic conversions" balancing and promoting 0s and x as required, if it's char/int/long/vlong. --_000_A50BE10181944F1B9EE56EFA58F22D3Cfbcom_ Content-Type: text/html; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable

but (0:int + x)   would not do the same thing? What is specia= l about using SUB instead
of ADD?


On Oct 17, 2014, at 12:07 PM, Charles Forsyth <charles.forsyth@gmail.com> wrote:


On 17 October 2014 18:48, Yoann Padioleau <pad@fb.com> wrote:
Somehow?

Would be nice to have a comment explaining this =93somehow" then<= /div>
because it looks tricky.

it's building a tree for (0:int-(0:int-x)) which later transformations will= simplify to x, but having done "the usual arithmetic conversions"= ;
balancing and promoting 0s and x as required, if= it's char/int/long/vlong.

--_000_A50BE10181944F1B9EE56EFA58F22D3Cfbcom_--