Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test 64-byte alignment in memcpy benchtest
Add 64-byte alignment tests in memcpy benchtest for 64-byte vector
registers.

	* benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
  • Loading branch information
H.J. Lu committed Apr 1, 2016
1 parent 528ffb3 commit 32b28d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2016-04-01 H.J. Lu <hongjiu.lu@intel.com>

* benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.

2016-04-01 Adhemerval Zanella <adhemerval.zanella@linaro.org> 2016-04-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>


* sysdeps/powerpc/powerpc64/strcspn.S: Remove file. * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
Expand Down
8 changes: 8 additions & 0 deletions benchtests/bench-memcpy.c
Expand Up @@ -149,6 +149,14 @@ test_main (void)
do_test (i, i, 16 * i); do_test (i, i, 16 * i);
} }


for (i = 32; i < 64; ++i)
{
do_test (0, 0, 32 * i);
do_test (i, 0, 32 * i);
do_test (0, i, 32 * i);
do_test (i, i, 32 * i);
}

do_test (0, 0, getpagesize ()); do_test (0, 0, getpagesize ());


return ret; return ret;
Expand Down

0 comments on commit 32b28d2

Please sign in to comment.