From 8dc5696fcdc151cceb643a4f58bbd66266643f6a Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 2 Oct 2018 17:27:07 +0200 Subject: [PATCH] i386.md (fxam2_i387_with_temp): Remove. * config/i386/i386.md (fxam2_i387_with_temp): Remove. (isinfxf2): Ditto. (isinf2): Ditto. From-SVN: r264795 --- gcc/ChangeLog | 6 ++++ gcc/config/i386/i386.md | 75 ----------------------------------------- 2 files changed, 6 insertions(+), 75 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fce5984c41f..af0e08dfddf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-02 Uros Bizjak + + * config/i386/i386.md (fxam2_i387_with_temp): Remove. + (isinfxf2): Ditto. + (isinf2): Ditto. + 2018-10-02 Uros Bizjak * config/i386/i386.c (ix86_emit_i387_round): Extend op1 to XFmode diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 91947518119..367e9bfe255 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -16456,81 +16456,6 @@ (set_attr "unit" "i387") (set_attr "mode" "")]) -(define_insn_and_split "fxam2_i387_with_temp" - [(set (match_operand:HI 0 "register_operand") - (unspec:HI - [(match_operand:MODEF 1 "memory_operand")] - UNSPEC_FXAM_MEM))] - "TARGET_USE_FANCY_MATH_387 - && can_create_pseudo_p ()" - "#" - "&& 1" - [(set (match_dup 2)(match_dup 1)) - (set (match_dup 0) - (unspec:HI [(match_dup 2)] UNSPEC_FXAM))] -{ - operands[2] = gen_reg_rtx (mode); - - MEM_VOLATILE_P (operands[1]) = 1; -} - [(set_attr "type" "multi") - (set_attr "unit" "i387") - (set_attr "mode" "")]) - -(define_expand "isinfxf2" - [(use (match_operand:SI 0 "register_operand")) - (use (match_operand:XF 1 "register_operand"))] - "TARGET_USE_FANCY_MATH_387 - && ix86_libc_has_function (function_c99_misc)" -{ - rtx mask = GEN_INT (0x45); - rtx val = GEN_INT (0x05); - - rtx scratch = gen_reg_rtx (HImode); - rtx res = gen_reg_rtx (QImode); - - emit_insn (gen_fxamxf2_i387 (scratch, operands[1])); - - emit_insn (gen_andqi_ext_1 (scratch, scratch, mask)); - emit_insn (gen_cmpqi_ext_3 (scratch, val)); - ix86_expand_setcc (res, EQ, - gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_zero_extendqisi2 (operands[0], res)); - DONE; -}) - -(define_expand "isinf2" - [(use (match_operand:SI 0 "register_operand")) - (use (match_operand:MODEF 1 "nonimmediate_operand"))] - "TARGET_USE_FANCY_MATH_387 - && ix86_libc_has_function (function_c99_misc) - && !(SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH)" -{ - rtx mask = GEN_INT (0x45); - rtx val = GEN_INT (0x05); - - rtx scratch = gen_reg_rtx (HImode); - rtx res = gen_reg_rtx (QImode); - - /* Remove excess precision by forcing value through memory. */ - if (memory_operand (operands[1], VOIDmode)) - emit_insn (gen_fxam2_i387_with_temp (scratch, operands[1])); - else - { - rtx temp = assign_386_stack_local (mode, SLOT_TEMP); - - emit_move_insn (temp, operands[1]); - emit_insn (gen_fxam2_i387_with_temp (scratch, temp)); - } - - emit_insn (gen_andqi_ext_1 (scratch, scratch, mask)); - emit_insn (gen_cmpqi_ext_3 (scratch, val)); - ix86_expand_setcc (res, EQ, - gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_zero_extendqisi2 (operands[0], res)); - DONE; -}) - (define_expand "signbittf2" [(use (match_operand:SI 0 "register_operand")) (use (match_operand:TF 1 "register_operand"))] -- 2.30.2