new cases for stuff I have been working on
[mono.git] / mono / benchmark / cmov3.cs
diff --git a/mono/benchmark/cmov3.cs b/mono/benchmark/cmov3.cs
new file mode 100644 (file)
index 0000000..4cfc681
--- /dev/null
@@ -0,0 +1,14 @@
+using System;
+class T {
+       // test x ? A : B where A and B are constants.
+       static void Main () {
+               int a = 0, b = 0, c = 0, d = 0, e = 0;
+               for (int i = 0; i < 50000000; i ++) {                   
+                       a = b == 10 ?  1 :  1;
+                       b = b >  1  ?  9 :  8;
+                       c = b <= c  ?  1 :  2;
+                       d = d >  0  ?  1 :  0;
+                       e = e == 0  ? -1 :  0;
+               }
+       }
+}
\ No newline at end of file