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

Restore efficient aop patterns for xstormy16

Reintroduces efficient arithmetic operations for xstormy16 to fix a performance regression.

A performance regression on the xstormy16 port has been fixed by reintroducing efficient arithmetic operation (aop) patterns. The aggressive use of aop previously led to less efficient code generation compared to the older IOR (integer operation) patterns. New expanders for QI (8-bit) and HI (16-bit) modes now steer aop towards IOR, resolving the performance issue.

In Details

This commit modifies the machine description for the xstormy16 target to address a performance regression identified during STORMY16 testing. The regression was caused by a change that favored more aggressive aop (arithmetic operation) patterns, which turned out to be less efficient than the previous IOR (integer operation) patterns for certain instructions (QI/HI modes). New aopqi3 and aophi3 expanders are added to steer the selection back towards IOR when appropriate, using specific operand predicates to match the old behavior.

For Context
xstormy16
A specific processor architecture or platform targeted by the GCC compiler.
aop
Arithmetic Operation. Refers to instructions that perform arithmetic calculations on data.
IOR
Integer Operation. Refers to instructions that perform integer arithmetic operations.
QI mode
A GCC internal mode representing 8-bit integer quantities.
HI mode
A GCC internal mode representing 16-bit integer quantities.
expander
In GCC's machine description, an expander defines how a specific instruction or operation is implemented by lower-level instructions. It translates a generic operation into target-specific code.
Filed Under: xstormy16optimizationperformancecode-generation