Landing: f941d0491edf
Project / Subsystem
gcc / risc-v
Date
2026-01-13
Author
Pan Li
Commit
f941d0491edf6704b2fdd9eb9ff37516b5bd74ed
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- f941d0491edf6704b2fdd9eb9ff37516b5bd74ed
- source_type
- github
- headline
- RISC-V: Add test for vec_duplicate + vmsle.vv combine with GR2VR cost 0, 1 and 15
- tldr
- Added new tests with assembly checks for RISC-V vectorization combining vec_duplicate and vmsle.vv into vmsle.vx, covering various GR2VR costs.
- author
- Pan Li
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • vectorization
- • rvv
- • testing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-13T00:00:00.000Z
This commit adds new tests for RISC-V vectorization, specifically focusing on the combination of vec_duplicate and vmsle.vv instructions into a single vmsle.vx instruction. The tests include assembly checks to verify the correct code generation. The tests cover different costs associated with moving data from general-purpose registers to vector registers (GR2VR), which influences the compiler’s decision to perform this optimization. This ensures that the combination works as expected across a range of scenarios.