Landing: b70bb7f63b69

Project / Subsystem

gcc / sh

Date

2026-07-03

Author

Oleg Endo

Commit

b70bb7f63b69008692f66dafa81b632e3149e39c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
sh
patch_id
commit_hash
b70bb7f63b69008692f66dafa81b632e3149e39c
source_type
github
headline
SH: Fix PR 124778
tldr
Corrects instruction pattern ordering to fix a pass bailout on the SH target.
author
Oleg Endo
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • sh
  • bugfix
  • compiler-pass
discussion_id_link
github:gcc-mirror/gcc#124778
bugzilla_pr
date
2026-07-03T00:00:00.000Z

This commit addresses a crash in the decompose_multiword_subregs pass on the SH architecture, caused by an incorrect ordering of instruction patterns in the machine description. By reordering specific extend<mode>si2 patterns, the pass now proceeds correctly, resolving the issue reported in PR 124778.