aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.md
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-11-20 10:06:42 +0000
committerJakub Jelinek <jakub@redhat.com>2019-11-20 10:06:42 +0000
commit9f3d9a570819cb522d2ff3e36c04f742c3870537 (patch)
tree8531ed8dcb46358788a528f026095e0bee664ef7 /gcc/config/mips/mips.md
parent522f3b741606e806f058efcdf6474f2cdcc56718 (diff)
parentc59fa98026086e9886257fce39d27dcfd16cc4f6 (diff)
svn merge -r274943:278492 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-9-branchredhat/gcc-9-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-9-branch@278493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/mips.md')
-rw-r--r--gcc/config/mips/mips.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index a9b0c86be07..3cfb1a751e9 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -5836,8 +5836,8 @@
"ISA_HAS_ROR"
{
if (CONST_INT_P (operands[2]))
- gcc_assert (INTVAL (operands[2]) >= 0
- && INTVAL (operands[2]) < GET_MODE_BITSIZE (<MODE>mode));
+ operands[2] = GEN_INT (INTVAL (operands[2])
+ & (GET_MODE_BITSIZE (<MODE>mode) - 1));
return "<d>ror\t%0,%1,%2";
}