http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51236
Bug #: 51236 Summary: ICE: in copy_to_mode_reg, at explow.c:641 with -O -ftree-vectorize -mavx2 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 25866 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25866 reduced testcase Compiler output: $ gcc -O -ftree-vectorize -mavx2 testcase.c testcase.c: In function 'foo': testcase.c:5:11: internal compiler error: in copy_to_mode_reg, at explow.c:641 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) bt #0 internal_error (gmsgid=0x14c64a0 "in %s, at %s:%d") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:839 #1 0x00000000011c4674 in fancy_abort (file=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/diagnostic.c:899 #2 0x00000000007324ec in copy_to_mode_reg (mode=V4DFmode, x=0x7ffff5583c30) at /mnt/svn/gcc-trunk/gcc/explow.c:641 #3 0x0000000000c4dc2e in ix86_expand_builtin (exp=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:29982 #4 0x000000000063c070 in expand_builtin (exp=0x7ffff56e53c0, target=0x7ffff577b260, subtarget=0x0, mode=V4DImode, ignore=0) at /mnt/svn/gcc-trunk/gcc/builtins.c:5803 #5 0x000000000074a94e in expand_expr_real_1 (exp=0x7ffff56e53c0, target=0x7ffff577b260, tmode=V4DImode, modifier=EXPAND_NORMAL, alt_rtl=0x7fffffffd458) at /mnt/svn/gcc-trunk/gcc/expr.c:9915 #6 0x000000000074ff64 in expand_expr_real (exp=0x7ffff56e53c0, target=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/expr.c:7733 #7 0x0000000000759cac in store_expr (exp=0x7ffff56e53c0, target=0x7ffff577b260, call_param_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/expr.c:5163 #8 0x00000000007601bd in expand_assignment (to=0x7ffff5771730, from=0x7ffff56e53c0, nontemporal=false) at /mnt/svn/gcc-trunk/gcc/expr.c:4948 #9 0x000000000066a405 in expand_call_stmt (stmt=0x7ffff576f498) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2075 #10 expand_gimple_stmt_1 (stmt=0x7ffff576f498) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2116 #11 expand_gimple_stmt (stmt=0x7ffff576f498) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2268 #12 0x000000000066bf71 in expand_gimple_basic_block (bb=0x7ffff56dc208) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:4015 #13 0x000000000066e026 in gimple_expand_cfg () at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:4523 #14 0x00000000008df685 in execute_one_pass (pass=0x17cb200) at /mnt/svn/gcc-trunk/gcc/passes.c:2074 #15 0x00000000008dfa25 in execute_pass_list (pass=0x17cb200) at /mnt/svn/gcc-trunk/gcc/passes.c:2129 #16 0x0000000000a4169e in tree_rest_of_compilation (fndecl=0x7ffff56de800) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:420 #17 0x0000000000694d1a in cgraph_expand_function (node=0x7ffff55886c0) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1819 #18 0x0000000000696abc in cgraph_expand_all_functions () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1886 #19 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2199 #20 0x000000000069722a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327 #21 0x0000000000574ee0 in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:10023 #22 0x00000000009d4924 in compile_file (argc=15, argv=0x7fffffffda98) at /mnt/svn/gcc-trunk/gcc/toplev.c:581 #23 do_compile (argc=15, argv=0x7fffffffda98) at /mnt/svn/gcc-trunk/gcc/toplev.c:1931 #24 toplev_main (argc=15, argv=0x7fffffffda98) at /mnt/svn/gcc-trunk/gcc/toplev.c:2007 #25 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6 #26 0x0000000000558799 in _start () Tested revisions: r181508 - crash r181442 - crash r180540 - OK r178498 - OK