Add 64-byte alignment tests in memset benchtest for 64-byte vector
registers.
* benchtests/bench-memset.c (do_test): Support 64-byte
alignment.
(test_main): Test 64-byte alignment.
+2016-04-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * benchtests/bench-memset.c (do_test): Support 64-byte
+ alignment.
+ (test_main): Test 64-byte alignment.
+
2016-04-01 H.J. Lu <hongjiu.lu@intel.com>
* benchtests/bench-memmove.c (test_main): Test 64-byte
static void
do_test (size_t align, int c, size_t len)
{
- align &= 7;
+ align &= 63;
if ((align + len) * sizeof (CHAR) > page_size)
return;
do_test (4, c, 64);
do_test (2, c, 25);
}
+ for (i = 33; i <= 256; i += 4)
+ {
+ do_test (0, c, 32 * i);
+ do_test (i, c, 32 * i);
+ }
return ret;
}