https://bugzilla.novell.com/show_bug.cgi?id=670479
https://bugzilla.novell.com/show_bug.cgi?id=670479#c0 Summary: IL negative code gives wrong result on mono while works on .NET Classification: Mono Product: Mono: Runtime Version: 2.10.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: JIT AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=412919) --> (http://bugzilla.novell.com/attachment.cgi?id=412919) exe and prism source User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10 the attached IL file (can't be compiled with C#) gives "Failed" on mono. The problme part: IL_0015: ldloc.2 IL_0016: ldc.i8 0x80000000 IL_001f: neg IL_0020: clt Original code (in Prism) if (((not b) and ((number >= (-2147483648 as System.Int64)))) and ((number <= (2147483647 as System.Int64)))) then the middle match doesn't give the right result. Reproducible: Always Steps to Reproduce: 1. compile the il file or run the exe 2. look at the result Actual Results: "Failed" on the conols Expected Results: "Succeed" on the console -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
