[Mono-bugs] [Bug 53871][Nor] New - Invalid IL code on simple IL

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 4 Feb 2004 11:10:53 -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 equim@planetquake.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53871

--- shadow/53871	2004-02-04 11:10:53.000000000 -0500
+++ shadow/53871.tmp.13319	2004-02-04 11:10:53.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 53871
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: equim@planetquake.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid IL code on simple IL
+
+Using the following IL with mono 0.30 for Windows I get an Invalid IL code
+error on the "add" line.  I assembled the IL using Microsoft's ilasm.exe,
+but hopefully the mono ilasm would produce the same result.
+
+Note that without the unnecessary br's all is fine.
+
+
+.assembly extern mscorlib{}
+.assembly test
+{
+  .ver 1:0:0:0
+}
+
+.class public auto ansi sealed test
+          extends [mscorlib]System.Object
+{
+  .method public static void test() cil managed
+  {
+    .entrypoint
+
+    ldc.i4  1
+    br      L1
+
+L2: ldc.i4  1
+    add     // invalid il code
+    pop
+
+    br      L3
+L1: br      L2
+
+L3: ret
+  }
+}