i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P together with SSE_TARGET_MATH...
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 23 Jun 2008 07:06:35 +0000 (09:06 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 23 Jun 2008 07:06:35 +0000 (09:06 +0200)
* config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
together with SSE_TARGET_MATH to disable insn pattern.
(*fop_<MODEF:mode>_2_i387): Ditto.
(*fop_<MODEF:mode>_3_i387): Ditto.

From-SVN: r137032

gcc/ChangeLog
gcc/config/i386/i386.md

index 0cc5d09454c4cd67c15fd37f94cb5b61b8c545e1..b91ebd197bcc0adec443c9553daed02dbaddfb98 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
+       together with SSE_TARGET_MATH to disable insn pattern.
+       (*fop_<MODEF:mode>_2_i387): Ditto.
+       (*fop_<MODEF:mode>_3_i387): Ditto.
+
 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
 
        * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
        create_stores_for_reduction, create_loads_and_stores_for_name):
        Likewise.
        * tree-phinodes.c (allocate_phi_node): Likewise.
-       * tree-predcom.c (order_drefs, execute_pred_commoning_cbck):
-       Likewise.
-       * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element):
-       Likewise.
+       * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
+       * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
        * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
        * tree-ssa-coalesce.c (compare_pairs): Likewise.
        * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
        unshare_variable, variable_union_info_cmp_pos, variable_union,
        dataflow_set_different_1, dataflow_set_different_2,
        vt_find_locations, variable_was_changed, set_variable_part,
-       emit_notes_for_differences_1, emit_notes_for_differences_2):
-       Likewise.
+       emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
        * varasm.c (prefix_name, emutls_decl, section_entry_eq,
        section_entry_hash, object_block_entry_eq,
        object_block_entry_hash, create_block_symbol,
index b6b19a1a734037a622e0fc4afb839934850869e5..3c45f7cad05be651abb876ed568b06987005f8f7 100644 (file)
        (match_operator:MODEF 3 "binary_fp_operator"
          [(match_operand:MODEF 1 "nonimmediate_operand" "0,fm")
           (match_operand:MODEF 2 "nonimmediate_operand" "fm,0")]))]
-  "TARGET_80387 && !TARGET_SSE_MATH
+  "TARGET_80387 && !(SSE_FLOAT_MODE_P (<MODE>mode) && TARGET_SSE_MATH)
    && !COMMUTATIVE_ARITH_P (operands[3])
    && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
   "* return output_387_binary_op (insn, operands);"
          [(float:MODEF
             (match_operand:X87MODEI12 1 "nonimmediate_operand" "m,?r"))
           (match_operand:MODEF 2 "register_operand" "0,0")]))]
-  "TARGET_80387 && !TARGET_SSE_MATH
+  "TARGET_80387 && !(SSE_FLOAT_MODE_P (<MODE>mode) && TARGET_SSE_MATH)
    && (TARGET_USE_<X87MODEI12:MODE>MODE_FIOP || optimize_size)"
   "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);"
   [(set (attr "type")
          [(match_operand:MODEF 1 "register_operand" "0,0")
           (float:MODEF
             (match_operand:X87MODEI12 2 "nonimmediate_operand" "m,?r"))]))]
-  "TARGET_80387 && !TARGET_SSE_MATH
+  "TARGET_80387 && !(SSE_FLOAT_MODE_P (<MODE>mode) && TARGET_SSE_MATH)
    && (TARGET_USE_<X87MODEI12:MODE>MODE_FIOP || optimize_size)"
   "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);"
   [(set (attr "type")