9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@gmx.de
To: 9fans@9fans.net
Subject: [9fans] arm compiler bug
Date: Wed,  2 Jan 2013 10:05:49 +0100	[thread overview]
Message-ID: <1306b366fc14378754e4d10a993cce67@rei2.9hal> (raw)

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



             reply	other threads:[~2013-01-02  9:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02  9:05 cinap_lenrek [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1306b366fc14378754e4d10a993cce67@rei2.9hal \
    --to=cinap_lenrek@gmx.de \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).