[Mono-bugs] [Bug 681732] New: Subtracting a uint from 0u results in incorrect IL

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 22 17:27:41 EDT 2011



           Summary: Subtracting a uint from 0u results in incorrect IL
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: me at chrishowie.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=420794)
 --> (http://bugzilla.novell.com/attachment.cgi?id=420794)
Test case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729; .NET4.0E)

Consider the attached testcase.  For the code "1u - start" the generated IL is:

        IL_003d:  ldc.i4.1
        IL_003e:  ldloc.0
        IL_003f:  sub

Which is correct.  The IL for "0u - start" is not so correct:

        IL_002d:  ldloc.0

This happens with gmcs

Reproducible: Always

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