[Mono-bugs] [Bug 43393][Nor] New - register allocation problem with bytes
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 20 May 2003 13:40:59 -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 vargaz@freemail.hu.
http://bugzilla.ximian.com/show_bug.cgi?id=43393
--- shadow/43393 Tue May 20 13:40:59 2003
+++ shadow/43393.tmp.28011 Tue May 20 13:40:59 2003
@@ -0,0 +1,60 @@
+Bug#: 43393
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Woody
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vargaz@freemail.hu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: register allocation problem with bytes
+
+The 'allocate 8/16 bit values in registers' patch caused a regression. The
+following test case fails:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+using System;
+
+class Bug {
+
+ public static byte foo () {
+ return 42;
+ }
+
+ public static sbyte abyte () {
+ return 42;
+ }
+
+ internal static void bar() {
+ byte bc = (byte)abyte ();
+ byte mode = 5;
+
+ switch(mode) {
+ case 0:
+ break;
+ case 5: {
+ Console.WriteLine ("B: " + abyte ());
+ break;
+ }
+ default:
+ break;
+ }
+ string s = ((byte)0).ToString ();
+ }
+
+ public static void Main () {
+ bar ();
+ }
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+When running with --optimize=-linears it prints 42 as expected, otherwise
+it prints some random number.