From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 689A03858026; Wed, 20 Jan 2021 12:02:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 689A03858026 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98766] New: SVE: ICE in tree_to_shwi with -O3 --param=avoid-fma-max-bits Date: Wed, 20 Jan 2021 12:02:21 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 12:02:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98766 Bug ID: 98766 Summary: SVE: ICE in tree_to_shwi with -O3 --param=3Davoid-fma-max-bits Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c extern int a[]; void c(short *d) { for (int e =3D 0; e < 9; e++) a[e] =3D d[e] * 2; } $ aarch64-elf-gcc -c test.c -march=3Darmv8.2-a+sve -O3 --param=3Davoid-fma-max-bits=3D8 during GIMPLE pass: widening_mul test.c: In function 'c': test.c:2:6: internal compiler error: in tree_to_shwi, at tree.c:7448 2 | void c(short *d) { | ^ 0x11684f0 tree_to_shwi(tree_node const*) /home/alecop01/toolchain/src/gcc/gcc/tree.c:7448 0xfd97c1 convert_mult_to_fma /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:3255 0xfda040 after_dom_children /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:4619 0x19d3d80 dom_walker::walk(basic_block_def*) /home/alecop01/toolchain/src/gcc/gcc/domwalk.c:352 0xfd3731 execute /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:4718 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Removing any one of the options makes the ICE go away. It appears to ICE at= any nonzero valid value of the param (although I've not checked this exhaustive= ly).=