9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] arm compiler bug
@ 2013-01-02  9:05 cinap_lenrek
  2013-01-02  9:26 ` Richard Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: cinap_lenrek @ 2013-01-02  9:05 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-02 20:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02  9:05 [9fans] arm compiler bug cinap_lenrek
2013-01-02  9:26 ` Richard Miller
2013-01-02 15:07 ` erik quanstrom
2013-01-02 15:53   ` Charles Forsyth
2013-01-02 15:55     ` Charles Forsyth
2013-01-02 18:32 ` Matthew Veety
2013-01-02 18:34   ` erik quanstrom
2013-01-02 20:16     ` cinap_lenrek
2013-01-02 20:11   ` cinap_lenrek

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).