[Mono-devel-list] Patch for CONV_I/U handling in mini.c

Bernie Solomon bernard at ugsolutions.com
Fri Jul 30 14:10:01 EDT 2004


I attach a patch to mini.h/c to improve handling of cast to native int for
64 bit machines.
This affects CONV_I and similar opcodes.

If the type is already the same size as a ptr no instruction is generated so
that
for a 64bit machine if a CEE_CONV_I gets through to the code generation
stage (as it does for sparc V9) it must be a 4 to 8 byte widening operation.

I added the STACK_I macro to make this easier to code.

OK to commit?

Bernie Solomon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mini.diffs.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040730/28006607/attachment.txt 


More information about the Mono-devel-list mailing list