https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49611

--- Comment #15 from Jeremy <gcc.hall at gmail dot com> ---
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-bugzi...@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49611
>
> --- Comment #14 from David <gccbugzilla at limegreensocks dot com> ---
> (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.
>

Reply via email to