2004-07-30 Ben Maurer <bmaurer@ximian.com>
authorBen Maurer <benm@mono-cvs.ximian.com>
Fri, 30 Jul 2004 16:16:32 +0000 (16:16 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Fri, 30 Jul 2004 16:16:32 +0000 (16:16 -0000)
* basic.cs: regression tests.

* inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various

svn path=/trunk/mono/; revision=31666

mono/mini/ChangeLog
mono/mini/basic.cs
mono/mini/inssel-x86.brg

index 590e0f7b927660e34a2eb6b3d53288819d89c0b5..0f78011cf07be88440344897e9e0bcc903dee88a 100644 (file)
@@ -1,3 +1,10 @@
+2004-07-30  Ben Maurer  <bmaurer@ximian.com>
+
+       * basic.cs: regression tests.
+
+       * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
+       regressions.
+
 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
 
        * basic.cs: Add a new test.
index d64ccab94cc686a4982aad637f7b145f4927b833..f7e6184fc50661360cb0a70efe85e39d76340728 100644 (file)
@@ -893,4 +893,19 @@ class Tests {
                return 0;
        }
        
+       static byte b;
+       static int test_0_byte_compares ()
+       {
+               b = 0xff;
+               if (b == -1)
+                       return 1;
+               b = 0;
+               if (!(b < System.Byte.MaxValue))
+                       return 2;
+               
+               if (!(b <= System.Byte.MaxValue))
+                       return 3;
+               
+               return 0;
+       }
 }
index e750498ae7fbd73620f9286eceb0d9f95e6b8929..ae5cbda311d9229c11e5165986917e8a54cdab6e 100644 (file)
@@ -168,15 +168,6 @@ stmt: CEE_STIND_I1 (base, OP_CEQ (OP_COMPARE (OP_CEQ (cflags), OP_ICONST))) {
        return 1;
 }
 
-cflags: OP_COMPARE (CEE_LDIND_I1 (base), OP_ICONST),
-cflags: OP_COMPARE (CEE_LDIND_U1 (base), OP_ICONST) {
-       tree->opcode = OP_X86_COMPARE_MEMBASE8_IMM;
-       tree->inst_basereg = state->left->left->tree->inst_basereg;
-       tree->inst_offset = state->left->left->tree->inst_offset;
-       tree->inst_imm = state->right->tree->inst_c0;
-       mono_bblock_add_inst (s->cbb, tree);
-}
-
 stmt: CEE_STIND_I1 (base, OP_CEQ (cflags)) {
        tree->opcode = OP_X86_SETEQ_MEMBASE;
        tree->inst_offset = state->left->tree->inst_offset;