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-Tag: upstream/12.2.0~22217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e883151165b2039469cb2fdcf33c7f8f59782c0;p=platform%2Fupstream%2Fgcc.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 852382e..3772757 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 c712c03..f3b3a9a 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;