[committed] RISC-V: Add Zbc implies Zbkc and Zvknhb implies Zvknha

Kito Cheng kito.cheng@sifive.com
Fri Nov 20 14:08:08 GMT 2026


Hi Jan:

> @@ -1310,6 +1310,7 @@ static const struct riscv_implicit_subset riscv_implicit_subsets[] =
>    {"zvkng", "+zvkn,+zvkg", check_implicit_always},
>    {"zvknc", "+zvkn,+zvbc", check_implicit_always},
>    {"zvkn", "+zvkned,+zvknhb,+zvkb,+zvkt", check_implicit_always},
> +  {"zvknhb", "+zvknha", check_implicit_always},
>
> Is it correct to have multiple entries with the same string as the
> first field? There's
>
>   {"zvknhb", "+zve32x", check_implicit_always},
>
> a few lines down.

Thanks for pointing this out.  I cherry-picked this patch from our
downstream tree and missed it...:P

It is still correct: the table is scanned once from start to end, and
every matching entry is applied, so both zvknhb entries take effect.
But they should be merged into one entry, and I'll push a follow-up
patch to fix that.


More information about the Binutils mailing list