https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69100
Bug ID: 69100 Summary: ICE: in final_scan_insn, at final.c:2920 with -msoft-float and __builtin_apply() Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: 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: sparc64-unknown-linux-gnu Created attachment 37197 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37197&action=edit reduced testcase Compiler output: $ sparc64-unknown-linux-gnu-gcc -msoft-float testcase.c testcase.c: In function 'foo': testcase.c:5:1: error: insn does not satisfy its constraints: } ^ (insn 59 58 15 (set (reg:SI 32 %f0) (mem/c:SI (plus:DI (reg/f:DI 30 %fp) (const_int 1995 [0x7cb])) [0 S4 A32])) testcase.c:4 63 {*movsi_insn} (nil)) testcase.c:5:1: internal compiler error: in final_scan_insn, at final.c:2920 0xa90358 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.c:108 0xa903c4 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.c:119 0x7d554c final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /repo/gcc-trunk/gcc/final.c:2920 0x7d58cd final(rtx_insn*, _IO_FILE*, int) /repo/gcc-trunk/gcc/final.c:2044 0x7d6fab rest_of_handle_final /repo/gcc-trunk/gcc/final.c:4440 0x7d6fab execute /repo/gcc-trunk/gcc/final.c:4515 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. $ sparc64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-sparc64/bin/sparc64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-231954-checking-yes-rtl-df-nographite-sparc64/bin/../libexec/gcc/sparc64-unknown-linux-gnu/6.0.0/lto-wrapper Target: sparc64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=sparc64-unknown-linux-gnu --with-ld=/usr/bin/sparc64-unknown-linux-gnu-ld --with-as=/usr/bin/sparc64-unknown-linux-gnu-as --with-sysroot=/usr/sparc64-unknown-linux-gnu --disable-multilib --disable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-231954-checking-yes-rtl-df-nographite-sparc64 Thread model: posix gcc version 6.0.0 20151225 (experimental) (GCC) Other tested targets are not affected (apart from x86_64 4.0.4, which ICEs in emit_swap_insn). Tested revisions: trunk r231954 - ICE 5-branch r231950 - ICE 4_9-branch r231949 - ICE 4_8-branch r224828 - ICE (in extract_constrain_insn_cached)