https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129151

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|rs6000 swap optimisation    |[14/15/16/17 Regression]
                   |treats (subreg:V16QI        |rs6000 swap optimisation
                   |(reg:TF/TD)) as swappable:  |treats (subreg:V16QI
                   |wrong 16-byte byte reversal |(reg:TF/TD)) as swappable:
                   |on POWER8 LE                |wrong 16-byte byte reversal
                   |                            |on POWER8 LE
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-12-01
   Target Milestone|---                         |14.5
      Known to fail|                            |11.2.0, 14.1.0, 15.1.0,
                   |                            |16.1.0, 17.0
      Known to work|                            |10.3.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed reporter's analysis in gcc/config/rs6000/rs6000-p8swap.cc:
rs6000_analyze_swaps strips the subreg via DF_REF_REAL_REG and fails to flag
contains_subreg for non-vector 16-byte modes like TF/TD, treating the insn as
swappable and causing inverted doublewords on POWER8 LE.

Reply via email to