aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2024-10-31 11:43:07 +0800
committerNelson Chu <nelson@rivosinc.com>2024-10-31 11:45:57 +0800
commit6c4f88a10e7cad516ad28416bf90b4086a92fb56 (patch)
tree56d8796e2e450555cfdc467674dd17a6b520f37f /gas
parent004a5bfc72b36b39a2aa1658123099cc0c5f98f2 (diff)
downloadgdb-6c4f88a10e7cad516ad28416bf90b4086a92fb56.zip
gdb-6c4f88a10e7cad516ad28416bf90b4086a92fb56.tar.gz
gdb-6c4f88a10e7cad516ad28416bf90b4086a92fb56.tar.bz2
gas/doc/riscv: Fixed misaligned instruction table
gas/ * doc/c-riscv.texi: Fixed misaligned instruction table.
Diffstat (limited to 'gas')
-rw-r--r--gas/doc/c-riscv.texi84
1 files changed, 42 insertions, 42 deletions
diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi
index c12109f..44a1259 100644
--- a/gas/doc/c-riscv.texi
+++ b/gas/doc/c-riscv.texi
@@ -556,45 +556,45 @@ with the @samp{.insn} pseudo directive:
@table @code
@item R type: .insn r opcode7, funct3, funct7, rd, rs1, rs2
@verbatim
-+-------+-----+-----+-------+----+---------+
++--------+-----+-----+--------+----+---------+
| funct7 | rs2 | rs1 | funct3 | rd | opcode7 |
-+-------+-----+-----+-------+----+---------+
-31 25 20 15 12 7 0
++--------+-----+-----+--------+----+---------+
+31 25 20 15 12 7 0
@end verbatim
@item R type with 4 register operands: .insn r opcode7, funct3, funct2, rd, rs1, rs2, rs3
@itemx R4 type: .insn r4 opcode7, funct3, funct2, rd, rs1, rs2, rs3
@verbatim
-+-----+-------+-----+-----+-------+----+---------+
++-----+--------+-----+-----+--------+----+---------+
| rs3 | funct2 | rs2 | rs1 | funct3 | rd | opcode7 |
-+-----+-------+-----+-----+-------+----+---------+
-31 27 25 20 15 12 7 0
++-----+--------+-----+-----+--------+----+---------+
+31 27 25 20 15 12 7 0
@end verbatim
@item I type: .insn i opcode7, funct3, rd, rs1, simm12
@itemx I type: .insn i opcode7, funct3, rd, simm12(rs1)
@verbatim
-+--------------+-----+-------+----+---------+
++--------------+-----+--------+----+---------+
| simm12[11:0] | rs1 | funct3 | rd | opcode7 |
-+--------------+-----+-------+----+---------+
-31 20 15 12 7 0
++--------------+-----+--------+----+---------+
+31 20 15 12 7 0
@end verbatim
@item S type: .insn s opcode7, funct3, rs2, simm12(rs1)
@verbatim
-+--------------+-----+-----+-------+-------------+---------+
++--------------+-----+-----+--------+-------------+---------+
| simm12[11:5] | rs2 | rs1 | funct3 | simm12[4:0] | opcode7 |
-+--------------+-----+-----+-------+-------------+---------+
-31 25 20 15 12 7 0
++--------------+-----+-----+--------+-------------+---------+
+31 25 20 15 12 7 0
@end verbatim
@item B type: .insn s opcode7, funct3, rs1, rs2, symbol
@itemx SB type: .insn sb opcode7, funct3, rs1, rs2, symbol
@verbatim
-+-----------------+-----+-----+-------+----------------+---------+
++-----------------+-----+-----+--------+----------------+---------+
| simm12[12|10:5] | rs2 | rs1 | funct3 | simm12[4:1|11] | opcode7 |
-+-----------------+-----+-----+-------+----------------+---------+
-31 25 20 15 12 7 0
++-----------------+-----+-----+--------+----------------+---------+
+31 25 20 15 12 7 0
@end verbatim
@item U type: .insn u opcode7, rd, simm20
@@ -616,74 +616,74 @@ with the @samp{.insn} pseudo directive:
@item CR type: .insn cr opcode2, funct4, rd, rs2
@verbatim
-+-------+--------+-----+---------+
++--------+--------+-----+---------+
| funct4 | rd/rs1 | rs2 | opcode2 |
-+-------+--------+-----+---------+
-15 12 7 2 0
++--------+--------+-----+---------+
+15 12 7 2 0
@end verbatim
@item CI type: .insn ci opcode2, funct3, rd, simm6
@verbatim
-+-------+----------+--------+------------+---------+
++--------+----------+--------+------------+---------+
| funct3 | simm6[5] | rd/rs1 | simm6[4:0] | opcode2 |
-+-------+----------+--------+------------+---------+
-15 13 12 7 2 0
++--------+----------+--------+------------+---------+
+15 13 12 7 2 0
@end verbatim
@item CIW type: .insn ciw opcode2, funct3, rd', uimm8
@verbatim
-+-------+------------+-----+---------+
++--------+------------+-----+---------+
| funct3 | uimm8[7:0] | rd' | opcode2 |
-+-------+-------- ---+-----+---------+
-15 13 5 2 0
++--------+-------- ---+-----+---------+
+15 13 5 2 0
@end verbatim
@item CSS type: .insn css opcode2, funct3, rd, uimm6
@verbatim
-+-------+------------+----+---------+
++--------+------------+----+---------+
| funct3 | uimm6[5:0] | rd | opcode2 |
-+-------+------------+----+---------+
-15 13 7 2 0
++--------+------------+----+---------+
+15 13 7 2 0
@end verbatim
@item CL type: .insn cl opcode2, funct3, rd', uimm5(rs1')
@verbatim
-+-------+------------+------+------------+------+---------+
++--------+------------+------+------------+------+---------+
| funct3 | uimm5[4:2] | rs1' | uimm5[1:0] | rd' | opcode2 |
-+-------+------------+------+------------+------+---------+
-15 13 10 7 5 2 0
++--------+------------+------+------------+------+---------+
+15 13 10 7 5 2 0
@end verbatim
@item CS type: .insn cs opcode2, funct3, rs2', uimm5(rs1')
@verbatim
-+-------+------------+------+------------+------+---------+
++--------+------------+------+------------+------+---------+
| funct3 | uimm5[4:2] | rs1' | uimm5[1:0] | rs2' | opcode2 |
-+-------+------------+------+------------+------+---------+
-15 13 10 7 5 2 0
++--------+------------+------+------------+------+---------+
+15 13 10 7 5 2 0
@end verbatim
@item CA type: .insn ca opcode2, funct6, funct2, rd', rs2'
@verbatim
-+-- ----+----------+-------+------+---------+
++--------+----------+--------+------+---------+
| funct6 | rd'/rs1' | funct2 | rs2' | opcode2 |
-+-------+----------+-------+------+---------+
-15 10 7 5 2 0
++--------+----------+--------+------+---------+
+15 10 7 5 2 0
@end verbatim
@item CB type: .insn cb opcode2, funct3, rs1', symbol
@verbatim
-+-------+--------------+------+------------------+---------+
++--------+--------------+------+------------------+---------+
| funct3 | simm8[8|4:3] | rs1' | simm8[7:6|2:1|5] | opcode2 |
-+-------+--------------+------+------------------+---------+
-15 13 10 7 2 0
++--------+--------------+------+------------------+---------+
+15 13 10 7 2 0
@end verbatim
@item CJ type: .insn cj opcode2, funct3, symbol
@verbatim
-+-------+-------------------------------+---------+
++--------+-------------------------------+---------+
| funct3 | simm11[11|4|9:8|10|6|7|3:1|5] | opcode2 |
-+-------+-------------------------------+---------+
-15 13 2 0
++--------+-------------------------------+---------+
+15 13 2 0
@end verbatim