Landing: d2e62fc96406

Project / Subsystem

gcc / riscv

Date

2026-09-19

Author

Jeff Law

Commit

d2e62fc9640620227dbb71955cb428f0ee35bba1

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
riscv
patch_id
—
commit_hash
d2e62fc9640620227dbb71955cb428f0ee35bba1
source_type
github
headline
Fix RISC-V test expectation after saturation/clamping work
tldr
Adjusts a RISC-V test case to match expected output after recent improvements in saturating arithmetic optimizations.
author
Jeff Law
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • risc-v
  • • testing
  • • compiler
  • • vectorization
discussion_id_link
—
bugzilla_pr
—
date
2026-09-19T00:00:00.000Z

Recent improvements in GCC’s handling of saturating arithmetic, specifically for the RISC-V vector extension, caused a test case (vec_sat_u_sub_trunc-1-u8.c) to fail. The optimization replaced a branchy sequence with more efficient saturating instructions, altering the expected output in the tree-dump. This commit updates the test’s expectation to align with the improved output, simplifying the test by removing differing expectations for different optimization levels (-O2 vs -O3).