Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armhf & armel gcc 12.2 -O2 regression #982

Open
mr-c opened this issue Jan 22, 2023 · 1 comment
Open

armhf & armel gcc 12.2 -O2 regression #982

mr-c opened this issue Jan 22, 2023 · 1 comment
Labels
compiler-bug help wanted We lack either the expertise or time for this. Basically, "patches welcome".

Comments

@mr-c
Copy link
Collaborator

mr-c commented Jan 22, 2023

All tests pass with -O0 with gcc 12.2.0-9 on Debian armel/armhf , the following fail with -O1, -O2;
With gcc 11.3.0-6 -O2 all tests pass

111/768 x86/avx512/mulhi/native/c               ERROR           0.07s   exit status 1
112/768 x86/avx512/mulhi/native/cpp             ERROR           0.06s   exit status 1
217/768 x86/mmx/native/c                        ERROR           0.09s   exit status 1
218/768 x86/mmx/native/cpp                      ERROR           0.10s   exit status 1
220/768 x86/sse/native/c                        ERROR           0.12s   exit status 1
222/768 x86/sse/native/cpp                      ERROR           0.14s   exit status 1
225/768 x86/sse2/native/c                       ERROR           0.20s   exit status 1
224/768 x86/sse2/native/cpp                     ERROR           0.20s   exit status 1
235/768 x86/avx2/native/c                       ERROR           0.24s   exit status 1
236/768 x86/avx2/native/cpp                     ERROR           0.28s   exit status 1
../../../usr/local/src/simde/test/x86/avx512/mulhi.c:142: assertion failed: r[0] == simde_mm512_loadu_epi16(test_vec[i].r)[0] (779 == 2848)
test/x86/avx512/mulhi.cpp:142: assertion failed: r[0] == simde_mm512_loadu_epi16(test_vec[i].r)[0] (779 == 2848)
../../../usr/local/src/simde/test/x86/mmx.c:1798: assertion failed: r[0] == test_vec[i].r[0] (11192 == 1489)
../../../usr/local/src/simde/test/x86/mmx.c:1841: assertion failed: r[0] == test_vec[i].r[0] (11192 == 1489)
test/x86/mmx.cpp:1798: assertion failed: r[0] == test_vec[i].r[0] (11192 == 1489)
test/x86/mmx.cpp:1841: assertion failed: r[0] == test_vec[i].r[0] (11192 == 1489)
../../../usr/local/src/simde/test/x86/sse.c:4307: assertion failed: r[0] == test_vec[i].r[0] (19623 == 292)
../../../usr/local/src/simde/test/x86/sse.c:4348: assertion failed: r[0] == test_vec[i].r[0] (19623 == 292)
test/x86/sse.cpp:4307: assertion failed: r[0] == test_vec[i].r[0] (19623 == 292)
test/x86/sse.cpp:4348: assertion failed: r[0] == test_vec[i].r[0] (19623 == 292)
../../../usr/local/src/simde/test/x86/sse2.c:5573: assertion failed: r[0] == test_vec[i].r[0] (17861 == -12605)
../../../usr/local/src/simde/test/x86/sse2.c:5614: assertion failed: r[0] == test_vec[i].r[0] (4952 == 11945)
test/x86/sse2.cpp:5573: assertion failed: r[0] == test_vec[i].r[0] (17861 == -12605)
test/x86/sse2.cpp:5614: assertion failed: r[0] == test_vec[i].r[0] (4952 == 11945)
../../../usr/local/src/simde/test/x86/avx2.c:9469: assertion failed: r[0] == simde_x_mm256_loadu_epi16(test_vec[i].r)[0] (-6408 == 1375)
../../../usr/local/src/simde/test/x86/avx2.c:9536: assertion failed: r[0] == simde_x_mm256_loadu_epi16(test_vec[i].r)[0] (54252 == 8028)
test/x86/avx2.cpp:9469: assertion failed: r[0] == simde_x_mm256_loadu_epi16(test_vec[i].r)[0] (-6408 == 1375)
test/x86/avx2.cpp:9536: assertion failed: r[0] == simde_x_mm256_loadu_epi16(test_vec[i].r)[0] (54252 == 8028)
@mr-c mr-c changed the title armel gcc 12.2 -O2 regression armhf gcc 12.2 -O2 regression Jan 22, 2023
@mr-c mr-c changed the title armhf gcc 12.2 -O2 regression armhf & armel gcc 12.2 -O2 regression Jan 22, 2023
@mr-c
Copy link
Collaborator Author

mr-c commented Apr 29, 2023

To reproduce

cd docker
./simde-dev.sh
# now inside the container
simde-reset-build.sh armhf-gcc-12-debflags
meson compile -C armhf-gcc-12-debflags
meson test -C armhf-gcc-12-debflags --print-errorlogs

Confirmed with https://github.com/simd-everywhere/simde/releases/tag/v0.7.4-rc3

@mr-c mr-c added the help wanted We lack either the expertise or time for this. Basically, "patches welcome". label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-bug help wanted We lack either the expertise or time for this. Basically, "patches welcome".
Projects
None yet
Development

No branches or pull requests

1 participant