From bc445390566f8831dd8bb34bcc05d80c7401296a Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Fri, 22 Nov 2013 14:06:49 -0800 Subject: [PATCH] add missing imm for stores --- instr-table.tex | 12 ++++++------ parse-opcodes | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/instr-table.tex b/instr-table.tex index efea3ac7..70d51573 100644 --- a/instr-table.tex +++ b/instr-table.tex @@ -221,7 +221,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{000} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100011} & SB rs1,rs2 \\ +\multicolumn{1}{c|}{0100011} & SB rs1,rs2,imm \\ \cline{2-11} @@ -231,7 +231,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{001} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100011} & SH rs1,rs2 \\ +\multicolumn{1}{c|}{0100011} & SH rs1,rs2,imm \\ \cline{2-11} @@ -241,7 +241,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{010} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100011} & SW rs1,rs2 \\ +\multicolumn{1}{c|}{0100011} & SW rs1,rs2,imm \\ \cline{2-11} @@ -590,7 +590,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{011} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100011} & SD rs1,rs2 \\ +\multicolumn{1}{c|}{0100011} & SD rs1,rs2,imm \\ \cline{2-11} @@ -1196,7 +1196,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{010} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100111} & FSW rs1,rs2 \\ +\multicolumn{1}{c|}{0100111} & FSW rs1,rs2,imm \\ \cline{2-11} @@ -1592,7 +1592,7 @@ \multicolumn{1}{c|}{rs1} & \multicolumn{1}{c|}{011} & \multicolumn{1}{c|}{imm[4:0]} & -\multicolumn{1}{c|}{0100111} & FSD rs1,rs2 \\ +\multicolumn{1}{c|}{0100111} & FSD rs1,rs2,imm \\ \cline{2-11} diff --git a/parse-opcodes b/parse-opcodes index b5f3cf33..3117b8e8 100755 --- a/parse-opcodes +++ b/parse-opcodes @@ -77,6 +77,7 @@ def str_inst(name,arguments): if 'imm12hi' in arguments and 'imm12lo' in arguments: arguments.remove('imm12hi') arguments.remove('imm12lo') + arguments.append('imm') if 'bimm12hi' in arguments and 'bimm12lo' in arguments: arguments.remove('bimm12hi') arguments.remove('bimm12lo')