Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cryptape/rvv-encoder

RISC-V V Extension Encoder
https://github.com/cryptape/rvv-encoder

assembly encode riscv vector

Last synced: 20 days ago
JSON representation

RISC-V V Extension Encoder

Awesome Lists containing this project

README

        

# RVV encoder
* `rvv-encode` - A Library to encode RISC-V V extension instruction
* `rvv-asm` - A procedure macro to encode RISC-V V extension instructions
* `rvv-as` - A command line tool to encode RISC-V V extension instructions

## `rvv-asm` example
```rust
unsafe {
rvv_asm::rvv_asm!(
"vsetvl x5, s3, t6",
"1: vle256.v v3, (a0), vm",
"2:",
"li {lo}, 4",
lo = out(reg) lo,
);
}
```

## `rvv-as` usage
```
USAGE:
rvv-as [OPTIONS]

ARGS:
The original assembly source file path

OPTIONS:
-c, --comment-origin Use original instruction and its code as comment
-p, --comment-prefix The comment prefix [default: #]
-r, --reserved-only Only translate reserved rvv instructions
```