From 690028435cafde915d313c19f320bccdf2c0c6c2 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 2 Jun 2008 13:08:00 +0200 Subject: [PATCH] i386.md (*cmpfp_): Enable for optimize_size. * config/i386/i386.md (*cmpfp_): Enable for optimize_size. (*cmpfp__cc): Ditto. (*fp_jcc_8_387): Ditto. (*fop__2_i387): Ditto. (*fop__3_i387): Ditto. (*fop_xf_2_i387): Ditto. (*fop_xf_3_i387): Ditto. From-SVN: r136276 --- gcc/ChangeLog | 28 +++++++++++++++++++--------- gcc/config/i386/i386.md | 17 +++++++++-------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3888fd9241..0cc0223e2d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,16 @@ +2008-05-31 Uros Bizjak + + * config/i386/i386.md (*cmpfp_): Enable for optimize_size. + (*cmpfp__cc): Ditto. + (*fp_jcc_8_387): Ditto. + (*fop__2_i387): Ditto. + (*fop__3_i387): Ditto. + (*fop_xf_2_i387): Ditto. + (*fop_xf_3_i387): Ditto. + 2008-06-02 Tomas Bily - * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P. + * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P. 2008-06-01 Richard Sandiford @@ -116,14 +126,14 @@ Revert 2007-11-29 Zdenek Dvorak - PR tree-optimization/34244 - * tree-vrp.c (adjust_range_with_scev): Clear scev cache. - (record_numbers_of_iterations): New function. - (execute_vrp): Cache the numbers of iterations of loops. - * tree-scalar-evolution.c (scev_reset_except_niters): - New function. - (scev_reset): Use scev_reset_except_niters. - * tree-scalar-evolution.h (scev_reset_except_niters): Declare. + PR tree-optimization/34244 + * tree-vrp.c (adjust_range_with_scev): Clear scev cache. + (record_numbers_of_iterations): New function. + (execute_vrp): Cache the numbers of iterations of loops. + * tree-scalar-evolution.c (scev_reset_except_niters): + New function. + (scev_reset): Use scev_reset_except_niters. + * tree-scalar-evolution.h (scev_reset_except_niters): Declare. 2008-05-31 Bernd Schmidt diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index c245a49fd3f..2eec13e91a4 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1169,7 +1169,7 @@ [(match_operand:X87MODEI12 2 "memory_operand" "m")]))] UNSPEC_FNSTSW))] "X87_FLOAT_MODE_P (GET_MODE (operands[1])) - && TARGET_USE_MODE_FIOP + && (TARGET_USE_MODE_FIOP || optimize_size) && (GET_MODE (operands [3]) == GET_MODE (operands[1]))" "* return output_fp_compare (insn, operands, 0, 0);" [(set_attr "type" "multi") @@ -1186,7 +1186,7 @@ (clobber (match_operand:HI 0 "register_operand" "=a"))] "X87_FLOAT_MODE_P (GET_MODE (operands[1])) && TARGET_SAHF && !TARGET_CMOVE - && TARGET_USE_MODE_FIOP + && (TARGET_USE_MODE_FIOP || optimize_size) && (GET_MODE (operands [3]) == GET_MODE (operands[1]))" "#" "&& reload_completed" @@ -14288,7 +14288,7 @@ (clobber (reg:CCFP FLAGS_REG)) (clobber (match_scratch:HI 5 "=a,a"))] "X87_FLOAT_MODE_P (GET_MODE (operands[3])) - && TARGET_USE_MODE_FIOP + && (TARGET_USE_MODE_FIOP || optimize_size) && GET_MODE (operands[1]) == GET_MODE (operands[3]) && !ix86_use_fcomi_compare (swap_condition (GET_CODE (operands[0]))) && ix86_fp_compare_mode (swap_condition (GET_CODE (operands[0]))) == CCFPmode @@ -15926,7 +15926,7 @@ (match_operand:X87MODEI12 1 "nonimmediate_operand" "m,?r")) (match_operand:MODEF 2 "register_operand" "0,0")]))] "TARGET_80387 && !TARGET_SSE_MATH - && TARGET_USE_MODE_FIOP" + && (TARGET_USE_MODE_FIOP || optimize_size)" "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);" [(set (attr "type") (cond [(match_operand:MODEF 3 "mult_operator" "") @@ -15945,7 +15945,7 @@ (float:MODEF (match_operand:X87MODEI12 2 "nonimmediate_operand" "m,?r"))]))] "TARGET_80387 && !TARGET_SSE_MATH - && TARGET_USE_MODE_FIOP" + && (TARGET_USE_MODE_FIOP || optimize_size)" "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);" [(set (attr "type") (cond [(match_operand:MODEF 3 "mult_operator" "") @@ -15960,7 +15960,8 @@ (define_insn "*fop_df_4_i387" [(set (match_operand:DF 0 "register_operand" "=f,f") (match_operator:DF 3 "binary_fp_operator" - [(float_extend:DF (match_operand:SF 1 "nonimmediate_operand" "fm,0")) + [(float_extend:DF + (match_operand:SF 1 "nonimmediate_operand" "fm,0")) (match_operand:DF 2 "register_operand" "0,f")]))] "TARGET_80387 && !(TARGET_SSE2 && TARGET_SSE_MATH) && !(MEM_P (operands[1]) && MEM_P (operands[2]))" @@ -16046,7 +16047,7 @@ [(float:XF (match_operand:X87MODEI12 1 "nonimmediate_operand" "m,?r")) (match_operand:XF 2 "register_operand" "0,0")]))] - "TARGET_80387 && TARGET_USE_MODE_FIOP" + "TARGET_80387 && (TARGET_USE_MODE_FIOP || optimize_size)" "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);" [(set (attr "type") (cond [(match_operand:XF 3 "mult_operator" "") @@ -16064,7 +16065,7 @@ [(match_operand:XF 1 "register_operand" "0,0") (float:XF (match_operand:X87MODEI12 2 "nonimmediate_operand" "m,?r"))]))] - "TARGET_80387 && TARGET_USE_MODE_FIOP" + "TARGET_80387 && (TARGET_USE_MODE_FIOP || optimize_size)" "* return which_alternative ? \"#\" : output_387_binary_op (insn, operands);" [(set (attr "type") (cond [(match_operand:XF 3 "mult_operator" "") -- 2.30.2