diff options
author | Jim Wilson <jimw@sifive.com> | 2020-06-02 18:36:14 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2020-06-02 18:37:09 -0700 |
commit | bb7322c67111024f5977deb85abd777ec713b1a9 (patch) | |
tree | a04fb7e2e4272ffc360f27020832d3e1365ed67b | |
parent | 44730156af5f411d2c47af22558e7bd84dc4fcea (diff) | |
download | fsf-binutils-gdb-bb7322c67111024f5977deb85abd777ec713b1a9.zip fsf-binutils-gdb-bb7322c67111024f5977deb85abd777ec713b1a9.tar.gz fsf-binutils-gdb-bb7322c67111024f5977deb85abd777ec713b1a9.tar.bz2 |
RISC-V: Fix minor bugs in .insn docs.
This fixes some minor bugs in the docs for the .insn directive pointed out
by Frédéric Pétrot, and I added a few more cleanups since I was changing
the docs.
gas/
PR 26051
* doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
Move B before SB. Move J before UJ.
-rw-r--r-- | gas/ChangeLog | 9 | ||||
-rw-r--r-- | gas/doc/c-riscv.texi | 13 |
2 files changed, 15 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b105aa0..c463de1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr> + Jim Wilson <jimw@sifive.com> + + PR 26051 + * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using + simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B + formats using simm12(rs1). Correct SB and B to use rs1 and rs2. + Move B before SB. Move J before UJ. + 2020-06-01 Alex Coplan <alex.coplan@arm.com> * write.c (relax_segment): Fix handling of negative offset when diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi index bf942c3..57ba9fa 100644 --- a/gas/doc/c-riscv.texi +++ b/gas/doc/c-riscv.texi @@ -497,6 +497,7 @@ with the @samp{.insn} pseudo directive: @end verbatim @item I type: .insn i opcode, func3, rd, rs1, simm12 +@itemx I type: .insn i opcode, func3, rd, simm12(rs1) @verbatim +-------------+-----+-------+----+-------------+ | simm12 | rs1 | func3 | rd | opcode | @@ -504,7 +505,7 @@ with the @samp{.insn} pseudo directive: 31 20 15 12 7 0 @end verbatim -@item S type: .insn s opcode, func3, rd, rs1, simm12 +@item S type: .insn s opcode, func3, rs2, simm12(rs1) @verbatim +--------------+-----+-----+-------+-------------+-------------+ | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode | @@ -512,10 +513,8 @@ with the @samp{.insn} pseudo directive: 31 25 20 15 12 7 0 @end verbatim -@item SB type: .insn sb opcode, func3, rd, rs1, symbol -@itemx SB type: .insn sb opcode, func3, rd, simm12(rs1) -@itemx B type: .insn s opcode, func3, rd, rs1, symbol -@itemx B type: .insn s opcode, func3, rd, simm12(rs1) +@item B type: .insn s opcode, func3, rs1, rs2, symbol +@itemx SB type: .insn sb opcode, func3, rs1, rs2, symbol @verbatim +------------+--------------+-----+-----+-------+-------------+-------------+--------+ | simm12[12] | simm12[10:5] | rs2 | rs1 | func3 | simm12[4:1] | simm12[11]] | opcode | @@ -531,8 +530,8 @@ with the @samp{.insn} pseudo directive: 31 12 7 0 @end verbatim -@item UJ type: .insn uj opcode, rd, symbol -@itemx J type: .insn j opcode, rd, symbol +@item J type: .insn j opcode, rd, symbol +@itemx UJ type: .insn uj opcode, rd, symbol @verbatim +------------+--------------+------------+---------------+----+-------------+ | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode | |