[Mono-dev] iltest failures on sparc...
David Miller
davem at davemloft.net
Tue Mar 16 03:32:23 EDT 2010
From: Zoltan Varga <vargaz at gmail.com>
Date: Tue, 16 Mar 2010 08:24:14 +0100
> I think this is due to a rounding problem on sparc
> in the OP_FCONV_TO_I implementation in mini-sparc.c.
For integer conversions, the Sparc FPU always rounds towards zero, no
matter what is set in the floating point control register.
On overflow, if the source operand is non-negative the result written
is 2147483647. Else if the source operand is negative the result
written is -2147483648.
I suspect, like powerpc, that this test should simply be disabled
on sparc.
More information about the Mono-devel-list
mailing list