diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-04-01 09:57:40 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-01 09:57:53 -0700 |
commit | 32b28d24a1183bb411c813e51186c2896dd3efe3 (patch) | |
tree | 00edecabffe7715e83f241e2e6cb6408d4b2c4bc | |
parent | 528ffb3a04966ce5dbc24e256c1926087876b6f7 (diff) | |
download | glibc-32b28d24a1183bb411c813e51186c2896dd3efe3.tar.gz glibc-32b28d24a1183bb411c813e51186c2896dd3efe3.tar.xz glibc-32b28d24a1183bb411c813e51186c2896dd3efe3.zip |
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.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | benchtests/bench-memcpy.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 846a41d3db..08b6e0b656 100644 --- a/ChangeLog +++ b/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> * sysdeps/powerpc/powerpc64/strcspn.S: Remove file. diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c index d942ce29c3..c5a71925be 100644 --- a/benchtests/bench-memcpy.c +++ b/benchtests/bench-memcpy.c @@ -149,6 +149,14 @@ test_main (void) 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 ()); return ret; |