aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-memcpy.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-01 09:57:40 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-01 09:57:53 -0700
commit32b28d24a1183bb411c813e51186c2896dd3efe3 (patch)
tree00edecabffe7715e83f241e2e6cb6408d4b2c4bc /benchtests/bench-memcpy.c
parent528ffb3a04966ce5dbc24e256c1926087876b6f7 (diff)
downloadglibc-32b28d24a1183bb411c813e51186c2896dd3efe3.zip
glibc-32b28d24a1183bb411c813e51186c2896dd3efe3.tar.gz
glibc-32b28d24a1183bb411c813e51186c2896dd3efe3.tar.bz2
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/bench-memcpy.c')
-rw-r--r--benchtests/bench-memcpy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c
index d942ce2..c5a7192 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;