[Mono-bugs] [Bug 27311][Nor] Changed - checked{} does not always use .ovf opcodes
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
2 Jul 2002 10:59:50 -0000
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 dietmar@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=27311
--- shadow/27311 Tue Jul 2 03:43:23 2002
+++ shadow/27311.tmp.18613 Tue Jul 2 06:59:50 2002
@@ -70,6 +70,21 @@
IL_0015: ldloc.1
IL_0016: sub.ovf
IL_0017: conv.u1
IL_0018: stloc.2
(note the conv opcode).
The csc compiled program works fine in both mono and mint.
+
+------- Additional Comments From dietmar@ximian.com 2002-07-02 06:59 -------
+mcs gererates code like this:
+
+IL_0014: ldloc.0
+IL_0015: ldloc.1
+IL_0016: sub.ovf
+
+but it should generate:
+
+IL_0014: ldloc.0
+IL_0015: ldloc.1
+IL_0016: sub.ovf
+IL_0017: conv.ovf.u1
+