Landing: f6069f819113
Project / Subsystem
gcc / risc-v
Date
2026-09-21
Author
Pan Li
Commit
f6069f819113ad5385993b09581508a05d1bb00c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- f6069f819113ad5385993b09581508a05d1bb00c
- source_type
- github
- headline
- RISC-V: Add test cases for widening insn ICE
- tldr
- Added test cases to the RISC-V backend to catch an ICE with widening instructions.
- author
- Pan Li
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • backend
- • ICE
- • test
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-21T00:00:00.000Z
This commit adds several test cases to the RISC-V backend’s test suite to address an Internal Compiler Error (ICE). The ICE occurs when a widening instruction is encountered where the destination register’s number of registers (nregs) is less than that of the source register. These new tests specifically target this scenario to ensure the compiler handles such cases correctly and avoids crashing.