https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70326
Bug ID: 70326 Summary: [6 Regression] ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx note) in PATTERN, at rtl.h:1440 Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Target: x86_64-pc-linux-gnu Created attachment 38039 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38039&action=edit reduced testcase I am failing to reduce the number of compiler flags used, especially the -fno-*dce ones. If all the variables are used in a return statement, the testcase stops ICEing. RTL checking might be needed in order to reproduce. Compiler output: $ gcc testcase.c -Og -fno-dce -fno-guess-branch-probability -fschedule-insns -fno-tree-coalesce-vars -fno-tree-dce testcase.c: In function 'foo': testcase.c:7:1: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 foo(u128 u128_0, v32u8 v32u8_0, v32u32 v32u16_0, v32u32 v32u64_0, v32u128 v32u128_0) ^~~ testcase.c:7:1: warning: AVX vector argument without AVX enabled changes the ABI [-Wpsabi] testcase.c:16:1: internal compiler error: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx note) in PATTERN, at rtl.h:1440 } ^ 0xb373f6 rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.c:802 0x1177f64 PATTERN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1440 0x1177f64 insn_extract(rtx_insn*) /repo/build-trunk-234350-checking-yes-rtl-df-nographite/gcc/insn-extract.c:22 0x9fb396 lra_set_insn_recog_data(rtx_insn*) /repo/gcc-trunk/gcc/lra.c:1014 0x9ff5d0 lra_get_insn_recog_data /repo/gcc-trunk/gcc/lra-int.h:486 0x9ff5d0 restore_scratches /repo/gcc-trunk/gcc/lra.c:1973 0x9ff5d0 lra(_IO_FILE*) /repo/gcc-trunk/gcc/lra.c:2390 0x9a5d39 do_reload /repo/gcc-trunk/gcc/ira.c:5425 0x9a5d39 execute /repo/gcc-trunk/gcc/ira.c:5609 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-234350-checking-yes-rtl-df-nographite/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-234350-checking-yes-rtl-df-nographite Thread model: posix gcc version 6.0.0 20160319 (experimental) (GCC) Tested revisions: trunk r234350 - FAIL 5-branch r234210 - OK