Skip to content

Commit af97ba4

Browse files
committed
RISC-V: Fix (rename) Zb to B
The `Zb` extension does not exist and we instead have the `B` extension which is a superset of the three subextensions: `Zba`, `Zbb` and `Zbs`. This commit fixes this issue and updates the reference URL to the source code of the latest ratified ISA Manual (version 20250508). To align with rust-lang/rust#145948, this commit performs rename, not removal.
1 parent 3279c0e commit af97ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes/codegen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ in another manual hosted on the [RISC-V GitHub Account].
428428
Feature | Implicitly Enables | Description
429429
------------|---------------------|-------------------
430430
`a` | | [A][rv-a] --- Atomic instructions
431+
`b` | `zba`, `zbc`, `zbs` | [B][rv-b] --- Bit Manipulation instructions
431432
`c` | | [C][rv-c] --- Compressed instructions
432433
`m` | | [M][rv-m] --- Integer Multiplication and Division instructions
433-
`zb` | `zba`, `zbc`, `zbs` | [Zb][rv-zb] --- Bit Manipulation instructions
434434
`zba` | | [Zba][rv-zb-zba] --- Address Generation instructions
435435
`zbb` | | [Zbb][rv-zb-zbb] --- Basic bit-manipulation
436436
`zbc` | | [Zbc][rv-zb-zbc] --- Carry-less multiplication
@@ -452,9 +452,9 @@ Feature | Implicitly Enables | Description
452452
<!-- Keep links near each table to make it easier to move and update. -->
453453

454454
[rv-a]: https://github.com/riscv/riscv-isa-manual/blob/de46343a245c6ee1f7b1a40c92fe1a86bd4f4978/src/a-st-ext.adoc
455+
[rv-b]: https://github.com/riscv/riscv-isa-manual/blob/20250508/src/b-st-ext.adoc
455456
[rv-c]: https://github.com/riscv/riscv-isa-manual/blob/de46343a245c6ee1f7b1a40c92fe1a86bd4f4978/src/c-st-ext.adoc
456457
[rv-m]: https://github.com/riscv/riscv-isa-manual/blob/de46343a245c6ee1f7b1a40c92fe1a86bd4f4978/src/m-st-ext.adoc
457-
[rv-zb]: https://github.com/riscv/riscv-bitmanip
458458
[rv-zb-zba]: https://github.com/riscv/riscv-bitmanip/blob/main/bitmanip/zba.adoc
459459
[rv-zb-zbb]: https://github.com/riscv/riscv-bitmanip/blob/main/bitmanip/zbb.adoc
460460
[rv-zb-zbc]: https://github.com/riscv/riscv-bitmanip/blob/main/bitmanip/zbc.adoc

0 commit comments

Comments
 (0)