[Mono-bugs] [Bug 56317][Wis] New - conv.ovf.i8 doesn't work for negative values
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 31 Mar 2004 18:34:16 -0500 (EST)
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 malekith@pld-linux.org.
http://bugzilla.ximian.com/show_bug.cgi?id=56317
--- shadow/56317 2004-03-31 18:34:16.000000000 -0500
+++ shadow/56317.tmp.23595 2004-03-31 18:34:16.000000000 -0500
@@ -0,0 +1,85 @@
+Bug#: 56317
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: malekith@pld-linux.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: conv.ovf.i8 doesn't work for negative values
+
+Description of Problem:
+conv.ovf.i8 doesn't work properly.
+
+Steps to reproduce the problem:
+Assemble and run:
+.assembly extern mscorlib
+{
+ .ver 1:0:3300:0
+}
+.assembly 't'
+{
+ .hash algorithm 0x00008004
+ .ver 0:0:0:0
+}
+.module 't.exe' // GUID = {F5C0DC68-EF11-C50B-A02A-3A851120B870}
+
+
+ .class private auto ansi beforefieldinit 'M'
+ extends [mscorlib]System.Object
+ {
+
+ // method line 1
+ .method public hidebysig specialname rtspecialname
+ instance default void .ctor () cil managed
+ {
+ // Method begins at RVA 0x2050
+ // Code size 7 (0x7)
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void valuetype
+[mscorlib]'System.Object'::.ctor()
+ IL_0006: ret
+ } // end of method M::instance default void .ctor ()
+
+ // method line 2
+ .method private static
+ default void 'Main' () cil managed
+ {
+ // Method begins at RVA 0x2064
+ .entrypoint
+ // Code size 16 (0x10)
+ .maxstack 4
+ .locals init (
+ int64 V_0)
+ IL_0000: ldc.i4.m1
+ IL_0001: conv.ovf.i8
+ IL_0002: stloc.0
+ IL_0003: ldloca.s 0
+ IL_0005: call instance string valuetype
+[mscorlib]'System.Int64'::'ToString'()
+ IL_000a: call void class
+[mscorlib]'System.Console'::'WriteLine'(string)
+ IL_000f: ret
+ } // end of method M::default void 'Main' ()
+
+ } // end of type M
+
+
+
+Actual Results:
+4294967295
+
+Expected Results:
+-1
+
+How often does this happen?
+Always