From mboxrd@z Thu Jan 1 00:00:00 1970 References: <1306b366fc14378754e4d10a993cce67@rei2.9hal> From: Matthew Veety Content-Type: text/plain; charset=us-ascii In-Reply-To: <1306b366fc14378754e4d10a993cce67@rei2.9hal> Message-Id: <391C754D-FA39-48FA-B2CF-079FAA8B0ADF@gmail.com> Date: Wed, 2 Jan 2013 13:32:05 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: Re: [9fans] arm compiler bug Topicbox-Message-UUID: fb8c7482-ead7-11e9-9d60-3106f5b1d025 Is this related to the bug I found in python on arm? On Jan 2, 2013, at 4:05, cinap_lenrek@gmx.de wrote: > 0 < -0x80000000 == 1 with 5c. > > the problem is caused by this: > > if(a == ACMP && f1->op == OCONST && p->from.offset < 0) { > p->as = ACMN; > p->from.offset = -p->from.offset; > } > > because 0x80000000 == -0x80000000 > > adding the following check to that if expression fixes it: > > && p->from.offset != -p->from.offset > > silly python code. > > -- > cinap >