[kaffe] Re: NetBSD/ppc now works

Dalibor Topic robilad at kaffe.org
Thu Apr 29 11:10:05 PDT 2004


Riccardo wrote:
> In <408FC1F6.9030800 at kaffe.org> Dalibor Topic  wrote:
> 
>>for i in test/regression/*.fail ; do \
>>	name=`dirname $i`/`basename $i .fail` ; \
>>	diff -u $name.out $name.fail ; \
>>done
> 
> 
> --- test/regression/DoubleCvt.out       2004-04-28 16:55:27.000000000 
> +0200
> +++ test/regression/DoubleCvt.fail      2004-04-28 16:55:37.000000000 
> +0200
> @@ -7,7 +7,7 @@
>  MIN_VALUE as int: 0 0
>  MIN_VALUE as long: 0 0
>  MAX_VALUE: 7fefffffffffffff
> -MAX_VALUE as float: 7f800000
> +MAX_VALUE as float: 7f7fffff
>  MAX_VALUE as int: 2147483647 7fffffff
>  MAX_VALUE as long: 9223372036854775807 7fffffffffffffff
>  POSITIVE_INFINITY: 7ff0000000000000

I've looked more closely into this one. Something goes bad when d2f 
bytecode instruction is exectued in this case. the implementation in 
intrp/icode.h looks innocent enough, but I'm not sure what should happen 
precisely when max double is assigned to a float in C. I've written a 
test case, and attached it, so it'd be nice if you could run it on your 
netbsd-ppc machine and report the results.

cheers,
dalibor topic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d2f.c
Type: text/x-csrc
Size: 451 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20040429/a05ea1ce/attachment-0002.c 


More information about the kaffe mailing list