riscv-non-isa / riscv-asm-manual

RISC-V Assembly Programmer's Manual
https://jira.riscv.org/browse/RVG-4
Creative Commons Attribution 4.0 International
1.44k stars 238 forks source link

Add .insn directive #106

Closed Timmmm closed 1 month ago

Timmmm commented 4 months ago

Add .insn directive with brief description and link to full documentation.

asb commented 4 months ago

Is this available in GCC and LLVM?

It is.

@Timmmm perhaps worth giving an example using the named opcode as well (e.g. .insn r MADD, 0, 0, fa0, fa1, fa2, fa3).

Timmmm commented 4 months ago

I added .insn r OP, 0, 0, a0, a1, a2 so it's the same instruction as the other examples.

cmuellner commented 1 month ago

Closing this as https://github.com/riscv-non-isa/riscv-asm-manual/pull/109 was merged.