From: Uros Bizjak Date: Mon, 26 Aug 2019 19:18:30 +0000 (+0200) Subject: i386.c (emit_i387_cw_initialization): Fix masking operand value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e883151165b2039469cb2fdcf33c7f8f59782c0;p=gcc.git i386.c (emit_i387_cw_initialization): Fix masking operand value. * config/i386/i386.c (emit_i387_cw_initialization) : Fix masking operand value. From-SVN: r274934 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 852382efcb5..377275745f5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2019-08-23 Martin Sebor +2019-08-26 Uroš Bizjak + + * config/i386/i386.c (emit_i387_cw_initialization) + : Fix masking operand value. + +2019-08-26 Martin Sebor PR c++/83431 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c712c03dbe2..f3b3a9a326f 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -13785,7 +13785,7 @@ emit_i387_cw_initialization (int mode) { case I387_CW_ROUNDEVEN: /* round to nearest */ - emit_insn (gen_andhi3 (reg, reg, GEN_INT (0x0c00))); + emit_insn (gen_andhi3 (reg, reg, GEN_INT (~0x0c00))); slot = SLOT_CW_ROUNDEVEN; break;