From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4430 invoked by alias); 20 Nov 2011 09:24:40 -0000 Received: (qmail 4418 invoked by uid 22791); 20 Nov 2011 09:24:38 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_AV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Nov 2011 09:24:20 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51236] New: ICE: in copy_to_mode_reg, at explow.c:641 with -O -ftree-vectorize -mavx2 Date: Sun, 20 Nov 2011 10:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg02040.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: zsojka@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 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