From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17633 invoked by alias); 9 May 2015 07:02:23 -0000 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 Received: (qmail 17605 invoked by uid 48); 9 May 2015 07:02:19 -0000 From: "zhongyunde at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66084] New: ICE:internal compiler error: in fold_convert_loc, at fold-const.c:1974 Date: Sat, 09 May 2015 07:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.7.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhongyunde at huawei dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00742.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66084 Bug ID: 66084 Summary: ICE:internal compiler error: in fold_convert_loc, at fold-const.c:1974 Product: gcc Version: 4.7.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zhongyunde at huawei dot com Target Milestone: --- Created attachment 35509 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35509&action=edit a small case compile with -O2 can reproduce the issue bug issue: crash1.c: In function 'func_32': crash1.c:1128:1: internal compiler error: in fold_convert_loc, at fold-const.c:1974 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. 1972: TREE_TYPE (orig), arg)); 1973: gcc_assert (TREE_CODE (orig) == VECTOR_TYPE 1974: && "tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE (orig))"); 1975: return fold_build1_loc (loc, NOP_EXPR, type, arg); testcase: __attribute__ ((vector_size (16))) g_73 = {0x15FE687EL, 0x5827DF98L, 0xF8411272L, 0x235E695dL}; __attribute__ ((vector_size (16))) g_1124; int func_1(void) { __attribute__ ((vector_size (16))) l_1117 = {0x15FE688EL, 0x5827DF98L, 0xF8411272L, 0x235E695EL}; __attribute__ ((vector_size (16))) zhong = ( g_73 <= g_73); g_1124 = (((g_73 < l_1117) == zhong) << 9) ; return 0; }