Mercurial > vec
diff test/test_align.h @ 13:53197dbf4e8e
vec.h: initial refactor for runtime SSE and stuff
author | Paper <paper@tflc.us> |
---|---|
date | Tue, 19 Nov 2024 15:54:38 -0500 |
parents | 6ff0b7a44bb6 |
children | e05c257c6a23 |
line wrap: on
line diff
--- a/test/test_align.h Mon Nov 18 16:12:24 2024 -0500 +++ b/test/test_align.h Tue Nov 19 15:54:38 2024 -0500 @@ -8,7 +8,7 @@ V##csign##INT##bits##x##size##_ALIGNED_ARRAY(vec_arr); \ \ /* fill the values */ \ - for (int i = 0; i < V##csign##INT##bits##x##size##_ALIGNED_ARRAY_LENGTH(vec_arr); i++) \ + for (int i = 0; i < size; i++) \ vec_arr[i] = i; \ \ /* try to load it */ \ @@ -21,7 +21,7 @@ v##sign##int##bits##x##size##_store_aligned(vec, vec_arr_out); \ \ /* mark success or failure */ \ - ret |= !!memcmp(vec_arr, vec_arr_out, V##csign##INT##bits##x##size##_ALIGNED_ARRAY_LENGTH(vec_arr)); \ + ret |= !!memcmp(vec_arr, vec_arr_out, size * sizeof(*vec_arr)); \ \ ret |= !V##csign##INT##bits##x##size##_PTR_ALIGNED(vec_arr); \ ret |= !V##csign##INT##bits##x##size##_PTR_ALIGNED(vec_arr_out); \ @@ -32,14 +32,6 @@ RUN_TEST(u, U, bits, size) RUN_TESTS(8, 16) - RUN_TESTS(16, 8) - RUN_TESTS(32, 4) - RUN_TESTS(64, 2) - - RUN_TESTS(8, 32) - RUN_TESTS(16, 16) - RUN_TESTS(32, 8) - RUN_TESTS(64, 4) #undef RUN_TESTS #undef RUN_TEST