From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Alef PPC code generation problem
Date: Tue, 2 Apr 2002 14:42:50 +0200 [thread overview]
Message-ID: <20020402144249.H6290@cackle.proxima.alt.za> (raw)
In-Reply-To: <20020402121506.9816C19995@mail.cse.psu.edu>; from forsyth@vitanuova.com on Tue, Apr 02, 2002 at 01:11:20PM +0100
On Tue, Apr 02, 2002 at 01:11:20PM +0100, forsyth@vitanuova.com wrote:
>
> i'm confused. in the example you sent,
> t = 13*i;
> neither qal nor qc generates a type upgrade for constant 13;
> it generates an integer multiplication of 13 and i (as shifts and adds, but that's almost
> beside the point), and then converts the result, which is correct.
>
For the record, what caused part of my confusion is that I "fixed" the
problem I encountered compiling /sys/src/alef/lib/port/sin.l:37 by
changing 4*f to 4.0*f. I thought the constant was at fault. It is
odd, though:
quad = e - 4*f;
is the original statement. Hm. "quad" and "4" are the only integer
values. I wonder at which stage of code generation the faulty
conversion code is applied? It isn't to
quad = e - 4.0 * f;
(seemingly).
++L
next prev parent reply other threads:[~2002-04-02 12:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-02 12:11 forsyth
2002-04-02 12:26 ` Lucio De Re
2002-04-02 12:42 ` Lucio De Re [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-02 12:50 forsyth
2002-04-02 13:03 ` Lucio De Re
2002-04-02 14:36 ` Lucio De Re
2002-04-02 11:41 Lucio De Re
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=20020402144249.H6290@cackle.proxima.alt.za \
--to=lucio@proxima.alt.za \
--cc=9fans@cse.psu.edu \
/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).