9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Matthew Veety <mveety@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] arm compiler bug
Date: Wed,  2 Jan 2013 13:32:05 -0500	[thread overview]
Message-ID: <391C754D-FA39-48FA-B2CF-079FAA8B0ADF@gmail.com> (raw)
In-Reply-To: <1306b366fc14378754e4d10a993cce67@rei2.9hal>

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
>



  parent reply	other threads:[~2013-01-02 18:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02  9:05 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 [this message]
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=391C754D-FA39-48FA-B2CF-079FAA8B0ADF@gmail.com \
    --to=mveety@gmail.com \
    --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).