https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105993
Bug ID: 105993 Summary: [13 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 with -O -mxop Product: gcc Version: 13.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: x86_64-pc-linux-gnu Created attachment 53148 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53148&action=edit reduced testcase Note this might need a build with RTL checking enabled. Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mxop testcase.c during RTL pass: combine testcase.c: In function 'foo': testcase.c:14:1: internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 14 | } | ^ 0x772c96 rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:916 0xb925cf rhs_regno /repo/gcc-trunk/gcc/rtl.h:1932 0xb94e27 rhs_regno /repo/gcc-trunk/gcc/config/i386/sse.md:12506 0xb94e27 split_41 /repo/gcc-trunk/gcc/config/i386/sse.md:23880 0x231fb05 combine_split_insns /repo/gcc-trunk/gcc/combine.cc:530 0x2327431 try_combine /repo/gcc-trunk/gcc/combine.cc:3561 0x232a694 combine_instructions /repo/gcc-trunk/gcc/combine.cc:1287 0x232a694 rest_of_handle_combine /repo/gcc-trunk/gcc/combine.cc:14976 0x232a694 execute /repo/gcc-trunk/gcc/combine.cc:15021 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-1112-20220615134935-g49d14a841fd-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu 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 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r13-1112-20220615134935-g49d14a841fd-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220615 (experimental) (GCC)