From 0e883151165b2039469cb2fdcf33c7f8f59782c0 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 26 Aug 2019 21:18:30 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 ++++++- gcc/config/i386/i386.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 2.30.2