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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <l...@gcc.gnu.org>:

https://gcc.gnu.org/g:fb54b9772816968032518d4008be5090e0d95109

commit r14-8396-gfb54b9772816968032518d4008be5090e0d95109
Author: Monk Chiang <monk.chi...@sifive.com>
Date:   Wed Jan 24 10:19:28 2024 -0700

    [PATCH v3] RISC-V: Add split pattern to generate SFB instructions.
[PR113095]

    Since the match.pd transforms (zero_one == 0) ? y : z <op> y,
    into ((typeof(y))zero_one * z) <op> y. Add splitters to recongize
    this expression to generate SFB instructions.

    gcc/ChangeLog:
            PR target/113095
            * config/riscv/sfb.md: New splitters to rewrite single bit
            sign extension as the condition to SFB instructions.

    gcc/testsuite/ChangeLog:
            * gcc.target/riscv/sfb.c: New test.
            * gcc.target/riscv/pr113095.c: New test.

Reply via email to