[Mono-bugs] [Bug 405877] New: Mono does not run unsafe code with i8 conversion

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 2 14:55:25 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=405877


           Summary: Mono does not run unsafe code with i8 conversion
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


assembly extern mscorlib
{
  .ver 2:0:0:0
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
assembly 'test-402'
{
  .custom instance void class
[mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'()
=  (
                01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   //
...T..WrapNonEx
                63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) //
ceptionThrows.

  .hash algorithm 0x00008004
  .ver  0:0:0:0
}
module 'test-402.exe' // GUID = {28FBAA77-E89A-4678-AC36-2503A3D1282C}


  .class private auto ansi beforefieldinit X
        extends [mscorlib]System.Object
  {

    // method line 1
    .method public hidebysig  specialname  rtspecialname 
           instance default void '.ctor' ()  cil managed 
    {
        // Method begins at RVA 0x20ec
        // Code size 7 (0x7)
        .maxstack 8
        IL_0000:  ldarg.0 
        IL_0001:  call instance void object::'.ctor'()
        IL_0006:  ret 
    } // end of method X::.ctor

    // method line 2
    .method private static  hidebysig 
           default int32 Main ()  cil managed 
    {
        // Method begins at RVA 0x20f4
        .entrypoint
        // Code size 17 (0x11)
        .maxstack 3
        .locals init (
                int32   V_0,
                unsigned int8*  V_1)
        IL_0000:  ldc.i4.s 0x14
        IL_0002:  stloc.0 
        IL_0003:  ldc.i4.0 
        IL_0004:  conv.i 
        IL_0005:  stloc.1 
        IL_0006:  ldloc.1 
        IL_0007:  ldloc.0 
        IL_0008:  conv.i8 
        IL_0009:  add 
        IL_000a:  stloc.1 
        IL_000b:  ldloc.1 
        IL_000c:  conv.i4 
        IL_000d:  ldc.i4.s 0x14
        IL_000f:  sub 
        IL_0010:  ret 
    } // end of method X::Main

  } // end of class X


Mono reports

Unhandled Exception: System.InvalidProgramException: Invalid IL code in X:Main
(): IL_0009: add 

No error and correct result on .NET


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list