GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/i386 Performance Win

i386: Extend AOCL vector library support to AOCL 5.3.1 and 6.0.0

GCC now supports newer versions of AMD's AOCL vector library, adding new functions and fixing existing ones for i386 targets.

GCC’s support for AMD’s AOCL vector library has been extended to versions 5.3.1 and 6.0.0. This update adds new functions like erfc, cbrt, and atan2, and adjusts existing ones for improved accuracy across various vector widths. The changes also include test suite updates to verify these new capabilities and address potential pattern matching issues.

In Details

This commit updates GCC's configuration for the AMD AOCL (Advanced Optimized Compiler Libraries) vector library, specifically targeting the i386 architecture. It involves modifying i386.cc to recognize and support newer versions of AOCL-LibM (5.3.1 and 6.0.0), including adding new functions and updating vector width definitions for trigonometric and special math functions. The documentation and testsuite are also updated to reflect these changes, with specific attention paid to ensuring correct assembler pattern matching in the testsuite to avoid collisions between similar function names.

For Context
AOCL
AMD Optimized CPU Libraries, a collection of math libraries designed to accelerate applications on AMD processors. In GCC, support for AOCL allows the compiler to generate code that utilizes these optimized libraries for vector operations.
i386
The architecture designation for the Intel 80386 processor and its compatible successors. In the context of GCC, it refers to the target architecture for which the compiler generates code.
vector library
A library providing functions that operate on vectors (arrays of data) in parallel, often utilizing SIMD (Single Instruction, Multiple Data) instructions. Using vector libraries can significantly speed up computationally intensive tasks such as signal processing and scientific simulations.
vector widths
Refers to the number of elements a vector operation can process simultaneously. Different hardware capabilities and library versions may support varying vector widths (e.g., 2, 4, 8 elements).
Filed Under: i386vectorizationAOCLlibrary support