From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD6603851C21; Sat, 20 Mar 2021 04:12:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD6603851C21 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/69899] gcc ICE on invalid code on x86_64-linux-gnu in "replace_reg" Date: Sat, 20 Mar 2021 04:12:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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: 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: Sat, 20 Mar 2021 04:12:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D69899 --- Comment #5 from Arseny Solokha --- I believe practically all gcc branches, the current gcc-11.0.1-alpha20210314 snapshot (g:c2d7c39fcb8a3cb67600cdb6fde49ecb0e951589) included, demonstrate= the same issue on gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.c w/ -O1 -ffinite-math-only: % x86_64-unknown-linux-gnu-gcc-11.0.1 -O1 -ffinite-math-only -c gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.c gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.c: In func= tion 'main': gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.c:11:3: er= ror: output constraint 0 must specify a single register 11 | asm("lxr\t%0,%1\n" | ^~~ during RTL pass: stack gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.c:16:1: internal compiler error: in replace_reg, at reg-stack.c:714 16 | } | ^ 0x6b654d replace_reg =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:714 0xd6e91b compare_for_stack_reg =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:1379 0xd6e91b subst_stack_regs_pat =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:2001 0xd6f212 subst_stack_regs =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:2444 0xd6f418 convert_regs_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3080 0xd6f418 convert_regs_2 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3214 0xd704c8 convert_regs =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3249 0xd704c8 reg_to_stack =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3374 0xd704c8 rest_of_handle_stack_regs =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3429 0xd704c8 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.1_alpha20210314/work/gcc-11-20210314/gc= c/reg-stack.c:3461=