On Thu, Jul 09, 2026 at 05:57:59PM +0530, Surya Kumari Jangala wrote: > Add the -mdense-math/-mno-dense-math compiler option to control emission > of Dense Math Facility (DMF) instructions which may be supported on a > future Power processor. The option is backed by OPTION_MASK_DMF and > exposes a TARGET_DMF macro for use throughout the backend. > > When -mcpu=future is specified and -mdense-math is not mentioned > explicitly, DMF is enabled automatically. Explicitly requesting > -mdense-math on a non-future target is a hard error. > > 2026-07-09 Surya Kumari Jangala <[email protected]> > > gcc: > * config/rs6000/rs6000-cpus.def (FUTURE_MASKS_SERVER): Add > OPTION_MASK_DMF. > (POWERPC_MASKS): Likewise. > * config/rs6000/rs6000.cc (rs6000_option_override_internal): Enable > OPTION_MASK_DMF by default when TARGET_FUTURE is set and the > flag was not explicitly given; emit an error and clear the flag > when -mdense-math is requested on a non-future target. > (rs6000_opt_masks): Add "dense-math" entry for OPTION_MASK_DMF. > * config/rs6000/rs6000.opt (mdense-math): New option backed by > Mask(DMF). > * doc/invoke.texi: Add -mdense-math.
This is approved to back port to the GCC 16 branch. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: [email protected]
