From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D5153858D1E; Fri, 11 Feb 2022 05:45:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D5153858D1E From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104496] New: [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse Date: Fri, 11 Feb 2022 05:45:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created 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: Fri, 11 Feb 2022 05:45:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104496 Bug ID: 104496 Summary: [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 52411 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52411&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mgeneral-regs-only -msse testcase.c=20 during GIMPLE pass: ccp testcase.c: In function 'foo': testcase.c:9:1: internal compiler error: in as_a, at machmode.h:365 9 | } | ^ 0x785e9a scalar_int_mode as_a(machine_mode) /repo/gcc-trunk/gcc/machmode.h:365 0x788612 scalar_mode as_a(machine_mode) /repo/gcc-trunk/gcc/tree.h:3568 0x788612 layout_type(tree_node*) /repo/gcc-trunk/gcc/stor-layout.cc:2402 0x16763a9 make_vector_type /repo/gcc-trunk/gcc/tree.cc:8945 0x16764dd make_vector_type /repo/gcc-trunk/gcc/tree.cc:8943 0x10cb3a0 vectorized_internal_fn_supported_p(internal_fn, tree_node*) /repo/gcc-trunk/gcc/internal-fn.cc:4401 0x186815f gimple_simplify_VEC_COND_EXPR /repo/build-gcc-trunk-amd64/gcc/gimple-match.cc:195745 0x187abb2 gimple_resimplify3 /repo/gcc-trunk/gcc/gimple-match-head.cc:397 0x19184e5 gimple_simplify_BIT_IOR_EXPR /repo/build-gcc-trunk-amd64/gcc/gimple-match.cc:115459 0x185cd22 gimple_resimplify2 /repo/gcc-trunk/gcc/gimple-match-head.cc:321 0x18bbe10 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) /repo/gcc-trunk/gcc/gimple-match-head.cc:1113 0x1044339 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*= ), tree_node* (*)(tree_node*)) /repo/gcc-trunk/gcc/gimple-fold.cc:7328 0x14b5b6f ccp_fold /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:1289 0x14b5b6f evaluate_stmt /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2208 0x14b7ebd visit_assignment /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2841 0x1556fb3 ssa_propagation_engine::simulate_stmt(gimple*) /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:230 0x155728a ssa_propagation_engine::simulate_block(basic_block_def*) /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:337 0x15576a3 ssa_propagation_engine::ssa_propagate() /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:504 0x14aa200 do_ssa_ccp /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2960 0x14aa200 execute /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:3004 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r12-7186-20220210101436-= gb25a7c05f12-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/12.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r12-7186-20220210101436-gb25a7c05f= 12-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220210 (experimental) (GCC)=