Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / mini / basic.cs
index 39a728ce724ee785841476158174b2676f7ecc66..6a86735d262cfcdd4064313245a56c5d08bd2a38 100644 (file)
@@ -100,6 +100,11 @@ class Tests {
                return b - 1;
        }
 
+       static int test_2_sub_large_imm () {
+               int b = 0xff0f0f;
+               return b - 0xff0f0d;
+       }
+
        static int test_0_sub_inv_imm () {
                int b = 2;
                return 2 - b;
@@ -121,6 +126,11 @@ class Tests {
                return b & 0x10000000;
        }
 
+       static int test_0_and_large_imm2 () {
+               int b = 2;
+               return b & 0x100000f0;
+       }
+
        static int test_2_div () {
                int b = 6;
                int a = 3;
@@ -142,6 +152,11 @@ class Tests {
                return b / 2;
        }
 
+       static int test_719177_div_destreg () {
+               int year = 1970;
+               return ((365* (year-1)) + ((year-1)/4));
+       }
+
        static int test_1_remun_imm () {
                uint b = 13;
                return (int)(b % 3);
@@ -246,6 +261,27 @@ class Tests {
                return b | 0x10000000;
        }
 
+       static int test_268435459_or_large_imm2 () {
+               int b = 2;
+               return b | 0x10000001;
+       }
+
+       static int test_1_xor () {
+               int b = 2;
+               int a = 3;
+               return b ^ a;
+       }
+
+       static int test_1_xor_imm () {
+               int b = 2;
+               return b ^ 3;
+       }
+
+       static int test_983041_xor_imm_large () {
+               int b = 2;
+               return b ^ 0xf0003;
+       }
+
        static int test_1_neg () {
                int b = -2;
                b++;
@@ -283,6 +319,11 @@ class Tests {
                return b << 3;
        }
        
+       static int test_524288_shift_imm_large () {
+               int b = 2;
+               return b << 18;
+       }
+       
        static int test_12_shift_imm_inv () {
                int b = 2;
                return 3 << 2;