From: Uros Bizjak Date: Mon, 17 Sep 2018 20:33:04 +0000 (+0200) Subject: i386.c (ix86_emit_i387_log1p): Emit fldln2 earlier. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71b731be7a9fa2b92ee63abeb48900008902f7a6;p=gcc.git i386.c (ix86_emit_i387_log1p): Emit fldln2 earlier. * config/i386/i386.c (ix86_emit_i387_log1p): Emit fldln2 earlier. From-SVN: r264373 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26d7be6584f..626c69d8f94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-09-17 Uros Bizjak + + * config/i386/i386.c (ix86_emit_i387_log1p): Emit fldln2 earlier. + 2018-09-17 David Malcolm * gimple-ssa-sprintf.c (fmtwarn): Update for introduction of diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 96759de49bc..0c86303b9fa 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -43941,20 +43941,20 @@ void ix86_emit_i387_log1p (rtx op0, rtx op1) rtx test; emit_insn (gen_absxf2 (tmp, op1)); + emit_move_insn (tmp2, standard_80387_constant_rtx (4)); /* fldln2 */ test = gen_rtx_GE (VOIDmode, tmp, const_double_from_real_value ( REAL_VALUE_ATOF ("0.29289321881345247561810596348408353", XFmode), XFmode)); - emit_jump_insn (gen_cbranchxf4 (test, XEXP (test, 0), XEXP (test, 1), label1)); + emit_jump_insn + (gen_cbranchxf4 (test, XEXP (test, 0), XEXP (test, 1), label1)); - emit_move_insn (tmp2, standard_80387_constant_rtx (4)); /* fldln2 */ emit_insn (gen_fyl2xp1xf3_i387 (op0, op1, tmp2)); emit_jump (label2); emit_label (label1); emit_move_insn (tmp, CONST1_RTX (XFmode)); emit_insn (gen_addxf3 (tmp, op1, tmp)); - emit_move_insn (tmp2, standard_80387_constant_rtx (4)); /* fldln2 */ emit_insn (gen_fyl2xxf3_i387 (op0, tmp, tmp2)); emit_label (label2);