X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fbenchmark%2Fcmov2.cs;fp=mono%2Fbenchmark%2Fcmov2.cs;h=b2d0706b87d95d94155b84ff70213d843b5897b0;hb=9d5ce3c2e76b2ab918d477f1685caac6ce412e0a;hp=0000000000000000000000000000000000000000;hpb=7c606a6af3050512fdcfff1074cb3ae757882a62;p=mono.git diff --git a/mono/benchmark/cmov2.cs b/mono/benchmark/cmov2.cs new file mode 100644 index 00000000000..b2d0706b87d --- /dev/null +++ b/mono/benchmark/cmov2.cs @@ -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