[Mono-bugs] [Bug 46992][Min] New - Decimal array causes 'unknown opcode..' error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 28 Jul 2003 09:37:23 -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 gonzalo@ximian.com.

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

--- shadow/46992	Mon Jul 28 09:37:23 2003
+++ shadow/46992.tmp.28180	Mon Jul 28 09:37:23 2003
@@ -0,0 +1,63 @@
+Bug#: 46992
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Decimal array causes 'unknown opcode..' error
+
+compile and run:
+
+----------
+using System;
+
+class Test
+{
+	static void Main ()
+	{
+            decimal[,] dtab = { 
+                {1m, 0, 1m}, {1.234567890m, 1, 1.2m}, 
+                {1.234567890m, 2, 1.23m}, {1.23450000001m, 3, 1.235m}, 
+                {1.2345m, 3, 1.234m}, {1.2355m, 3, 1.236m}, 
+                {1.234567890m, 4, 1.2346m}, {1.23567890m, 2, 1.24m}, 
+                {47893764694.4578563236436621m, 7, 47893764694.4578563m},
+                {-47893764694.4578563236436621m, 9, -47893764694.457856324m},
+                {-47893764694.4578m, 5, -47893764694.4578m}
+            };
+
+            decimal d;
+            
+            for (int i = 0; i < dtab.GetLength(0); i++)
+            {
+                d = Decimal.Round(dtab[i,0], (int)dtab[i,1]);
+                if (d != dtab[i,2]) 
+                {
+                    Console.WriteLine ("Round: Round(" + dtab[i,0] + "," +
+(int)dtab[i,1] + ") != " + d);
+                }
+            }
+        }
+}
+------------
+
+Actual results:
+** (dec.exe:4791): WARNING **: unknown opcode starg.s in
+mono_arch_output_basic_block()
+
+
+** ERROR **: file mini-x86.c: line 2951 (mono_arch_output_basic_block):
+should not be reached
+aborting...
+
+Expected results:
+(nothing)