whatisgithub

What is d1-vector-demos?

kassane/d1-vector-demos — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2020-09-01

2Audience · developerComplexity · 4/5DormantSetup · hard

In one sentence

A set of test programs that verify vector (SIMD-style) instructions work correctly on Alibaba's Xuantie C906/C910 RISC-V processors.

Mindmap

mindmap
  root((repo))
    What it does
      Vector instruction tests
      RISC-V verification
      QEMU emulation
    Tech stack
      C
      GCC toolchain
      QEMU
      RISC-V
    Use cases
      Compiler development
      OS porting
      Firmware validation
    Audience
      Embedded engineers
      Toolchain developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Verify that vector instructions run correctly on Xuantie C906/C910 RISC-V chips before shipping firmware.

USE CASE 2

Test a RISC-V compiler or toolchain against a known set of vector instruction cases.

USE CASE 3

Study example C code that exercises specific RISC-V vector operations.

What is it built with?

CGCCQEMURISC-V

How does it compare?

kassane/d1-vector-demos0-bingwu-0/live-interpreter0xkaz/llm-governance-dashboard
Stars222
LanguagePythonPython
Last pushed2020-09-01
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity4/52/54/5
Audiencedevelopergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a RISC-V GCC toolchain and QEMU emulation setup, and targets an older 0.7.1 draft of the vector spec.

So what is it?

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.

Copy-paste prompts

Prompt 1
Explain what the vlbuv_uint32xm2-1.c test case in this repo is checking.
Prompt 2
Show me how to compile and run one of these RISC-V vector test programs under QEMU.
Prompt 3
What's the difference between the 0.7.1 RISC-V vector spec these tests target and the finalized 1.0 spec?
Prompt 4
Help me write a new test case for a RISC-V vector instruction not covered here.

Frequently asked questions

What is d1-vector-demos?

A set of test programs that verify vector (SIMD-style) instructions work correctly on Alibaba's Xuantie C906/C910 RISC-V processors.

Is d1-vector-demos actively maintained?

Dormant — no commits in 2+ years (last push 2020-09-01).

How hard is d1-vector-demos to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is d1-vector-demos for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.