From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 170013858C83; Mon, 27 Mar 2023 18:39:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 170013858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679942382; bh=AJuLZddendOkpA0RyiJ/fcm7xmb9wIl7pZJfE4AXvvA=; h=From:To:Subject:Date:From; b=iDcJ3sCqjrbRAHc6iKMZxG9gXjTVp1bzonHz+Dgr2mx804UOG2YMVO09ORD8L+atl N8mFlkXhpvVX4NEN4cnvtHeXOIetKGxYUvtvyyd0SF9YnQPtZcitL8qub4lSijauOi hjU4RpKhrZyjPTBpHohJjq3zmbSJLLEEFSSzVLaM= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109302] New: [12/13 Regression] ICE in emit_move_insn, at expr.cc:4225 Date: Mon, 27 Mar 2023 18:39:41 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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=3D109302 Bug ID: 109302 Summary: [12/13 Regression] ICE in emit_move_insn, at expr.cc:4225 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20210905 and 20210919, with -mavx512f or -mavx512pf : $ cat z1.c typedef unsigned U __attribute__ ((vector_size (64))); typedef unsigned __int128 V __attribute__ ((vector_size (64))); static inline V bar (U u, U x, V v) { v =3D (V)(U) { 0, ~0 }; v[x[0]] <<=3D u[-63]; return v; } __attribute__((target_clones("arch=3Dx86-64", "default"))) V foo (U u) { return bar (u, (U) {}, (V) {}); } $ gcc-13-20230326 -c z1.c -O2 -mavx512f In function 'foo.arch_x86_64': cc1: warning: AVX512F vector return without AVX512F enabled changes the ABI [-Wpsabi] z1.c:12:1: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 12 | foo (U u) | ^~~ z1.c:12:1: warning: AVX512F vector argument without AVX512F enabled changes= the ABI [-Wpsabi] during RTL pass: expand z1.c:14:10: internal compiler error: in emit_move_insn, at expr.cc:4225 14 | return bar (u, (U) {}, (V) {}); | ^~~~~~~~~~~~~~~~~~~~~~~ 0x91273d emit_move_insn(rtx_def*, rtx_def*) ../../gcc/expr.cc:4224 0x9203d0 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/expr.cc:10580 0x910a95 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.cc:10801 0x9198b3 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/expr.cc:6330 0x91af3e expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.cc:6048 0x80afa0 expand_gimple_stmt_1 ../../gcc/cfgexpand.cc:3946 0x80afa0 expand_gimple_stmt ../../gcc/cfgexpand.cc:4044 0x8101a7 expand_gimple_basic_block ../../gcc/cfgexpand.cc:6106 0x812c6e execute ../../gcc/cfgexpand.cc:6841=