new cases for stuff I have been working on
[mono.git] / mono / benchmark / cmov2.cs
diff --git a/mono/benchmark/cmov2.cs b/mono/benchmark/cmov2.cs
new file mode 100644 (file)
index 0000000..b2d0706
--- /dev/null
@@ -0,0 +1,23 @@
+using System;
+class T {
+       static void Main () {
+               int a = 1, b = 2, c = 3, d = 4, e = 5;
+               for (int i = 0; i < 500000000; i ++) {
+                       // on the stack
+                       if (a == b)
+                               a = i;
+                       if (b == a)
+                               b = i;
+                       if (c == d)
+                               c = i;
+                       if (d == e)
+                               d = i;
+                       if (e == a)
+                               e = i;
+               }
+               
+               if ((a ^ b ^ c ^ d ^ e) == 12345)
+                       return;
+       }
+       
+}
\ No newline at end of file