[PATCH v2 4/5] riscv: bitops: Use __riscv_has_extension_likely

Vivian Wang wangruikang at iscas.ac.cn
Thu Aug 21 10:49:16 PDT 2025


On 8/22/25 01:46, Vivian Wang wrote:

> [...]
>
> And, codegen-wise:
>
> ALTERNATIVE("j %l[no_alt]", "nop", ...) -> likely() ALTERNATIVE("nop",
> "j %l[has_alt]", ...) -> unlikely()
>
I messed up the formatting, should be:

    ALTERNATIVE("j %l[no_alt]", "nop", ...) -> likely()
    ALTERNATIVE("nop", "j %l[has_alt]", ...) -> unlikely()

Vivian "dramforever" Wang




More information about the linux-riscv mailing list