From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 032663858C52; Fri, 23 Sep 2022 08:20:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 032663858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663921244; bh=k1P/IZ1sOYotMiP5/0OHC4juYhqfs0zMmlQkDygbVi8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HnaDb9KG+OmBdmqMgZmZHbBmod45tNk2iqmQqMQgCLmdHCBssw2fQtTFnbG/1sBBo WL3QdUKaE9lMD5mJJCXH26pwpoej7g4jKOk8p+jzKsrkBiqOU/Vw7NhNAEvF1pwTYD J6BUbONe2ZRRKHYCq5d8HoGMbJ95zICgjLBkewPI= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106966] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn" Date: Fri, 23 Sep 2022 08:20:40 +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: 12.2.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106966 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-09-23 --- Comment #6 from Uro=C5=A1 Bizjak --- Testcase: void do_console (unsigned short *vga) { vga[0] =3D 'H'; vga[1] =3D 'e'; vga[2] =3D 'l'; vga[3] =3D 'l'; vga[4] =3D 'o'; } cc1 -O2 -mbuild-constants: during RTL pass: expand pr106966.c: In function =E2=80=98do_console=E2=80=99: pr106966.c:4:10: internal compiler error: in emit_move_insn, at expr.cc:4052 4 | vga[0] =3D 'H'; | ~~~~~~~^~~~~ 0x5ed664 emit_move_insn(rtx_def*, rtx_def*) ../../git/gcc/gcc/expr.cc:4052 0x113a708 alpha_emit_set_long_const ../../git/gcc/gcc/config/alpha/alpha.cc:2090 0x113abfc alpha_split_const_mov(machine_mode, rtx_def**) ../../git/gcc/gcc/config/alpha/alpha.cc:2204 0x113ade7 alpha_expand_mov(machine_mode, rtx_def**) ../../git/gcc/gcc/config/alpha/alpha.cc:2250 0x15510a8 gen_movv4hi(rtx_def*, rtx_def*) ../../git/gcc/gcc/config/alpha/alpha.md:4463 ... (gdb) bt #0 internal_error (gmsgid=3Dgmsgid@entry=3D0x1a9cf85 "in %s, at %s:%d") at ../../git/gcc/gcc/diagnostic.cc:2107 #1 0x00000000007918d6 in fancy_abort (file=3Dfile@entry=3D0x1910cf9 "../../git/gcc/gcc/expr.cc", line=3Dline@entry=3D4052,=20 function=3Dfunction@entry=3D0x1a23a78 "emit_move_insn") at ../../git/gcc/gcc/diagnostic.cc:2211 #2 0x00000000005ed665 in emit_move_insn (x=3D, y=3D) at ../../git/gcc/gcc/expr.cc:4052 #3 0x000000000113a709 in alpha_emit_set_long_const (target=3D0x7fffea2ef9f= 0, c1=3D7077888) at ../../git/gcc/gcc/config/alpha/alpha.cc:2090 #4 0x000000000113abfd in alpha_split_const_mov (mode=3DE_V4HImode, operands=3D0x7fffffffd5a0) at ../../git/gcc/gcc/config/alpha/alpha.cc:2204 #5 0x000000000113ade8 in alpha_expand_mov (mode=3DE_V4HImode, operands=3D0x7fffffffd5a0) at ../../git/gcc/gcc/config/alpha/alpha.cc:2250 #6 0x00000000015510a9 in gen_movv4hi (operand0=3D0x7fffea2ef9f0, operand1=3D0x7fffea29ebc0) at ../../git/gcc/gcc/config/alpha/alpha.md:4463 (gdb) f 3 #3 0x000000000113a709 in alpha_emit_set_long_const (target=3D0x7fffea2ef9f= 0, c1=3D7077888) at ../../git/gcc/gcc/config/alpha/alpha.cc:2090 2090 emit_move_insn (target, gen_rtx_PLUS (DImode, target, GEN_I= NT (d3))); (gdb) p debug_rtx (target) (reg:V4HI 71) $1 =3D void=