aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-09-30 09:59:27 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-09-30 09:59:27 +0200
commit6bc1d858fbeba5ed7ee06266a3d6738bad2d8b3f (patch)
tree811cfe0bd27fc2ae8c2182a9e30412256e09beaf /gcc/config
parent8811a7bb93aa7be5fa396cc20169e46975e2ac15 (diff)
downloadgcc-6bc1d858fbeba5ed7ee06266a3d6738bad2d8b3f.zip
gcc-6bc1d858fbeba5ed7ee06266a3d6738bad2d8b3f.tar.gz
gcc-6bc1d858fbeba5ed7ee06266a3d6738bad2d8b3f.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 98fb1ce..4a21215 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. */