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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Christoph Meullner
<[email protected]>:

https://gcc.gnu.org/g:15862c97e1f919694324403ced3e5b9100fb35a0

commit r17-641-g15862c97e1f919694324403ced3e5b9100fb35a0
Author: Christoph Müllner <[email protected]>
Date:   Sun May 17 22:27:43 2026 +0200

    RISC-V: Add Linux hwprobe mappings for existing extensions

    Upstream Linux defines hwprobe bits in RISCV_HWPROBE_KEY_IMA_EXT_0
    for the following extensions: supm, zicntr, zihpm, zfbfmin, zvfbfmin,
    zvfbfwma, zicbom, zaamo, zalrsc, zabha, zalasr, zicbop, zilsd, zclsd,
    and zicfilp.

    GCC already supports these extensions, and previous patches add the
    matching C API feature-bit metadata.  Copy the upstream Linux bit
    assignments and map them directly to the matching feature bits.

    This patch does not synthesize summary or implied extension bits, and
    it does not add new ISA support.  The PR #185 feature bits depend on
    riscv-c-api-doc PR #185.

    libgcc/ChangeLog:

            * config/riscv/feature_bits.c (RISCV_HWPROBE_EXT_SUPM,
            RISCV_HWPROBE_EXT_ZICNTR, RISCV_HWPROBE_EXT_ZIHPM,
            RISCV_HWPROBE_EXT_ZFBFMIN, RISCV_HWPROBE_EXT_ZVFBFMIN,
            RISCV_HWPROBE_EXT_ZVFBFWMA, RISCV_HWPROBE_EXT_ZICBOM,
            RISCV_HWPROBE_EXT_ZAAMO, RISCV_HWPROBE_EXT_ZALRSC,
            RISCV_HWPROBE_EXT_ZABHA, RISCV_HWPROBE_EXT_ZALASR,
            RISCV_HWPROBE_EXT_ZICBOP, RISCV_HWPROBE_EXT_ZILSD,
            RISCV_HWPROBE_EXT_ZCLSD, RISCV_HWPROBE_EXT_ZICFILP): Define.
            (__init_riscv_features_bits_linux): Set feature bits from the
            corresponding upstream Linux hwprobe bits.

    Signed-off-by: Christoph Müllner <[email protected]>

Reply via email to