Landing: 9b8d4dd3ed32
Project / Subsystem
gcc / rs6000
Date
2026-08-26
Author
Jeevitha
Commit
9b8d4dd3ed32e461f084f118046fff25dc5237e8
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- rs6000
- patch_id
- —
- commit_hash
- 9b8d4dd3ed32e461f084f118046fff25dc5237e8
- source_type
- github
- headline
- Fix rs6000 vec_permx incorrect code generation
- tldr
- rs6000: Fixes incorrect code generation for vec_permx by using a temporary register for the control vector.
- author
- Jeevitha
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • powerpc
- • bugfix
- • codegen
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-26T00:00:00.000Z
A bug in the little-endian expansion of vec_permx on rs6000 modified the permute control vector. This modification caused subsequent vec_permx calls using the same control vector to produce incorrect results. The fix generates the negated control vector in a new pseudo register instead of altering the input operand, and a new test case is added.