Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some instruction groups combinatorically construct mnemonics with various suffixes: ``` mapping clause assembly = LOAD(imm, rs1, rd, is_unsigned, size, aq, rl) <-> "l" ^ size_mnemonic(size) ^ maybe_u(is_unsigned) ^ maybe_aq(aq) ^ maybe_rl(rl) ^ spc() ^ reg_name(rd) ^ sep() ^ hex_bits_signed_12(imm) ^ "(" ^ reg_name(rs1) ^ ")" ``` Here, the mnemonic is constructed from "l" + { "b", "h", "w", "d" } + { "", "u" } + { "", ".aq" } + { "", ".rl" }. These mnemonic suffixes should be annotated inline for readability. In addition human-readable names can be similarly constructed, as in "load word unsigned acquire release", by concatenating the notes.
- Loading branch information