]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Fix U insn; replace opcode6 with opcode7 in gas/doc/c-riscv.texi
authorJavier Mora <cousteaulecommandant@gmail.com>
Fri, 24 May 2024 18:10:05 +0000 (20:10 +0200)
committerNelson Chu <nelson@rivosinc.com>
Tue, 28 May 2024 03:39:22 +0000 (11:39 +0800)
commitb85af8d9fd31bc20c9f506350f22fda54fb3dbc7
tree7316078d52921be1e27bfcd2531fcf193e57abd2
parent78ba9033742e3ea2d2592d1a34eb5242bd2985a8
RISC-V: Fix U insn; replace opcode6 with opcode7 in gas/doc/c-riscv.texi

The type U RISC-V instruction format in gas/doc/c-riscv.texi shows the
bit arrangement of the simm20 immediate that belongs to the J type;
It should be just `simm20[19:0]`.  The current behavior of `gas` matches
the proposed documentation change.

Additionally, the opcode is called `opcode6` despite of having 7 bits.
Rename it to `opcode7`.

gas/
* doc/c-riscv.texi: Fix U type, and replace opcode6 with opcode7.
gas/doc/c-riscv.texi