Landing: 1a59bc13e2ca

Project / Subsystem

gcc / sh

Date

2026-07-03

Author

Oleg Endo

Commit

1a59bc13e2ca584b16059306d780d6f95156be93

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
sh
patch_id
commit_hash
1a59bc13e2ca584b16059306d780d6f95156be93
source_type
github
headline
SH: Fix T bit set expressions of addc and subc insns.
tldr
Corrects the T bit handling for `addc` and `subc` instructions on the SH architecture.
author
Oleg Endo
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • sh
  • bugfix
  • condition-codes
discussion_id_link
bugzilla_pr
date
2026-07-03T00:00:00.000Z

This commit fixes issues related to the T (result sign) bit in the instruction set for the SH architecture, specifically for the addc (add with carry) and subc (subtract with carry) instructions. The associated machine description patterns have been updated to correctly set or use the T bit, resolving bugs reported in PR target/67459 and PR target/122948. A new test case is included to verify the fix.