mail-archives/mono-bugs/2003-March/004154.html

111 строки
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 39314][Nor] New - incorrect opcodes for some fp comparisons
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="004153.html">
<LINK REL="Next" HREF="004155.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 39314][Nor] New - incorrect opcodes for some fp comparisons
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 39314][Nor] New - incorrect opcodes for some fp comparisons">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Fri, 7 Mar 2003 12:17:11 -0500 (EST)</I>
<P><UL>
<LI> Previous message: <A HREF="004153.html">[Mono-bugs] [Bug 39300][Min] New - compile time evaluation leads to incorrect code
</A></li>
<LI> Next message: <A HREF="004155.html">[Mono-bugs] [Bug 39314][Nor] Changed - incorrect opcodes for some fp comparisons
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4154">[ date ]</a>
<a href="thread.html#4154">[ thread ]</a>
<a href="subject.html#4154">[ subject ]</a>
<a href="author.html#4154">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:lupus@ximian.com.">lupus@ximian.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=39314">http://bugzilla.ximian.com/show_bug.cgi?id=39314</A>
--- shadow/39314 Fri Mar 7 12:17:11 2003
+++ shadow/39314.tmp.25504 Fri Mar 7 12:17:11 2003
@@ -0,0 +1,47 @@
+Bug#: 39314
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: incorrect opcodes for some fp comparisons
+
+mcs generates the following code to implement bool val = a &lt;= a:
+ IL_0052: ldloc.0
+ IL_0053: ldloc.0
+ IL_0054: cgt
+ IL_0056: ldc.i4.0
+ IL_0057: ceq
+while cvs generates:
+ IL_004d: ldstr &quot;NAN &lt;= NAN: {0}&quot;
+ IL_0052: ldloc.0
+ IL_0053: ldloc.0
+ IL_0054: cgt.un
+ IL_0056: ldc.i4.0
+ IL_0057: ceq
+and for bool val = a &gt;= a:
+ IL_0068: ldloc.0
+ IL_0069: ldloc.0
+ IL_006a: clt
+ IL_006c: ldc.i4.1
+ IL_006d: sub
+versus the csc output:
+ IL_0068: ldloc.0
+ IL_0069: ldloc.0
+ IL_006a: clt.un
+ IL_006c: ldc.i4.0
+ IL_006d: ceq
+
+Attached a fairly complete test case.
+You can compare the opcodes generated or run the program with either mini
+or the MS runtime to check for the correctness of the generated code.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004153.html">[Mono-bugs] [Bug 39300][Min] New - compile time evaluation leads to incorrect code
</A></li>
<LI> Next message: <A HREF="004155.html">[Mono-bugs] [Bug 39314][Nor] Changed - incorrect opcodes for some fp comparisons
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4154">[ date ]</a>
<a href="thread.html#4154">[ thread ]</a>
<a href="subject.html#4154">[ subject ]</a>
<a href="author.html#4154">[ author ]</a>
</LI>
</UL>
</body></html>