[PATCH v2] RISC-V: Update the doc to match ISA manual
Nelson Chu
nelson@rivosinc.com
Thu Oct 31 03:47:51 GMT 2024
Thanks, fixed.
Nelson
On Thu, Oct 31, 2024 at 12:19 AM Andreas Schwab <schwab@linux-m68k.org>
wrote:
> On Okt 29 2024, Kito Cheng wrote:
>
> > @verbatim
> > +-----+-------+-----+-----+-------+----+---------+
> > -| rs3 | func2 | rs2 | rs1 | func3 | rd | opcode7 |
> > +| rs3 | funct2 | rs2 | rs1 | funct3 | rd | opcode7 |
> > +-----+-------+-----+-----+-------+----+---------+
> > 31 27 25 20 15 12 7 0
> > @end verbatim
>
> > @verbatim
> > +--------------+-----+-------+----+---------+
> > -| simm12[11:0] | rs1 | func3 | rd | opcode7 |
> > +| simm12[11:0] | rs1 | funct3 | rd | opcode7 |
> > +--------------+-----+-------+----+---------+
> > 31 20 15 12 7 0
> > @end verbatim
>
> > @verbatim
> > +--------------+-----+-----+-------+-------------+---------+
> > -| simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode7 |
> > +| simm12[11:5] | rs2 | rs1 | funct3 | simm12[4:0] | opcode7 |
> > +--------------+-----+-----+-------+-------------+---------+
> > 31 25 20 15 12 7 0
> > @end verbatim
>
> > @verbatim
> > +-----------------+-----+-----+-------+----------------+---------+
> > -| simm12[12|10:5] | rs2 | rs1 | func3 | simm12[4:1|11] | opcode7 |
> > +| simm12[12|10:5] | rs2 | rs1 | funct3 | simm12[4:1|11] | opcode7 |
> > +-----------------+-----+-----+-------+----------------+---------+
> > 31 25 20 15 12 7 0
> > @end verbatim
>
> > @verbatim
> > +-------+--------+-----+---------+
> > -| func4 | rd/rs1 | rs2 | opcode2 |
> > +| funct4 | rd/rs1 | rs2 | opcode2 |
> > +-------+--------+-----+---------+
> > 15 12 7 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+----------+--------+------------+---------+
> > -| func3 | simm6[5] | rd/rs1 | simm6[4:0] | opcode2 |
> > +| funct3 | simm6[5] | rd/rs1 | simm6[4:0] | opcode2 |
> > +-------+----------+--------+------------+---------+
> > 15 13 12 7 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+------------+-----+---------+
> > -| func3 | uimm8[7:0] | rd' | opcode2 |
> > +| funct3 | uimm8[7:0] | rd' | opcode2 |
> > +-------+-------- ---+-----+---------+
> > 15 13 5 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+------------+----+---------+
> > -| func3 | uimm6[5:0] | rd | opcode2 |
> > +| funct3 | uimm6[5:0] | rd | opcode2 |
> > +-------+------------+----+---------+
> > 15 13 7 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+------------+------+------------+------+---------+
> > -| func3 | uimm5[4:2] | rs1' | uimm5[1:0] | rd' | opcode2 |
> > +| funct3 | uimm5[4:2] | rs1' | uimm5[1:0] | rd' | opcode2 |
> > +-------+------------+------+------------+------+---------+
> > 15 13 10 7 5 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+------------+------+------------+------+---------+
> > -| func3 | uimm5[4:2] | rs1' | uimm5[1:0] | rs2' | opcode2 |
> > +| funct3 | uimm5[4:2] | rs1' | uimm5[1:0] | rs2' | opcode2 |
> > +-------+------------+------+------------+------+---------+
> > 15 13 10 7 5 2 0
> > @end verbatim
>
> > @verbatim
> > +-- ----+----------+-------+------+---------+
> > -| func6 | rd'/rs1' | func2 | rs2' | opcode2 |
> > +| funct6 | rd'/rs1' | funct2 | rs2' | opcode2 |
> > +-------+----------+-------+------+---------+
> > 15 10 7 5 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+--------------+------+------------------+---------+
> > -| func3 | simm8[8|4:3] | rs1' | simm8[7:6|2:1|5] | opcode2 |
> > +| funct3 | simm8[8|4:3] | rs1' | simm8[7:6|2:1|5] | opcode2 |
> > +-------+--------------+------+------------------+---------+
> > 15 13 10 7 2 0
> > @end verbatim
>
> > @verbatim
> > +-------+-------------------------------+---------+
> > -| func3 | simm11[11|4|9:8|10|6|7|3:1|5] | opcode2 |
> > +| funct3 | simm11[11|4|9:8|10|6|7|3:1|5] | opcode2 |
> > +-------+-------------------------------+---------+
> > 15 13 2 0
> > @end verbatim
>
> All tables are now misaligned.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20241031/82355d9d/attachment.htm>
More information about the Binutils
mailing list