From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28937 invoked by alias); 19 Jul 2015 18:02:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28880 invoked by uid 55); 19 Jul 2015 18:02:05 -0000 From: "gcc.hall at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/49611] Inline asm should support input/output of flags Date: Sun, 19 Jul 2015 18:02:00 -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: 4.5.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: gcc.hall at gmail 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg01673.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49611 --- Comment #15 from Jeremy --- Perhaps the optimizer can reduce "seta; test; jnz" to "ja" since the compiler now knows the intention. In which case this is a great solution. On 17 July 2015 at 22:24, gccbugzilla at limegreensocks dot com < gcc-bugzilla@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49611 > > --- Comment #14 from David --- > (In reply to Jeremy from comment #12) > > > It probably does a setcc on x86 which doesn't really gain much > > I don't have a 6.0 build to test with yet, but I don't believe that's quite > correct. Looking at the testsuite that got checked in with it, we see > both: > > asm-flag-2.c: > /* { dg-final { scan-assembler "seta" } } */ > > asm-flag-3.c: > /* { dg-final { scan-assembler "ja" } } */ > > -- > You are receiving this mail because: > You are on the CC list for the bug. >