diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-03-05 15:09:55 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-03-05 15:10:59 -0800 |
commit | 8b7b60773404c221082f06723abf9657139fe8f5 (patch) | |
tree | 9f0c440f0ecd761ec5c6c87d6d6bc83401c4eef3 | |
parent | 420ac38c229fda08a874aaba26b34ffba14a9d83 (diff) | |
download | riscv-isa-manual-8b7b60773404c221082f06723abf9657139fe8f5.zip riscv-isa-manual-8b7b60773404c221082f06723abf9657139fe8f5.tar.gz riscv-isa-manual-8b7b60773404c221082f06723abf9657139fe8f5.tar.bz2 |
Add Q opcode listing
-rw-r--r-- | src/instr-table.tex | 405 |
1 files changed, 405 insertions, 0 deletions
diff --git a/src/instr-table.tex b/src/instr-table.tex index d51317c..9ec3c4c 100644 --- a/src/instr-table.tex +++ b/src/instr-table.tex @@ -1999,6 +1999,411 @@ \end{tabular} \end{center} \end{small} + +\end{table} + + +\newpage + +\begin{table}[p] +\begin{small} +\begin{center} +\begin{tabular}{p{0in}p{0.4in}p{0.05in}p{0.05in}p{0.05in}p{0.05in}p{0.4in}p{0.6in}p{0.4in}p{0.6in}p{0.7in}l} +& & & & & & & & & & \\ + & +\multicolumn{1}{l}{\instbit{31}} & +\multicolumn{1}{r}{\instbit{27}} & +\instbit{26} & +\instbit{25} & +\multicolumn{1}{l}{\instbit{24}} & +\multicolumn{1}{r}{\instbit{20}} & +\instbitrange{19}{15} & +\instbitrange{14}{12} & +\instbitrange{11}{7} & +\instbitrange{6}{0} \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{funct7} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{funct3} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{opcode} & R-type \\ +\cline{2-11} + + +& +\multicolumn{2}{|c|}{rs3} & +\multicolumn{2}{c|}{funct2} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{funct3} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{opcode} & R4-type \\ +\cline{2-11} + + +& +\multicolumn{6}{|c|}{imm[11:0]} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{funct3} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{opcode} & I-type \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{imm[11:5]} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{funct3} & +\multicolumn{1}{c|}{imm[4:0]} & +\multicolumn{1}{c|}{opcode} & S-type \\ +\cline{2-11} + + +& +\multicolumn{10}{c}{} & \\ +& +\multicolumn{10}{c}{\bf RV32Q Standard Extension} & \\ +\cline{2-11} + + +& +\multicolumn{6}{|c|}{imm[11:0]} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{100} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{0000111} & FLQ \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{imm[11:5]} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{100} & +\multicolumn{1}{c|}{imm[4:0]} & +\multicolumn{1}{c|}{0100111} & FSQ \\ +\cline{2-11} + + +& +\multicolumn{2}{|c|}{rs3} & +\multicolumn{2}{c|}{11} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1000011} & FMADD.Q \\ +\cline{2-11} + + +& +\multicolumn{2}{|c|}{rs3} & +\multicolumn{2}{c|}{11} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1000111} & FMSUB.Q \\ +\cline{2-11} + + +& +\multicolumn{2}{|c|}{rs3} & +\multicolumn{2}{c|}{11} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1001011} & FNMSUB.Q \\ +\cline{2-11} + + +& +\multicolumn{2}{|c|}{rs3} & +\multicolumn{2}{c|}{11} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1001111} & FNMADD.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0000011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FADD.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0000111} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FSUB.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0001011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FMUL.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0001111} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FDIV.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0101111} & +\multicolumn{2}{c|}{00000} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FSQRT.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{000} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FSGNJ.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{001} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FSGNJN.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{010} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FSGNJX.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0010111} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{000} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FMIN.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0010111} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{001} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FMAX.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0100000} & +\multicolumn{2}{c|}{00011} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.S.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0100011} & +\multicolumn{2}{c|}{00000} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.S \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0100001} & +\multicolumn{2}{c|}{00011} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.D.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{0100011} & +\multicolumn{2}{c|}{00001} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.D \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{010} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FEQ.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{001} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FLT.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1010011} & +\multicolumn{2}{c|}{rs2} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{000} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FLE.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1110011} & +\multicolumn{2}{c|}{00000} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{001} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCLASS.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1100011} & +\multicolumn{2}{c|}{00000} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.W.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1100011} & +\multicolumn{2}{c|}{00001} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.WU.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1101011} & +\multicolumn{2}{c|}{00000} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.W \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1101011} & +\multicolumn{2}{c|}{00001} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.WU \\ +\cline{2-11} + + +& +\multicolumn{10}{c}{} & \\ +& +\multicolumn{10}{c}{\bf RV64Q Standard Extension (in addition to RV32Q)} & \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1100011} & +\multicolumn{2}{c|}{00010} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.L.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1100011} & +\multicolumn{2}{c|}{00011} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.LU.Q \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1101011} & +\multicolumn{2}{c|}{00010} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.L \\ +\cline{2-11} + + +& +\multicolumn{4}{|c|}{1101011} & +\multicolumn{2}{c|}{00011} & +\multicolumn{1}{c|}{rs1} & +\multicolumn{1}{c|}{rm} & +\multicolumn{1}{c|}{rd} & +\multicolumn{1}{c|}{1010011} & FCVT.Q.LU \\ +\cline{2-11} + + +\end{tabular} +\end{center} +\end{small} \caption{Instruction listing for RISC-V} \end{table} |