From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 14 Dec 2011 18:59:45 -0800 From: Anthony Martin To: Charles Forsyth Message-ID: <20111215025945.GA16477@dinah> References: <1327f5027eaa9481a13e08f02cae8327@proxima.alt.za> <20111214101009.GA1154@dinah> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] C compiler error? Topicbox-Message-UUID: 4f1f60ba-ead7-11e9-9d60-3106f5b1d025 Charles Forsyth once said: > that's a little tidier, but still not right. the original > pswt.c code was fine (or nearly so). the problem is > actually in 8c's handling of 64-bit values and registers. I'm not sure I understand entirely. Could you elaborate this a bit? Also I'm a bit confused about how uvlongs are handled in 8c. Regalloc seems to use D_F0 for signed vlongs which works fine with the AFMOVV instructions but IIRC that only works for signed 64-bit values. To use an unsigned value there would have to be some sort of pre- and post-processing before a load or store into the FP register. I don't see code for that anywhere. Did I miss it? Any help is appreciated. Thanks, Anthony