riscv / riscv-isa-manual

RISC-V Instruction Set Manual
https://riscv.org/
Creative Commons Attribution 4.0 International
3.71k stars 644 forks source link

Improve table: Compressed instruction formats #1696

Closed cousteaulecommandant closed 3 weeks ago

cousteaulecommandant commented 1 month ago

Table "Compressed 16-bit RVC instruction formats" header indicating the bits corresponding to each column only aligns properly with the first row (CR format), but doesn't reflect the boundaries of other rows (for example, funct3 or rs1'), making it hard to read.

This PR fixes that by distributing the bit indexes on the table header across the "actual" table columns (unmerged cells), so that it's clear which bits each field spans in every compressed instruction format, not just CR.

This is a really minor stylistic edit that you may want to squash into a future commit (or even just apply the change manually in a future edit).