simde icon indicating copy to clipboard operation
simde copied to clipboard

Add GCC Armv8-A 32-bit test in CI

Open Cuda-Chen opened this issue 2 years ago • 7 comments

Close #1106.

Cuda-Chen avatar Dec 14 '23 15:12 Cuda-Chen

Congratulations, you have found a compiler bug in GCC 12.3.0!

FAILED: test/arm/neon/add-native-cpp.p/meson-generated_.._add.cpp.o 
arm-linux-gnueabihf-g++-12 -Itest/arm/neon/add-native-cpp.p -Itest/arm/neon -I../test/arm/neon -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -mcpu=cortex-a32 -mfpu=crypto-neon-fp-armv8 -Wextra -Werror -fopenmp-simd -DSIMDE_CONSTRAINED_COMPILATION -DSIMDE_ENABLE_OPENMP -Wno-psabi -DSIMDE_TEST_BARE -MD -MQ test/arm/neon/add-native-cpp.p/meson-generated_.._add.cpp.o -MF test/arm/neon/add-native-cpp.p/meson-generated_.._add.cpp.o.d -o test/arm/neon/add-native-cpp.p/meson-generated_.._add.cpp.o -c test/arm/neon/add.cpp
during RTL pass: expand
test/arm/neon/add.cpp: In function ‘int test_simde_vaddq_p128()’:
test/arm/neon/add.cpp:2054:7: internal compiler error: in expand_shift_1, at expmed.cc:2680
 2054 |     a = a << 64;
      |     ~~^~~~~~~~~
0x180394b internal_error(char const*, ...)
	???:0
0x646a1c fancy_abort(char const*, int, char const*)
	???:0
0x9f64b7 expand_variable_shift(tree_code, machine_mode, rtx_def*, tree_node*, rtx_def*, int)
	???:0
0xa06ead expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier)
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.

https://github.com/simd-everywhere/simde/actions/runs/7211555742/job/19647295647#step:9:1177

mr-c avatar Dec 14 '23 17:12 mr-c

Hi @mr-c,

Thanks for your assistance! While submitting the bug report to GCC, I will try different GCC version so that we can first merge this PR without encountering any GCC bugs.

Cuda-Chen avatar Dec 15 '23 03:12 Cuda-Chen

Hi @mr-c,

Thanks for your assistance! While submitting the bug report to GCC, I will try different GCC version so that we can first merge this PR without encountering any GCC bugs.

After my testing, the error still exists when compiling with GCC 11.4.0 or 10.5.0. I will first file the bug report to GCC.

Cuda-Chen avatar Dec 15 '23 08:12 Cuda-Chen

@Cuda-Chen Any update?

mr-c avatar Feb 06 '24 16:02 mr-c

Hi @mr-c ,

It seems that GCC part does not have any updates. For convenience, I attach the bug tracking ticket here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113065

Cuda-Chen avatar Feb 09 '24 10:02 Cuda-Chen

@Cuda-Chen Thanks for filing the GCC bug! I've added a workaround, lets see if that is enough.

mr-c avatar Feb 09 '24 12:02 mr-c

Hi @mr-c ,

Sorry for the late reply. It seems that the simde_x_aes_inv_s_box fails as the compiler cannot find the declaration. I think we can try to dig in from here.

Cuda-Chen avatar Feb 17 '24 08:02 Cuda-Chen

Thank you @Cuda-Chen !

mr-c avatar Mar 22 '24 15:03 mr-c