]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
FIx handling of X86_TUNE_AVOID_512FMA_CHAINS
authorJan Hubicka <jh@suse.cz>
Thu, 18 Jan 2024 14:37:02 +0000 (15:37 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 18 Jan 2024 15:07:45 +0000 (16:07 +0100)
gcc/ChangeLog:

* config/i386/i386-options.c (ix86_option_override_internal):
Fix handling of X86_TUNE_AVOID_512FMA_CHAINS

gcc/config/i386/i386-options.c

index a5c8f7eb0c5f057ebeff2b569f5641282a12a4b0..953c5fc97e00bfdf4bf6e6a7bedcbcea0ce71907 100644 (file)
@@ -3066,7 +3066,7 @@ ix86_option_override_internal (bool main_args_p,
       = (cf_protection_level) (opts->x_flag_cf_protection | CF_SET);
     }
 
-  if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS])
+  if (ix86_tune_features [X86_TUNE_AVOID_512FMA_CHAINS])
     SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 512);
   else if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS])
     SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 256);