+2012-01-21 Uros Bizjak <ubizjak@gmail.com>
+
+ Backport from mainline
+ 2012-01-21 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
+
2012-01-21 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/56023
;; Used to control the "enabled" attribute on a per-instruction basis.
(define_attr "isa" "base,sse2,sse2_noavx,sse3,sse4,sse4_noavx,noavx,avx,
- bmi2,fma,fma4"
+ bmi2,fma4,fma"
(const_string "base"))
(define_attr "enabled" ""
(eq_attr "isa" "avx") (symbol_ref "TARGET_AVX")
(eq_attr "isa" "noavx") (symbol_ref "!TARGET_AVX")
(eq_attr "isa" "bmi2") (symbol_ref "TARGET_BMI2")
+ (eq_attr "isa" "fma4") (symbol_ref "TARGET_FMA4")
(eq_attr "isa" "fma") (symbol_ref "TARGET_FMA")
- ;; Fma instruction selection has to be done based on
- ;; register pressure. For generating fma4, a cost model
- ;; based on register pressure is required. Till then,
- ;; fma4 instruction is disabled for targets that implement
- ;; both fma and fma4 instruction sets.
- (eq_attr "isa" "fma4")
- (symbol_ref "TARGET_FMA4 && !TARGET_FMA")
]
(const_int 1)))