https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125549
Bug ID: 125549
Summary: rs6000: Fix %Y modifier to handle VSX register
numbering
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
Assignee: kishan at gcc dot gnu.org
Reporter: kishan at gcc dot gnu.org
CC: jskumari at gcc dot gnu.org, meissner at gcc dot gnu.org,
segher at gcc dot gnu.org
Target Milestone: ---
Target: power*-linux-gnu
The %Y print modifier in rs6000.cc adds 2 to hardware register numbers, but
when used with VSX registers with modifier '%x' in some patterns, it should add
2 to the VSX register number instead. This causes incorrect register numbers to
be emitted when Altivec registers are allocated.