On Mon, 20 Jan 2020, Richard Sandiford wrote: > "Kewen.Lin" <li...@linux.ibm.com> writes: > > gcc/ChangeLog > > > > 2020-01-16 Kewen Lin <li...@gcc.gnu.org> > > > > * config/rs6000/rs6000.c (TARGET_STRIDE_DFORM_VALID_P): New macro. > > (rs6000_stride_dform_valid_p): New function. > > * doc/tm.texi: Regenerate. > > * doc/tm.texi.in (TARGET_STRIDE_DFORM_VALID_P): New hook. > > * target.def (stride_dform_valid_p): New hook. > > It looks like we should able to derive this information from the normal > legitimate_address_p hook. > > Also, "D-form" vs. "X-form" is AFAIK a PowerPC-specific classification. > It would be good to use a more generic term in target-independent code.
Note the whole series is also stage1 material. Richard.