From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF7F938381DF; Mon, 28 Nov 2022 16:04:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF7F938381DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669651467; bh=4Rvh6mGGiB+qPd3R/jICLwIvA22T6W19K6NF2i8xUq8=; h=From:To:Subject:Date:From; b=r9tfQioh7SinfLkTDQ5pvxNHfSQVUfc2ZwpMJJa1JHOhBAMihHWQt/4k4esTTHOrn htTvISnJ0EIXUAIqZcjpeFsXNxPcNQeYllz8kyuFzkplyT+e9ex8oicIp+f0whPePV /3VSKDOHcWN/DBkD2HfneF9kzkVMhNVF6TF6Z740= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107896] New: ICE in supportable_widening_operation, at tree-vect-stmts.cc:12199 breaking arm bootstrap Date: Mon, 28 Nov 2022 16:04:27 +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: 12.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107896 Bug ID: 107896 Summary: ICE in supportable_widening_operation, at tree-vect-stmts.cc:12199 breaking arm bootstrap Product: gcc Version: 12.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 (reduced from arm bootstrap): $ cat t.cc struct gcc_options { int x_flag_tree_phiprop; int x_flag_tree_pre; int x_flag_tree_pta; int x_flag_tree_reassoc; int x_flag_tree_scev_cprop; int x_flag_tree_sink; int x_flag_tree_slp_vectorize; int x_flag_web; } cl_optimization_restore_opts; signed char cl_optimization_restore_ptr_1, cl_optimization_restore_ptr_0; void cl_optimization_restore() { cl_optimization_restore_opts .x_flag_tree_phiprop =3D cl_optimization_restore_opts.x_flag_tree_pre= =3D cl_optimization_restore_opts.x_flag_tree_pta =3D cl_optimization_restore_opts.x_flag_tree_reassoc =3D cl_optimization_restore_opts.x_flag_tree_scev_cprop =3D cl_optimization_restore_opts.x_flag_tree_sink =3D cl_optimization_restore_opts.x_flag_tree_slp_vectoriz= e =3D cl_optimization_restore_ptr_0; cl_optimization_restore_opts.x_flag_web =3D cl_optimization_restore_ptr_1; } $ gcc/xgcc -B gcc -c t.cc -O2 -march=3Darmv8-a+crypto during GIMPLE pass: slp t.cc: In function =E2=80=98void cl_optimization_restore()=E2=80=99: t.cc:12:6: internal compiler error: in supportable_widening_operation, at tree-vect-stmts.cc:12199 12 | void cl_optimization_restore() { | ^~~~~~~~~~~~~~~~~~~~~~~ 0x1dd0b13 supportable_widening_operation(vec_info*, tree_code, _stmt_vec_in= fo*, tree_node*, tree_node*, tree_code*, tree_code*, int*, vec*) /home/alecop01/toolchain/src/gcc/gcc/tree-vect-stmts.cc:12199 0x1dd5ef5 vectorizable_conversion /home/alecop01/toolchain/src/gcc/gcc/tree-vect-stmts.cc:5064 0x1df36c6 vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*, _slp_instance*, vec*) /home/alecop01/toolchain/src/gcc/gcc/tree-vect-stmts.cc:11256 0x13a164d vect_slp_analyze_node_operations_1 /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:5957 0x13a164d vect_slp_analyze_node_operations /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:6147 0x13a1556 vect_slp_analyze_node_operations /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:6126 0x13a3b37 vect_slp_analyze_operations(vec_info*) /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:6387 0x13a8ce8 vect_slp_analyze_bb_1 /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:7372 0x13a8ce8 vect_slp_region /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:7419 0x13a9b9d vect_slp_bbs /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:7610 0x13aa1c1 vect_slp_function(function*) /home/alecop01/toolchain/src/gcc/gcc/tree-vect-slp.cc:7698 0x13b3ec6 execute /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.cc:1532 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. $ gcc/xgcc -B gcc -v Reading specs from gcc/specs COLLECT_GCC=3Dgcc/xgcc COLLECT_LTO_WRAPPER=3Dgcc/lto-wrapper Target: arm-linux-gnueabihf Configured with: /home/alecop01/toolchain/src/gcc/configure --prefix=3D/data_sdb/toolchain/cc1s/arm-lin --enable-languages=3Dc,c++ --disable-bootstrap --target=3Darm-linux-gnueabihf Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221128 (experimental) (GCC)=