From e7e7fe766a2e9171b7edff58cfdf889a41e1094e Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:47:27 -0400 Subject: [PATCH] Add test for misaligned data to `core:simd/util` suite --- tests/core/simd/util/test_core_simd_util.odin | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tests/core/simd/util/test_core_simd_util.odin b/tests/core/simd/util/test_core_simd_util.odin index ff7e1f9aa..ba302a121 100644 --- a/tests/core/simd/util/test_core_simd_util.odin +++ b/tests/core/simd/util/test_core_simd_util.odin @@ -105,3 +105,37 @@ test_index_byte_zero :: proc(t: ^testing.T) { } } } + +@test +test_misaligned_data :: proc(t: ^testing.T) { + for n in 2..<256 { + data := make([]u8, n) + defer delete(data) + for i in 0..