https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93312
Bug ID: 93312 Summary: [10 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1923 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-checking, ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: armv7a-hardfloat-linux-gnueabi Created attachment 47672 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47672&action=edit reduced testcase This triggers while building libgcc2.o with RTL checking enabled. $ cc1 -quiet -O testcase.c during RTL pass: combine testcase.c: In function 'foo': testcase.c:8:1: internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1923 8 | } | ^ 0x6ca66c rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.c:879 0x7939ac rhs_regno /repo/gcc-trunk/gcc/rtl.h:1923 0x79fbf4 rhs_regno /repo/gcc-trunk/gcc/config/arm/arm.c:13807 0x79fbf4 clear_operation_p(rtx_def*, bool) /repo/gcc-trunk/gcc/config/arm/arm.c:13782 0x174b80a clear_multiple_operation_1 /repo/gcc-trunk/gcc/config/arm/predicates.md:551 0x174b80a clear_multiple_operation(rtx_def*, machine_mode) /repo/gcc-trunk/gcc/config/arm/predicates.md:558 0x17aac6f recog_41 /repo/gcc-trunk/gcc/config/arm/vfp.md:1989 0x183e0d7 recog(rtx_def*, rtx_insn*, int*) /repo/gcc-trunk/gcc/config/arm/arm-fixed.md:558 0x187516f recog_for_combine_1 /repo/gcc-trunk/gcc/combine.c:11447 0x187fe9e recog_for_combine /repo/gcc-trunk/gcc/combine.c:11717 0x189569b try_combine /repo/gcc-trunk/gcc/combine.c:3656 0x1899a73 combine_instructions /repo/gcc-trunk/gcc/combine.c:1303 0x1899a73 rest_of_handle_combine /repo/gcc-trunk/gcc/combine.c:15059 0x1899a73 execute /repo/gcc-trunk/gcc/combine.c:15104 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ xgcc -v Using built-in specs. COLLECT_GCC=/repo/build-trunk-20200117170346-0ba6a850b59-checking-yes-rtl-df-extra-armv7a-hardfloat/./gcc/xgcc Target: armv7a-hardfloat-linux-gnueabi Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-float=hard --with-fpu=vfpv4 --with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=armv7a-hardfloat-linux-gnueabi --with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld --with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-20200117170346-0ba6a850b59-checking-yes-rtl-df-extra-armv7a-hardfloat Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.0.1 20200117 (experimental) (GCC)