WIP: Proposal: declarative pseuoinstructions
jdupak opened this issue · comments
Repeated/permuted arguments
If the argument name is a number (starts with a digit), it is a reference to one of the arguments to the left of the current argument.
Parsing
TODO: Should it parse the argument again or reuse the parsed result - there might be a problem with relocations.
This requires access to previous arguments.
Decoding
Needs to detect reuse (duplication) of an argument.
Permutations cannot be detected.
Literal values
Literal values will be considered to be part of the (pseudo)instruction code.
More complex pseudo instructions
- decodes into multiple instructions
- uses symbolic value like XLEN
Probably handled ad hoc.
Already implemented ace1abd
Complex aliases are not worth is for now