From: Jakub Jelinek Date: Sat, 30 Sep 2017 07:59:27 +0000 (+0200) Subject: i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bc1d858fbeba5ed7ee06266a3d6738bad2d8b3f;p=gcc.git i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in REG_EQUAL notes. * config/i386/i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in REG_EQUAL notes. From-SVN: r253316 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2063108fdfb..7cae1deeef8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-30 Jakub Jelinek + + * config/i386/i386.c (ix86_split_idivmod): Use mode instead of + always SImode for DIV and MOD in REG_EQUAL notes. + 2017-09-29 Yury Gribov PR middle-end/82319 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 98fb1ce47cb..4a212153e4b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -21980,13 +21980,13 @@ ix86_split_idivmod (machine_mode mode, rtx operands[], if (signed_p) { - div = gen_rtx_DIV (SImode, operands[2], operands[3]); - mod = gen_rtx_MOD (SImode, operands[2], operands[3]); + div = gen_rtx_DIV (mode, operands[2], operands[3]); + mod = gen_rtx_MOD (mode, operands[2], operands[3]); } else { - div = gen_rtx_UDIV (SImode, operands[2], operands[3]); - mod = gen_rtx_UMOD (SImode, operands[2], operands[3]); + div = gen_rtx_UDIV (mode, operands[2], operands[3]); + mod = gen_rtx_UMOD (mode, operands[2], operands[3]); } /* Extract remainder from AH. */