[amd64] Remove the callee saved registers from MonoLMF, save/restore them normally...
[mono-project.git] / mono / benchmark / divun.cs
blobba1cd1f13d8182f445ea79b16d10f263bb92e64e
1 using System;
3 class X {
5 public static int DivUn(int x) {
6 x *= 163859;
7 x = (int) ((uint)x / 5);
8 x = (int) ((uint)x / 25);
9 x = (int) ((uint)x / 10);
10 x = (int) ((uint)x / 128);
11 x = (int) ((uint)x / 43);
12 x = (int) ((uint)x / 2);
13 x = (int) ((uint)x / 4);
14 x = (int) ((uint)x / 1);
15 return x;
18 public static int Main() {
19 int x = 1;
20 for (int i=0; i < 100000000; ++i) x += DivUn(12345);
21 // x |= -1; // check for overflow case
22 x = (int) ((uint)x / 1025);
23 return x;