From: Julian Seward Date: Sat, 16 Oct 2004 11:36:34 +0000 (+0000) Subject: Reinstate tests for byte-sized division (divb, idivb) X-Git-Tag: svn/VALGRIND_3_0_1^2~976 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c89c717f1ef77219fea5f3ca4e739f31c3e394e;p=thirdparty%2Fvalgrind.git Reinstate tests for byte-sized division (divb, idivb) git-svn-id: svn://svn.valgrind.org/vex/trunk@358 --- diff --git a/VEX/test/test-i386.c b/VEX/test/test-i386.c index 34fe782c3d..b8dabb18f4 100644 --- a/VEX/test/test-i386.c +++ b/VEX/test/test-i386.c @@ -476,7 +476,7 @@ void test_mul(void) TEST_IMUL_IM("l", "", -45, 23); TEST_IMUL_IM("l", "", 0x8000, 0x80000000); TEST_IMUL_IM("l", "", 0x7fff, 0x1000); -#if 0 + test_idivb(0x12341678, 0x127e); test_idivb(0x43210123, -5); test_idivb(0x12340004, -1); @@ -485,12 +485,12 @@ void test_mul(void) test_idivw(0, -23223, -45); test_idivw(0, 0x12348000, -1); test_idivw(0x12343, 0x12345678, 0x81238567); -#endif + test_idivl(0, 0x12345678, 12347); test_idivl(0, -233223, -45); test_idivl(0, 0x80000000, -1); test_idivl(0x12343, 0x12345678, 0x81234567); -#if 0 + test_divb(0x12341678, 0x127e); test_divb(0x43210123, -5); test_divb(0x12340004, -1); @@ -499,7 +499,7 @@ void test_mul(void) test_divw(0, -23223, -45); test_divw(0, 0x12348000, -1); test_divw(0x12343, 0x12345678, 0x81238567); -#endif + test_divl(0, 0x12345678, 12347); test_divl(0, -233223, -45); test_divl(0, 0x80000000, -1);