https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322
--- Comment #6 from Mathieu Malaterre <malat at debian dot org> --- Using `-fno-strict-aliasing` causes the same symptoms: /usr/bin/g++-12 -DHWY_STATIC_DEFINE -I"/home/malat/highway-0.17.1~git20220711.f0a396a" -O2 -fno-strict-aliasing -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -fmath-errno -fno-exceptions -DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD -MT CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o -MF CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o.d -o CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o -c "/home/malat/highway-0.17.1~git20220711.f0a396a/hwy/tests/mul_test.cc" [...] Running main() from ./googletest/src/gtest_main.cc Note: Google Test filter = HwyMulTestGroup/HwyMulTest.TestAllMulHigh/Emu128 [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from HwyMulTestGroup/HwyMulTest [ RUN ] HwyMulTestGroup/HwyMulTest.TestAllMulHigh/Emu128 i16x8 expect [0+ ->]: 0x3FFF,0x0FFF,0x03FF,0x00FF,0x003F,0x000F,0x0003, i16x8 actual [0+ ->]: 0xBFFF,0x0FFF,0xE400,0x00FF,0xF840,0x000F,0xFE04, Abort at /home/malat/highway-0.17.1~git20220711.f0a396a/hwy/tests/mul_test.cc:131: Emu128, i16x8 lane 0 mismatch: expected '0x3FFF', got '0xBFFF'.