From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C3F43858D20; Mon, 13 Nov 2023 03:45:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C3F43858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699847115; bh=zLr0HJ2Qq/jySDq49gcprRrCEILiyM+HrUnrilvJBPg=; h=From:To:Subject:Date:From; b=GVP/EwMH+Rqlw0GQCJXtNzug9A31kqcW8LtJMEVfp4Oc163ujbK1qCckaf1Eu1iwq p4l1+ssj+koSvjMUvQ9XKSjyuudzUf2afrp35mFpGIpWvV9tlHOEFSqa1+vLtI3hGY axdw9+wxqTi6r3mzNjzIgOTWKW+67Ei5ULoBBTtU= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 Date: Mon, 13 Nov 2023 03:45:15 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112505 Bug ID: 112505 Summary: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://gcc.godbolt.org/z/nTjnh73xj The crash triggering program (compile with `gcc-14 -O3`): ``` short int w9; struct T { short a : 14; int b; }; struct T v; void __attribute__((simd)) zc() { w9 *=3D v.b ? v.a-- < 0 : 0; } ``` The crash output: ``` during GIMPLE pass: vect : In function 'zc.simdclone.0': :7:28: internal compiler error: in build_vector_from_val, at tree.cc:2104 7 | void __attribute__((simd)) zc() { | ^~ 0x238b15e internal_error(char const*, ...) ???:0 0xa11270 fancy_abort(char const*, int, char const*) ???:0 0x13ee023 vectorizable_induction(_loop_vec_info*, _stmt_vec_info*, gimple**, _slp_tree*, vec*) ???:0 0x2115bf8 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ???:0 0x13fedc0 vect_transform_loop(_loop_vec_info*, gimple*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1 ```=