https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103686
--- Comment #6 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- if (bif_is_mmaint (rs6000_builtin_info_x[uns_fcode]) && !rs6000_fold_gimple) is what you're looking for. However, I would much rather see rejection of the -mno-fold-gimple flag when MMA is enabled. Silently ignoring a flag violates the principle of least astonishment.