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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:6bca2ebf10654b8beb5c5737c8652e8262901294

commit r11-6520-g6bca2ebf10654b8beb5c5737c8652e8262901294
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Jan 7 17:18:58 2021 +0100

    i386: Optimize blsi followed by comparison [PR98567]

    The BLSI instruction sets SF and ZF based on the result and clears OF.
    CF is set to something unrelated.

    The following patch optimizes BLSI followed by comparison, so we don't need
    to emit a TEST insn in between.

    2021-01-07  Jakub Jelinek  <ja...@redhat.com>

            PR target/98567
            * config/i386/i386.md (*bmi_blsi_<mode>_cmp,
*bmi_blsi_<mode>_ccno):
            New define_insn patterns.

            * gcc.target/i386/pr98567-1.c: New test.
            * gcc.target/i386/pr98567-2.c: New test.

Reply via email to