GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v Performance Win

RISC-V: Add XuanTie vendor vector extension support for xxtvarith.

Adds intrinsic and auto-vectorization support for XuanTie's xxtvarith vector extension on RISC-V.

This commit introduces support for the XuanTie xxtvarith vendor vector extension on RISC-V architectures. It enables intrinsic functions and auto-vectorization for instructions like xt.vile and xt.vilo, which are useful for vector permutation operations. These can benefit workloads such as video processing (e.g., x264) and are compatible with other vector extensions like Zvzip.

In Details

This patch integrates XuanTie's xxtvarith vendor extension into GCC's RISC-V backend. It adds support for xt.vile and xt.vilo instructions, enabling vec_perm auto-vectorization and providing intrinsics. Configuration files (config.gcc, .md, .def, .opt) and RISC-V specific C++ files (riscv-avlprop.cc, riscv-v.cc) are updated. This work complements existing Zvzip support for similar permutation operations.

For Context
RISC-V
A free and open instruction set architecture (ISA) based on Reduced Instruction Set Computing principles. It is modular and extensible, allowing for specialized extensions like vector processing.
XuanTie
A series of RISC-V processor cores developed by Alibaba T-Head Semiconductor, which often include custom extensions like xxtvarith.
xxtvarith
A specific XuanTie vendor vector extension for RISC-V, including instructions for vector interleave operations (xt.vile, xt.vilo).
auto-vectorization
The compiler's ability to automatically transform scalar code into equivalent vector code that operates on multiple data elements simultaneously, improving performance.
vector permutation
Rearranging elements within a vector register according to a specified pattern, often used in data processing and multimedia workloads.
Zvzip
A RISC-V vector extension that provides instructions for vector interleave operations, similar to those in xxtvarith.
Filed Under: risc-vvectorizationextension