Greetings,
While investigating a spurious test suite failure of the simdutf test suite, we found that the failure would only reproduce under specific circumstances:
- recent llvm version (such as, the llvm 18.1.5 shipped with FreeBSD 14.1, but also a very recent devel snapshot)
- build for armv7 FreeBSD
- build with
-fno-strict-aliasing, code works fine with -fstrict-aliasing
The result of the miscompilation is that wrong code is generated, leading to unit test failure.
A reduced example can be found in simdutf/simdutf#581 (comment).