Landing: 1a29fdbdcb67
Project / Subsystem
gcc / risc-v
Date
2026-08-18
Author
Jin Ma
Commit
1a29fdbdcb6775cd93bfc23426bf4e8b6b0475d2
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 1a29fdbdcb6775cd93bfc23426bf4e8b6b0475d2
- source_type
- github
- headline
- RISC-V: Fix sub-Pmode index in vec_set/vec_extract
- tldr
- Fixes incorrect slide amount calculation for variable-indexed vector operations on RISC-V.
- author
- Jin Ma
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • vectorization
- • compiler
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-18T00:00:00.000Z
This patch corrects an issue in RISC-V vector operations where variable-indexed element accesses were being mishandled. Previously, gen_lowpart incorrectly reinterpreted sub-Pmode indices, leading to wrong slide amounts in vslideup/vslidedown instructions. The fix uses convert_to_mode to zero-extend these indices, ensuring correct code generation.