From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 247883858CDB; Tue, 17 Oct 2023 23:31:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 247883858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697585515; bh=3t9BKSinvrreMY9NlfH5hLpbYEm8ti2jVe6S/Cm2y8M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=il+KHC37M56AzRs/GWkKRZH9blo5gruMfobF6TbkzpMP6U73qHZ7+pxXUNb6HEPyj m/Ujxt2KzsWIJNHiuJPKKYk+s+x+mAMPUHdsEIEKXNzG/BuA71noMuFjsDFQIjpFRl 4/SwPfLBhhskJ4zZ4My9wv9TgLA3HUwEllpkyjwg= From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111828] rs6000: Parse inline asm string to figure out it requires HTM feature or not. Date: Tue, 17 Oct 2023 23:31:54 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bergner 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: 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=3D111828 --- Comment #5 from Peter Bergner --- (In reply to Jan Wassenberg from comment #4) > I understand the slippery slope concern. But the empty asm string is a > special case, we and others use it (with +r output and memory clobber) to > prevent optimizing variables out e.g. during tests. I agree the empty string is a special case and I'm totally fine with the pa= tch Ke Wen committed/backported to fix your problem. I'm just against going further than that and actually trying to parse the contents of the inline a= sm string to determine semantically what it contains.=