From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A1A9386549C; Wed, 26 Jan 2022 16:49:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A1A9386549C From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104249] New: [12 regression] RTL failure with checks turned on after r12-6848 Date: Wed, 26 Jan 2022 16:49:56 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer 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, 26 Jan 2022 16:49:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104249 Bug ID: 104249 Summary: [12 regression] RTL failure with checks turned on after r12-6848 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:4343f5e256791a5abaaef29fe1f831a03bab129e, r12-6848=20 libtool: compile: /home/seurer/gcc/git/build/gcc-test/./gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/./gcc/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/sys-inc= lude -fchecking=3D1 -DHAVE_CONFIG_H -I. -I/home/seurer/gcc/git/gcc-test/libquadm= ath -I /home/seurer/gcc/git/gcc-test/libquadmath/../include -mno-gnu-attribute -g = -O2 -MT math/llrintq.lo -MD -MP -MF math/.deps/llrintq.Tpo -c /home/seurer/gcc/git/gcc-test/libquadmath/math/llrintq.c -fPIC -DPIC -o math/.libs/llrintq.o during RTL pass: expand In file included from /usr/include/fenv.h:145, from /home/seurer/gcc/git/gcc-test/libquadmath/quadmath-imp.h:32, from /home/seurer/gcc/git/gcc-test/libquadmath/math/llrintq.c:22: /home/seurer/gcc/git/gcc-test/libquadmath/math/llrintq.c: In function 'llrintq': /home/seurer/gcc/git/gcc-test/libquadmath/math/llrintq.c:55:11: internal compiler error: RTL check: expected code 'const_int', have 'reg' in gen_feraiseexceptsi, at config/rs6000/rs6000.md:7010 55 | feraiseexcept (t =3D=3D LLONG_MAX ? FE_INEXACT : FE_INVAL= ID); | ^~~~~~~~~~~~~ 0x102477a7 rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, in= t, char const*) /home/seurer/gcc/git/gcc-test/gcc/rtl.cc:916 0x1179d69b gen_feraiseexceptsi(rtx_def*, rtx_def*) /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.md:7010 0x1046b7f3 rtx_insn* insn_gen_fn::operator()(rtx_def*, rtx_def*) const /home/seurer/gcc/git/gcc-test/gcc/recog.h:407 0x1046b7f3 expand_builtin_feclear_feraise_except /home/seurer/gcc/git/gcc-test/gcc/builtins.cc:2606 0x1048e283 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /home/seurer/gcc/git/gcc-test/gcc/builtins.cc:7129 0x106a7b8f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/seurer/gcc/git/gcc-test/gcc/expr.cc:11536 0x104c8dd3 expand_expr /home/seurer/gcc/git/gcc-test/gcc/expr.h:301 0x104c8dd3 expand_call_stmt /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.cc:2831 0x104c8dd3 expand_gimple_stmt_1 /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.cc:3864 0x104c8dd3 expand_gimple_stmt /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.cc:4028 0x104d1857 expand_gimple_basic_block /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.cc:6069 0x104d40a7 execute /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.cc:6795 commit 4343f5e256791a5abaaef29fe1f831a03bab129e (HEAD) Author: Raoni Fassina Firmino Date: Thu Jan 13 14:08:53 2022 -0300 rtl: builtins: (not just) rs6000: Add builtins for fegetround, feclearexcept and feraiseexcept [PR94193]=