Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

About the opcode constraints documentation. #243

Closed
were opened this issue Dec 21, 2020 · 3 comments
Closed

About the opcode constraints documentation. #243

were opened this issue Dec 21, 2020 · 3 comments

Comments

@were
Copy link

were commented Dec 21, 2020

Dear All,

I am hacking the RISCV codebase for my own research.
I am confused by the 4th column of the opcode definition.
I cannot find full documentation of the letters in that column in gcc internal.
Is there any material I can learn from?

Regards,
Jian

@kuanlinchentw
Copy link
Contributor

Hi,

You may reference riscv_ip or validate_riscv_insn to know the letter definition.
If there is any document describing the opcode definition, I'd like to know it, too. XD

@jim-wilson
Copy link
Collaborator

We don't have documentation for the operand letters. You have to read the gas sources to see what they do. The ones that start with C are two letter codes for compressed instructions. The rest are one letter codes.

@were
Copy link
Author

were commented Dec 21, 2020

@kuanlinchentw @jim-wilson Thank you for your prompt response. I will be navigating the codebase then.

@were were closed this as completed Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants