From: Dejan Jevtic Date: Fri, 11 Oct 2013 06:05:24 +0000 (+0000) Subject: mips64: Prevent testing swc1 and swxc1 with the uninitialized memory values on X-Git-Tag: svn/VALGRIND_3_9_0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a65c439970b8cec0ac51313bebce3bba670ac71;p=thirdparty%2Fvalgrind.git mips64: Prevent testing swc1 and swxc1 with the uninitialized memory values on big endian platrofms. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13634 --- diff --git a/none/tests/mips64/fpu_load_store.c b/none/tests/mips64/fpu_load_store.c index c056c4fc8e..124e526035 100644 --- a/none/tests/mips64/fpu_load_store.c +++ b/none/tests/mips64/fpu_load_store.c @@ -49,7 +49,7 @@ int main() init_reg_val_zero(); printf("--- SWC1 ---\n"); - for (i = 0; i < N*s1; i = i+4) { + for (i = 0; i < (N-1)*s1; i = i+4) { TEST4("swc1", i); } @@ -61,7 +61,7 @@ int main() init_reg_val_zero(); printf("--- SWXC1 ---\n"); - for (i = 0; i < N*s1; i = i+4) { + for (i = 0; i < (N-1)*s1; i = i+4) { TEST6("swxc1", i); } diff --git a/none/tests/mips64/fpu_load_store.stdout.exp-BE b/none/tests/mips64/fpu_load_store.stdout.exp-BE index cddc9d22bf..bce2fa3fa4 100644 --- a/none/tests/mips64/fpu_load_store.stdout.exp-BE +++ b/none/tests/mips64/fpu_load_store.stdout.exp-BE @@ -2691,7 +2691,6 @@ swc1 :: offset: 0x3ec, out: 0xbcb4666d00000000 swc1 :: offset: 0x3f0, out: 0xb8757bda00000000 swc1 :: offset: 0x3f4, out: 0xb5365d0300000000 swc1 :: offset: 0x3f8, out: 0xb1f740b400000000 -swc1 :: offset: 0x3fc, out: 0xc22032c600000000 --- SDXC1 --- sdxc1 :: offset: 0x0, out: 0x12bd6aa sdxc1 :: offset: 0x8, out: 0x0 @@ -3077,4 +3076,3 @@ swxc1 :: offset: 0x3ec, out: 0xd519d322 swxc1 :: offset: 0x3f0, out: 0xd519d32200000000 swxc1 :: offset: 0x3f4, out: 0xde230867 swxc1 :: offset: 0x3f8, out: 0xde23086700000000 -swxc1 :: offset: 0x3fc, out: 0xa630f6ad diff --git a/none/tests/mips64/fpu_load_store.stdout.exp-LE b/none/tests/mips64/fpu_load_store.stdout.exp-LE index 80c18e860b..ab0836ce59 100644 --- a/none/tests/mips64/fpu_load_store.stdout.exp-LE +++ b/none/tests/mips64/fpu_load_store.stdout.exp-LE @@ -2691,7 +2691,6 @@ swc1 :: offset: 0x3ec, out: 0xa2f33668 swc1 :: offset: 0x3f0, out: 0xbcb4666d swc1 :: offset: 0x3f4, out: 0xb8757bda swc1 :: offset: 0x3f8, out: 0xb5365d03 -swc1 :: offset: 0x3fc, out: 0xb1f740b4 --- SDXC1 --- sdxc1 :: offset: 0x0, out: 0x12bd6aa sdxc1 :: offset: 0x8, out: 0x0 @@ -3077,4 +3076,3 @@ swxc1 :: offset: 0x3ec, out: 0xd519d32200000000 swxc1 :: offset: 0x3f0, out: 0xd519d322 swxc1 :: offset: 0x3f4, out: 0x75bfafd200000000 swxc1 :: offset: 0x3f8, out: 0x75bfafd2 -swxc1 :: offset: 0x3fc, out: 0xa630f6ad00000000