Landing: 5ad734dea016

Project / Subsystem

gcc / AVR

Date

2026-08-12

Author

Georg-Johann Lay

Commit

5ad734dea0161726c74fb2c42a07f0fe7f8e1e02

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
AVR
patch_id
—
commit_hash
5ad734dea0161726c74fb2c42a07f0fe7f8e1e02
source_type
github
headline
AVR: Support saturating fixed-point shifts
tldr
Adds hardware support for saturating fixed-point shifts on AVR microcontrollers.
author
Georg-Johann Lay
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • AVR
  • • fixed-point
  • • DSP
  • • optimization
discussion_id_link
—
bugzilla_pr
—
date
2026-08-12T00:00:00.000Z

This patch introduces support for saturating shift left operations on fixed-point types for the AVR microcontroller architecture. It adds new instruction patterns to the AVR backend and includes corresponding support in libgcc and new test cases. This enables efficient implementation of saturation arithmetic, which is crucial for DSP and signal processing applications.