[Mono-bugs] [Bug 31672][Wis] New - ugly code generated for the ?: construct

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
3 Oct 2002 08:29:17 -0000


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 lupus@ximian.com.

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

--- shadow/31672	Thu Oct  3 04:29:17 2002
+++ shadow/31672.tmp.2530	Thu Oct  3 04:29:17 2002
@@ -0,0 +1,27 @@
+Bug#: 31672
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ugly code generated for the ?: construct
+
+mcs generates ugly code for the check part of the ?: construct (it useles
+clt/cgt/etc + sub + brtrue/brfalse instead of a simple blt/bgt/etc).
+Sample code:
+class T {
+static int cmov (int a) {
+    return a >= 10? 1: 2;
+}
+static void Main() {}
+}