[Mono-dev] mono on PPC - casting issue

M Jam mjam.mono at gmail.com
Fri Sep 16 21:45:40 UTC 2016

Hi all,

I am trying to get mono working on ppc.
Apparently, on one else is using it. even debian.

I did a lot of debugging and finally at a point where I know the problem is
in mono runtime.
The even generated the CIL code on both x86 and ppc and compared them. They
are exactly identical.

problem area is as simple as this:

int x = (int) 2.0
If I print x, I get 0.

other broken things: Also math.ceiling() is broken and may be more are

At this point, I am not sure what is the best route to debug other than
disassembling the code for which I need some preparation as I don't has
'as' and 'ld' on my ppc platform.
I need to build them.

In the mean time, if anyone has an advice on debugging this issue, I highly
appreciate it.

Also, lastly CIL code between a cast of int and uint is
<       IL_0015:  conv.i4
>       IL_0015:  conv.u4

Where is it in the JIT this code gets handled.

M Jam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20160916/92e050cb/attachment-0001.html>

More information about the Mono-devel-list mailing list