From cff351de1138ac04ea5ff5b7ab5a55e5fab0fa4c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Nov 2018 16:50:52 -0500 Subject: [PATCH] Simplify Aach64 polynomial multiply tests --- TestPrograms/test_arm_pmull.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TestPrograms/test_arm_pmull.cxx b/TestPrograms/test_arm_pmull.cxx index 86a5a01f..649b9b96 100644 --- a/TestPrograms/test_arm_pmull.cxx +++ b/TestPrograms/test_arm_pmull.cxx @@ -10,13 +10,13 @@ int main(int argc, char* argv[]) { - poly64_t a1={0x9090909090909090}, b1={0xb0b0b0b0b0b0b0b0}; - poly64x2_t c1={0x9090909090909090, 0xb0b0b0b0b0b0b0b0}; - poly8x16_t a2={0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, - 0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0}, + const poly64_t a=0x60606060, b=0x90909090, c=0xb0b0b0b0; + const poly64x2_t d={0x60606060,0x90909090}; + const poly8x16_t e={0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, + 0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0}; - poly128_t r1 = vmull_p64(a1, b1); - poly128_t r2 = vmull_high_p64(c1, c1); + const poly128_t r1 = vmull_p64(a, b); + const poly128_t r2 = vmull_high_p64(d, d); return 0; }