kassane/d1-vector-demos — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2020-09-01
Verify that vector instructions run correctly on Xuantie C906/C910 RISC-V chips before shipping firmware.
Test a RISC-V compiler or toolchain against a known set of vector instruction cases.
Study example C code that exercises specific RISC-V vector operations.
| kassane/d1-vector-demos | 0-bingwu-0/live-interpreter | 0xkaz/llm-governance-dashboard | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | — | Python | Python |
| Last pushed | 2020-09-01 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | hard | moderate | hard |
| Complexity | 4/5 | 2/5 | 4/5 |
| Audience | developer | general | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires a RISC-V GCC toolchain and QEMU emulation setup, and targets an older 0.7.1 draft of the vector spec.
This repository is a collection of example programs that demonstrate "vector" processing capabilities on specific RISC-V processors, namely, the Xuantie C906 and C910 chips (designed by Alibaba's T-Head semiconductor unit). In practical terms, it lets developers test and verify that these processors can handle a special category of instructions designed to process multiple pieces of data simultaneously, similar to how modern desktop processors use things like SSE or AVX for faster math and media processing. The workflow is straightforward: you compile small test programs using a provided GCC compiler toolchain, then run the resulting programs on QEMU (a program that emulates hardware in software). The test cases, little C programs like vlbuv_uint32xm2-1.c, exercise specific vector instructions and let you see whether the processor handles them correctly. The README doesn't explain what each test case checks, you'd need to look at the source files themselves to understand the specifics. The audience here is fairly narrow: embedded systems engineers and compiler or toolchain developers working with RISC-V hardware, particularly the Xuantie family. If you're porting an operating system, writing a compiler, or optimizing performance-critical code for these chips, you'd use these demos to confirm that vector instructions behave as expected. It's the kind of thing that matters before shipping firmware or drivers that rely on these features. One notable detail is that these examples target version 0.7.1 of the RISC-V vector specification, which is an older draft, the specification has since been finalized at version 1.0. This means the demos are tied to a specific moment in the standard's evolution and may not directly translate to newer RISC-V implementations. The project appears to be primarily maintained by an Alibaba-affiliated developer, which makes sense given that T-Head designed the C906 and C910 processors these demos target.
A set of test programs that verify vector (SIMD-style) instructions work correctly on Alibaba's Xuantie C906/C910 RISC-V processors.
Dormant — no commits in 2+ years (last push 2020-09-01).
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.