[Mono-bugs] [Bug 64578][Nor] Changed - conv.i1.ovf doesnt throw on 0x00000000ffffffff
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 30 Aug 2004 10:36:12 -0400 (EDT)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=64578
--- shadow/64578 2004-08-30 10:32:52.000000000 -0400
+++ shadow/64578.tmp.307 2004-08-30 10:36:12.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 64578
Product: Mono: Runtime
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: bmaurer@users.sf.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -25,6 +25,25 @@
sbyte y = (sbyte) x;
}
}
}
Should throw an exception, however it does not.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-08-30 10:36 -------
+Ok, so we generate the following code:
+
+ 18: c7 45 fc 00 00 00 00 mov DWORD PTR [ebp-4],0x0
+ 1f: c7 45 f8 ff ff ff ff mov DWORD PTR [ebp-8],0xffffffff
+ 26: 8b 45 f8 mov eax,DWORD PTR [ebp-8]
+ 29: 8b 4d fc mov ecx,DWORD PTR [ebp-4]
+ 2c: 85 c9 test ecx,ecx
+ 2e: 0f 8f 54 00 00 00 jg 88 <X_Main+0x88>
+ 34: 83 f9 ff cmp ecx,0xffffffff
+ 37: 0f 8c 3c 00 00 00 jl 79 <X_Main+0x79>
+ 3d: 3d 7f 00 00 00 cmp eax,0x7f
+ 42: 0f 8f 22 00 00 00 jg 6a <X_Main+0x6a>
+ 48: 3d 80 ff ff ff cmp eax,0xffffff80
+ 4d: 0f 8c 08 00 00 00 jl 5b <X_Main+0x5b>
+ 53: 0f be c0 movsx eax,al
+
+This is clearly wrong.