5 public static int test_short ()
14 if ((uint)t2 != 0xffffeedd)
17 Console.WriteLine (t2.ToString ("X"));
19 if (Int16.Parse((min).ToString()) != -32768)
22 if (Int16.Parse((max).ToString()) != 32767)
28 public static int test_call (int a, int b) {
32 public static int test_shift ()
55 public static int test_alu ()
90 public static int test_branch ()
94 if (a == b) t = 1; else t = 0;
97 if (a != b) t = 0; else t = 1;
100 if (a >= b) t = 1; else t = 0;
101 if (t != 1) return 1;
103 if (a > b) t = 0; else t = 1;
104 if (t != 1) return 1;
106 if (a <= b) t = 1; else t = 0;
107 if (t != 1) return 1;
109 if (a < b) t = 0; else t = 1;
110 if (t != 1) return 1;
115 public static int Main() {
119 if (test_short () != 0)
123 if (test_call (3, 5) != 8)
127 if (test_branch () != 0)
131 if (test_alu () != 0)
135 if (test_shift () != 0)