2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / benchmark / cmov2.cs
blobb2d0706b87d95d94155b84ff70213d843b5897b0
1 using System;
2 class T {
3 static void Main () {
4 int a = 1, b = 2, c = 3, d = 4, e = 5;
5 for (int i = 0; i < 500000000; i ++) {
6 // on the stack
7 if (a == b)
8 a = i;
9 if (b == a)
10 b = i;
11 if (c == d)
12 c = i;
13 if (d == e)
14 d = i;
15 if (e == a)
16 e = i;
19 if ((a ^ b ^ c ^ d ^ e) == 12345)
20 return;