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 /benchtests | |
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.
Diffstat (limited to 'benchtests')
-rw-r--r-- | benchtests/bench-memcpy.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |