Modify some errors and add new instructions#11
Open
gong-bit wants to merge 3 commits into
Open
Conversation
Fixed the error of slri instruction and added new instruction
…instructions, added class _R4 to handle R instruction type instructions with four register parameters, such as: "fmadd.s", "fnmadd.s" Improved the immediate analysis bit number of 20 bits for U shape instructions, parameter analysis order, and the immediate number order of S instructions;
…pecific content format stored is: instruction + correct answer, and it is not registered in test_class.py.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added float type registers in reg_map
Fixed the error of slri instruction and added new instruction
Improved in instr_arr.py, added the processing of float type related instructions, added class _R4 to handle R instruction type instructions with four register parameters, such as: "fmadd.s", "fnmadd.s"
Improved the immediate analysis bit number of 20 bits for U shape instructions, parameter analysis order, and the immediate number order of S instructions;
"fadd.s", "fadd.d", "fmv.x.d", "fmv.w.x", 'fmv.x.w',
"fsub.s", "fmul.s", "fsub.s", "fmul.s", "fdiv.s", "feq.s", "feq.d", "fsqrt.s", "fmin.s", "fmax.s", "fle.s", "fle.d", "flt.s", "flt.d",
"fmadd.s","fnmadd.s","fmsub.s","fnmsub.s",
"fsub.d","fmul.d","fsub.d","fmul.d","fdiv.d",
"fclass.s",
"fcvt.s.wu","fcvt.s.w","fcvt.s.l","fcvt.s.lu",
"fcvt.d.wu","fcvt.d.w","fcvt.d.l","fcvt.d.lu",
"fcvt.w.s","fcvt.wu.s","fcvt.l.s","fcvt.lu.s",
"fsgnj.s","fsgnjn.s","fsgnjx.s"