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

Teach the assembler to recognise standard CSR names #36

Open
asb opened this issue Aug 20, 2017 · 2 comments
Open

Teach the assembler to recognise standard CSR names #36

asb opened this issue Aug 20, 2017 · 2 comments

Comments

@asb
Copy link
Member

asb commented Aug 20, 2017

No description provided.

@dvc94ch
Copy link

dvc94ch commented Aug 22, 2017

What are your thoughts on how to do this? The options I see are either a custom operand parser or a new RegisterClass.

But in both cases you have made it uneasy, I presume on purpose... (CSR is already defined for Callee Saved Registers and the imm12 tests use the csr instructions even dough you could have selected from a variety of other ones)

@asb
Copy link
Member Author

asb commented Aug 24, 2017

I haven't looked at this much yet. The CSR instructions actually are the only uimm12 instructions, which is why the assembler tests exercise this. The ability to use uimm12 integer operand needs to be preserved even once standard CSR names are recognised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants