From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 894643858D32; Mon, 12 Jun 2023 10:09:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 894643858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686564576; bh=n0k4bJt13rtUgXr6HXZmAO+8WLCzTDQo0Lx58FY6zxg=; h=From:To:Subject:Date:From; b=pPZwtY2J1rNGRMcIOaTs6kR6k/J5qh7VSL7jYjekniXiotR/noPABq7e6/UuXXzUr q8xCEPVGitILmztUSf/vmwM0fZxS4yVMr+Tb+nUVBVF+XtDGGI0rRfNMJCBtYmbrMw H6KM3u7Z4SZRBUkKsaZzACPSrWPQv6+NZkzxmO04= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110219] New: [14 Regression] ICE: tree check: expected integer_cst, have real_cst in to_wide, at tree.h:6314 with _Complex float to int Date: Mon, 12 Jun 2023 10:09:35 +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: 14.0 X-Bugzilla-Keywords: 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 bug_severity priority component assigned_to reporter target_milestone 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110219 Bug ID: 110219 Summary: [14 Regression] ICE: tree check: expected integer_cst, have real_cst in to_wide, at tree.h:6314 with _Complex float to int Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Created attachment 55307 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55307&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Os -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre testcase.c=20 during GIMPLE pass: evrp testcase.c: In function 'foo': testcase.c:8:1: internal compiler error: tree check: expected integer_cst, = have real_cst in to_wide, at tree.h:6314 8 | } | ^ 0x851b7a tree_check_failed(tree_node const*, char const*, int, char const*, ...) /repo/gcc-trunk/gcc/tree.cc:8899 0xd15336 tree_check(tree_node const*, char const*, int, char const*, tree_c= ode) /repo/gcc-trunk/gcc/tree.h:3826 0xd15336 wi::to_wide(tree_node const*) /repo/gcc-trunk/gcc/tree.h:6314 0xd159c2 wi::to_wide(tree_node const*) /repo/gcc-trunk/gcc/tree.h:3570 0xd159c2 adjust_realpart_expr /repo/gcc-trunk/gcc/gimple-range-fold.cc:538 0xd159c2 gimple_range_adjustment /repo/gcc-trunk/gcc/gimple-range-fold.cc:563 0xd159c2 fold_using_range::range_of_range_op(vrange&, gimple_range_op_handl= er&, fur_source&) /repo/gcc-trunk/gcc/gimple-range-fold.cc:741 0x23c54b6 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&, tree_node*) /repo/gcc-trunk/gcc/gimple-range-fold.cc:594 0x23c597c fold_range(vrange&, gimple*, range_query*) /repo/gcc-trunk/gcc/gimple-range-fold.cc:318 0x23be761 ranger_cache::get_global_range(vrange&, tree_node*, bool&) /repo/gcc-trunk/gcc/gimple-range-cache.cc:1010 0x23b5bcc gimple_ranger::range_of_stmt(vrange&, gimple*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:311 0x1737079 range_query::value_of_stmt(gimple*, tree_node*) /repo/gcc-trunk/gcc/value-query.cc:134 0x15febbf substitute_and_fold_dom_walker::before_dom_children(basic_block_d= ef*) /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:792 0x238035e dom_walker::walk(basic_block_def*) /repo/gcc-trunk/gcc/domwalk.cc:311 0x15fdd05 substitute_and_fold_engine::substitute_and_fold(basic_block_def*) /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:971 0x1702139 execute_ranger_vrp(function*, bool, bool) /repo/gcc-trunk/gcc/tree-vrp.cc:998 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-r14-1694-20230611112131-= g20643513b8d-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.0/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-r14-1694-20230611112131-g20643513b= 8d-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20230611 (experimental) (GCC)=