From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B48A2393BC24; Wed, 28 Apr 2021 18:22:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B48A2393BC24 From: "mark at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100217] [11/12 Regression] ICE when building valgrind testsuite with -march=z14 since r11-7552 Date: Wed, 28 Apr 2021 18:22:58 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.2 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: Wed, 28 Apr 2021 18:22:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100217 --- Comment #11 from Mark Wielaard --- BTW. Disabling that test in valgrind produces another crash in another test that looks similar: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/p= ub -DVGA_s390x=3D1 -DVGO_linux=3D1 -DVGP_s390x_linux=3D1 -DVGPV_s390x_linux_va= nilla=3D1=20=20=20 -Winline -Wall -Wshadow -Wno-long-long -g -m64 -c -o pfpo.o pfpo.c during RTL pass: expand pfpo.c: In function 'main': pfpo.c:35:3: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.c:1023 35 | asm volatile(".short 0x010a\n\t"=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 \ | ^~~ pfpo.c:146:15: note: in expansion of macro 'PFPO' 146 | d32 =3D PFPO(f128_in[j], long double, _Decimal32, PFPO_F128_TO_D32, | ^~~~ The whole PFPO define is: #define PFPO(initial, src_type, dst_type, fn_code, round, ret_code, cc) \ ({ \ register src_type src_reg asm("f4") =3D initial; \ register dst_type dst_reg asm("f0"); \ register unsigned long fn asm("0") =3D fn_code | (round & 0xf); \ register unsigned int ret asm("1"); \ asm volatile(".short 0x010a\n\t" \ "ipm %2\n\t" \ "srl %2,28\n\t" \ :"=3Df"(dst_reg), "=3Dd"(ret), "=3Dd" (cc) = \ : "f"(src_reg), "d"(fn)); \ ret_code =3D ret; \ dst_reg; \ })=