From 32b28d24a1183bb411c813e51186c2896dd3efe3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 1 Apr 2016 09:57:40 -0700 Subject: 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. --- benchtests/bench-memcpy.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'benchtests') 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; -- cgit v1.2.3-70-g09d2