From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Alef PPC code generation problem From: forsyth@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020402125359.E209F19988@mail.cse.psu.edu> Date: Tue, 2 Apr 2002 13:50:13 +0100 Topicbox-Message-UUID: 719e67ec-eaca-11e9-9e20-41e7f4b1d025 >>values. I wonder at which stage of code generation the faulty >>conversion code is applied? It isn't to >> quad = e - 4.0 * f; yes, it is, though: it's the conversion from double to int that is wrong. it might not generate the set/used warnings--i don't know about that--but that code in the Alef code generator is wrong to start with. it assigns to one int (when it should be a double) then loads from another. it's all my fault, of course, since i wrote it, but i suspect it was left that way by accident, when i was part way through. unlike qc (where i got it right) i never used Alef and thus qal much for floating-point work, and i never subsequently noticed.