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

aarch64: Adds missing `sve_type` for SVE instructions, improving compile times.

Missing `sve_type` definitions for SVE instructions are added, resolving compile time regressions and test failures.

This commit addresses issues with the AArch64 SVE (Scalable Vector Extension) implementation by adding missing sve_type definitions for several instructions. Previously, the absence of these types led to compile time increases for certain benchmarks and caused test case failures due to instruction scheduling discrepancies. The fix includes adding the necessary sve_type and adjusting test cases with -fno-schedule-insns2 to mitigate instruction reordering issues affecting assembly checks.

In Details

aarch64: This commit corrects the aarch64-sve.md and aarch64.md machine description files by adding the sve_type attribute to several SVE instructions. The omission of sve_type caused problems in mapping SVE instructions, particularly affecting compile times for workloads like SPEC benchmarks when using -mcpu=hip12. Additionally, some test cases failed due to unexpected instruction reordering; these failures are resolved by adding -fno-schedule-insns2 to the test suite's exp files, preventing instruction scheduling from altering the expected assembly output.

For Context
SVE
Scalable Vector Extension, an ARM architecture feature that allows vector registers to have a variable length, adapting to the hardware.
AArch64
The 64-bit ARM architecture.
sve_type
An attribute in the GCC machine description files that specifies the type or properties of a Scalable Vector Extension (SVE) instruction, aiding in its correct handling and mapping.
machine description
Files (often .md files in GCC) that describe the target machine's instructions, registers, and addressing modes to the compiler's backend.
instruction scheduling
The process of reordering instructions to improve performance, typically by hiding latencies or utilizing available execution units more efficiently. -fno-schedule-insns2 disables a specific scheduling pass.
Filed Under: aarch64sveoptimizationbugfix