Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify some errors and add new instructions #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gong-bit
Copy link

  • 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"

  • Add the test file test9.s to test the newly added instructions. The specific content format is: instruction + correct answer. Since I don't know much about the specific test process of test_class.py, I didn't register it in test_class.py. You still need to complete the test content.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant