Landing: ddbca6eeda6b
Project / Subsystem
gcc / risc-v
Date
2026-04-27
Author
Pan Li
Commit
ddbca6eeda6b19ad4e983167921711b214b87556
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- ddbca6eeda6b19ad4e983167921711b214b87556
- source_type
- github
- headline
- RISC-V: Add tests for vector duplicate and vmsgtu.vv combine
- tldr
- Adds test cases for combining vec_duplicate and vmsgtu.vv to vmsgtu.vx with different GR2VR costs.
- author
- Pan Li
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • rvv
- • vectorization
- • testing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-27T00:00:00.000Z
This commit adds new test cases for the RISC-V vector extension (RVV) to verify the combination of vec_duplicate and vmsgtu.vv instructions into vmsgtu.vx. The tests cover scenarios where the cost of transferring data from general-purpose registers to vector registers (GR2VR) is 0, 1, and 15. Assembly code checks are included to ensure that the expected vector instructions are generated.