From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8746F3856DE0; Wed, 12 Oct 2022 07:27:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8746F3856DE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665559672; bh=AntD5UwiqeVXCyxo4hHLfu5tKxXQyaKXdegtlO93+Ok=; h=From:To:Subject:Date:From; b=r1QfHj4I8nixKJ076hlMI9DYjonLQWrVXQZcOTIUJaGR7ejrXAcd8Zr5191YH+UyK sN/5YNLTWYMg63Q8GoGJX8IcXGpU8M4jNgrNUCgtHpPnX+iuV32/a1/snhqTuEC+vj sinse5V5u50S9WTkRTfvz+8Px2JSMB0ETQWfFzqQ= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107229] New: ICE at -O1 and -Os with "-ftree-vectorize": verify_gimple failed Date: Wed, 12 Oct 2022 07:27:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch 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=3D107229 Bug ID: 107229 Summary: ICE at -O1 and -Os with "-ftree-vectorize": verify_gimple failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- This appears to be a very recent regression as it doesn't seem to fail with= the build from Compiler Explorer.=20 [541] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/suz-local/software/local/gcc-trunk/libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=3Dyes --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-mu= ltilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221012 (experimental) [master r13-3246-g1c0670c62fc] (= GCC)=20 [542] %=20 [542] % gcctk -O1 small.c; ./a.out [543] %=20 [543] % gcctk -O1 -ftree-vectorize small.c small.c: In function =E2=80=98main=E2=80=99: small.c:9:5: error: invalid position or size operand to =E2=80=98bit_field_= ref=E2=80=99 9 | int main() { | ^~~~ _ifc__17 =3D BIT_FIELD_REF <_ifc__16, 21, 0xffffffffffffffffffffffffffffffc= 0>; during GIMPLE pass: ifcvt small.c:9:5: internal compiler error: verify_gimple failed 0xf3b99a verify_gimple_in_cfg(function*, bool) ../../gcc-trunk/gcc/tree-cfg.cc:5649 0xdf9d17 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2091 0xdfa2bb execute_todo ../../gcc-trunk/gcc/passes.cc:2145 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. [544] %=20 [544] % cat small.c int a, c; struct { long d; int : 8; int : 27; int e : 21; } f; void g(int b) { a =3D a & 1; } int main() { while (c) g(f.e); return 0; }=