From: Julian Seward Date: Sat, 19 Nov 2005 19:42:31 +0000 (+0000) Subject: If we're doing an estimation operation, arrange to zap the bottom byte X-Git-Tag: svn/VALGRIND_3_1_0~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51020ef2a0201dfb0cd0ccf03225054637ef3d29;p=thirdparty%2Fvalgrind.git If we're doing an estimation operation, arrange to zap the bottom byte of the result as it's basically garbage, and differs between cpus. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5210 --- diff --git a/none/tests/ppc32/jm-insns.c b/none/tests/ppc32/jm-insns.c index f80b0483ab..a2750b77a8 100644 --- a/none/tests/ppc32/jm-insns.c +++ b/none/tests/ppc32/jm-insns.c @@ -6278,6 +6278,13 @@ static void test_av_float_one_arg (const char* name, test_func_t func, volatile vector unsigned int tmpvscr; int i; + /* if we're doing an estimation operation, arrange to zap the + bottom byte of the result as it's basically garbage, and differs + between cpus */ + unsigned int mask + = (strstr(name,"vrsqrtefp") || strstr(name,"vrefp")) + ? 0xFFFFFF00 : 0xFFFFFFFF; + for (i=0; i %08x %08x %08x %08x ", name, - dst[0], dst[1], dst[2], dst[3]); + dst[0] & mask, dst[1] & mask, dst[2] & mask, dst[3] & mask); #if defined TEST_VSCR_SAT unsigned int* p_vscr = (unsigned int*)𝓋 printf("(%08x, %08x)\n", flags, p_vscr[3]);