https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106187

--- Comment #53 from Mathieu Malaterre <malat at debian dot org> ---
For later reference, the gcc-11 symptoms disapear in upstream git after commit:

*
https://github.com/google/highway/commit/4fa872a2a0d9944cb5fe761669ac63096607d3a3

gcc-12 seems to be generating wrong-code for a different unit-test:

% tests/mul_test
"--gtest_filter=HwyMulTestGroup/HwyMulTest.TestAllMulHigh/EMU128"
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/hwy/tests/mul_test.cc:131: EMU128, i16x8 lane 0
mismatch: expected '0x3FFF', got '0xBFFF'.

zsh: abort      tests/mul_test

Reply via email to