From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E6B61382D503; Sun, 12 Jun 2022 19:37:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6B61382D503 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105927] ICE: RTL check: expected code 'reg', have 'mem' in rhs_regno, at rtl.h:1932 with -mtune=k6-3 -msse Date: Sun, 12 Jun 2022 19:37:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW 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: everconfirmed bug_status cf_reconfirmed_on Message-ID: In-Reply-To: References: 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: Sun, 12 Jun 2022 19:37:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105927 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-06-12 --- Comment #1 from Uro=C5=A1 Bizjak --- combine pass is creating: #12 0x0000000002306b0f in recog_for_combine (pnewpat=3D0x7fffffffd5e0, insn=3D0x7fffea12f940, pnotes=3D0x7fffffffd630) at /home/uros/git/gcc/gcc/combine.cc:11622 11622 int insn_code_number =3D recog_for_combine_1 (pnewpat, insn, pnot= es); (gdb) p debug_rtx (insn) (insn 32 31 33 2 (set (mem:HF (pre_modify:SI (reg/f:SI 7 sp) (plus:SI (reg/f:SI 7 sp) (const_int -4 [0xfffffffffffffffc]))) [0 S2 A8]) (subreg:HF (mem/c:HI (const:SI (plus:SI (symbol_ref:SI ("u") [flags 0x2] ) (const_int 2 [0x2]))) [1 u+2 S2 A16]) 0)) "pr105927.c":13:3 138 {*pushhf} (nil)) $2 =3D void and SUBREG of memory operand ICES through nonmemory_no_elim_operand predica= te in (define_insn "*pushhf_rex64" [(set (match_operand:HF 0 "push_operand" "=3DX,X") (match_operand:HF 1 "nonmemory_no_elim_operand" "r,x"))] "TARGET_64BIT" (-msse2 has to be used with RTL-checking configured compiler.)=