From: Uros Bizjak Date: Tue, 14 Aug 2012 18:22:50 +0000 (+0200) Subject: i386.md (enabled): Add comment with explanation why fma4 instructions are disabled... X-Git-Tag: misc/gccgo-go1_1_2~1381 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d63c6b2cbce22d618a91628ce65ccc9fa335ed06;p=thirdparty%2Fgcc.git i386.md (enabled): Add comment with explanation why fma4 instructions are disabled for generic code. * config/i386/i386.md (enabled): Add comment with explanation why fma4 instructions are disabled for generic code. From-SVN: r190397 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f3aa1c111c6..5b2c3d4b983e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-14 Uros Bizjak + + * config/i386/i386.md (enabled): Add comment with explanation + why fma4 instructions are disabled for generic code. + 2012-08-14 Oleg Endo PR target/52933 @@ -114,7 +119,8 @@ (verify_phi_args): Likewise. (verify_ssa): Likewise. * tree-stdarg.c (execute_optimize_stdarg): Likewise. - * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Likewise. + * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): + Likewise. (slpeel_tree_peel_loop_to_edge): Likewise. (vect_can_advance_ivs_p): Likewise. (vect_update_ivs_after_vectorizer): Likewise. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 8d6f211b52f7..16a5c13bea77 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -659,6 +659,9 @@ (eq_attr "isa" "noavx2") (symbol_ref "!TARGET_AVX2") (eq_attr "isa" "bmi2") (symbol_ref "TARGET_BMI2") (eq_attr "isa" "fma") (symbol_ref "TARGET_FMA") + ;; Disable generation of FMA4 instructions for generic code + ;; since FMA3 is preferred for targets that implement both + ;; instruction sets. (eq_attr "isa" "fma4") (symbol_ref "TARGET_FMA4 && !TARGET_FMA") ]